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 | |
| 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.
| -rw-r--r-- | doc/misc/ChangeLog | 14 | ||||
| -rw-r--r-- | doc/misc/auth.texi | 61 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 57 | ||||
| -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 |
16 files changed, 173 insertions, 46 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index b06cfe1394b..aa1715551c8 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2010-10-08 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus.texi: add mm-shr | ||
| 4 | |||
| 5 | 2010-10-08 Ludovic Courtès <ludo@gnu.org> | ||
| 6 | |||
| 7 | * gnus.texi (Finding the Parent, The Gnus Registry) | ||
| 8 | (Registry Article Refer Method): Update docs for nnregistry.el. | ||
| 9 | |||
| 10 | 2010-10-08 Daiki Ueno <ueno@unixuser.org> | ||
| 11 | |||
| 12 | * auth.texi (Help for users) | ||
| 13 | (GnuPG and EasyPG Assistant Configuration): Update docs. | ||
| 14 | |||
| 1 | 2010-10-08 Glenn Morris <rgm@gnu.org> | 15 | 2010-10-08 Glenn Morris <rgm@gnu.org> |
| 2 | 16 | ||
| 3 | * cl.texi (Organization, Installation, Old CL Compatibility): | 17 | * cl.texi (Organization, Installation, Old CL Compatibility): |
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi index ed04d98ef92..f7ee7b9f3de 100644 --- a/doc/misc/auth.texi +++ b/doc/misc/auth.texi | |||
| @@ -59,6 +59,7 @@ It is a way for multiple applications to share a single configuration | |||
| 59 | * Help for users:: | 59 | * Help for users:: |
| 60 | * Secret Service API:: | 60 | * Secret Service API:: |
| 61 | * Help for developers:: | 61 | * Help for developers:: |
| 62 | * GnuPG and EasyPG Assistant Configuration:: | ||
| 62 | * Index:: | 63 | * Index:: |
| 63 | * Function Index:: | 64 | * Function Index:: |
| 64 | * Variable Index:: | 65 | * Variable Index:: |
| @@ -176,16 +177,8 @@ for details. | |||
| 176 | 177 | ||
| 177 | If you don't customize @code{auth-sources}, you'll have to live with | 178 | If you don't customize @code{auth-sources}, you'll have to live with |
| 178 | the defaults: any host and any port are looked up in the netrc | 179 | the defaults: any host and any port are looked up in the netrc |
| 179 | file @code{~/.authinfo.gpg}. This is an encrypted file if and only if | 180 | file @code{~/.authinfo.gpg}, which is a GnuPG encrypted file. |
| 180 | you set up EPA, which is strongly recommended. | 181 | @xref{GnuPG and EasyPG Assistant Configuration}. |
| 181 | |||
| 182 | @lisp | ||
| 183 | (require 'epa-file) | ||
| 184 | (epa-file-enable) | ||
| 185 | ;;; VERY important if you want symmetric encryption | ||
| 186 | ;;; irrelevant if you don't | ||
| 187 | (setq epa-file-cache-passphrase-for-symmetric-encryption t) | ||
| 188 | @end lisp | ||
| 189 | 182 | ||
| 190 | The simplest working netrc line example is one without a port. | 183 | The simplest working netrc line example is one without a port. |
| 191 | 184 | ||
| @@ -271,6 +264,54 @@ users' netrc files. | |||
| 271 | 264 | ||
| 272 | @end defun | 265 | @end defun |
| 273 | 266 | ||
| 267 | @node GnuPG and EasyPG Assistant Configuration | ||
| 268 | @appendix GnuPG and EasyPG Assistant Configuration | ||
| 269 | |||
| 270 | In Emacs 23 or later there is an option @code{auto-encryption-mode} to | ||
| 271 | automatically decrypt @code{*.gpg} files and it is enabled by default | ||
| 272 | so there is no setting is needed. If you are using earlier versions | ||
| 273 | of Emacs for some reason, you will need: | ||
| 274 | |||
| 275 | @lisp | ||
| 276 | (require 'epa-file) | ||
| 277 | (epa-file-enable) | ||
| 278 | @end lisp | ||
| 279 | |||
| 280 | If you want your GnuPG passwords to be cached, setup @code{gpg-agent} | ||
| 281 | or EasyPG Assitant | ||
| 282 | @pxref{Caching Passphrases, , Caching Passphrases, epa} | ||
| 283 | |||
| 284 | For those who are using older vesions of Emacs, here are some portion | ||
| 285 | copied from the EasyPG Assitant manual: | ||
| 286 | |||
| 287 | Here are some questions: | ||
| 288 | |||
| 289 | @enumerate | ||
| 290 | @item Do you use GnuPG version 2 instead of GnuPG version 1? | ||
| 291 | @item Do you use symmetric encryption rather than public key encryption? | ||
| 292 | @item Do you want to use gpg-agent? | ||
| 293 | @end enumerate | ||
| 294 | |||
| 295 | Here are configurations depending on your answers: | ||
| 296 | |||
| 297 | @multitable {111} {222} {333} {configuration configuration configuration} | ||
| 298 | @item @b{1} @tab @b{2} @tab @b{3} @tab Configuration | ||
| 299 | @item Yes @tab Yes @tab Yes @tab Nothing to do. | ||
| 300 | @item Yes @tab Yes @tab No @tab You can't, without gpg-agent. | ||
| 301 | @item Yes @tab No @tab Yes @tab Nothing to do. | ||
| 302 | @item Yes @tab No @tab No @tab You can't, without gpg-agent. | ||
| 303 | @item No @tab Yes @tab Yes @tab Set up elisp passphrase cache. | ||
| 304 | @item No @tab Yes @tab No @tab Set up elisp passphrase cache. | ||
| 305 | @item No @tab No @tab Yes @tab Nothing to do. | ||
| 306 | @item No @tab No @tab No @tab You can't, without gpg-agent. | ||
| 307 | @end multitable | ||
| 308 | |||
| 309 | To setup gpg-agent, follow the instruction in GnuPG manual. | ||
| 310 | @pxref{Invoking GPG-AGENT, , Invoking GPG-AGENT, gnupg}. | ||
| 311 | |||
| 312 | To set up elisp passphrase cache, set | ||
| 313 | @code{epa-file-cache-passphrase-for-symmetric-encryption}. | ||
| 314 | |||
| 274 | @node Index | 315 | @node Index |
| 275 | @chapter Index | 316 | @chapter Index |
| 276 | @printindex cp | 317 | @printindex cp |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 1f78e8c563f..74db0e3d620 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -9812,6 +9812,10 @@ Customization, emacs-mime, The Emacs MIME Manual}) to convert the | |||
| 9812 | can use include: | 9812 | can use include: |
| 9813 | 9813 | ||
| 9814 | @table @code | 9814 | @table @code |
| 9815 | @item mm-shr | ||
| 9816 | Use Gnus simple html renderer. | ||
| 9817 | |||
| 9818 | @table @code | ||
| 9815 | @item gnus-article-html | 9819 | @item gnus-article-html |
| 9816 | Use Gnus rendered based on w3m. | 9820 | Use Gnus rendered based on w3m. |
| 9817 | 9821 | ||
| @@ -10989,9 +10993,12 @@ do not do a particularly excellent job at it. That is, @code{nnmbox}, | |||
| 10989 | @code{nnbabyl}, @code{nnmaildir}, @code{nnml}, are able to locate | 10993 | @code{nnbabyl}, @code{nnmaildir}, @code{nnml}, are able to locate |
| 10990 | articles from any groups, while @code{nnfolder}, and @code{nnimap} are | 10994 | articles from any groups, while @code{nnfolder}, and @code{nnimap} are |
| 10991 | only able to locate articles that have been posted to the current | 10995 | only able to locate articles that have been posted to the current |
| 10992 | group. (Anything else would be too time consuming.) @code{nnmh} does | 10996 | group. @code{nnmh} does not support this at all. |
| 10993 | not support this at all. | ||
| 10994 | 10997 | ||
| 10998 | Fortunately, the special @code{nnregistry} back end is able to locate | ||
| 10999 | articles in any groups, regardless of their back end (@pxref{Registry | ||
| 11000 | Article Refer Method, fetching by @code{Message-ID} using the | ||
| 11001 | registry}). | ||
| 10995 | 11002 | ||
| 10996 | @node Alternative Approaches | 11003 | @node Alternative Approaches |
| 10997 | @section Alternative Approaches | 11004 | @section Alternative Approaches |
| @@ -12452,7 +12459,7 @@ section only describes the default method. | |||
| 12452 | @item mm-text-html-renderer | 12459 | @item mm-text-html-renderer |
| 12453 | @vindex mm-text-html-renderer | 12460 | @vindex mm-text-html-renderer |
| 12454 | If set to @code{gnus-article-html}, Gnus will use the built-in method, | 12461 | If set to @code{gnus-article-html}, Gnus will use the built-in method, |
| 12455 | that's based on @code{curl} and @code{w3m}. | 12462 | that's based on @code{w3m}. |
| 12456 | 12463 | ||
| 12457 | @item gnus-blocked-images | 12464 | @item gnus-blocked-images |
| 12458 | @vindex gnus-blocked-images | 12465 | @vindex gnus-blocked-images |
| @@ -25374,6 +25381,13 @@ the sender in addition to the Message-ID. Several strategies are | |||
| 25374 | available. | 25381 | available. |
| 25375 | 25382 | ||
| 25376 | @item | 25383 | @item |
| 25384 | Refer to messages by ID | ||
| 25385 | |||
| 25386 | Commands like @code{gnus-summary-refer-parent-article} can take | ||
| 25387 | advantage of the registry to jump to the referred article, regardless | ||
| 25388 | of the group the message is in. | ||
| 25389 | |||
| 25390 | @item | ||
| 25377 | Store custom flags and keywords | 25391 | Store custom flags and keywords |
| 25378 | 25392 | ||
| 25379 | The registry can store custom flags and keywords for a message. For | 25393 | The registry can store custom flags and keywords for a message. For |
| @@ -25392,6 +25406,7 @@ of all messages matching a particular set of criteria. | |||
| 25392 | @menu | 25406 | @menu |
| 25393 | * Setup:: | 25407 | * Setup:: |
| 25394 | * Fancy splitting to parent:: | 25408 | * Fancy splitting to parent:: |
| 25409 | * Registry Article Refer Method:: | ||
| 25395 | * Store custom flags and keywords:: | 25410 | * Store custom flags and keywords:: |
| 25396 | * Store arbitrary data:: | 25411 | * Store arbitrary data:: |
| 25397 | @end menu | 25412 | @end menu |
| @@ -25468,6 +25483,42 @@ registry will keep. | |||
| 25468 | The file where the registry will be stored between Gnus sessions. | 25483 | The file where the registry will be stored between Gnus sessions. |
| 25469 | @end defvar | 25484 | @end defvar |
| 25470 | 25485 | ||
| 25486 | @node Registry Article Refer Method | ||
| 25487 | @subsection Fetching by @code{Message-ID} Using the Registry | ||
| 25488 | |||
| 25489 | The registry knows how to map each @code{Message-ID} to the group it's | ||
| 25490 | in. This can be leveraged to enhance the ``article refer method'', | ||
| 25491 | the thing that tells Gnus how to look up an article given its | ||
| 25492 | Message-ID (@pxref{Finding the Parent}). | ||
| 25493 | |||
| 25494 | @vindex nnregistry | ||
| 25495 | @vindex gnus-refer-article-method | ||
| 25496 | |||
| 25497 | The @code{nnregistry} refer method does exactly that. It has the | ||
| 25498 | advantage that an article may be found regardless of the group it's | ||
| 25499 | in---provided its @code{Message-ID} is known to the registry. It can | ||
| 25500 | be enabled by augmenting the start-up file with something along these | ||
| 25501 | lines: | ||
| 25502 | |||
| 25503 | @example | ||
| 25504 | ;; Keep enough entries to have a good hit rate when referring to an | ||
| 25505 | ;; article using the registry. Use long group names so that Gnus | ||
| 25506 | ;; knows where the article is. | ||
| 25507 | (setq gnus-registry-max-entries 2500 | ||
| 25508 | gnus-registry-use-long-group-names t) | ||
| 25509 | |||
| 25510 | (gnus-registry-initialize) | ||
| 25511 | |||
| 25512 | (setq gnus-refer-article-method | ||
| 25513 | '(current | ||
| 25514 | (nnregistry) | ||
| 25515 | (nnweb "gmane" (nnweb-type gmane)))) | ||
| 25516 | @end example | ||
| 25517 | |||
| 25518 | The example above instructs Gnus to first look up the article in the | ||
| 25519 | current group, or, alternatively, using the registry, and finally, if | ||
| 25520 | all else fails, using Gmane. | ||
| 25521 | |||
| 25471 | @node Fancy splitting to parent | 25522 | @node Fancy splitting to parent |
| 25472 | @subsection Fancy splitting to parent | 25523 | @subsection Fancy splitting to parent |
| 25473 | 25524 | ||
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) |