diff options
| author | Paul Eggert | 2015-08-31 13:05:16 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-31 13:07:00 -0700 |
| commit | 86f692009b949cedea9ae1e25868c54dece68318 (patch) | |
| tree | d447e3463725a1f13e5a0208093a59e7cda1c52c | |
| parent | 8bbff0d64d0e6ba21366c9fb24f6973e6c59b8ac (diff) | |
| download | emacs-86f692009b949cedea9ae1e25868c54dece68318.tar.gz emacs-86f692009b949cedea9ae1e25868c54dece68318.zip | |
Quoting fixes in Gnus
* lisp/gnus/gnus-agent.el:
(gnus-agent-possibly-synchronize-flags-server):
* lisp/gnus/gnus-art.el (gnus-article-browse-delete-temp-files):
* lisp/gnus/gnus-eform.el (gnus-edit-form):
* lisp/gnus/gnus-group.el (gnus-group-edit-group)
(gnus-group-nnimap-edit-acl):
* lisp/gnus/gnus-topic.el (gnus-topic-edit-parameters):
* lisp/gnus/mail-source.el (mail-source-delete-old-incoming):
* lisp/gnus/message.el (message-strip-subject-encoded-words)
(message-check-recipients, message-send-form-letter):
* lisp/gnus/mm-decode.el (mm-display-part):
* lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1):
* lisp/gnus/mml-smime.el (mml-smime-get-dns-cert)
(mml-smime-get-ldap-cert):
* lisp/gnus/spam-report.el (spam-report-process-queue):
Respect ‘text-quoting-style’ in diagnostics.
* lisp/gnus/gnus-art.el (article-display-face)
* lisp/gnus/gnus-fun.el (gnus-display-x-face-in-from):
Use straight quoting in email.
* lisp/gnus/rfc2231.el (rfc2231-decode-encoded-string):
Escape apostrophes in doc strings.
| -rw-r--r-- | lisp/gnus/gnus-agent.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-eform.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-fun.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-topic.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mm-uu.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/mml-smime.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/rfc2231.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/spam-report.el | 2 |
13 files changed, 27 insertions, 23 deletions
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el index 7b35de076d2..fc75586ccd8 100644 --- a/lisp/gnus/gnus-agent.el +++ b/lisp/gnus/gnus-agent.el | |||
| @@ -868,8 +868,9 @@ be a select method." | |||
| 868 | (not (eq gnus-agent-synchronize-flags 'ask))) | 868 | (not (eq gnus-agent-synchronize-flags 'ask))) |
| 869 | (and (eq gnus-agent-synchronize-flags 'ask) | 869 | (and (eq gnus-agent-synchronize-flags 'ask) |
| 870 | (gnus-y-or-n-p | 870 | (gnus-y-or-n-p |
| 871 | (format "Synchronize flags on server `%s'? " | 871 | (gnus-format-message |
| 872 | (cadr method)))))) | 872 | "Synchronize flags on server `%s'? " |
| 873 | (cadr method)))))) | ||
| 873 | (gnus-agent-synchronize-flags-server method))) | 874 | (gnus-agent-synchronize-flags-server method))) |
| 874 | 875 | ||
| 875 | ;;;###autoload | 876 | ;;;###autoload |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 1a439ec9940..b4a2f6a1773 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2428,7 +2428,7 @@ long lines if and only if arg is positive." | |||
| 2428 | (unless (setq from (gnus-article-goto-header "from")) | 2428 | (unless (setq from (gnus-article-goto-header "from")) |
| 2429 | (insert "From:") | 2429 | (insert "From:") |
| 2430 | (setq from (point)) | 2430 | (setq from (point)) |
| 2431 | (insert " [no `from' set]\n")) | 2431 | (insert " [no 'from' set]\n")) |
| 2432 | (while faces | 2432 | (while faces |
| 2433 | (when (setq png (gnus-convert-face-to-png (pop faces))) | 2433 | (when (setq png (gnus-convert-face-to-png (pop faces))) |
| 2434 | (setq image | 2434 | (setq image |
| @@ -2770,7 +2770,7 @@ summary buffer." | |||
| 2770 | (cond ((file-directory-p file) | 2770 | (cond ((file-directory-p file) |
| 2771 | (when (or (not (eq how 'file)) | 2771 | (when (or (not (eq how 'file)) |
| 2772 | (gnus-y-or-n-p | 2772 | (gnus-y-or-n-p |
| 2773 | (format | 2773 | (gnus-format-message |
| 2774 | "Delete temporary HTML file(s) in directory `%s'? " | 2774 | "Delete temporary HTML file(s) in directory `%s'? " |
| 2775 | (file-name-as-directory file)))) | 2775 | (file-name-as-directory file)))) |
| 2776 | (gnus-delete-directory file))) | 2776 | (gnus-delete-directory file))) |
diff --git a/lisp/gnus/gnus-eform.el b/lisp/gnus/gnus-eform.el index 0b41b5e8891..c870385840c 100644 --- a/lisp/gnus/gnus-eform.el +++ b/lisp/gnus/gnus-eform.el | |||
| @@ -96,7 +96,8 @@ The optional LAYOUT overrides the `edit-form' window layout." | |||
| 96 | (while (not (eobp)) | 96 | (while (not (eobp)) |
| 97 | (insert ";;; ") | 97 | (insert ";;; ") |
| 98 | (forward-line 1)) | 98 | (forward-line 1)) |
| 99 | (insert ";; Type `C-c C-c' after you've finished editing.\n") | 99 | (insert (substitute-command-keys |
| 100 | ";; Type `C-c C-c' after you've finished editing.\n")) | ||
| 100 | (insert "\n") | 101 | (insert "\n") |
| 101 | (let ((p (point))) | 102 | (let ((p (point))) |
| 102 | (gnus-pp form) | 103 | (gnus-pp form) |
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el index ca14dd0b6db..2a535cb71dd 100644 --- a/lisp/gnus/gnus-fun.el +++ b/lisp/gnus/gnus-fun.el | |||
| @@ -265,7 +265,7 @@ colors of the displayed X-Faces." | |||
| 265 | (article-narrow-to-head) | 265 | (article-narrow-to-head) |
| 266 | (gnus-article-goto-header "from") | 266 | (gnus-article-goto-header "from") |
| 267 | (when (bobp) | 267 | (when (bobp) |
| 268 | (insert "From: [no `from' set]\n") | 268 | (insert "From: [no 'from' set]\n") |
| 269 | (forward-char -17)) | 269 | (forward-char -17)) |
| 270 | (gnus-add-image | 270 | (gnus-add-image |
| 271 | 'xface | 271 | 'xface |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index c6cc38fc461..ad49824f028 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -2950,7 +2950,7 @@ and NEW-NAME will be prompted for." | |||
| 2950 | (gnus-info-params info)) | 2950 | (gnus-info-params info)) |
| 2951 | (t info)) | 2951 | (t info)) |
| 2952 | ;; The proper documentation. | 2952 | ;; The proper documentation. |
| 2953 | (format | 2953 | (gnus-format-message |
| 2954 | "Editing the %s for `%s'." | 2954 | "Editing the %s for `%s'." |
| 2955 | (cond | 2955 | (cond |
| 2956 | ((eq part 'method) "select method") | 2956 | ((eq part 'method) "select method") |
| @@ -3278,7 +3278,8 @@ mail messages or news articles in files that have numeric names." | |||
| 3278 | (error "%s is not an nnimap group" group)) | 3278 | (error "%s is not an nnimap group" group)) |
| 3279 | (unless (setq acl (nnimap-acl-get mailbox (cadr method))) | 3279 | (unless (setq acl (nnimap-acl-get mailbox (cadr method))) |
| 3280 | (error "Server does not support ACL's")) | 3280 | (error "Server does not support ACL's")) |
| 3281 | (gnus-edit-form acl (format "Editing the access control list for `%s'. | 3281 | (gnus-edit-form acl (gnus-format-message "\ |
| 3282 | Editing the access control list for `%s'. | ||
| 3282 | 3283 | ||
| 3283 | An access control list is a list of (identifier . rights) elements. | 3284 | An access control list is a list of (identifier . rights) elements. |
| 3284 | 3285 | ||
diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el index 9474ca03069..7c6e1098100 100644 --- a/lisp/gnus/gnus-topic.el +++ b/lisp/gnus/gnus-topic.el | |||
| @@ -1616,8 +1616,8 @@ If performed on a topic, edit the topic parameters instead." | |||
| 1616 | (let ((topic (gnus-group-topic-name))) | 1616 | (let ((topic (gnus-group-topic-name))) |
| 1617 | (gnus-edit-form | 1617 | (gnus-edit-form |
| 1618 | (gnus-topic-parameters topic) | 1618 | (gnus-topic-parameters topic) |
| 1619 | (format "Editing the topic parameters for `%s'." | 1619 | (gnus-format-message "Editing the topic parameters for `%s'." |
| 1620 | (or group topic)) | 1620 | (or group topic)) |
| 1621 | `(lambda (form) | 1621 | `(lambda (form) |
| 1622 | (gnus-topic-set-parameters ,topic form))))))) | 1622 | (gnus-topic-set-parameters ,topic form))))))) |
| 1623 | 1623 | ||
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index cb74228fdf9..ad135d4c2ed 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -612,7 +612,7 @@ If CONFIRM is non-nil, ask for confirmation before removing a file." | |||
| 612 | (when (and (> (- currday fileday) diff) | 612 | (when (and (> (- currday fileday) diff) |
| 613 | (if confirm | 613 | (if confirm |
| 614 | (y-or-n-p | 614 | (y-or-n-p |
| 615 | (format "\ | 615 | (gnus-format-message "\ |
| 616 | Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile)) | 616 | Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile)) |
| 617 | (gnus-message 8 "\ | 617 | (gnus-message 8 "\ |
| 618 | Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | 618 | Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index d74ce43e5ed..0f6f63ea37d 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -2235,7 +2235,7 @@ contains a valid encoded word. Decode again? " | |||
| 2235 | (unless cs-coding | 2235 | (unless cs-coding |
| 2236 | (setq cs-coding | 2236 | (setq cs-coding |
| 2237 | (mm-read-coding-system | 2237 | (mm-read-coding-system |
| 2238 | (format "\ | 2238 | (gnus-format-message "\ |
| 2239 | Decoded Subject \"%s\" | 2239 | Decoded Subject \"%s\" |
| 2240 | contains an encoded word. The charset `%s' is unknown or invalid. | 2240 | contains an encoded word. The charset `%s' is unknown or invalid. |
| 2241 | Hit RET to replace non-decodable characters with \"%s\" or enter replacement | 2241 | Hit RET to replace non-decodable characters with \"%s\" or enter replacement |
| @@ -4510,7 +4510,7 @@ This function could be useful in `message-setup-hook'." | |||
| 4510 | (dolist (bog (message-bogus-recipient-p addr)) | 4510 | (dolist (bog (message-bogus-recipient-p addr)) |
| 4511 | (and bog | 4511 | (and bog |
| 4512 | (not (y-or-n-p | 4512 | (not (y-or-n-p |
| 4513 | (format | 4513 | (gnus-format-message |
| 4514 | "Address `%s'%s might be bogus. Continue? " | 4514 | "Address `%s'%s might be bogus. Continue? " |
| 4515 | bog | 4515 | bog |
| 4516 | ;; If the encoded version of the email address | 4516 | ;; If the encoded version of the email address |
| @@ -8484,7 +8484,7 @@ Header and body are separated by `mail-header-separator'." | |||
| 8484 | (when force | 8484 | (when force |
| 8485 | (sit-for message-send-form-letter-delay)) | 8485 | (sit-for message-send-form-letter-delay)) |
| 8486 | (if (or force | 8486 | (if (or force |
| 8487 | (y-or-n-p (format "Send message to `%s'? " to))) | 8487 | (y-or-n-p (gnus-format-message "Send message to `%s'? " to))) |
| 8488 | (progn | 8488 | (progn |
| 8489 | (setq sent (1+ sent)) | 8489 | (setq sent (1+ sent)) |
| 8490 | (message-send-and-exit)) | 8490 | (message-send-and-exit)) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index b0ec16ee03c..3d5a15afedb 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -855,7 +855,7 @@ external if displayed external." | |||
| 855 | (concat | 855 | (concat |
| 856 | "using external program \"" | 856 | "using external program \"" |
| 857 | (format method filename) "\"") | 857 | (format method filename) "\"") |
| 858 | (format | 858 | (gnus-format-message |
| 859 | "by calling `%s' on the contents)" method)) | 859 | "by calling `%s' on the contents)" method)) |
| 860 | "? ")))))) | 860 | "? ")))))) |
| 861 | (if external | 861 | (if external |
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el index fa48ee97bcd..8304f6f6a38 100644 --- a/lisp/gnus/mm-uu.el +++ b/lisp/gnus/mm-uu.el | |||
| @@ -523,7 +523,8 @@ apply the face `mm-uu-extract'." | |||
| 523 | (when (and mml2015-use (null (mml2015-clear-verify-function))) | 523 | (when (and mml2015-use (null (mml2015-clear-verify-function))) |
| 524 | (mm-set-handle-multipart-parameter | 524 | (mm-set-handle-multipart-parameter |
| 525 | mm-security-handle 'gnus-details | 525 | mm-security-handle 'gnus-details |
| 526 | (format "Clear verification not supported by `%s'.\n" mml2015-use))) | 526 | (gnus-format-message |
| 527 | "Clear verification not supported by `%s'.\n" mml2015-use))) | ||
| 527 | (mml2015-extract-cleartext-signature)) | 528 | (mml2015-extract-cleartext-signature)) |
| 528 | (list (mm-make-handle buf mm-uu-text-plain-type))))) | 529 | (list (mm-make-handle buf mm-uu-text-plain-type))))) |
| 529 | 530 | ||
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index 3f0809edbe8..0bcc9c53c48 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -202,7 +202,7 @@ Whether the passphrase is cached at all is controlled by | |||
| 202 | ""))))) | 202 | ""))))) |
| 203 | (if (setq cert (smime-cert-by-dns who)) | 203 | (if (setq cert (smime-cert-by-dns who)) |
| 204 | (setq result (list 'certfile (buffer-name cert))) | 204 | (setq result (list 'certfile (buffer-name cert))) |
| 205 | (setq bad (format "`%s' not found. " who)))) | 205 | (setq bad (gnus-format-message "`%s' not found. " who)))) |
| 206 | (quit)) | 206 | (quit)) |
| 207 | result)) | 207 | result)) |
| 208 | 208 | ||
| @@ -221,7 +221,7 @@ Whether the passphrase is cached at all is controlled by | |||
| 221 | ""))))) | 221 | ""))))) |
| 222 | (if (setq cert (smime-cert-by-ldap who)) | 222 | (if (setq cert (smime-cert-by-ldap who)) |
| 223 | (setq result (list 'certfile (buffer-name cert))) | 223 | (setq result (list 'certfile (buffer-name cert))) |
| 224 | (setq bad (format "`%s' not found. " who)))) | 224 | (setq bad (gnus-format-message "`%s' not found. " who)))) |
| 225 | (quit)) | 225 | (quit)) |
| 226 | result)) | 226 | result)) |
| 227 | 227 | ||
diff --git a/lisp/gnus/rfc2231.el b/lisp/gnus/rfc2231.el index ef7187cbd96..2bc23334199 100644 --- a/lisp/gnus/rfc2231.el +++ b/lisp/gnus/rfc2231.el | |||
| @@ -209,10 +209,10 @@ must never cause a Lisp error." | |||
| 209 | (defun rfc2231-decode-encoded-string (string) | 209 | (defun rfc2231-decode-encoded-string (string) |
| 210 | "Decode an RFC2231-encoded string. | 210 | "Decode an RFC2231-encoded string. |
| 211 | These look like: | 211 | These look like: |
| 212 | \"us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\", | 212 | \"us-ascii\\='en-us\\='This%20is%20%2A%2A%2Afun%2A%2A%2A\", |
| 213 | \"us-ascii''This%20is%20%2A%2A%2Afun%2A%2A%2A\", | 213 | \"us-ascii\\='\\='This%20is%20%2A%2A%2Afun%2A%2A%2A\", |
| 214 | \"'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A\", | 214 | \"\\='en-us\\='This%20is%20%2A%2A%2Afun%2A%2A%2A\", |
| 215 | \"''This%20is%20%2A%2A%2Afun%2A%2A%2A\", or | 215 | \"\\='\\='This%20is%20%2A%2A%2Afun%2A%2A%2A\", or |
| 216 | \"This is ***fun***\"." | 216 | \"This is ***fun***\"." |
| 217 | (string-match "\\`\\(?:\\([^']+\\)?'\\([^']+\\)?'\\)?\\(.+\\)" string) | 217 | (string-match "\\`\\(?:\\([^']+\\)?'\\([^']+\\)?'\\)?\\(.+\\)" string) |
| 218 | (let ((coding-system (mm-charset-to-coding-system | 218 | (let ((coding-system (mm-charset-to-coding-system |
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el index 96d72de91c5..de680795a10 100644 --- a/lisp/gnus/spam-report.el +++ b/lisp/gnus/spam-report.el | |||
| @@ -307,7 +307,7 @@ symbol `ask', query before flushing the queue file." | |||
| 307 | (if (or (eq keep nil) | 307 | (if (or (eq keep nil) |
| 308 | (and (eq keep 'ask) | 308 | (and (eq keep 'ask) |
| 309 | (y-or-n-p | 309 | (y-or-n-p |
| 310 | (format | 310 | (gnus-format-message |
| 311 | "Flush requests from `%s'? " (current-buffer))))) | 311 | "Flush requests from `%s'? " (current-buffer))))) |
| 312 | (progn | 312 | (progn |
| 313 | (gnus-message 7 "Flushing request file `%s'" | 313 | (gnus-message 7 "Flushing request file `%s'" |