diff options
| author | Stefan Monnier | 2012-10-23 11:06:07 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-23 11:06:07 -0400 |
| commit | d106953274d29b6be4ef7e2c442078c81a52ff2f (patch) | |
| tree | 1daf5ea3f0c8d0ed1914ba3fc339b1dd23438e20 /lisp/gnus | |
| parent | f7eac6d887b7768034e40f16dacbb0c8fb569417 (diff) | |
| download | emacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.tar.gz emacs-d106953274d29b6be4ef7e2c442078c81a52ff2f.zip | |
Cleanup uses of "-hooks".
* doc/emacs/custom.texi (Hooks):
* doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.
* lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
(nndiary-request-update-info-functions)
(nndiary-request-accept-article-functions):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
* lisp/cedet/semantic/edit.el (semantic-change-functions)
(semantic-edits-new-change-functions)
(semantic-edits-delete-change-functions)
(semantic-edits-reparse-change-functions):
* lisp/htmlfontify.el (hfy-post-html-hook):
* lisp/filesets.el (filesets-cache-fill-content-hook):
* lisp/arc-mode.el (archive-extract-hook):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
* lisp/net/rcirc.el (rcirc-sentinel-functions)
(rcirc-receive-message-functions, rcirc-activity-functions)
(rcirc-print-functions):
* lisp/net/dbus.el (dbus-event-error-functions):
* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
(checkdoc-comment-style-functions): Don't use "-hooks" suffix.
* lisp/term/sun.el (sun-raw-prefix-hooks):
* lisp/mail/sendmail.el (mail-yank-hooks):
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
Diffstat (limited to 'lisp/gnus')
| -rw-r--r-- | lisp/gnus/ChangeLog | 28 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/nndiary.el | 30 |
3 files changed, 40 insertions, 24 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index dade2b4bbe5..8cb53de85fa 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * nndiary.el (nndiary-request-create-group-functions) | ||
| 4 | (nndiary-request-update-info-functions) | ||
| 5 | (nndiary-request-accept-article-functions): | ||
| 6 | * gnus-start.el (gnus-subscribe-newsgroup-functions): Don't use | ||
| 7 | "-hooks" suffix. | ||
| 8 | |||
| 1 | 2012-10-17 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) | 9 | 2012-10-17 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change) |
| 2 | 10 | ||
| 3 | * starttls.el (starttls-extra-arguments): Doc fix. | 11 | * starttls.el (starttls-extra-arguments): Doc fix. |
| @@ -110,7 +118,7 @@ | |||
| 110 | 118 | ||
| 111 | 2012-09-05 Martin Stjernholm <mast@lysator.liu.se> | 119 | 2012-09-05 Martin Stjernholm <mast@lysator.liu.se> |
| 112 | 120 | ||
| 113 | * gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and | 121 | * gnus-demon.el (gnus-demon-init): Fix regression when IDLE is t and |
| 114 | TIME is set. | 122 | TIME is set. |
| 115 | 123 | ||
| 116 | 2012-09-05 Juri Linkov <juri@jurta.org> | 124 | 2012-09-05 Juri Linkov <juri@jurta.org> |
| @@ -571,7 +579,7 @@ | |||
| 571 | * gnus.el: Register gnus-registry functions. | 579 | * gnus.el: Register gnus-registry functions. |
| 572 | 580 | ||
| 573 | * gnus-registry.el (gnus-try-warping-via-registry): | 581 | * gnus-registry.el (gnus-try-warping-via-registry): |
| 574 | Moved here and indent. | 582 | Move here and indent. |
| 575 | 583 | ||
| 576 | * gnus-int.el (gnus-warp-to-article): | 584 | * gnus-int.el (gnus-warp-to-article): |
| 577 | Check whether the registry is enabled before warping. | 585 | Check whether the registry is enabled before warping. |
| @@ -703,7 +711,7 @@ | |||
| 703 | (message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method | 711 | (message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method |
| 704 | header to implement multi-SMTP functionality. | 712 | header to implement multi-SMTP functionality. |
| 705 | 713 | ||
| 706 | * gnus-agent.el (gnus-agent-send-mail-function): Removed. | 714 | * gnus-agent.el (gnus-agent-send-mail-function): Remove. |
| 707 | (gnus-agentize): Don't set it. | 715 | (gnus-agentize): Don't set it. |
| 708 | (gnus-agent-send-mail): Don't use it. | 716 | (gnus-agent-send-mail): Don't use it. |
| 709 | 717 | ||
| @@ -844,8 +852,8 @@ | |||
| 844 | 852 | ||
| 845 | 2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 853 | 2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 846 | 854 | ||
| 847 | * gnus-group.el (gnus-group-get-new-news): Respect | 855 | * gnus-group.el (gnus-group-get-new-news): |
| 848 | `gnus-group-use-permanent-levels', as documented (bug#11638). | 856 | Respect `gnus-group-use-permanent-levels', as documented (bug#11638). |
| 849 | 857 | ||
| 850 | 2012-06-10 Dave Abrahams <dave@boostpro.com> | 858 | 2012-06-10 Dave Abrahams <dave@boostpro.com> |
| 851 | 859 | ||
| @@ -985,7 +993,7 @@ | |||
| 985 | (shr-insert): Allow the natural width to be computed for tables again. | 993 | (shr-insert): Allow the natural width to be computed for tables again. |
| 986 | (shr-tag-table-1): Rework how the natural widths are computed by | 994 | (shr-tag-table-1): Rework how the natural widths are computed by |
| 987 | rendering the table a third time. | 995 | rendering the table a third time. |
| 988 | (shr-natural-width): Removed. | 996 | (shr-natural-width): Remove. |
| 989 | (shr-buffer-width): New function. | 997 | (shr-buffer-width): New function. |
| 990 | (shr-expand-newlines): Use it. | 998 | (shr-expand-newlines): Use it. |
| 991 | 999 | ||
| @@ -1396,8 +1404,8 @@ | |||
| 1396 | 1404 | ||
| 1397 | 2012-01-04 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) | 1405 | 2012-01-04 Wolfgang Jenkner <wjenkner@inode.at> (tiny change) |
| 1398 | 1406 | ||
| 1399 | * gnus-agent.el (gnus-agent-load-local): Recompute | 1407 | * gnus-agent.el (gnus-agent-load-local): |
| 1400 | gnus-agent-article-local on changing method. | 1408 | Recompute gnus-agent-article-local on changing method. |
| 1401 | 1409 | ||
| 1402 | 2012-01-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1410 | 2012-01-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 1403 | 1411 | ||
| @@ -1689,8 +1697,8 @@ | |||
| 1689 | 1697 | ||
| 1690 | 2011-09-27 Daiki Ueno <ueno@unixuser.org> | 1698 | 2011-09-27 Daiki Ueno <ueno@unixuser.org> |
| 1691 | 1699 | ||
| 1692 | * plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify | 1700 | * plstore.el (plstore-select-keys, plstore-encrypt-to): |
| 1693 | documentation. | 1701 | Clarify documentation. |
| 1694 | 1702 | ||
| 1695 | 2011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1703 | 2011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 1696 | 1704 | ||
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 40ee78bb695..eaf17d9e579 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -291,7 +291,9 @@ claim them." | |||
| 291 | function | 291 | function |
| 292 | (repeat function))) | 292 | (repeat function))) |
| 293 | 293 | ||
| 294 | (defcustom gnus-subscribe-newsgroup-hooks nil | 294 | (define-obsolete-variable-alias 'gnus-subscribe-newsgroup-hooks |
| 295 | 'gnus-subscribe-newsgroup-functions "24.3") | ||
| 296 | (defcustom gnus-subscribe-newsgroup-functions nil | ||
| 295 | "*Hooks run after you subscribe to a new group. | 297 | "*Hooks run after you subscribe to a new group. |
| 296 | The hooks will be called with new group's name as argument." | 298 | The hooks will be called with new group's name as argument." |
| 297 | :version "22.1" | 299 | :version "22.1" |
| @@ -639,7 +641,7 @@ the first newsgroup." | |||
| 639 | gnus-level-killed (gnus-group-entry (or next "dummy.group"))) | 641 | gnus-level-killed (gnus-group-entry (or next "dummy.group"))) |
| 640 | (gnus-request-update-group-status newsgroup 'subscribe) | 642 | (gnus-request-update-group-status newsgroup 'subscribe) |
| 641 | (gnus-message 5 "Subscribe newsgroup: %s" newsgroup) | 643 | (gnus-message 5 "Subscribe newsgroup: %s" newsgroup) |
| 642 | (run-hook-with-args 'gnus-subscribe-newsgroup-hooks newsgroup) | 644 | (run-hook-with-args 'gnus-subscribe-newsgroup-functions newsgroup) |
| 643 | t)) | 645 | t)) |
| 644 | 646 | ||
| 645 | (defun gnus-read-active-file-p () | 647 | (defun gnus-read-active-file-p () |
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el index 8752972c3c8..73dd2921b68 100644 --- a/lisp/gnus/nndiary.el +++ b/lisp/gnus/nndiary.el | |||
| @@ -179,22 +179,28 @@ In order to make this clear, here are some examples: | |||
| 179 | :group 'nndiary) | 179 | :group 'nndiary) |
| 180 | 180 | ||
| 181 | 181 | ||
| 182 | (defcustom nndiary-request-create-group-hooks nil | 182 | (define-obsolete-variable-alias 'nndiary-request-create-group-hooks |
| 183 | "*Hooks to run after `nndiary-request-create-group' is executed. | 183 | 'nndiary-request-create-group-functions "24.3") |
| 184 | The hooks will be called with the full group name as argument." | 184 | (defcustom nndiary-request-create-group-functions nil |
| 185 | "*Hook run after `nndiary-request-create-group' is executed. | ||
| 186 | The hook functions will be called with the full group name as argument." | ||
| 185 | :group 'nndiary | 187 | :group 'nndiary |
| 186 | :type 'hook) | 188 | :type 'hook) |
| 187 | 189 | ||
| 188 | (defcustom nndiary-request-update-info-hooks nil | 190 | (define-obsolete-variable-alias 'nndiary-request-update-info-hooks |
| 189 | "*Hooks to run after `nndiary-request-update-info-group' is executed. | 191 | 'nndiary-request-update-info-functions "24.3") |
| 190 | The hooks will be called with the full group name as argument." | 192 | (defcustom nndiary-request-update-info-functions nil |
| 193 | "*Hook run after `nndiary-request-update-info-group' is executed. | ||
| 194 | The hook functions will be called with the full group name as argument." | ||
| 191 | :group 'nndiary | 195 | :group 'nndiary |
| 192 | :type 'hook) | 196 | :type 'hook) |
| 193 | 197 | ||
| 194 | (defcustom nndiary-request-accept-article-hooks nil | 198 | (define-obsolete-variable-alias 'nndiary-request-accept-article-hooks |
| 195 | "*Hooks to run before accepting an article. | 199 | 'nndiary-request-accept-article-functions "24.3") |
| 200 | (defcustom nndiary-request-accept-article-functions nil | ||
| 201 | "*Hook run before accepting an article. | ||
| 196 | Executed near the beginning of `nndiary-request-accept-article'. | 202 | Executed near the beginning of `nndiary-request-accept-article'. |
| 197 | The hooks will be called with the article in the current buffer." | 203 | The hook functions will be called with the article in the current buffer." |
| 198 | :group 'nndiary | 204 | :group 'nndiary |
| 199 | :type 'hook) | 205 | :type 'hook) |
| 200 | 206 | ||
| @@ -541,7 +547,7 @@ all. This may very well take some time.") | |||
| 541 | (setcar active (apply 'min articles)) | 547 | (setcar active (apply 'min articles)) |
| 542 | (setcdr active (apply 'max articles)))) | 548 | (setcdr active (apply 'max articles)))) |
| 543 | (nnmail-save-active nndiary-group-alist nndiary-active-file) | 549 | (nnmail-save-active nndiary-group-alist nndiary-active-file) |
| 544 | (run-hook-with-args 'nndiary-request-create-group-hooks | 550 | (run-hook-with-args 'nndiary-request-create-group-functions |
| 545 | (gnus-group-prefixed-name group | 551 | (gnus-group-prefixed-name group |
| 546 | (list "nndiary" server))) | 552 | (list "nndiary" server))) |
| 547 | t)) | 553 | t)) |
| @@ -633,7 +639,7 @@ all. This may very well take some time.") | |||
| 633 | (deffoo nndiary-request-accept-article (group &optional server last) | 639 | (deffoo nndiary-request-accept-article (group &optional server last) |
| 634 | (nndiary-possibly-change-directory group server) | 640 | (nndiary-possibly-change-directory group server) |
| 635 | (nnmail-check-syntax) | 641 | (nnmail-check-syntax) |
| 636 | (run-hooks 'nndiary-request-accept-article-hooks) | 642 | (run-hooks 'nndiary-request-accept-article-functions) |
| 637 | (when (nndiary-schedule) | 643 | (when (nndiary-schedule) |
| 638 | (let (result) | 644 | (let (result) |
| 639 | (when nnmail-cache-accepted-message-ids | 645 | (when nnmail-cache-accepted-message-ids |
| @@ -804,7 +810,7 @@ all. This may very well take some time.") | |||
| 804 | (gnus-info-set-read info (gnus-update-read-articles | 810 | (gnus-info-set-read info (gnus-update-read-articles |
| 805 | (gnus-info-group info) unread t))) | 811 | (gnus-info-group info) unread t))) |
| 806 | )) | 812 | )) |
| 807 | (run-hook-with-args 'nndiary-request-update-info-hooks | 813 | (run-hook-with-args 'nndiary-request-update-info-functions |
| 808 | (gnus-info-group info)) | 814 | (gnus-info-group info)) |
| 809 | t)) | 815 | t)) |
| 810 | 816 | ||