# HG changeset patch # User Markus Rost # Date 1021855163 0 # Node ID 845f37c81b22758193a0df63f130af326b463075 # Parent d658364504baf8d5310854c7aa72b24e347f67be (report-emacs-bug-hook): Do another save-excursion. diff -r d658364504ba -r 845f37c81b22 lisp/mail/emacsbug.el --- a/lisp/mail/emacsbug.el Sun May 19 23:23:22 2002 +0000 +++ b/lisp/mail/emacsbug.el Mon May 20 00:39:23 2002 +0000 @@ -203,13 +203,14 @@ (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