aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-06 19:35:22 +0100
committerJoakim Verona2012-12-06 19:35:22 +0100
commit2ec68e9d1e05f396fea1167f9242e23db2316ace (patch)
tree876da55df9e8c2df2d95b587d7e0ae1b243ae5b1
parentb28d85c113ff8804cdb6fd932183bc4db5914ecc (diff)
parent5b4d7e523f901916392de12fb93b80b6f472de1d (diff)
downloademacs-2ec68e9d1e05f396fea1167f9242e23db2316ace.tar.gz
emacs-2ec68e9d1e05f396fea1167f9242e23db2316ace.zip
auto upstream
-rw-r--r--doc/misc/gnus.texi4
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-start.el11
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
1581A hook called as the first thing when Gnus is started. 1581A hook called as the first thing when Gnus is started.
1582 1582
1583@item gnus-before-resume-hook
1584@vindex gnus-before-resume-hook
1585A 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
1585A hook run as the very last thing after starting up Gnus 1589A 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 @@
12012-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
12012-12-06 Katsumi Yamaoka <yamaoka@jpl.org> 62012-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.
398This hook is called as the first thing when Gnus is started." 398This hook is called as the first thing when Gnus is started.
399See 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.
405This hook is called as the first thing when Gnus is resumed after a suspend.
406See 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)