diff options
| author | Joakim Verona | 2012-12-06 19:35:22 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-06 19:35:22 +0100 |
| commit | 2ec68e9d1e05f396fea1167f9242e23db2316ace (patch) | |
| tree | 876da55df9e8c2df2d95b587d7e0ae1b243ae5b1 | |
| parent | b28d85c113ff8804cdb6fd932183bc4db5914ecc (diff) | |
| parent | 5b4d7e523f901916392de12fb93b80b6f472de1d (diff) | |
| download | emacs-2ec68e9d1e05f396fea1167f9242e23db2316ace.tar.gz emacs-2ec68e9d1e05f396fea1167f9242e23db2316ace.zip | |
auto upstream
| -rw-r--r-- | doc/misc/gnus.texi | 4 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 11 |
3 files changed, 19 insertions, 1 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 280819701ef..dfc422479e3 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -1580,6 +1580,10 @@ times you start Gnus. | |||
| 1580 | @vindex gnus-before-startup-hook | 1580 | @vindex gnus-before-startup-hook |
| 1581 | A hook called as the first thing when Gnus is started. | 1581 | A hook called as the first thing when Gnus is started. |
| 1582 | 1582 | ||
| 1583 | @item gnus-before-resume-hook | ||
| 1584 | @vindex gnus-before-resume-hook | ||
| 1585 | A hook called as the first thing when Gnus is resumed after a suspend. | ||
| 1586 | |||
| 1583 | @item gnus-startup-hook | 1587 | @item gnus-startup-hook |
| 1584 | @vindex gnus-startup-hook | 1588 | @vindex gnus-startup-hook |
| 1585 | A hook run as the very last thing after starting up Gnus | 1589 | A hook run as the very last thing after starting up Gnus |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9d93b28420d..2d2d9318bd6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-06 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * gnus-start.el (gnus-before-resume-hook): Add. | ||
| 4 | (gnus-1): Run it when Gnus is alive. | ||
| 5 | |||
| 1 | 2012-12-06 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2012-12-06 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * gmm-utils.el (gmm-called-interactively-p): Restore as a macro. | 8 | * gmm-utils.el (gmm-called-interactively-p): Restore as a macro. |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index eaf17d9e579..a8b6c5b4816 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -395,7 +395,15 @@ This hook is called after Gnus is connected to the NNTP server." | |||
| 395 | 395 | ||
| 396 | (defcustom gnus-before-startup-hook nil | 396 | (defcustom gnus-before-startup-hook nil |
| 397 | "A hook called before startup. | 397 | "A hook called before startup. |
| 398 | This hook is called as the first thing when Gnus is started." | 398 | This hook is called as the first thing when Gnus is started. |
| 399 | See also `gnus-before-resume-hook'." | ||
| 400 | :group 'gnus-start | ||
| 401 | :type 'hook) | ||
| 402 | |||
| 403 | (defcustom gnus-before-resume-hook nil | ||
| 404 | "A hook called before resuming Gnus after suspend. | ||
| 405 | This hook is called as the first thing when Gnus is resumed after a suspend. | ||
| 406 | See also `gnus-before-startup-hook'." | ||
| 399 | :group 'gnus-start | 407 | :group 'gnus-start |
| 400 | :type 'hook) | 408 | :type 'hook) |
| 401 | 409 | ||
| @@ -749,6 +757,7 @@ prompt the user for the name of an NNTP server to use." | |||
| 749 | 757 | ||
| 750 | (if (gnus-alive-p) | 758 | (if (gnus-alive-p) |
| 751 | (progn | 759 | (progn |
| 760 | (gnus-run-hooks 'gnus-before-resume-hook) | ||
| 752 | (switch-to-buffer gnus-group-buffer) | 761 | (switch-to-buffer gnus-group-buffer) |
| 753 | (gnus-group-get-new-news | 762 | (gnus-group-get-new-news |
| 754 | (and (numberp arg) | 763 | (and (numberp arg) |