]> code.delx.au - gnu-emacs/blobdiff - lisp/mail/emacsbug.el
Fix previous change:
[gnu-emacs] / lisp / mail / emacsbug.el
index 667a352f6d6466487cb2b011f937f12ecf8448f3..c86c18272611cf3ae01ea9b14b11733d2b428500 100644 (file)
@@ -1,6 +1,7 @@
 ;;; emacsbug.el --- command to report Emacs bugs to appropriate mailing list
 
-;; Copyright (C) 1985, 1994, 1997, 1998 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1994, 1997, 1998, 2000, 2001, 2002
+;; Free Software Foundation, Inc.
 
 ;; Author: K. Shane Hartman
 ;; Maintainer: FSF
@@ -26,7 +27,7 @@
 
 ;;; Commentary:
 
-;; `M-x report-emacs-bug ' starts an email note to the Emacs maintainers
+;; `M-x report-emacs-bug' starts an email note to the Emacs maintainers
 ;; describing a problem.  Here's how it's done...
 
 ;;; Code:
@@ -203,13 +204,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