diff options
| author | Katsumi Yamaoka | 2010-08-14 22:14:02 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-14 22:14:02 +0000 |
| commit | ab731e1cf3567059a906879c4e53306fa153c4c8 (patch) | |
| tree | ecab677a09d39cf9c2c6df58a79d7bbaf9d6d1ff /lisp | |
| parent | e1025755d2f31ef51a475db92d188d66cc2a52f4 (diff) | |
| download | emacs-ab731e1cf3567059a906879c4e53306fa153c4c8.tar.gz emacs-ab731e1cf3567059a906879c4e53306fa153c4c8.zip | |
Typo fix "hoo4a" -> "hook".
From Ted Zlatanov <tzz@lifelogs.com>.
* gnus-sync.el (gnus-sync-install-hooks): Typo fix.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sync.el | 26 |
2 files changed, 17 insertions, 15 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index eef77da20ab..5fa2c87e331 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-08-14 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | Typo fix "hoo4a" -> "hook". | ||
| 4 | |||
| 5 | * gnus-sync.el (gnus-sync-install-hooks): Typo fix. | ||
| 6 | |||
| 1 | 2010-08-14 Glenn Morris <rgm@gnu.org> | 7 | 2010-08-14 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * gnus-sync.el (gnus-sync): Fix defgroup version. | 9 | * gnus-sync.el (gnus-sync): Fix defgroup version. |
diff --git a/lisp/gnus/gnus-sync.el b/lisp/gnus/gnus-sync.el index e68b3d82dbd..ce43bbcf849 100644 --- a/lisp/gnus/gnus-sync.el +++ b/lisp/gnus/gnus-sync.el | |||
| @@ -95,20 +95,16 @@ synchronized, I believe). Also see `gnus-variable-list'." | |||
| 95 | ;; populate gnus-sync-newsrc-loader from all but the first dummy | 95 | ;; populate gnus-sync-newsrc-loader from all but the first dummy |
| 96 | ;; entry in gnus-newsrc-alist whose group matches any of the | 96 | ;; entry in gnus-newsrc-alist whose group matches any of the |
| 97 | ;; gnus-sync-newsrc-groups | 97 | ;; gnus-sync-newsrc-groups |
| 98 | (let* ((loader | 98 | ;; TODO: keep the old contents for groups we don't have! |
| 99 | (loop for entry in (cdr gnus-newsrc-alist) | 99 | (let ((gnus-sync-newsrc-loader |
| 100 | when (gnus-grep-in-list | 100 | (loop for entry in (cdr gnus-newsrc-alist) |
| 101 | (car entry) ;the group name | 101 | when (gnus-grep-in-list |
| 102 | gnus-sync-newsrc-groups) | 102 | (car entry) ;the group name |
| 103 | collect (cons (car entry) | 103 | gnus-sync-newsrc-groups) |
| 104 | (mapcar (lambda (offset) | 104 | collect (cons (car entry) |
| 105 | (cons offset (nth offset entry))) | 105 | (mapcar (lambda (offset) |
| 106 | gnus-sync-newsrc-offsets)))) | 106 | (cons offset (nth offset entry))) |
| 107 | (gnus-sync-newsrc-loader | 107 | gnus-sync-newsrc-offsets))))) |
| 108 | (nunion loader | ||
| 109 | (set-difference gnus-sync-newsrc-loader loader :key 'car) | ||
| 110 | :key 'car))) | ||
| 111 | |||
| 112 | (with-temp-file gnus-sync-backend | 108 | (with-temp-file gnus-sync-backend |
| 113 | (progn | 109 | (progn |
| 114 | (let ((coding-system-for-write gnus-ding-file-coding-system) | 110 | (let ((coding-system-for-write gnus-ding-file-coding-system) |
| @@ -216,7 +212,7 @@ synchronized, I believe). Also see `gnus-variable-list'." | |||
| 216 | (interactive) | 212 | (interactive) |
| 217 | ;; (add-hook 'gnus-get-new-news-hook 'gnus-sync-read) | 213 | ;; (add-hook 'gnus-get-new-news-hook 'gnus-sync-read) |
| 218 | (add-hook 'gnus-save-newsrc-hook 'gnus-sync-save) | 214 | (add-hook 'gnus-save-newsrc-hook 'gnus-sync-save) |
| 219 | (add-hook 'gnus-read-newsrc-el-hoo4a 'gnus-sync-read)) | 215 | (add-hook 'gnus-read-newsrc-el-hook 'gnus-sync-read)) |
| 220 | 216 | ||
| 221 | (defun gnus-sync-unload-hook () | 217 | (defun gnus-sync-unload-hook () |
| 222 | "Uninstall the sync hooks." | 218 | "Uninstall the sync hooks." |