GNU bug report logs - #12214
rmail-output-read-file-name Error in Summary (with Patch)

Previous Next

Package: emacs;

Reported by: tftorrey <at> tftorrey.com (T.F. Torrey)

Date: Thu, 16 Aug 2012 21:55:01 UTC

Severity: normal

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12214 in the body.
You can then email your comments to 12214 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12214; Package emacs. (Thu, 16 Aug 2012 21:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to tftorrey <at> tftorrey.com (T.F. Torrey):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 16 Aug 2012 21:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: tftorrey <at> tftorrey.com (T.F. Torrey)
To: bug-gnu-emacs <at> gnu.org
Subject: rmail-output-read-file-name Error in Summary (with Patch)
Date: Wed, 15 Aug 2012 16:20:03 -0600
Hello developers,

I'm happy to report a bug and a fix.

Description: When in an Rmail summary buffer,
rmail-output-read-file-name looks for matches in the summary buffer
rather than in the rmail buffer, and thus fails to find the proper
match. The patch below corrects this behavior.

ChangeLog entry: make rmail-output-read-file-name use rmail-buffer when
in summary

I was unable to download the most recent Emacs from bazaar, but I was
able to get the source from the Ubuntu archive, and I think it is
current in this regard. Because of this, I also had to make a slightly
different diff, but I think it will work. It's only a two-line change
anyway.

Diff:

diff -c -L rmailout.el -L \#\<buffer\ rmailout.el\> rmailout.el /tmp/buffer-content-19356i1B
*** rmailout.el
--- #<buffer rmailout.el>
***************
*** 59,64 ****
--- 59,65 ----
  (defun rmail-output-read-file-name ()
    "Read the file name to use for `rmail-output'.
  Set `rmail-default-file' to this name as well as returning it."
+   (with-current-buffer rmail-buffer
    (let ((default-file
  	  (let (answer tail)
  	    (setq tail rmail-output-file-alist)
***************
*** 87,92 ****
--- 88,94 ----
  	      (expand-file-name
  	       (or read-file (file-name-nondirectory default-file))
  	       (file-name-directory default-file)))))))
+ )
  
  (defun rmail-delete-unwanted-fields (preserve)
    "Delete all headers matching `rmail-fields-not-to-output'.

Diff finished.  Wed Aug 15 15:35:47 2012

All the best,
Terry
-- 
T.F. Torrey




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Fri, 17 Aug 2012 20:49:02 GMT) Full text and rfc822 format available.

Notification sent to tftorrey <at> tftorrey.com (T.F. Torrey):
bug acknowledged by developer. (Fri, 17 Aug 2012 20:49:03 GMT) Full text and rfc822 format available.

Message #10 received at 12214-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12214-done <at> debbugs.gnu.org
Subject: Re: bug#12214: rmail-output-read-file-name Error in Summary (with
	Patch)
Date: Fri, 17 Aug 2012 16:39:56 -0400
Version: 24.3

Thanks for the report. I installed a slightly more complicated fix to
the Emacs trunk, currently expected to appear as Emacs 24.3 at some
point.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Sep 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 337 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.