diff options
| author | Julien Danjou | 2012-08-05 22:02:24 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-08-05 22:02:24 +0000 |
| commit | 7d3d9073baab38d909f28c2d5fffee2ab61b8f56 (patch) | |
| tree | 2401b9a5655852b21f08e9d96d36c97eff91a88e | |
| parent | 9927964e69939e46c74148b2087f4ccc0e63c98a (diff) | |
| download | emacs-7d3d9073baab38d909f28c2d5fffee2ab61b8f56.tar.gz emacs-7d3d9073baab38d909f28c2d5fffee2ab61b8f56.zip | |
gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): Add autoload
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-demon.el | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d7bedfb3260..e011396263c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-05 Julien Danjou <julien@danjou.info> | ||
| 2 | |||
| 3 | * gnus-demon.el (gnus-demon-add-handler, gnus-demon-remove-handler): | ||
| 4 | Add autoload. | ||
| 5 | |||
| 1 | 2012-07-31 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2012-07-31 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * gnus.el (gnus-valid-select-methods): Fix custom type. | 8 | * gnus.el (gnus-valid-select-methods): Fix custom type. |
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el index 115c5777448..81529b7f6be 100644 --- a/lisp/gnus/gnus-demon.el +++ b/lisp/gnus/gnus-demon.el | |||
| @@ -77,6 +77,7 @@ Emacs has been idle for IDLE `gnus-demon-timestep's." | |||
| 77 | 77 | ||
| 78 | ;;; Functions. | 78 | ;;; Functions. |
| 79 | 79 | ||
| 80 | ;;;###autoload | ||
| 80 | (defun gnus-demon-add-handler (function time idle) | 81 | (defun gnus-demon-add-handler (function time idle) |
| 81 | "Add the handler FUNCTION to be run at TIME and IDLE." | 82 | "Add the handler FUNCTION to be run at TIME and IDLE." |
| 82 | ;; First remove any old handlers that use this function. | 83 | ;; First remove any old handlers that use this function. |
| @@ -85,6 +86,7 @@ Emacs has been idle for IDLE `gnus-demon-timestep's." | |||
| 85 | (push (list function time idle) gnus-demon-handlers) | 86 | (push (list function time idle) gnus-demon-handlers) |
| 86 | (gnus-demon-init)) | 87 | (gnus-demon-init)) |
| 87 | 88 | ||
| 89 | ;;;###autoload | ||
| 88 | (defun gnus-demon-remove-handler (function &optional no-init) | 90 | (defun gnus-demon-remove-handler (function &optional no-init) |
| 89 | "Remove the handler FUNCTION from the list of handlers." | 91 | "Remove the handler FUNCTION from the list of handlers." |
| 90 | (gnus-alist-pull function gnus-demon-handlers) | 92 | (gnus-alist-pull function gnus-demon-handlers) |