aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/emacsbug.el26
1 files changed, 12 insertions, 14 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 14c80057440..d6e15f5b25e 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -1,6 +1,6 @@
1;;; emacsbug.el --- command to report Emacs bugs to appropriate mailing list. 1;;; emacsbug.el --- command to report Emacs bugs to appropriate mailing list.
2 2
3;; Copyright (C) 1985, 1994, 1997 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1994, 1997, 1998 Free Software Foundation, Inc.
4 4
5;; Author: K. Shane Hartman 5;; Author: K. Shane Hartman
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -42,12 +42,12 @@
42 :group 'maint 42 :group 'maint
43 :group 'mail) 43 :group 'mail)
44 44
45(defcustom report-emacs-bug-address "bug-gnu-emacs@prep.ai.mit.edu" 45(defcustom report-emacs-bug-address "bug-gnu-emacs@gnu.org"
46 "*Address of mailing list for GNU Emacs bugs." 46 "*Address of mailing list for GNU Emacs bugs."
47 :group 'emacsbug 47 :group 'emacsbug
48 :type 'string) 48 :type 'string)
49 49
50(defcustom report-emacs-bug-pretest-address "emacs-pretest-bug@gnu.ai.mit.edu" 50(defcustom report-emacs-bug-pretest-address "emacs-pretest-bug@gnu.org"
51 "*Address of mailing list for GNU Emacs pretest bugs." 51 "*Address of mailing list for GNU Emacs pretest bugs."
52 :group 'emacsbug 52 :group 'emacsbug
53 :type 'string) 53 :type 'string)
@@ -182,19 +182,17 @@ Type SPC to scroll through this section and its subsections.")))
182 (error "No text entered in bug report")) 182 (error "No text entered in bug report"))
183 183
184 ;; Check the buffer contents and reject non-English letters. 184 ;; Check the buffer contents and reject non-English letters.
185 (let ((charsets (delq 'ascii 185 (save-excursion
186 (find-charset-region (point-min) (point-max))))) 186 (goto-char (point-min))
187 (if charsets 187 (skip-chars-forward "\0-\177")
188 (if (not (eobp))
188 (if (or report-emacs-bug-no-confirmation 189 (if (or report-emacs-bug-no-confirmation
189 (y-or-n-p "Convert non-ASCII letters to hexadecimal? ")) 190 (y-or-n-p "Convert non-ASCII letters to hexadecimal? "))
190 (save-excursion 191 (while (progn (skip-chars-forward "\0-\177")
191 (goto-char (point-min)) 192 (not (eobp)))
192 (let ((pattern (format "[^%c-%c]" 0 127)) 193 (let ((ch (following-char)))
193 ch) 194 (delete-char 1)
194 (while (re-search-forward pattern nil t) 195 (insert (format "=%02x" ch))))
195 (setq ch (preceding-char))
196 (delete-char -1)
197 (insert (format "=%02x" ch)))))
198 (error "Please convert non-ASCII characters to something else")))) 196 (error "Please convert non-ASCII characters to something else"))))
199 197
200 ;; The last warning for novice users. 198 ;; The last warning for novice users.