diff options
author | Glenn Morris <rgm@gnu.org> | 2014-01-30 21:39:40 -0500 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2014-01-30 21:39:40 -0500 |
commit | b7e615b9bc17a1e4a9ea0d4a71a87b64152af660 (patch) | |
tree | a8f7c02ffdfd13525a6f27dd9321c4f870d48d0e /lisp/mail | |
parent | 0a25002dc2abfd77cd1c227942df3e77321d398d (diff) | |
download | emacs-b7e615b9bc17a1e4a9ea0d4a71a87b64152af660.tar.gz |
Fix for c-submit-bug-report and reporter.el void-variable handling
* lisp/mail/reporter.el (reporter-dump-variable): In case of void-variable,
do not mess with mail-buffer position (fixes 2009-11-03 change).
* lisp/progmodes/cc-mode.el (c-submit-bug-report):
Check auto-fill-mode is bound.
Fixes: debbugs:16592
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/reporter.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/reporter.el b/lisp/mail/reporter.el index 35eb582bf77..8fa0121ea0a 100644 --- a/lisp/mail/reporter.el +++ b/lisp/mail/reporter.el @@ -200,9 +200,10 @@ MAILBUF is the mail buffer being composed." (insert "\n")) (void-variable (with-current-buffer mailbuf - (mail-position-on-field "X-Reporter-Void-Vars-Found") - (end-of-line) - (insert (symbol-name varsym) " "))) + (save-excursion + (mail-position-on-field "X-Reporter-Void-Vars-Found") + (end-of-line) + (insert (symbol-name varsym) " ")))) (error (error "")))) |