diff options
| author | Gnus developers | 2010-10-08 23:55:33 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-10-08 23:55:33 +0000 |
| commit | 36d3245fbc0ad82c81da146e0fa21bd6843f2795 (patch) | |
| tree | 0409ed734487810378991a18c4d49a3c1a327a7d /lisp | |
| parent | 2187e5bba7722193286a75c43a91bf1a22d9300b (diff) | |
| download | emacs-36d3245fbc0ad82c81da146e0fa21bd6843f2795.tar.gz emacs-36d3245fbc0ad82c81da146e0fa21bd6843f2795.zip | |
shr.el (shr-insert): Don't insert double spaces.
auth.texi (Help for users, GnuPG and EasyPG Assistant Configuration): Update docs.
gnus-registry.el, nnregistry.el: Remove nnregistry refer method auto-install and update docs.
gnus.texi (Finding the Parent, The Gnus Registry, Registry Article Refer Method): Update docs for nnregistry.el.
gnus-demon.el, gnus-group.el, gnus-msg.el, gnus-sum.el, gnus-util.el, gnus.el: Rename `gnus-pull' to `gnus-alist-pull'.
gnus.texi (Article Washing): Add mm-shr.
mm-decode.el (mm-text-html-renderer): Add mm-shr in choice list.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 33 | ||||
| -rw-r--r-- | lisp/gnus/gnus-demon.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-registry.el | 22 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mm-decode.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/nndoc.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnregistry.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnweb.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 3 |
13 files changed, 54 insertions, 33 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8859ce8c4ad..744601b8bc9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2010-10-08 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * mm-decode.el (mm-text-html-renderer): Add mm-shr in choice list. | ||
| 4 | |||
| 5 | 2010-10-08 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 6 | |||
| 7 | * gnus-util.el (gnus-alist-pull): Rename `gnus-pull'. | ||
| 8 | |||
| 9 | * gnus-sum.el (gnus-mark-article-as-unread) | ||
| 10 | (gnus-summary-mark-article-as-unread, gnus-summary-remove-bookmark) | ||
| 11 | (gnus-summary-set-bookmark): Use it. | ||
| 12 | |||
| 13 | * gnus-msg.el (gnus-setup-message): Use it. | ||
| 14 | |||
| 15 | * gnus-demon.el (gnus-demon-remove-handler): Use it. | ||
| 16 | |||
| 17 | * gnus.el (gnus-group-remove-parameter): Use it. | ||
| 18 | |||
| 19 | * gnus-group.el (gnus-group-make-web-group): Use it. | ||
| 20 | |||
| 21 | * gnus-demon.el (gnus-demon-remove-handler): Use it. | ||
| 22 | |||
| 23 | * nnregistry.el: Update docs to mention manual. | ||
| 24 | |||
| 25 | * gnus-registry.el: Update docs to mention nnregistry.el. | ||
| 26 | (gnus-registry-initialize): Don't install nnregistry refer method | ||
| 27 | automatically. | ||
| 28 | (gnus-registry-install-nnregistry): Remove it. | ||
| 29 | |||
| 30 | 2010-10-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 31 | |||
| 32 | * shr.el (shr-insert): Don't insert double spaces. | ||
| 33 | |||
| 1 | 2010-10-08 Katsumi Yamaoka <yamaoka@jpl.org> | 34 | 2010-10-08 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 35 | ||
| 3 | * gnus-gravatar.el (gnus-treat-from-gravatar) | 36 | * gnus-gravatar.el (gnus-treat-from-gravatar) |
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el index c4e439c3bf4..9f992d567d7 100644 --- a/lisp/gnus/gnus-demon.el +++ b/lisp/gnus/gnus-demon.el | |||
| @@ -92,7 +92,7 @@ time Emacs has been idle for IDLE `gnus-demon-timestep's." | |||
| 92 | 92 | ||
| 93 | (defun gnus-demon-remove-handler (function &optional no-init) | 93 | (defun gnus-demon-remove-handler (function &optional no-init) |
| 94 | "Remove the handler FUNCTION from the list of handlers." | 94 | "Remove the handler FUNCTION from the list of handlers." |
| 95 | (gnus-pull function gnus-demon-handlers) | 95 | (gnus-alist-pull function gnus-demon-handlers) |
| 96 | (unless no-init | 96 | (unless no-init |
| 97 | (gnus-demon-init))) | 97 | (gnus-demon-init))) |
| 98 | 98 | ||
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index b2285569167..b92b608e5db 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -3027,7 +3027,7 @@ If SOLID (the prefix), create a solid group." | |||
| 3027 | (nnweb-ephemeral-p t)))) | 3027 | (nnweb-ephemeral-p t)))) |
| 3028 | (if solid | 3028 | (if solid |
| 3029 | (progn | 3029 | (progn |
| 3030 | (gnus-pull 'nnweb-ephemeral-p method) | 3030 | (gnus-alist-pull 'nnweb-ephemeral-p method) |
| 3031 | (gnus-group-make-group group method)) | 3031 | (gnus-group-make-group group method)) |
| 3032 | (gnus-group-read-ephemeral-group | 3032 | (gnus-group-read-ephemeral-group |
| 3033 | group method t | 3033 | group method t |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 891718e65b8..a3c5112ee41 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -420,7 +420,7 @@ Thank you for your help in stamping out bugs. | |||
| 420 | ;; There may be an old " *gnus article copy*" buffer. | 420 | ;; There may be an old " *gnus article copy*" buffer. |
| 421 | (let (gnus-article-copy) | 421 | (let (gnus-article-copy) |
| 422 | (gnus-configure-posting-styles ,group))))) | 422 | (gnus-configure-posting-styles ,group))))) |
| 423 | (gnus-pull ',(intern gnus-draft-meta-information-header) | 423 | (gnus-alist-pull ',(intern gnus-draft-meta-information-header) |
| 424 | message-required-headers) | 424 | message-required-headers) |
| 425 | (when (and ,group | 425 | (when (and ,group |
| 426 | (not (string= ,group ""))) | 426 | (not (string= ,group ""))) |
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index 45fa9561782..6c2233f9c40 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -36,17 +36,18 @@ | |||
| 36 | 36 | ||
| 37 | ;; Put this in your startup file (~/.gnus.el for instance) | 37 | ;; Put this in your startup file (~/.gnus.el for instance) |
| 38 | 38 | ||
| 39 | ;; (require 'nnregistry) ;; optional, or see below (automatically calls `gnus-registry-install-nnregistry' when `gnus-registry-initialize' is called) | ||
| 40 | ;; (setq gnus-registry-max-entries 2500 | 39 | ;; (setq gnus-registry-max-entries 2500 |
| 41 | ;; gnus-registry-use-long-group-names t) | 40 | ;; gnus-registry-use-long-group-names t) |
| 42 | 41 | ||
| 43 | ;; (gnus-registry-initialize) | 42 | ;; (gnus-registry-initialize) |
| 44 | ;; (gnus-registry-install-nnregistry) ;; optional, or see above (loading nnregistry makes it unnecessary) | ||
| 45 | 43 | ||
| 46 | ;; Then use this in your fancy-split: | 44 | ;; Then use this in your fancy-split: |
| 47 | 45 | ||
| 48 | ;; (: gnus-registry-split-fancy-with-parent) | 46 | ;; (: gnus-registry-split-fancy-with-parent) |
| 49 | 47 | ||
| 48 | ;; You should also consider using the nnregistry backend to look up | ||
| 49 | ;; articles. See the Gnus manual for more information. | ||
| 50 | |||
| 50 | ;; TODO: | 51 | ;; TODO: |
| 51 | 52 | ||
| 52 | ;; - get the correct group on spool actions | 53 | ;; - get the correct group on spool actions |
| @@ -1131,8 +1132,6 @@ Returns the first place where the trail finds a group name." | |||
| 1131 | (setq gnus-registry-install t) ; in case it was 'ask or nil | 1132 | (setq gnus-registry-install t) ; in case it was 'ask or nil |
| 1132 | (gnus-registry-install-hooks) | 1133 | (gnus-registry-install-hooks) |
| 1133 | (gnus-registry-install-shortcuts) | 1134 | (gnus-registry-install-shortcuts) |
| 1134 | (when (featurep 'nnregistry) | ||
| 1135 | (gnus-registry-install-nnregistry)) | ||
| 1136 | (gnus-registry-read)) | 1135 | (gnus-registry-read)) |
| 1137 | 1136 | ||
| 1138 | ;;;###autoload | 1137 | ;;;###autoload |
| @@ -1149,21 +1148,6 @@ Returns the first place where the trail finds a group name." | |||
| 1149 | 1148 | ||
| 1150 | (add-hook 'gnus-summary-prepare-hook 'gnus-registry-register-message-ids)) | 1149 | (add-hook 'gnus-summary-prepare-hook 'gnus-registry-register-message-ids)) |
| 1151 | 1150 | ||
| 1152 | ;;;###autoload | ||
| 1153 | (defun gnus-registry-install-nnregistry () | ||
| 1154 | "Install the nnregistry refer method in `gnus-refer-article-method'." | ||
| 1155 | (interactive) | ||
| 1156 | (cond ((eq 'nnregistry gnus-refer-article-method)) | ||
| 1157 | ((null gnus-refer-article-method) | ||
| 1158 | (setq gnus-refer-article-method 'nnregistry)) | ||
| 1159 | ((consp gnus-refer-article-method) | ||
| 1160 | (unless (memq 'nnregistry gnus-refer-article-method) | ||
| 1161 | (setq gnus-refer-article-method | ||
| 1162 | (append gnus-refer-article-method '(nnregistry))))) | ||
| 1163 | (t | ||
| 1164 | (setq gnus-refer-article-method | ||
| 1165 | (list gnus-refer-article-method 'nnregistry))))) | ||
| 1166 | |||
| 1167 | (defun gnus-registry-unload-hook () | 1151 | (defun gnus-registry-unload-hook () |
| 1168 | "Uninstall the registry hooks." | 1152 | "Uninstall the registry hooks." |
| 1169 | (interactive) | 1153 | (interactive) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index c45536c25c0..a0566900757 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -10528,7 +10528,7 @@ ARTICLE can also be a list of articles." | |||
| 10528 | (not (equal gnus-newsgroup-name (car gnus-article-current)))) | 10528 | (not (equal gnus-newsgroup-name (car gnus-article-current)))) |
| 10529 | (error "No current article selected")) | 10529 | (error "No current article selected")) |
| 10530 | ;; Remove old bookmark, if one exists. | 10530 | ;; Remove old bookmark, if one exists. |
| 10531 | (gnus-pull article gnus-newsgroup-bookmarks) | 10531 | (gnus-alist-pull article gnus-newsgroup-bookmarks) |
| 10532 | ;; Set the new bookmark, which is on the form | 10532 | ;; Set the new bookmark, which is on the form |
| 10533 | ;; (article-number . line-number-in-body). | 10533 | ;; (article-number . line-number-in-body). |
| 10534 | (push | 10534 | (push |
| @@ -10549,7 +10549,7 @@ ARTICLE can also be a list of articles." | |||
| 10549 | ;; Remove old bookmark, if one exists. | 10549 | ;; Remove old bookmark, if one exists. |
| 10550 | (if (not (assq article gnus-newsgroup-bookmarks)) | 10550 | (if (not (assq article gnus-newsgroup-bookmarks)) |
| 10551 | (gnus-message 6 "No bookmark in current article.") | 10551 | (gnus-message 6 "No bookmark in current article.") |
| 10552 | (gnus-pull article gnus-newsgroup-bookmarks) | 10552 | (gnus-alist-pull article gnus-newsgroup-bookmarks) |
| 10553 | (gnus-message 6 "Removed bookmark."))) | 10553 | (gnus-message 6 "Removed bookmark."))) |
| 10554 | 10554 | ||
| 10555 | ;; Suggested by Daniel Quinlan <quinlan@best.com>. | 10555 | ;; Suggested by Daniel Quinlan <quinlan@best.com>. |
| @@ -10675,7 +10675,7 @@ If NO-EXPIRE, auto-expiry will be inhibited." | |||
| 10675 | (setq gnus-newsgroup-unreads | 10675 | (setq gnus-newsgroup-unreads |
| 10676 | (gnus-add-to-sorted-list gnus-newsgroup-unreads | 10676 | (gnus-add-to-sorted-list gnus-newsgroup-unreads |
| 10677 | article)))) | 10677 | article)))) |
| 10678 | (gnus-pull article gnus-newsgroup-reads) | 10678 | (gnus-alist-pull article gnus-newsgroup-reads) |
| 10679 | 10679 | ||
| 10680 | ;; See whether the article is to be put in the cache. | 10680 | ;; See whether the article is to be put in the cache. |
| 10681 | (and gnus-use-cache | 10681 | (and gnus-use-cache |
| @@ -10849,7 +10849,7 @@ If NO-EXPIRE, auto-expiry will be inhibited." | |||
| 10849 | (t | 10849 | (t |
| 10850 | (setq gnus-newsgroup-unreads | 10850 | (setq gnus-newsgroup-unreads |
| 10851 | (gnus-add-to-sorted-list gnus-newsgroup-unreads article)))) | 10851 | (gnus-add-to-sorted-list gnus-newsgroup-unreads article)))) |
| 10852 | (gnus-pull article gnus-newsgroup-reads) | 10852 | (gnus-alist-pull article gnus-newsgroup-reads) |
| 10853 | t))) | 10853 | t))) |
| 10854 | 10854 | ||
| 10855 | (defalias 'gnus-summary-mark-as-unread-forward | 10855 | (defalias 'gnus-summary-mark-as-unread-forward |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 932b0a1f1e7..503ec47e39c 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1366,7 +1366,7 @@ Return the modified alist." | |||
| 1366 | (when (string-match r word) | 1366 | (when (string-match r word) |
| 1367 | (throw 'found r)))))) | 1367 | (throw 'found r)))))) |
| 1368 | 1368 | ||
| 1369 | (defmacro gnus-pull (key alist &optional assoc-p) | 1369 | (defmacro gnus-alist-pull (key alist &optional assoc-p) |
| 1370 | "Modify ALIST to be without KEY." | 1370 | "Modify ALIST to be without KEY." |
| 1371 | (unless (symbolp alist) | 1371 | (unless (symbolp alist) |
| 1372 | (error "Not a symbol: %s" alist)) | 1372 | (error "Not a symbol: %s" alist)) |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index b62bf051c5d..f6ffdf64ffb 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -3944,7 +3944,7 @@ If ALLOW-LIST, also allow list as a result." | |||
| 3944 | (when params | 3944 | (when params |
| 3945 | (setq params (delq name params)) | 3945 | (setq params (delq name params)) |
| 3946 | (while (assq name params) | 3946 | (while (assq name params) |
| 3947 | (gnus-pull name params)) | 3947 | (gnus-alist-pull name params)) |
| 3948 | (gnus-info-set-params info params)))))) | 3948 | (gnus-info-set-params info params)))))) |
| 3949 | 3949 | ||
| 3950 | (defun gnus-group-add-score (group &optional score) | 3950 | (defun gnus-group-add-score (group &optional score) |
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 1006c850ae5..07249bf0727 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -115,6 +115,7 @@ | |||
| 115 | "Render of HTML contents. | 115 | "Render of HTML contents. |
| 116 | It is one of defined renderer types, or a rendering function. | 116 | It is one of defined renderer types, or a rendering function. |
| 117 | The defined renderer types are: | 117 | The defined renderer types are: |
| 118 | `mm-shr': use Gnus simple HTML renderer; | ||
| 118 | `gnus-article-html' : use Gnus renderer based on w3m; | 119 | `gnus-article-html' : use Gnus renderer based on w3m; |
| 119 | `w3m' : use emacs-w3m; | 120 | `w3m' : use emacs-w3m; |
| 120 | `w3m-standalone': use w3m; | 121 | `w3m-standalone': use w3m; |
| @@ -124,7 +125,8 @@ The defined renderer types are: | |||
| 124 | `html2text' : use html2text; | 125 | `html2text' : use html2text; |
| 125 | nil : use external viewer (default web browser)." | 126 | nil : use external viewer (default web browser)." |
| 126 | :version "24.1" | 127 | :version "24.1" |
| 127 | :type '(choice (const gnus-article-html) | 128 | :type '(choice (const mm-shr) |
| 129 | (const gnus-article-html) | ||
| 128 | (const w3) | 130 | (const w3) |
| 129 | (const w3m :tag "emacs-w3m") | 131 | (const w3m :tag "emacs-w3m") |
| 130 | (const w3m-standalone :tag "standalone w3m" ) | 132 | (const w3m-standalone :tag "standalone w3m" ) |
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el index 46d775a345f..6c9ef1cef87 100644 --- a/lisp/gnus/nndoc.el +++ b/lisp/gnus/nndoc.el | |||
| @@ -1038,7 +1038,7 @@ as the last checked definition, if t or `first', add as the | |||
| 1038 | first definition, and if any other symbol, add after that | 1038 | first definition, and if any other symbol, add after that |
| 1039 | symbol in the alist." | 1039 | symbol in the alist." |
| 1040 | ;; First remove any old instances. | 1040 | ;; First remove any old instances. |
| 1041 | (gnus-pull (car definition) nndoc-type-alist) | 1041 | (gnus-alist-pull (car definition) nndoc-type-alist) |
| 1042 | ;; Then enter the new definition in the proper place. | 1042 | ;; Then enter the new definition in the proper place. |
| 1043 | (cond | 1043 | (cond |
| 1044 | ((or (null position) (eq position 'last)) | 1044 | ((or (null position) (eq position 'last)) |
diff --git a/lisp/gnus/nnregistry.el b/lisp/gnus/nnregistry.el index b2d80503479..03ff5e716aa 100644 --- a/lisp/gnus/nnregistry.el +++ b/lisp/gnus/nnregistry.el | |||
| @@ -25,7 +25,8 @@ | |||
| 25 | 25 | ||
| 26 | ;; This file provides the `nnregistry' Gnus back-end. It can be used | 26 | ;; This file provides the `nnregistry' Gnus back-end. It can be used |
| 27 | ;; in `gnus-refer-article-method' to quickly search for a message by | 27 | ;; in `gnus-refer-article-method' to quickly search for a message by |
| 28 | ;; id, regardless of the back-end that stores it. | 28 | ;; id, regardless of the back-end that stores it. See the Gnus manual |
| 29 | ;; for usage examples and more information. | ||
| 29 | 30 | ||
| 30 | ;;; Code: | 31 | ;;; Code: |
| 31 | 32 | ||
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el index 1cfa7a4cbc3..ac643f9ed1f 100644 --- a/lisp/gnus/nnweb.el +++ b/lisp/gnus/nnweb.el | |||
| @@ -207,7 +207,7 @@ Valid types include `google', `dejanews', and `gmane'.") | |||
| 207 | 207 | ||
| 208 | (deffoo nnweb-request-delete-group (group &optional force server) | 208 | (deffoo nnweb-request-delete-group (group &optional force server) |
| 209 | (nnweb-possibly-change-server group server) | 209 | (nnweb-possibly-change-server group server) |
| 210 | (gnus-pull group nnweb-group-alist t) | 210 | (gnus-alist-pull group nnweb-group-alist t) |
| 211 | (nnweb-write-active) | 211 | (nnweb-write-active) |
| 212 | (gnus-delete-file (nnweb-overview-file group)) | 212 | (gnus-delete-file (nnweb-overview-file group)) |
| 213 | t) | 213 | t) |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index ffc27e92ccd..daafa61d372 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -188,7 +188,8 @@ redirects somewhere else." | |||
| 188 | (let ((first t) | 188 | (let ((first t) |
| 189 | column) | 189 | column) |
| 190 | (when (and (string-match "\\`[ \t\n]" text) | 190 | (when (and (string-match "\\`[ \t\n]" text) |
| 191 | (not (bolp))) | 191 | (not (bolp)) |
| 192 | (not (eq (char-after (1- (point))) ? ))) | ||
| 192 | (insert " ")) | 193 | (insert " ")) |
| 193 | (dolist (elem (split-string text)) | 194 | (dolist (elem (split-string text)) |
| 194 | (when (and (bolp) | 195 | (when (and (bolp) |