Mercurial > emacs
comparison lisp/gnus/gnus-art.el @ 111450:eb9988805a37
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.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Tue, 09 Nov 2010 22:17:36 +0000 |
parents | e8807c0f5742 |
children | 457fd361982f |
comparison
equal
deleted
inserted
replaced
111449:132f2dfd549f | 111450:eb9988805a37 |
---|---|
2111 characters. If you see something like \\222 or \\264 where | 2111 characters. If you see something like \\222 or \\264 where |
2112 you're expecting some kind of apostrophe or quotation mark, then | 2112 you're expecting some kind of apostrophe or quotation mark, then |
2113 try this wash." | 2113 try this wash." |
2114 (interactive) | 2114 (interactive) |
2115 (article-translate-strings gnus-article-dumbquotes-map)) | 2115 (article-translate-strings gnus-article-dumbquotes-map)) |
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)))))))) | |
2116 | 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 |
2120 characters to translate to." | 2141 characters to translate to." |
4246 article-decode-encoded-words | 4267 article-decode-encoded-words |
4247 article-date-user | 4268 article-date-user |
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 ))) |
4254 | 4276 |
4255 ;;; | 4277 ;;; |