X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/515ced278ca10e43b2eca4481a3608112b514420..ff98122692e5f21e3dd91d2513c7b1897b6e7ac9:/lisp/mail/emacsbug.el diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 667a352f6d..c86c182726 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -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