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 | |
| 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.
| -rw-r--r-- | doc/misc/gnus.texi | 20 | ||||
| -rw-r--r-- | etc/refcards/gnus-refcard.tex | 2 | ||||
| -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 |
5 files changed, 32 insertions, 25 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index afa45d10f09..d8a257b00bf 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -9006,18 +9006,18 @@ Treat overstrike (@code{gnus-article-treat-overstrike}). | |||
| 9006 | 9006 | ||
| 9007 | @item W d | 9007 | @item W d |
| 9008 | @kindex W d @r{(Summary)} | 9008 | @kindex W d @r{(Summary)} |
| 9009 | @findex gnus-article-treat-dumbquotes | 9009 | @findex gnus-article-treat-smartquotes |
| 9010 | @vindex gnus-article-dumbquotes-map | 9010 | @vindex gnus-article-smartquotes-map |
| 9011 | @cindex Smartquotes | 9011 | @cindex Smartquotes |
| 9012 | @cindex M****s*** sm*rtq**t*s | 9012 | @cindex M****s*** sm*rtq**t*s |
| 9013 | @cindex Latin 1 | 9013 | @cindex Latin 1 |
| 9014 | Treat M****s*** sm*rtq**t*s according to | 9014 | Treat ``Microsoft smartquotes'' according to |
| 9015 | @code{gnus-article-dumbquotes-map} | 9015 | @code{gnus-article-smartquotes-map} |
| 9016 | (@code{gnus-article-treat-dumbquotes}). Note that this function guesses | 9016 | (@code{gnus-article-treat-smartquotes}). Note that this function guesses |
| 9017 | whether a character is a sm*rtq**t* or not, so it should only be used | 9017 | whether a character is a smartquote or not, so it should only be used |
| 9018 | interactively. | 9018 | interactively. |
| 9019 | 9019 | ||
| 9020 | Sm*rtq**t*s are M****s***'s unilateral extension to the character map in | 9020 | Smartquotes are Microsoft's unilateral extension to the character map in |
| 9021 | an attempt to provide more quoting characters. If you see something | 9021 | an attempt to provide more quoting characters. If you see something |
| 9022 | like @code{\222} or @code{\264} where you're expecting some kind of | 9022 | like @code{\222} or @code{\264} where you're expecting some kind of |
| 9023 | apostrophe or quotation mark, then try this wash. | 9023 | apostrophe or quotation mark, then try this wash. |
| @@ -9037,9 +9037,9 @@ like. For instance, @samp{ยป} is translated into @samp{>>}, and so on. | |||
| 9037 | @kindex W Y f @r{(Summary)} | 9037 | @kindex W Y f @r{(Summary)} |
| 9038 | @findex gnus-article-outlook-deuglify-article | 9038 | @findex gnus-article-outlook-deuglify-article |
| 9039 | @cindex Outlook Express | 9039 | @cindex Outlook Express |
| 9040 | Full deuglify of broken Outlook (Express) articles: Treat dumbquotes, | 9040 | Full deuglify of broken Outlook (Express) articles: Treat |
| 9041 | unwrap lines, repair attribution and rearrange citation. | 9041 | \"smartquotes\", unwrap lines, repair attribution and rearrange |
| 9042 | (@code{gnus-article-outlook-deuglify-article}). | 9042 | citation (@code{gnus-article-outlook-deuglify-article}). |
| 9043 | 9043 | ||
| 9044 | @item W Y u | 9044 | @item W Y u |
| 9045 | @kindex W Y u @r{(Summary)} | 9045 | @kindex W Y u @r{(Summary)} |
diff --git a/etc/refcards/gnus-refcard.tex b/etc/refcards/gnus-refcard.tex index a16f48dde02..7ecfc8217ef 100644 --- a/etc/refcards/gnus-refcard.tex +++ b/etc/refcards/gnus-refcard.tex | |||
| @@ -670,7 +670,7 @@ | |||
| 670 | W b & Make Message-IDs and URLs in the article mouse-clickable | 670 | W b & Make Message-IDs and URLs in the article mouse-clickable |
| 671 | {\bf buttons}.\\ | 671 | {\bf buttons}.\\ |
| 672 | W c & Translate CRLF-pairs to LF and then remaining CR's to LF's.\\ | 672 | W c & Translate CRLF-pairs to LF and then remaining CR's to LF's.\\ |
| 673 | W d & Treat {\bf dumbquotes}.\\ | 673 | W d & Treat {\bf smartquotes}.\\ |
| 674 | W e & Treat {\bf emphasized} text.\\ | 674 | W e & Treat {\bf emphasized} text.\\ |
| 675 | W h & Treat {\bf HTML}.\\ | 675 | W h & Treat {\bf HTML}.\\ |
| 676 | W l & (w) Remove page breaks ({\bf\^{}L}) from the article.\\ | 676 | W l & (w) Remove page breaks ({\bf\^{}L}) from the article.\\ |
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] |