diff options
| author | Lars Magne Ingebrigtsen | 2010-11-09 22:17:36 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-09 22:17:36 +0000 |
| commit | be3c11b30596150a3e9e25614d6b65ca938b198e (patch) | |
| tree | afcf2866e9a1c4b2737c1ef376d05b30261e2fb1 | |
| parent | d607b96bc2824116a8fe0e5840ce49da7ce4514f (diff) | |
| download | emacs-be3c11b30596150a3e9e25614d6b65ca938b198e.tar.gz emacs-be3c11b30596150a3e9e25614d6b65ca938b198e.zip | |
Merge changes made in Gnus trunk.
message.el (message-mailto): New function.
message.el (message-mailto): Should accept other parameters.
message.el (message-mailto): Remove since it duplicates browse-url-mailto functionality.
shr.el (shr-browse-url): Call browse-url-mailto for mailto: links.
message.el (message-subject-trailing-was-ask-regexp): A ] in a [] regexp doesn't need quoting.
gnus-art.el (article-treat-non-ascii): New command and keystroke.
shr.el (browse-url-mailto): Autoload.
gnus.texi (Article Washing): Document gnus-article-treat-non-ascii.
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 11 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 22 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 3 |
7 files changed, 61 insertions, 7 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index e255b44f189..0d1d0e2cc2e 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-11-09 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus.texi (Article Washing): Document gnus-article-treat-non-ascii. | ||
| 4 | |||
| 1 | 2010-11-09 Jay Belanger <jay.p.belanger@gmail.com> | 5 | 2010-11-09 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 6 | ||
| 3 | * calc.texi: Use emacsver.texi to determine Emacs version. | 7 | * calc.texi: Use emacsver.texi to determine Emacs version. |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 8709635a58b..9afbc67877d 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -9664,6 +9664,17 @@ an attempt to provide more quoting characters. If you see something | |||
| 9664 | like @code{\222} or @code{\264} where you're expecting some kind of | 9664 | like @code{\222} or @code{\264} where you're expecting some kind of |
| 9665 | apostrophe or quotation mark, then try this wash. | 9665 | apostrophe or quotation mark, then try this wash. |
| 9666 | 9666 | ||
| 9667 | @item W A | ||
| 9668 | @kindex W A (Summary) | ||
| 9669 | @findex gnus-article-treat-non-ascii | ||
| 9670 | @cindex Unicode | ||
| 9671 | @cindex Non-@acronym{ASCII} | ||
| 9672 | Translate many non-@acronym{ASCII} characters into their | ||
| 9673 | @acronym{ASCII} equivalents (@code{gnus-article-treat-non-ascii}). | ||
| 9674 | This is mostly useful if you're on a terminal that has a limited font | ||
| 9675 | and does't show accented characters, ``advanced'' punctuation, and the | ||
| 9676 | like. For instance, @samp{»} is tranlated into @samp{>>}, and so on. | ||
| 9677 | |||
| 9667 | @item W Y f | 9678 | @item W Y f |
| 9668 | @kindex W Y f (Summary) | 9679 | @kindex W Y f (Summary) |
| 9669 | @findex gnus-article-outlook-deuglify-article | 9680 | @findex gnus-article-outlook-deuglify-article |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f23809fa42e..416117627e7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-11-09 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * shr.el (browse-url-mailto): Autoload. | ||
| 4 | |||
| 5 | * gnus-art.el (article-treat-non-ascii): New command and keystroke. | ||
| 6 | |||
| 7 | * message.el (message-subject-trailing-was-ask-regexp): A ] in a [] | ||
| 8 | regexp doesn't need quoting. | ||
| 9 | |||
| 1 | 2010-11-09 Sven Joachim <svenjoac@gmx.de> | 10 | 2010-11-09 Sven Joachim <svenjoac@gmx.de> |
| 2 | 11 | ||
| 3 | * message.el (message-subject-trailing-was-ask-regexp) | 12 | * message.el (message-subject-trailing-was-ask-regexp) |
| @@ -8,9 +17,14 @@ | |||
| 8 | * nnbabyl.el (nnbabyl-request-move-article, nnbabyl-delete-mail) | 17 | * nnbabyl.el (nnbabyl-request-move-article, nnbabyl-delete-mail) |
| 9 | (nnbabyl-check-mbox): Use point-at-bol. | 18 | (nnbabyl-check-mbox): Use point-at-bol. |
| 10 | 19 | ||
| 11 | 2010-11-09 Katsumi Yamaoka <yamaoka@jpl.org> | 20 | 2010-11-08 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 21 | |||
| 22 | * shr.el (shr-browse-url): Call browse-url-mailto for mailto: links. | ||
| 12 | 23 | ||
| 13 | * message.el (message-subject-trailing-was-regexp): Fix default value. | 24 | * message.el (message-mailto): New function. |
| 25 | (message-mailto): Should accept other parameters. | ||
| 26 | (message-mailto): Remove since it duplicates browse-url-mailto | ||
| 27 | functionality. | ||
| 14 | 28 | ||
| 15 | 2010-11-07 Lars Magne Ingebrigtsen <larsi@gnus.org> | 29 | 2010-11-07 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 16 | 30 | ||
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 97e8ccc1e86..0e354dc84f3 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2114,6 +2114,27 @@ try this wash." | |||
| 2114 | (interactive) | 2114 | (interactive) |
| 2115 | (article-translate-strings gnus-article-dumbquotes-map)) | 2115 | (article-translate-strings gnus-article-dumbquotes-map)) |
| 2116 | 2116 | ||
| 2117 | (defun article-treat-non-ascii () | ||
| 2118 | "Translate many Unicode characters into their ASCII equivalents." | ||
| 2119 | (interactive) | ||
| 2120 | (require 'org-entities) | ||
| 2121 | (let ((table (make-char-table nil))) | ||
| 2122 | (dolist (elem org-entities) | ||
| 2123 | (when (and (listp elem) | ||
| 2124 | (= (length (nth 6 elem)) 1)) | ||
| 2125 | (set-char-table-range table | ||
| 2126 | (aref (nth 6 elem) 0) | ||
| 2127 | (nth 4 elem)))) | ||
| 2128 | (save-excursion | ||
| 2129 | (when (article-goto-body) | ||
| 2130 | (let ((inhibit-read-only t) | ||
| 2131 | replace) | ||
| 2132 | (while (not (eobp)) | ||
| 2133 | (if (not (setq replace (aref table (following-char)))) | ||
| 2134 | (forward-char 1) | ||
| 2135 | (delete-char 1) | ||
| 2136 | (insert replace)))))))) | ||
| 2137 | |||
| 2117 | (defun article-translate-characters (from to) | 2138 | (defun article-translate-characters (from to) |
| 2118 | "Translate all characters in the body of the article according to FROM and TO. | 2139 | "Translate all characters in the body of the article according to FROM and TO. |
| 2119 | FROM is a string of characters to translate from; to is a string of | 2140 | FROM is a string of characters to translate from; to is a string of |
| @@ -4248,6 +4269,7 @@ If variable `gnus-use-long-file-name' is non-nil, it is | |||
| 4248 | article-date-lapsed | 4269 | article-date-lapsed |
| 4249 | article-emphasize | 4270 | article-emphasize |
| 4250 | article-treat-dumbquotes | 4271 | article-treat-dumbquotes |
| 4272 | article-treat-non-ascii | ||
| 4251 | article-normalize-headers | 4273 | article-normalize-headers |
| 4252 | ;;(article-show-all . gnus-article-show-all-headers) | 4274 | ;;(article-show-all . gnus-article-show-all-headers) |
| 4253 | ))) | 4275 | ))) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index ad2f5b6d9c6..97155100da3 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -2096,6 +2096,7 @@ increase the score of each group you read." | |||
| 2096 | "a" gnus-article-strip-headers-in-body ;; mnemonic: wash archive | 2096 | "a" gnus-article-strip-headers-in-body ;; mnemonic: wash archive |
| 2097 | "p" gnus-article-verify-x-pgp-sig | 2097 | "p" gnus-article-verify-x-pgp-sig |
| 2098 | "d" gnus-article-treat-dumbquotes | 2098 | "d" gnus-article-treat-dumbquotes |
| 2099 | "U" gnus-article-treat-non-ascii | ||
| 2099 | "i" gnus-summary-idna-message) | 2100 | "i" gnus-summary-idna-message) |
| 2100 | 2101 | ||
| 2101 | (gnus-define-keys (gnus-summary-wash-deuglify-map "Y" gnus-summary-wash-map) | 2102 | (gnus-define-keys (gnus-summary-wash-deuglify-map "Y" gnus-summary-wash-map) |
| @@ -2420,6 +2421,7 @@ gnus-summary-show-article-from-menu-as-charset-%s" cs)))) | |||
| 2420 | gnus-article-remove-leading-whitespace t]) | 2421 | gnus-article-remove-leading-whitespace t]) |
| 2421 | ["Overstrike" gnus-article-treat-overstrike t] | 2422 | ["Overstrike" gnus-article-treat-overstrike t] |
| 2422 | ["Dumb quotes" gnus-article-treat-dumbquotes t] | 2423 | ["Dumb quotes" gnus-article-treat-dumbquotes t] |
| 2424 | ["Non-ASCII" gnus-article-treat-non-ascii t] | ||
| 2423 | ["Emphasis" gnus-article-emphasize t] | 2425 | ["Emphasis" gnus-article-emphasize t] |
| 2424 | ["Word wrap" gnus-article-fill-cited-article t] | 2426 | ["Word wrap" gnus-article-fill-cited-article t] |
| 2425 | ["Fill long lines" gnus-article-fill-long-lines t] | 2427 | ["Fill long lines" gnus-article-fill-long-lines t] |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index c305a18bd21..be09d0856eb 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -322,7 +322,7 @@ used." | |||
| 322 | :group 'message-various) | 322 | :group 'message-various) |
| 323 | 323 | ||
| 324 | (defcustom message-subject-trailing-was-ask-regexp | 324 | (defcustom message-subject-trailing-was-ask-regexp |
| 325 | "[ \t]*\\([[(]+[Ww][Aa][Ss]:?[ \t]*.*[\])]+\\)" | 325 | "[ \t]*\\([[(]+[Ww][Aa][Ss]:?[ \t]*.*[])]+\\)" |
| 326 | "*Regexp matching \"(was: <old subject>)\" in the subject line. | 326 | "*Regexp matching \"(was: <old subject>)\" in the subject line. |
| 327 | 327 | ||
| 328 | The function `message-strip-subject-trailing-was' uses this regexp if | 328 | The function `message-strip-subject-trailing-was' uses this regexp if |
| @@ -331,20 +331,20 @@ the variable is t instead of `ask', use | |||
| 331 | `message-subject-trailing-was-regexp' instead. | 331 | `message-subject-trailing-was-regexp' instead. |
| 332 | 332 | ||
| 333 | It is okay to create some false positives here, as the user is asked." | 333 | It is okay to create some false positives here, as the user is asked." |
| 334 | :version "24.1" | 334 | :version "22.1" |
| 335 | :group 'message-various | 335 | :group 'message-various |
| 336 | :link '(custom-manual "(message)Message Headers") | 336 | :link '(custom-manual "(message)Message Headers") |
| 337 | :type 'regexp) | 337 | :type 'regexp) |
| 338 | 338 | ||
| 339 | (defcustom message-subject-trailing-was-regexp | 339 | (defcustom message-subject-trailing-was-regexp |
| 340 | "[ \t]*\\((*[Ww][Aa][Ss]:?[ \t]*.*)\\)" | 340 | "[ \t]*\\((*[Ww][Aa][Ss]:[ \t]*.*)\\)" |
| 341 | "*Regexp matching \"(was: <old subject>)\" in the subject line. | 341 | "*Regexp matching \"(was: <old subject>)\" in the subject line. |
| 342 | 342 | ||
| 343 | If `message-subject-trailing-was-query' is set to t, the subject is | 343 | If `message-subject-trailing-was-query' is set to t, the subject is |
| 344 | matched against `message-subject-trailing-was-regexp' in | 344 | matched against `message-subject-trailing-was-regexp' in |
| 345 | `message-strip-subject-trailing-was'. You should use a regexp creating very | 345 | `message-strip-subject-trailing-was'. You should use a regexp creating very |
| 346 | few false positives here." | 346 | few false positives here." |
| 347 | :version "24.1" | 347 | :version "22.1" |
| 348 | :group 'message-various | 348 | :group 'message-various |
| 349 | :link '(custom-manual "(message)Message Headers") | 349 | :link '(custom-manual "(message)Message Headers") |
| 350 | :type 'regexp) | 350 | :type 'regexp) |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index c828d190b96..e0ea76c0930 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -344,7 +344,7 @@ redirects somewhere else." | |||
| 344 | ((not url) | 344 | ((not url) |
| 345 | (message "No link under point")) | 345 | (message "No link under point")) |
| 346 | ((string-match "^mailto:" url) | 346 | ((string-match "^mailto:" url) |
| 347 | (gnus-url-mailto url)) | 347 | (browse-url-mailto url)) |
| 348 | (t | 348 | (t |
| 349 | (browse-url url))))) | 349 | (browse-url url))))) |
| 350 | 350 | ||
| @@ -418,6 +418,7 @@ redirects somewhere else." | |||
| 418 | ;; url-cache-extract autoloads url-cache. | 418 | ;; url-cache-extract autoloads url-cache. |
| 419 | (declare-function url-cache-create-filename "url-cache" (url)) | 419 | (declare-function url-cache-create-filename "url-cache" (url)) |
| 420 | (autoload 'mm-disable-multibyte "mm-util") | 420 | (autoload 'mm-disable-multibyte "mm-util") |
| 421 | (autoload 'browse-url-mailto "browse-url") | ||
| 421 | 422 | ||
| 422 | (defun shr-get-image-data (url) | 423 | (defun shr-get-image-data (url) |
| 423 | "Get image data for URL. | 424 | "Get image data for URL. |