aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-08-31 12:42:45 -0700
committerPaul Eggert2015-08-31 12:56:10 -0700
commit8bbff0d64d0e6ba21366c9fb24f6973e6c59b8ac (patch)
treed2e2598e982d958e2243bc0d665cf7315055aebe
parent0ff60ec82f98032375e8569a98c08b72d879bce4 (diff)
downloademacs-8bbff0d64d0e6ba21366c9fb24f6973e6c59b8ac.tar.gz
emacs-8bbff0d64d0e6ba21366c9fb24f6973e6c59b8ac.zip
Quoting fixes in lisp mail, mh-e, net, url
* lisp/mail/emacsbug.el (report-emacs-bug) (report-emacs-bug-hook): Use straight quotes in outgoing email, * lisp/mail/feedmail.el (feedmail-message-action-help-blat): * lisp/mail/rmail.el (rmail-unknown-mail-followup-to): * lisp/mail/rmailout.el (rmail-output-read-file-name): * lisp/net/imap.el (imap-interactive-login): * lisp/net/tls.el (open-tls-stream): * lisp/url/url-auth.el (url-register-auth-scheme): Respect ‘text-quoting-style’ in diagnostics. * lisp/mh-e/mh-e.el (mh-sortm-args): Quote docstring example using text quotes, not as a Lisp quote.
-rw-r--r--lisp/mail/emacsbug.el12
-rw-r--r--lisp/mail/feedmail.el5
-rw-r--r--lisp/mail/rmail.el6
-rw-r--r--lisp/mail/rmailout.el7
-rw-r--r--lisp/mh-e/mh-e.el4
-rw-r--r--lisp/net/imap.el17
-rw-r--r--lisp/net/tls.el2
-rw-r--r--lisp/url/url-auth.el10
8 files changed, 34 insertions, 29 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index f4ba2264dc8..f54893fb4be 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -215,7 +215,7 @@ usually do not have translators for other languages.\n\n")))
215 215
216 (insert "Please describe exactly what actions triggered the bug, and\n" 216 (insert "Please describe exactly what actions triggered the bug, and\n"
217 "the precise symptoms of the bug. If you can, give a recipe\n" 217 "the precise symptoms of the bug. If you can, give a recipe\n"
218 "starting from `emacs -Q':\n\n") 218 "starting from 'emacs -Q':\n\n")
219 (let ((txt (delete-and-extract-region 219 (let ((txt (delete-and-extract-region
220 (save-excursion (rfc822-goto-eoh) (line-beginning-position 2)) 220 (save-excursion (rfc822-goto-eoh) (line-beginning-position 2))
221 (point)))) 221 (point))))
@@ -225,7 +225,7 @@ usually do not have translators for other languages.\n\n")))
225 225
226 (insert "If Emacs crashed, and you have the Emacs process in the gdb debugger,\n" 226 (insert "If Emacs crashed, and you have the Emacs process in the gdb debugger,\n"
227 "please include the output from the following gdb commands:\n" 227 "please include the output from the following gdb commands:\n"
228 " `bt full' and `xbacktrace'.\n") 228 " 'bt full' and 'xbacktrace'.\n")
229 229
230 (let ((debug-file (expand-file-name "DEBUG" data-directory))) 230 (let ((debug-file (expand-file-name "DEBUG" data-directory)))
231 (if (file-readable-p debug-file) 231 (if (file-readable-p debug-file)
@@ -240,7 +240,7 @@ usually do not have translators for other languages.\n\n")))
240 (if (fboundp 'x-server-vendor) 240 (if (fboundp 'x-server-vendor)
241 (condition-case nil 241 (condition-case nil
242 ;; This is used not only for X11 but also W32 and others. 242 ;; This is used not only for X11 but also W32 and others.
243 (insert "Windowing system distributor `" (x-server-vendor) 243 (insert "Windowing system distributor '" (x-server-vendor)
244 "', version " 244 "', version "
245 (mapconcat 'number-to-string (x-server-version) ".") "\n") 245 (mapconcat 'number-to-string (x-server-version) ".") "\n")
246 (error t))) 246 (error t)))
@@ -253,7 +253,7 @@ usually do not have translators for other languages.\n\n")))
253 (insert "System " lsb "\n"))) 253 (insert "System " lsb "\n")))
254 (when (and system-configuration-options 254 (when (and system-configuration-options
255 (not (equal system-configuration-options ""))) 255 (not (equal system-configuration-options "")))
256 (insert "Configured using:\n `configure " 256 (insert "Configured using:\n 'configure "
257 system-configuration-options "'\n\n") 257 system-configuration-options "'\n\n")
258 (fill-region (line-beginning-position -1) (point))) 258 (fill-region (line-beginning-position -1) (point)))
259 (insert "Configured features:\n" system-configuration-features "\n\n") 259 (insert "Configured features:\n" system-configuration-features "\n\n")
@@ -315,7 +315,7 @@ usually do not have translators for other languages.\n\n")))
315 315
316 (insert (format "\nMemory information:\n")) 316 (insert (format "\nMemory information:\n"))
317 (pp (garbage-collect) (current-buffer)) 317 (pp (garbage-collect) (current-buffer))
318 318
319 ;; This is so the user has to type something in order to send easily. 319 ;; This is so the user has to type something in order to send easily.
320 (use-local-map (nconc (make-sparse-keymap) (current-local-map))) 320 (use-local-map (nconc (make-sparse-keymap) (current-local-map)))
321 (define-key (current-local-map) "\C-c\C-i" 'info-emacs-bug) 321 (define-key (current-local-map) "\C-c\C-i" 'info-emacs-bug)
@@ -417,7 +417,7 @@ and send the mail again%s."
417 (regexp-quote (system-name))) 417 (regexp-quote (system-name)))
418 from)) 418 from))
419 (not (yes-or-no-p 419 (not (yes-or-no-p
420 (format "Is `%s' really your email address? " from))) 420 (format "Is '%s' really your email address? " from)))
421 (error "Please edit the From address and try again")))))) 421 (error "Please edit the From address and try again"))))))
422 422
423 423
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
index a94a81c5575..ccd892640ec 100644
--- a/lisp/mail/feedmail.el
+++ b/lisp/mail/feedmail.el
@@ -1889,7 +1889,8 @@ with various lower-level mechanisms to provide features such as queueing."
1889(defun feedmail-message-action-help-blat (d-string) 1889(defun feedmail-message-action-help-blat (d-string)
1890 (feedmail-say-debug ">in-> feedmail-message-action-help-blat") 1890 (feedmail-say-debug ">in-> feedmail-message-action-help-blat")
1891 (with-output-to-temp-buffer feedmail-p-h-b-n 1891 (with-output-to-temp-buffer feedmail-p-h-b-n
1892 (princ "You're dispatching a message and feedmail queuing is enabled. 1892 (princ (substitute-command-keys "\
1893You're dispatching a message and feedmail queuing is enabled.
1893Typing ? again will normally scroll this help buffer. 1894Typing ? again will normally scroll this help buffer.
1894 1895
1895Choices: 1896Choices:
@@ -1914,7 +1915,7 @@ Synonyms:
1914 y YUP do the default behavior \(same as \"C-m\"\) 1915 y YUP do the default behavior \(same as \"C-m\"\)
1915 SPC SCROLL UP \(same as \">\"\) 1916 SPC SCROLL UP \(same as \">\"\)
1916 1917
1917The user-configurable default is currently \"") 1918The user-configurable default is currently \""))
1918 (princ d-string) 1919 (princ d-string)
1919 (princ "\". For other possibilities, 1920 (princ "\". For other possibilities,
1920see the variable feedmail-prompt-before-queue-user-alist. 1921see the variable feedmail-prompt-before-queue-user-alist.
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 90a140b272c..67b04b56968 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -894,7 +894,7 @@ isn't provided."
894 (error 894 (error
895 (display-warning 895 (display-warning
896 'rmail 896 'rmail
897 (format "Although MIME support is requested 897 (format-message "Although MIME support is requested
898through `rmail-enable-mime' being non-nil, the required feature 898through `rmail-enable-mime' being non-nil, the required feature
899`%s' (the value of `rmail-mime-feature') 899`%s' (the value of `rmail-mime-feature')
900is not available in the current session. 900is not available in the current session.
@@ -2662,8 +2662,8 @@ Ask the user whether to add that list name to `mail-mailing-lists'."
2662 "\\>\\)")) 2662 "\\>\\)"))
2663 addr)) 2663 addr))
2664 (y-or-n-p 2664 (y-or-n-p
2665 (format "Add `%s' to `mail-mailing-lists'? " 2665 (format-message "Add `%s' to `mail-mailing-lists'? "
2666 addr))) 2666 addr)))
2667 (customize-save-variable 'mail-mailing-lists 2667 (customize-save-variable 'mail-mailing-lists
2668 (cons addr mail-mailing-lists))))))))) 2668 (cons addr mail-mailing-lists)))))))))
2669 2669
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index 6b753b39e17..1e770e6fea6 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -85,8 +85,11 @@ This uses `rmail-output-file-alist'."
85 (error 85 (error
86 (display-warning 86 (display-warning
87 :error 87 :error
88 (format "Error evaluating \ 88 (format-message "\
89`rmail-output-file-alist' element:\nregexp: %s\naction: %s\nerror: %S\n" 89Error evaluating `rmail-output-file-alist' element:
90regexp: %s
91action: %s
92error: %S\n"
90 (caar tail) (cdar tail) err)) 93 (caar tail) (cdar tail) err))
91 nil)))) 94 nil))))
92 (setq tail (cdr tail))) 95 (setq tail (cdr tail)))
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index f11511a9dc5..22e4cd737ec 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -1353,8 +1353,8 @@ show window is toggled off."
1353This option is consulted when a prefix argument is used with 1353This option is consulted when a prefix argument is used with
1354\\[mh-sort-folder]. Normally default arguments to \"sortm\" are 1354\\[mh-sort-folder]. Normally default arguments to \"sortm\" are
1355specified in the MH profile. This option may be used to provide 1355specified in the MH profile. This option may be used to provide
1356an alternate view. For example, \"'(\"-nolimit\" \"-textfield\" 1356an alternate view. For example, (\"-nolimit\" \"-textfield\"
1357\"subject\")\" is a useful setting." 1357\"subject\") is a useful setting."
1358 :type '(repeat string) 1358 :type '(repeat string)
1359 :group 'mh-folder 1359 :group 'mh-folder
1360 :package-version '(MH-E . "8.0")) 1360 :package-version '(MH-E . "8.0"))
diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index 3e5982398fd..cc53e0432b6 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -850,15 +850,16 @@ t if it successfully authenticates, nil otherwise."
850 (while (or (not user) (not passwd)) 850 (while (or (not user) (not passwd))
851 (setq user (or imap-username 851 (setq user (or imap-username
852 (read-from-minibuffer 852 (read-from-minibuffer
853 (concat "imap: username for " imap-server 853 (format-message
854 " (using stream `" (symbol-name imap-stream) 854 "imap: username for %s (using stream ‘%s’): "
855 "'): ") 855 imap-server imap-stream)
856 (or user imap-default-user)))) 856 (or user imap-default-user))))
857 (setq passwd (or imap-password 857 (setq passwd
858 (read-passwd 858 (or imap-password
859 (concat "imap: password for " user "@" 859 (read-passwd
860 imap-server " (using authenticator `" 860 (format-message
861 (symbol-name imap-auth) "'): ")))) 861 "imap: password for %s@%s (using authenticator ‘%s’): "
862 user imap-server imap-auth))))
862 (when (and user passwd) 863 (when (and user passwd)
863 (if (funcall loginfunc user passwd) 864 (if (funcall loginfunc user passwd)
864 (progn 865 (progn
diff --git a/lisp/net/tls.el b/lisp/net/tls.el
index 9e02945225e..1226916275c 100644
--- a/lisp/net/tls.el
+++ b/lisp/net/tls.el
@@ -275,7 +275,7 @@ Fourth arg PORT is an integer specifying a port to connect to."
275 (message "The certificate presented by `%s' is \ 275 (message "The certificate presented by `%s' is \
276NOT trusted." host)) 276NOT trusted." host))
277 (not (yes-or-no-p 277 (not (yes-or-no-p
278 (format "The certificate presented by `%s' is \ 278 (format-message "The certificate presented by `%s' is \
279NOT trusted. Accept anyway? " host))))) 279NOT trusted. Accept anyway? " host)))))
280 (and tls-hostmismatch 280 (and tls-hostmismatch
281 (save-excursion 281 (save-excursion
diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el
index 64f56f0cc15..87f67183b55 100644
--- a/lisp/url/url-auth.el
+++ b/lisp/url/url-auth.el
@@ -336,11 +336,11 @@ RATING a rating between 1 and 10 of the strength of the authentication.
336 (t rating))) 336 (t rating)))
337 (node (assoc type url-registered-auth-schemes))) 337 (node (assoc type url-registered-auth-schemes)))
338 (if (not (fboundp function)) 338 (if (not (fboundp function))
339 (url-warn 'security 339 (url-warn
340 (format (concat 340 'security
341 "Tried to register `%s' as an auth scheme" 341 (format-message
342 ", but it is not a function!") function))) 342 "Tried to register `%s' as an auth scheme, but it is not a function!"
343 343 function)))
344 (if node 344 (if node
345 (setcdr node (cons function rating)) 345 (setcdr node (cons function rating))
346 (setq url-registered-auth-schemes 346 (setq url-registered-auth-schemes