From: Markus Rost Date: Mon, 20 May 2002 00:39:23 +0000 (+0000) Subject: (report-emacs-bug-hook): Do another save-excursion. X-Git-Tag: ttn-vms-21-2-B4~14988 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c71276553df19da29003991e05d2fec083de57a2;p=emacs.git (report-emacs-bug-hook): Do another save-excursion. --- diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 667a352f6d6..2e6e3c6b296 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -203,13 +203,14 @@ Type SPC to scroll through this section and its subsections.")))) (defun report-emacs-bug-hook () (save-excursion - (goto-char (point-max)) - (skip-chars-backward " \t\n") - (if (and (= (- (point) (point-min)) - (length report-emacs-bug-orig-text)) - (equal (buffer-substring (point-min) (point)) - report-emacs-bug-orig-text)) - (error "No text entered in bug report")) + (save-excursion + (goto-char (point-max)) + (skip-chars-backward " \t\n") + (if (and (= (- (point) (point-min)) + (length report-emacs-bug-orig-text)) + (equal (buffer-substring (point-min) (point)) + report-emacs-bug-orig-text)) + (error "No text entered in bug report"))) ;; Check the buffer contents and reject non-English letters. (save-excursion