diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-22 23:38:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-22 23:38:24 -0700 |
commit | cfc09582247ffef6a46b6249e2fba9136a62d21e (patch) | |
tree | 50e102f64a2b88c692d9110990abd416c78c32f0 /lisp/gnus | |
parent | 92c938895c639463681ae1c58a944cae62b70b87 (diff) | |
parent | 86c606818495d9411fd5d6b1477f9a097eb18020 (diff) | |
download | emacs-cfc09582247ffef6a46b6249e2fba9136a62d21e.tar.gz |
Merge from trunk.
Diffstat (limited to 'lisp/gnus')
-rw-r--r-- | lisp/gnus/ChangeLog | 77 | ||||
-rw-r--r-- | lisp/gnus/gnus-cite.el | 9 | ||||
-rw-r--r-- | lisp/gnus/gnus-registry.el | 33 | ||||
-rw-r--r-- | lisp/gnus/gnus-util.el | 8 | ||||
-rw-r--r-- | lisp/gnus/nnir.el | 8 | ||||
-rw-r--r-- | lisp/gnus/nnmairix.el | 7 | ||||
-rw-r--r-- | lisp/gnus/nnregistry.el | 7 |
7 files changed, 99 insertions, 50 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index cc2568a3647..592d0671c26 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,9 +1,47 @@ +2011-10-20 Chong Yidong <cyd@gnu.org> + + * gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24, + calling a minor mode from Lisp with nil arg enables it, so we have to + make the working a bit ambiguous here). + +2011-10-18 Teodor Zlatanov <tzz@lifelogs.com> + + * gnus-util.el (gnus-bound-and-true-p): Macro for XEmacs compatibility. + * nnir.el (nnir-mode): Use it. + * nnmairix.el (nnmairix-determine-original-group-from-registry): + Use it. + + * nnir.el (gnus-registry-enabled): Defvar to keep the compiler happy. + * nnmairix.el (gnus-registry-enabled): Ditto. + +2011-10-17 Dave Abrahams <dave@boostpro.com> + + * gnus-registry.el (gnus-registry-enabled): Add new variable. (Bug#9691) + (gnus-registry-install-shortcuts): Set `gnus-registry-install' to 'ask + only while we need to find out if it should be t or nil. + (gnus-registry-initialize): Don't set `gnus-registry-install' to t. + (gnus-registry-install-hooks): Set `gnus-registry-enabled' to t when + the registry is installed. Set it to nil when it's unloaded. + (gnus-registry-install-p): Provide user guidance for the initial value + of `gnus-registry-install' when it's 'ask, otherwise return its value. + * nnregistry.el (nnregistry-open-server, nnregistry-server-opened): + Use `gnus-registry-enabled' instead of `gnus-registry-install'. + * nnmairix.el (nnmairix-determine-original-group-from-registry): + Use `gnus-registry-enabled' instead of `gnus-registry-install'. + * nnir.el (nnir-mode): Use `gnus-registry-enabled' instead of + `gnus-registry-install'. + 2011-10-17 Daiki Ueno <ueno@unixuser.org> + * mml2015.el (mml2015-epg-find-usable-key): Add comment about the + previous change. + * mml1991.el (mml1991-epg-find-usable-key): Skip the whole key if the + primary key is marked as disabled. + +2011-10-17 Christian von Roques <roques@mti.ag> (tiny change) + * mml2015.el (mml2015-epg-find-usable-key): Skip the whole key if the primary key is marked as disabled. - * mml1991.el (mml1991-epg-find-usable-key): Ditto. - Thanks to Christian von Roques <roques@mti.ag>. 2011-10-11 Andreas Schwab <schwab@linux-m68k.org> @@ -13071,13 +13109,11 @@ (mml-secure-cache-passphrase): New user option. (mml-secure-passphrase-cache-expiry): New user option. -2006-07-24 Daiki Ueno <ueno@unixuser.org> +2006-07-24 David Smith <davidsmith@acm.org> (tiny change) + Andreas Vögele <andreas@altroot.de> (tiny change) - * pgg-def.el (pgg-truncate-key-identifier): Truncate the key ID to 8 - letters from the end. Thanks to "David Smith" <davidsmith@acm.org> and - andreas@altroot.de (Andreas Vögele). - - FIXME: Use `tiny change'? + * pgg-def.el (pgg-truncate-key-identifier): + Truncate the key ID to 8 letters from the end. 2006-07-19 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> @@ -19773,7 +19809,7 @@ * dns.el (dns-read-type): Add support for SVR. (small patch) -2004-05-20 Teodor Zlatanov <tzz@lifelogs.com> +2004-05-20 Adam Sjøgren <asjo@koldfront.dk> * spam.el (spam-use-crm114, spam-crm114, spam-crm114-program) (spam-crm114-header, spam-crm114-spam-switch) @@ -19790,7 +19826,8 @@ (spam-crm114-unregister-spam-routine) (spam-crm114-register-ham-routine) (spam-crm114-unregister-ham-routine): Add CRM114 support. - From asjo@koldfront.dk (Adam Sjøgren). + +2004-05-20 Teodor Zlatanov <tzz@lifelogs.com> * gnus.el: Add spam-use-crm114. @@ -19927,10 +19964,13 @@ 2004-05-18 Reiner Steib <Reiner.Steib@gmx.de> + * gnus-picon.el (gnus-picon-insert-glyph): + Add optional `nostring' argument. + +2004-05-18 Jesper Harder <harder@ifa.au.dk> + * gnus-picon.el (gnus-picon-style): New variable. - (gnus-picon-insert-glyph): Add optional `nostring' argument. (gnus-picon-transform-address): Support `gnus-picon-style'. - From Jesper Harder <harder@ifa.au.dk>. 2004-05-18 Lars Magne Ingebrigtsen <larsi@gnus.org> @@ -20189,13 +20229,10 @@ * spam-stat.el (spam-stat-score-buffer): Simplify mapcar usage. Use mapc when appropriate. -2004-04-22 Teodor Zlatanov <tzz@lifelogs.com> - - FIXME: Make separate entries for each person. - - From Dan Christensen <jdc@uwo.ca>, asjo@koldfront.dk (Adam - Sjøgren), Wes Hardaker <wes@hardakers.net>, and Michael Shields - <shields@msrl.com>: +2004-04-22 Dan Christensen <jdc@uwo.ca> + Adam Sjøgren <asjo@koldfront.dk> + Wes Hardaker <wes@hardakers.net> + Michael Shields <shields@msrl.com> * spam.el (spam-necessary-extra-headers): Get the extra headers we may need for spam sorting and scoring. @@ -20205,7 +20242,7 @@ sorting. (spam-extra-header-to-number): Add function to get a score from a header. - (spam-summary-score): Add function to get a numeric score from the + (spam-summary-score): Add function to get a numeric score from the headers. (spam-generic-score): Fix function doc, was in wrong place. (spam-initialize): Take symbols when it's run, and install the diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index d205437b811..7c36311356f 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el @@ -1224,13 +1224,8 @@ Returns nil if there is no such line before LIMIT, t otherwise." (autoload 'font-lock-set-defaults "font-lock"))) (define-minor-mode gnus-message-citation-mode - "Toggle `gnus-message-citation-mode' in current buffer. -This buffer local minor mode provides additional font-lock support for -nested citations. -With prefix ARG, turn `gnus-message-citation-mode' on if and only if ARG -is positive. -Automatically turn `font-lock-mode' on when `gnus-message-citation-mode' -is turned on." + "Minor mode providing more font-lock support for nested citations. +When enabled, it automatically turns on `font-lock-mode'." nil ;; init-value "" ;; lighter nil ;; keymap diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index f8ff52f128f..652e816e56a 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el @@ -164,6 +164,8 @@ nnmairix groups are specifically excluded because they are ephemeral." (const :tag "Always Install" t) (const :tag "Ask Me" ask))) +(defvar gnus-registry-enabled) + (defvar gnus-summary-misc-menu) ;; Avoid byte compiler warning. (defvar gnus-registry-misc-menus nil) ; ugly way to keep the menus @@ -873,8 +875,9 @@ Uses `gnus-registry-marks' to find what shortcuts to install." ;; if this is called and the user doesn't want the ;; registry enabled, we'll ask anyhow - (when (eq gnus-registry-install nil) - (setq gnus-registry-install 'ask)) + (unless gnus-registry-install + (let ((gnus-registry-install 'ask)) + (gnus-registry-install-p))) ;; now the user is asked if gnus-registry-install is 'ask (when (gnus-registry-install-p) @@ -1151,7 +1154,6 @@ only the last one's marks are returned." "Initialize the Gnus registry." (interactive) (gnus-message 5 "Initializing the registry") - (setq gnus-registry-install t) ; in case it was 'ask or nil (gnus-registry-install-hooks) (gnus-registry-install-shortcuts) (gnus-registry-read)) @@ -1160,6 +1162,7 @@ only the last one's marks are returned." (defun gnus-registry-install-hooks () "Install the registry hooks." (interactive) + (setq gnus-registry-enabled t) (add-hook 'gnus-summary-article-move-hook 'gnus-registry-action) (add-hook 'gnus-summary-article-delete-hook 'gnus-registry-action) (add-hook 'gnus-summary-article-expire-hook 'gnus-registry-action) @@ -1181,23 +1184,25 @@ only the last one's marks are returned." (remove-hook 'gnus-save-newsrc-hook 'gnus-registry-save) (remove-hook 'gnus-read-newsrc-el-hook 'gnus-registry-read) - (remove-hook 'gnus-summary-prepare-hook 'gnus-registry-register-message-ids)) + (remove-hook 'gnus-summary-prepare-hook 'gnus-registry-register-message-ids) + (setq gnus-registry-enabled nil)) (add-hook 'gnus-registry-unload-hook 'gnus-registry-unload-hook) (defun gnus-registry-install-p () + "If the registry is not already enabled, and `gnus-registry-install' is t, +the registry is enabled. If `gnus-registry-install' is `ask', +the user is asked first. Returns non-nil iff the registry is enabled." (interactive) - (when (eq gnus-registry-install 'ask) - (setq gnus-registry-install - (gnus-y-or-n-p - (concat "Enable the Gnus registry? " - "See the variable `gnus-registry-install' " - "to get rid of this query permanently. "))) - (when gnus-registry-install - ;; we just set gnus-registry-install to t, so initialize the registry! + (unless gnus-registry-enabled + (when (if (eq gnus-registry-install 'ask) + (gnus-y-or-n-p + (concat "Enable the Gnus registry? " + "See the variable `gnus-registry-install' " + "to get rid of this query permanently. ")) + gnus-registry-install) (gnus-registry-initialize))) -;;; we could call it here: (customize-variable 'gnus-registry-install) - gnus-registry-install) + gnus-registry-enabled) ;; TODO: a few things diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index e9d6ba423fd..9c5e6e8312b 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1986,6 +1986,14 @@ definitions to shadow the loaded ones for use in file byte-compilation." (gnus-macroexpand-all expanded environment))) form)))) +(eval-when-compile + ;; This is unnecessary in the compiled version as it is a macro. + (if (fboundp 'bound-and-true-p) + (defalias 'gnus-bound-and-true-p 'bound-and-true-p) + (defmacro gnus-bound-and-true-p (var) + "Return the value of symbol VAR if it is bound, else nil." + `(and (boundp (quote ,var)) ,var)))) + (provide 'gnus-util) ;;; gnus-util.el ends here diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index 0be6a17d50e..2d3c05864e8 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el @@ -290,9 +290,10 @@ is `(valuefunc member)'." (autoload 'nnimap-command "nnimap") (autoload 'nnimap-possibly-change-group "nnimap") (autoload 'nnimap-make-thread-query "nnimap") - (autoload 'gnus-registry-action "gnus-registry") - (defvar gnus-registry-install)) + (autoload 'gnus-registry-action "gnus-registry")) +;; Suppress byte-compiler warning `reference to free variable' +(defvar gnus-registry-enabled) (nnoo-declare nnir) (nnoo-define-basics nnir) @@ -1741,8 +1742,7 @@ environment unless `not-global' is non-nil." (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir) (setq gnus-summary-line-format (or nnir-summary-line-format gnus-summary-line-format)) - (when (and (boundp 'gnus-registry-install) - (eq gnus-registry-install t)) + (when (gnus-bound-and-true-p gnus-registry-enabled) (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t) (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t) (remove-hook 'gnus-summary-article-expire-hook 'gnus-registry-action t) diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 3d1ac02b6aa..1bf28c5d32f 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el @@ -603,9 +603,11 @@ Other back ends might or might not work.") nil)) ;; Silence byte-compiler. -(defvar gnus-registry-install) (autoload 'gnus-registry-get-id-key "gnus-registry") +;; Suppress byte-compiler warning `reference to free variable' +(defvar gnus-registry-enabled) + (deffoo nnmairix-request-set-mark (group actions &optional server) (when server (nnmairix-open-server server)) @@ -1636,8 +1638,7 @@ search in raw mode." (defun nnmairix-determine-original-group-from-registry (mid) "Try to determinale original group for message-id MID from the registry." - (when (and (boundp 'gnus-registry-install) - gnus-registry-install) + (when (gnus-bound-and-true-p gnus-registry-enabled) (unless (string-match "^<" mid) (set mid (concat "<" mid))) (unless (string-match ">$" mid) diff --git a/lisp/gnus/nnregistry.el b/lisp/gnus/nnregistry.el index 359050c356c..75a640a428a 100644 --- a/lisp/gnus/nnregistry.el +++ b/lisp/gnus/nnregistry.el @@ -36,8 +36,11 @@ (nnoo-declare nnregistry) +;; Suppress byte-compiler warning `reference to free variable' +(defvar gnus-registry-enabled) + (deffoo nnregistry-server-opened (server) - (eq gnus-registry-install t)) + gnus-registry-enabled) (deffoo nnregistry-close-server (server) t) @@ -46,7 +49,7 @@ nil) (deffoo nnregistry-open-server (server &optional defs) - (eq gnus-registry-install t)) + gnus-registry-enabled) (defvar nnregistry-within-nnregistry nil) |