diff options
| author | Lars Ingebrigtsen | 2018-04-14 23:58:59 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-14 23:58:59 +0200 |
| commit | 6500684001d4d926ca1267eecf0803bb50ae680b (patch) | |
| tree | 9a7d32983e5ba5f7c73e59b31056fe105e4d21f1 | |
| parent | 4b0c425047b61b306e7775bae11bd0edd78a7c96 (diff) | |
| download | emacs-6500684001d4d926ca1267eecf0803bb50ae680b.tar.gz emacs-6500684001d4d926ca1267eecf0803bb50ae680b.zip | |
Modernise a Gnus function a bit
* lisp/gnus/gnus-start.el (gnus-update-active-hashtb-from-killed):
Modernise code a bit.
| -rw-r--r-- | lisp/gnus/gnus-start.el | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index a20a6e727db..eb19ff36f68 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -1989,15 +1989,10 @@ backend check whether the group actually exists." | |||
| 1989 | 1989 | ||
| 1990 | ;; Enter all dead groups into the hashtb. | 1990 | ;; Enter all dead groups into the hashtb. |
| 1991 | (defun gnus-update-active-hashtb-from-killed () | 1991 | (defun gnus-update-active-hashtb-from-killed () |
| 1992 | (let ((hashtb (setq gnus-active-hashtb (gnus-make-hashtable 4096))) | 1992 | (let ((hashtb (setq gnus-active-hashtb (gnus-make-hashtable 4096)))) |
| 1993 | (lists (list gnus-killed-list gnus-zombie-list)) | 1993 | (dolist (list (list gnus-killed-list gnus-zombie-list)) |
| 1994 | killed) | 1994 | (dolist (group list) |
| 1995 | (while lists | 1995 | (gnus-sethash (string-as-unibyte group) nil hashtb))))) |
| 1996 | (setq killed (car lists)) | ||
| 1997 | (while killed | ||
| 1998 | (gnus-sethash (string-as-unibyte (car killed)) nil hashtb) | ||
| 1999 | (setq killed (cdr killed))) | ||
| 2000 | (setq lists (cdr lists))))) | ||
| 2001 | 1996 | ||
| 2002 | (defun gnus-get-killed-groups () | 1997 | (defun gnus-get-killed-groups () |
| 2003 | "Go through the active hashtb and mark all unknown groups as killed." | 1998 | "Go through the active hashtb and mark all unknown groups as killed." |