diff options
| author | Lars Ingebrigtsen | 2019-09-24 00:42:47 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-24 00:42:47 +0200 |
| commit | fc64a0c0e2ea88abfaff6416ce20173484548154 (patch) | |
| tree | 752042f2a5a710afb468a4db2026a7748639c834 /lisp | |
| parent | ac1507a8b6af8755b1bbc88cb0e8a760baaec028 (diff) | |
| download | emacs-fc64a0c0e2ea88abfaff6416ce20173484548154.tar.gz emacs-fc64a0c0e2ea88abfaff6416ce20173484548154.zip | |
Rename "dumbquotes" to "smartquotes" in Gnus
* doc/misc/gnus.texi (Article Washing): Adjust documentation.
* etc/refcards/gnus-refcard.tex (subsection*{Notes}): Ditto
* lisp/gnus/gnus-art.el (gnus-article-smartquotes-map): Rename
from gnus-article-dumbquotes-map and add obsolete alias.
(article-treat-smartquotes): Ditto.
* lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Adjust menus.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/deuglify.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 24 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 4 |
3 files changed, 21 insertions, 14 deletions
diff --git a/lisp/gnus/deuglify.el b/lisp/gnus/deuglify.el index 2fdc34e3e18..3bf6a3aa2aa 100644 --- a/lisp/gnus/deuglify.el +++ b/lisp/gnus/deuglify.el | |||
| @@ -456,11 +456,12 @@ If NODISPLAY is non-nil, don't redisplay the article buffer." | |||
| 456 | ;;;###autoload | 456 | ;;;###autoload |
| 457 | (defun gnus-outlook-deuglify-article (&optional nodisplay) | 457 | (defun gnus-outlook-deuglify-article (&optional nodisplay) |
| 458 | "Full deuglify of broken Outlook (Express) articles. | 458 | "Full deuglify of broken Outlook (Express) articles. |
| 459 | Treat dumbquotes, unwrap lines, repair attribution and rearrange citation. If | 459 | Treat \"smartquotes\", unwrap lines, repair attribution and |
| 460 | NODISPLAY is non-nil, don't redisplay the article buffer." | 460 | rearrange citation. If NODISPLAY is non-nil, don't redisplay the |
| 461 | article buffer." | ||
| 461 | (interactive "P") | 462 | (interactive "P") |
| 462 | ;; apply treatment of dumb quotes | 463 | ;; apply treatment of dumb quotes |
| 463 | (gnus-article-treat-dumbquotes) | 464 | (gnus-article-treat-smartquotes) |
| 464 | ;; repair wrapped cited lines | 465 | ;; repair wrapped cited lines |
| 465 | (gnus-article-outlook-unwrap-lines 'nodisplay) | 466 | (gnus-article-outlook-unwrap-lines 'nodisplay) |
| 466 | ;; repair attribution line and rearrange citation. | 467 | ;; repair attribution line and rearrange citation. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 07ec2696469..922bb99d706 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -894,7 +894,7 @@ images in Emacs." | |||
| 894 | (defvar gnus-decode-address-function 'mail-decode-encoded-address-region | 894 | (defvar gnus-decode-address-function 'mail-decode-encoded-address-region |
| 895 | "Function used to decode addresses.") | 895 | "Function used to decode addresses.") |
| 896 | 896 | ||
| 897 | (defvar gnus-article-dumbquotes-map | 897 | (defvar gnus-article-smartquotes-map |
| 898 | '((?\200 "EUR") | 898 | '((?\200 "EUR") |
| 899 | (?\202 ",") | 899 | (?\202 ",") |
| 900 | (?\203 "f") | 900 | (?\203 "f") |
| @@ -915,6 +915,8 @@ images in Emacs." | |||
| 915 | (?\234 "oe") | 915 | (?\234 "oe") |
| 916 | (?\264 "'")) | 916 | (?\264 "'")) |
| 917 | "Table for MS-to-Latin1 translation.") | 917 | "Table for MS-to-Latin1 translation.") |
| 918 | (make-obsolete-variable 'gnus-article-dumbquotes-map | ||
| 919 | 'gnus-article-smartquotes-map "27.1") | ||
| 918 | 920 | ||
| 919 | (defcustom gnus-ignored-mime-types nil | 921 | (defcustom gnus-ignored-mime-types nil |
| 920 | "List of MIME types that should be ignored by Gnus." | 922 | "List of MIME types that should be ignored by Gnus." |
| @@ -2074,18 +2076,20 @@ always hide." | |||
| 2074 | )) | 2076 | )) |
| 2075 | (forward-line 1)))))) | 2077 | (forward-line 1)))))) |
| 2076 | 2078 | ||
| 2077 | (defun article-treat-dumbquotes () | 2079 | (defun article-treat-smartquotes () |
| 2078 | "Translate M****s*** sm*rtq**t*s and other symbols into proper text. | 2080 | "Translate \"Microsoft smartquotes\" and other symbols into proper text. |
| 2079 | Note that this function guesses whether a character is a sm*rtq**t* or | 2081 | Note that this function guesses whether a character is a smartquote or |
| 2080 | not, so it should only be used interactively. | 2082 | not, so it should only be used interactively. |
| 2081 | 2083 | ||
| 2082 | Sm*rtq**t*s are M****s***'s unilateral extension to the | 2084 | Smartquotes are Microsoft's unilateral extension to the |
| 2083 | iso-8859-1 character map in an attempt to provide more quoting | 2085 | iso-8859-1 character map in an attempt to provide more quoting |
| 2084 | characters. If you see something like \\222 or \\264 where | 2086 | characters. If you see something like \\222 or \\264 where |
| 2085 | you're expecting some kind of apostrophe or quotation mark, then | 2087 | you're expecting some kind of apostrophe or quotation mark, then |
| 2086 | try this wash." | 2088 | try this wash." |
| 2087 | (interactive) | 2089 | (interactive) |
| 2088 | (article-translate-strings gnus-article-dumbquotes-map)) | 2090 | (article-translate-strings gnus-article-smartquotes-map)) |
| 2091 | (define-obsolete-function-alias 'article-treat-dumquotes | ||
| 2092 | #'article-treat-smartquotes "27.1") | ||
| 2089 | 2093 | ||
| 2090 | (defvar org-entities) | 2094 | (defvar org-entities) |
| 2091 | 2095 | ||
| @@ -4371,11 +4375,13 @@ If variable `gnus-use-long-file-name' is non-nil, it is | |||
| 4371 | article-date-lapsed | 4375 | article-date-lapsed |
| 4372 | article-date-combined-lapsed | 4376 | article-date-combined-lapsed |
| 4373 | article-emphasize | 4377 | article-emphasize |
| 4378 | article-treat-smartquotes | ||
| 4379 | ;; Obsolete alias. | ||
| 4374 | article-treat-dumbquotes | 4380 | article-treat-dumbquotes |
| 4375 | article-treat-non-ascii | 4381 | article-treat-non-ascii |
| 4376 | article-normalize-headers | 4382 | article-normalize-headers))) |
| 4377 | ;;(article-show-all . gnus-article-show-all-headers) | 4383 | (define-obsolete-function-alias 'gnus-article-treat-dumbquotes |
| 4378 | ))) | 4384 | 'gnus-article-treat-smartquotes "27.1") |
| 4379 | 4385 | ||
| 4380 | ;;; | 4386 | ;;; |
| 4381 | ;;; Gnus article mode | 4387 | ;;; Gnus article mode |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index d1751065505..9d6f4568274 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -2184,7 +2184,7 @@ increase the score of each group you read." | |||
| 2184 | "v" gnus-summary-verbose-headers | 2184 | "v" gnus-summary-verbose-headers |
| 2185 | "a" gnus-article-strip-headers-in-body ;; mnemonic: wash archive | 2185 | "a" gnus-article-strip-headers-in-body ;; mnemonic: wash archive |
| 2186 | "p" gnus-article-verify-x-pgp-sig | 2186 | "p" gnus-article-verify-x-pgp-sig |
| 2187 | "d" gnus-article-treat-dumbquotes | 2187 | "d" gnus-article-treat-smartquotes |
| 2188 | "U" gnus-article-treat-non-ascii | 2188 | "U" gnus-article-treat-non-ascii |
| 2189 | "i" gnus-summary-idna-message) | 2189 | "i" gnus-summary-idna-message) |
| 2190 | 2190 | ||
| @@ -2509,7 +2509,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2509 | ["Leading space in headers" | 2509 | ["Leading space in headers" |
| 2510 | gnus-article-remove-leading-whitespace t]) | 2510 | gnus-article-remove-leading-whitespace t]) |
| 2511 | ["Overstrike" gnus-article-treat-overstrike t] | 2511 | ["Overstrike" gnus-article-treat-overstrike t] |
| 2512 | ["Dumb quotes" gnus-article-treat-dumbquotes t] | 2512 | ["Smartquotes" gnus-article-treat-smartquotes t] |
| 2513 | ["Non-ASCII" gnus-article-treat-non-ascii t] | 2513 | ["Non-ASCII" gnus-article-treat-non-ascii t] |
| 2514 | ["Emphasis" gnus-article-emphasize t] | 2514 | ["Emphasis" gnus-article-emphasize t] |
| 2515 | ["Word wrap" gnus-article-fill-cited-article t] | 2515 | ["Word wrap" gnus-article-fill-cited-article t] |