From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67185 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-save-in-pipe does not pipe raw article Date: Fri, 25 Jul 2008 18:16:42 +0900 Organization: Emacsen advocacy group Message-ID: References: <87mykes2g8.fsf@newton.gmurray.org.uk> <87d4l3miah.fsf@uwo.ca> <87hcae9xqx.fsf@asfast.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216977485 28490 80.91.229.12 (25 Jul 2008 09:18:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2008 09:18:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15644@lists.math.uh.edu Fri Jul 25 11:18:47 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KMJRj-0003gD-Oq for ding-account@gmane.org; Fri, 25 Jul 2008 11:18:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KMJQa-0001cM-BE; Fri, 25 Jul 2008 04:17:32 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KMJQZ-0001c7-34 for ding@lists.math.uh.edu; Fri, 25 Jul 2008 04:17:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1KMJQT-00071H-0R for ding@lists.math.uh.edu; Fri, 25 Jul 2008 04:17:30 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KMJQo-0003S0-00 for ; Fri, 25 Jul 2008 11:17:46 +0200 Original-Received: from localhost ([127.0.0.1]:43216) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KMJPr-00057W-QC for ding@gnus.org; Fri, 25 Jul 2008 04:16:48 -0500 X-Hashcash: 1:20:080725:ding@gnus.org::Wk9dL/bXj9gKbRkK:0000KQI4 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:huGcEE7NBvlxkqb3vr4BQL0wsYY= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67185 Archived-At: >>>>> Lloyd Zusman wrote: >> (defun gzp-pipe-spam (&optional n) >> (interactive "P") >> (let ((pipe (format "cat | /path/to/cmd"))) > ........................^^^^^^^ > Just a (very!) small nit. Why is `cat' being used here? Am I missing > something? This looks like another recipient of the UUOC Award ("Useless > Use of Cat"): > http://en.wikipedia.org/wiki/Cat_(Unix)#cat_and_UUOC > And for that matter, the `format' function is equally superfluous, > as the following is equivalent and faster: > (let ((pipe "/path/to/cmd")) I guessed that's just an example. I believe what he actually uses is more complicated and `format' and `let*' are really needed there. ;-)