From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59318 Path: main.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.gnus.general Subject: Re: bug in message.el, message-forward-make-body-plain Date: Wed, 01 Dec 2004 20:48:42 +0100 Organization: orebokech dot com Message-ID: <87y8ghyf39.fsf@orebokech.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101930662 24004 80.91.229.6 (1 Dec 2004 19:51:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2004 19:51:02 +0000 (UTC) Original-X-From: ding-owner+M7858@lists.math.uh.edu Wed Dec 01 20:50:57 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZaV6-0005z9-00 for ; Wed, 01 Dec 2004 20:50:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CZaTR-0005yG-00; Wed, 01 Dec 2004 13:49:13 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CZaTJ-0005yA-00 for ding@lists.math.uh.edu; Wed, 01 Dec 2004 13:49:05 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CZaTG-0004K7-63 for ding@lists.math.uh.edu; Wed, 01 Dec 2004 13:49:02 -0600 Original-Received: from yeast.orebokech.com (yeast.orebokech.com [82.67.41.165]) by justine.libertine.org (Postfix) with ESMTP id EECBB3A003F for ; Wed, 1 Dec 2004 13:48:57 -0600 (CST) Original-Received: from pacem.orebokech.com (pacem.orebokech.com [192.168.1.3]) by yeast.orebokech.com (Postfix) with ESMTP id 3485F147DE for ; Wed, 1 Dec 2004 20:48:42 +0100 (CET) Original-Received: by pacem.orebokech.com (Postfix, from userid 1000) id 98EAEB3057; Wed, 1 Dec 2004 20:48:42 +0100 (CET) Original-To: ding@gnus.org Mail-Copies-To: nobody X-Face: "1+OIb}NK>vxR1ZMk[Jx!/]O|A-v/P&|%hFquLxp20W.'g4KNUD/IdAUSmd'5`f)Q9%"4]%{P`TF2dC4v1~G5D}S( In-Reply-To: (Katsumi Yamaoka's message of "Wed, 01 Dec 2004 17:19:56 +0900") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59318 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59318 The fix looks simple enough; the problem appears to be in this change: With the following ChangeLog entry: 2003-10-29 Simon Josefsson * message.el (message-forward-make-body-plain): Remove ignored headers. Tiny patch from Andre Srinivasan . (message-forward-make-body-plain): Fix ARG=1. The test is weird: (when (and (not current-prefix-arg) message-forward-ignored-headers) how can current-prefix-arg be nil since you call this function from C-u C-c C-f? Its value is '(4) here... unless I'm missing something. Index: message.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v retrieving revision 7.63 diff -u -r7.63 message.el --- message.el 26 Nov 2004 03:07:29 -0000 7.63 +++ message.el 1 Dec 2004 19:46:41 -0000 @@ -6257,8 +6263,7 @@ (buffer-string))) (setq e (point)) (insert - (when (and (not current-prefix-arg) - message-forward-ignored-headers) + (when message-forward-ignored-headers (save-restriction (narrow-to-region b e) (goto-char b) -- Romain Francoise | Shine the headlight, straight it's a miracle -- http://orebokech.com/ | into my eyes.