From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55590 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: headers argument in gnus-summary-pipe-output is ignored Date: Sun, 04 Jan 2004 16:37:38 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073231829 11737 80.91.224.253 (4 Jan 2004 15:57:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2004 15:57:09 +0000 (UTC) Original-X-From: ding-owner+M4130@lists.math.uh.edu Sun Jan 04 16:57:07 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdAck-0002UQ-00 for ; Sun, 04 Jan 2004 16:57:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AdAcI-0001Zb-00; Sun, 04 Jan 2004 09:56:38 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AdAcB-0001ZV-00 for ding@lists.math.uh.edu; Sun, 04 Jan 2004 09:56:31 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id CB52C3A0077 for ; Sun, 4 Jan 2004 09:56:30 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AdAcA-0006C7-00 for ; Sun, 04 Jan 2004 16:56:30 +0100 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdAc8-0006Bz-00 for ; Sun, 04 Jan 2004 16:56:28 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AdAc8-00032H-00 for ; Sun, 04 Jan 2004 16:56:28 +0100 Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.1005 (Gnus v5.10.5) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:grm+MUxR2EdLUxyLBCWYccspSzA= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55590 On Fri, Jan 02 2004, Lars Magne Ingebrigtsen wrote: > Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > >> according to the doc-string, `M-: (gnus-summary-pipe-output 1 t) RET' >> should pipe the current article to a command, _including_ the headers: > [...] >> | If HEADERS (the symbolic prefix), include the headers, too. > [...] > >> The following patch fixes this. But I'm not sure if it's the >> best/correct fix. Comments? > > Well, it should take the symbolic prefix into account... Hm. With my patch (see below), when I did `M-i a | xless RET' it worked as expected (headers are included). But then, it always included them, also with a simple `|'. Dunno why. I don't really understand the code. Bye, Reiner. --8<---------------cut here---------------start------------->8--- --- gnus-art.el.~6.380.~ Wed Dec 31 17:27:37 2003 +++ gnus-art.el Sat Jan 3 21:05:19 2004 @@ -3279,7 +3279,8 @@ (if gnus-last-shell-command (setq command gnus-last-shell-command) (error "A command is required"))) - (gnus-eval-in-buffer-window gnus-article-buffer + (gnus-eval-in-buffer-window (or gnus-save-article-buffer + gnus-article-buffer) (save-restriction (widen) (shell-command-on-region (point-min) (point-max) command nil))) --8<---------------cut here---------------end--------------->8--- -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/