* bug#12214: rmail-output-read-file-name Error in Summary (with Patch)
@ 2012-08-15 22:20 T.F. Torrey
2012-08-17 20:39 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: T.F. Torrey @ 2012-08-15 22:20 UTC (permalink / raw)
To: 12214
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 22:20 bug#12214: rmail-output-read-file-name Error in Summary (with Patch) T.F. Torrey
2012-08-17 20:39 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).