Mercurial > emacs
changeset 52757:c546768fdb22
(report-emacs-bug): Fix previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 05 Oct 2003 13:51:43 +0000 |
parents | 371ac8b3328e |
children | aaeb60b0150f |
files | lisp/mail/emacsbug.el |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/emacsbug.el Sun Oct 05 13:51:04 2003 +0000 +++ b/lisp/mail/emacsbug.el Sun Oct 05 13:51:43 2003 +0000 @@ -79,6 +79,7 @@ ;; If there are four numbers in emacs-version, this is a pretest ;; version. (let ((pretest-p (string-match "\\..*\\..*\\." emacs-version)) + (from-buffer (current-buffer)) user-point prompt-beg-point message-end-point) (setq message-end-point (with-current-buffer (get-buffer-create "*Messages*") @@ -141,12 +142,14 @@ (insert (format " default-enable-multibyte-characters: %s\n" default-enable-multibyte-characters)) (insert "\n") - (insert (format "Major mode: %s\n" mode-name)) + (insert (format "Major mode: %s\n" + (buffer-local-value 'mode-name from-buffer))) (insert "\n") (insert "Minor modes in effect:\n") (dolist (mode minor-mode-list) - (and (boundp mode) (symbol-value mode) - (insert (format " %s: %s\n" mode (symbol-value mode))))) + (and (boundp mode) (buffer-local-value mode from-buffer) + (insert (format " %s: %s\n" mode + (buffer-local-value mode from-buffer))))) (insert "\n") (insert "Recent input:\n") (let ((before-keys (point)))