mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 145-148) - Merge from emacs--devo--0 - Update from CVS 2006-10-04 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/gnus-sum.el (gnus-summary-make-menu-bar): Clarify gnus-summary-limit-to-articles. 2006-10-04 Romain Francoise <romain@orebokech.com> * lisp/gnus/gnus-util.el (gnus-alist-to-hashtable, gnus-hashtable-to-alist): Moved here (and renamed) from gnus-registry.el. * lisp/gnus/gnus-registry.el: Require gnus-util. Use `gnus-alist-to-hashtable' and `gnus-hashtable-to-alist'. 2006-10-04 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/pop3.el (pop3-authentication-scheme): Clarify doc. (pop3-movemail): Warn about pop3-leave-mail-on-server. 2006-10-04 Dave Love <fx@gnu.org> * lisp/gnus/pop3.el (pop3-authentication-scheme): Add custom version. 2006-10-04 Jesper Harder <harder@ifa.au.dk> * lisp/gnus/pop3.el (pop3-leave-mail-on-server): Don't quote nil in doc string. Improve doc string. 2006-10-03 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-util.el (gnus-with-local-quit): New macro. * lisp/gnus/gnus-demon.el (gnus-demon): Replace with-local-quit with it. 2006-10-06 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi (Image Enhancements): Update for Emacs 22. * man/gnus-faq.texi ([1.3]): Update. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-466
This commit is contained in:
parent
562204a9fb
commit
996aa8c1e6
10 changed files with 457 additions and 399 deletions
|
|
@ -60,6 +60,7 @@
|
|||
(require 'gnus)
|
||||
(require 'gnus-int)
|
||||
(require 'gnus-sum)
|
||||
(require 'gnus-util)
|
||||
(require 'nnmail)
|
||||
|
||||
(defvar gnus-registry-dirty t
|
||||
|
|
@ -243,7 +244,8 @@ way."
|
|||
(gnus-registry-clean-empty-function))
|
||||
;; now trim the registry appropriately
|
||||
(setq gnus-registry-alist (gnus-registry-trim
|
||||
(hashtable-to-alist gnus-registry-hashtb)))
|
||||
(gnus-hashtable-to-alist
|
||||
gnus-registry-hashtb)))
|
||||
;; really save
|
||||
(gnus-registry-cache-save)
|
||||
(setq gnus-registry-entry-caching caching)
|
||||
|
|
@ -262,7 +264,7 @@ way."
|
|||
|
||||
(defun gnus-registry-read ()
|
||||
(gnus-registry-cache-read)
|
||||
(setq gnus-registry-hashtb (alist-to-hashtable gnus-registry-alist))
|
||||
(setq gnus-registry-hashtb (gnus-alist-to-hashtable gnus-registry-alist))
|
||||
(setq gnus-registry-dirty nil))
|
||||
|
||||
(defun gnus-registry-trim (alist)
|
||||
|
|
@ -290,26 +292,6 @@ way."
|
|||
(cdr (gethash (car a) timehash))
|
||||
(cdr (gethash (car b) timehash))))))))))
|
||||
|
||||
(defun alist-to-hashtable (alist)
|
||||
"Build a hashtable from the values in ALIST."
|
||||
(let ((ht (make-hash-table
|
||||
:size 4096
|
||||
:test 'equal)))
|
||||
(mapc
|
||||
(lambda (kv-pair)
|
||||
(puthash (car kv-pair) (cdr kv-pair) ht))
|
||||
alist)
|
||||
ht))
|
||||
|
||||
(defun hashtable-to-alist (hash)
|
||||
"Build an alist from the values in HASH."
|
||||
(let ((list nil))
|
||||
(maphash
|
||||
(lambda (key value)
|
||||
(setq list (cons (cons key value) list)))
|
||||
hash)
|
||||
list))
|
||||
|
||||
(defun gnus-registry-action (action data-header from &optional to method)
|
||||
(let* ((id (mail-header-id data-header))
|
||||
(subject (gnus-registry-simplify-subject
|
||||
|
|
@ -660,7 +642,7 @@ Returns the first place where the trail finds a group name."
|
|||
"Clear the Gnus registry."
|
||||
(interactive)
|
||||
(setq gnus-registry-alist nil)
|
||||
(setq gnus-registry-hashtb (alist-to-hashtable gnus-registry-alist))
|
||||
(setq gnus-registry-hashtb (gnus-alist-to-hashtable gnus-registry-alist))
|
||||
(setq gnus-registry-dirty t))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue