diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 24 | ||||
| -rw-r--r-- | lisp/gnus/gnus-agent.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-cus.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-eform.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-kill.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-salt.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-srvr.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 7 |
11 files changed, 46 insertions, 20 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 90a86b06f44..16db594bf01 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,27 @@ | |||
| 1 | 2005-05-30 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-agent.el (gnus-category-mode): Use gnus-run-mode-hooks. | ||
| 4 | |||
| 5 | * gnus-art.el (gnus-article-mode): Use gnus-run-mode-hooks. | ||
| 6 | |||
| 7 | * gnus-cus.el (gnus-custom-mode): Use gnus-run-mode-hooks. | ||
| 8 | |||
| 9 | * gnus-eform.el (gnus-edit-form-mode): Use gnus-run-mode-hooks. | ||
| 10 | |||
| 11 | * gnus-group.el (gnus-group-mode): Use gnus-run-mode-hooks. | ||
| 12 | |||
| 13 | * gnus-kill.el (gnus-kill-file-mode): Use gnus-run-mode-hooks. | ||
| 14 | |||
| 15 | * gnus-salt.el (gnus-tree-mode): Use gnus-run-mode-hooks. | ||
| 16 | (gnus-carpal-mode): Ditto. | ||
| 17 | |||
| 18 | * gnus-srvr.el (gnus-server-mode): Use gnus-run-mode-hooks. | ||
| 19 | (gnus-browse-mode): Ditto. | ||
| 20 | |||
| 21 | * gnus-sum.el (gnus-summary-mode): Use gnus-run-mode-hooks. | ||
| 22 | |||
| 23 | * gnus-util.el (gnus-run-mode-hooks): Save current buffer. | ||
| 24 | |||
| 1 | 2005-05-29 Richard M. Stallman <rms@gnu.org> | 25 | 2005-05-29 Richard M. Stallman <rms@gnu.org> |
| 2 | 26 | ||
| 3 | * gnus-cite.el (gnus-cite-add-face): Set overlay's evaporate property. | 27 | * gnus-cite.el (gnus-cite-add-face): Set overlay's evaporate property. |
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el index ff09f3bcb19..3d353d1ba56 100644 --- a/lisp/gnus/gnus-agent.el +++ b/lisp/gnus/gnus-agent.el | |||
| @@ -2552,7 +2552,7 @@ The following commands are available: | |||
| 2552 | (buffer-disable-undo) | 2552 | (buffer-disable-undo) |
| 2553 | (setq truncate-lines t) | 2553 | (setq truncate-lines t) |
| 2554 | (setq buffer-read-only t) | 2554 | (setq buffer-read-only t) |
| 2555 | (gnus-run-hooks 'gnus-category-mode-hook)) | 2555 | (gnus-run-mode-hooks 'gnus-category-mode-hook)) |
| 2556 | 2556 | ||
| 2557 | (defalias 'gnus-category-position-point 'gnus-goto-colon) | 2557 | (defalias 'gnus-category-position-point 'gnus-goto-colon) |
| 2558 | 2558 | ||
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 5d0e7835d7f..70096b58729 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -3742,7 +3742,7 @@ commands: | |||
| 3742 | (setq buffer-read-only t) | 3742 | (setq buffer-read-only t) |
| 3743 | (set-syntax-table gnus-article-mode-syntax-table) | 3743 | (set-syntax-table gnus-article-mode-syntax-table) |
| 3744 | (mm-enable-multibyte) | 3744 | (mm-enable-multibyte) |
| 3745 | (gnus-run-hooks 'gnus-article-mode-hook)) | 3745 | (gnus-run-mode-hooks 'gnus-article-mode-hook)) |
| 3746 | 3746 | ||
| 3747 | (defun gnus-article-setup-buffer () | 3747 | (defun gnus-article-setup-buffer () |
| 3748 | "Initialize the article buffer." | 3748 | "Initialize the article buffer." |
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el index 4388db5c9e5..0c31ea9dd1b 100644 --- a/lisp/gnus/gnus-cus.el +++ b/lisp/gnus/gnus-cus.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; gnus-cus.el --- customization commands for Gnus | 1 | ;;; gnus-cus.el --- customization commands for Gnus |
| 2 | ;; | 2 | ;; |
| 3 | ;; Copyright (C) 1996, 1999, 2000, 2001, 2002, 2003, 2004 | 3 | ;; Copyright (C) 1996, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 6 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| @@ -67,7 +67,7 @@ if that value is non-nil." | |||
| 67 | (set (make-local-variable 'widget-push-button-suffix) "") | 67 | (set (make-local-variable 'widget-push-button-suffix) "") |
| 68 | (set (make-local-variable 'widget-link-prefix) "") | 68 | (set (make-local-variable 'widget-link-prefix) "") |
| 69 | (set (make-local-variable 'widget-link-suffix) "")) | 69 | (set (make-local-variable 'widget-link-suffix) "")) |
| 70 | (gnus-run-hooks 'gnus-custom-mode-hook)) | 70 | (gnus-run-mode-hooks 'gnus-custom-mode-hook)) |
| 71 | 71 | ||
| 72 | ;;; Group Customization: | 72 | ;;; Group Customization: |
| 73 | 73 | ||
diff --git a/lisp/gnus/gnus-eform.el b/lisp/gnus/gnus-eform.el index ae5debaff01..b1e83eab7ec 100644 --- a/lisp/gnus/gnus-eform.el +++ b/lisp/gnus/gnus-eform.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; gnus-eform.el --- a mode for editing forms for Gnus | 1 | ;;; gnus-eform.el --- a mode for editing forms for Gnus |
| 2 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2004 | 2 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2004, 2005 |
| 3 | ;; Free Software Foundation, Inc. | 3 | ;; Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -83,7 +83,7 @@ It is a slightly enhanced emacs-lisp-mode. | |||
| 83 | (use-local-map gnus-edit-form-mode-map) | 83 | (use-local-map gnus-edit-form-mode-map) |
| 84 | (make-local-variable 'gnus-edit-form-done-function) | 84 | (make-local-variable 'gnus-edit-form-done-function) |
| 85 | (make-local-variable 'gnus-prev-winconf) | 85 | (make-local-variable 'gnus-prev-winconf) |
| 86 | (gnus-run-hooks 'gnus-edit-form-mode-hook)) | 86 | (gnus-run-mode-hooks 'gnus-edit-form-mode-hook)) |
| 87 | 87 | ||
| 88 | (defun gnus-edit-form (form documentation exit-func) | 88 | (defun gnus-edit-form (form documentation exit-func) |
| 89 | "Edit FORM in a new buffer. | 89 | "Edit FORM in a new buffer. |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 30b7fe68dd1..44d59729b6f 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; gnus-group.el --- group mode commands for Gnus | 1 | ;;; gnus-group.el --- group mode commands for Gnus |
| 2 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | 2 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| 3 | ;; Free Software Foundation, Inc. | 3 | ;; Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -1042,7 +1042,7 @@ The following commands are available: | |||
| 1042 | (gnus-undo-mode 1)) | 1042 | (gnus-undo-mode 1)) |
| 1043 | (when gnus-slave | 1043 | (when gnus-slave |
| 1044 | (gnus-slave-mode)) | 1044 | (gnus-slave-mode)) |
| 1045 | (gnus-run-hooks 'gnus-group-mode-hook)) | 1045 | (gnus-run-mode-hooks 'gnus-group-mode-hook)) |
| 1046 | 1046 | ||
| 1047 | (defun gnus-update-group-mark-positions () | 1047 | (defun gnus-update-group-mark-positions () |
| 1048 | (save-excursion | 1048 | (save-excursion |
diff --git a/lisp/gnus/gnus-kill.el b/lisp/gnus/gnus-kill.el index 7b04422b36c..e35ee0858b4 100644 --- a/lisp/gnus/gnus-kill.el +++ b/lisp/gnus/gnus-kill.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; gnus-kill.el --- kill commands for Gnus | 1 | ;;; gnus-kill.el --- kill commands for Gnus |
| 2 | ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003 | 2 | ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
| 3 | ;; Free Software Foundation, Inc. | 3 | ;; Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> | 5 | ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> |
| @@ -161,7 +161,7 @@ gnus-kill-file-mode-hook with no arguments, if that value is non-nil." | |||
| 161 | (setq major-mode 'gnus-kill-file-mode) | 161 | (setq major-mode 'gnus-kill-file-mode) |
| 162 | (setq mode-name "Kill") | 162 | (setq mode-name "Kill") |
| 163 | (lisp-mode-variables nil) | 163 | (lisp-mode-variables nil) |
| 164 | (gnus-run-hooks 'emacs-lisp-mode-hook 'gnus-kill-file-mode-hook)) | 164 | (gnus-run-mode-hooks 'emacs-lisp-mode-hook 'gnus-kill-file-mode-hook)) |
| 165 | 165 | ||
| 166 | (defun gnus-kill-file-edit-file (newsgroup) | 166 | (defun gnus-kill-file-edit-file (newsgroup) |
| 167 | "Begin editing a kill file for NEWSGROUP. | 167 | "Begin editing a kill file for NEWSGROUP. |
diff --git a/lisp/gnus/gnus-salt.el b/lisp/gnus/gnus-salt.el index 0f4984112f5..f3ad1546993 100644 --- a/lisp/gnus/gnus-salt.el +++ b/lisp/gnus/gnus-salt.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; gnus-salt.el --- alternate summary mode interfaces for Gnus | 1 | ;;; gnus-salt.el --- alternate summary mode interfaces for Gnus |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2001 | 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2004, 2005 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -496,7 +496,7 @@ Two predefined functions are available: | |||
| 496 | (gnus-set-work-buffer) | 496 | (gnus-set-work-buffer) |
| 497 | (gnus-tree-node-insert (make-mail-header "") nil) | 497 | (gnus-tree-node-insert (make-mail-header "") nil) |
| 498 | (setq gnus-tree-node-length (1- (point)))) | 498 | (setq gnus-tree-node-length (1- (point)))) |
| 499 | (gnus-run-hooks 'gnus-tree-mode-hook)) | 499 | (gnus-run-mode-hooks 'gnus-tree-mode-hook)) |
| 500 | 500 | ||
| 501 | (defun gnus-tree-read-summary-keys (&optional arg) | 501 | (defun gnus-tree-read-summary-keys (&optional arg) |
| 502 | "Read a summary buffer key sequence and execute it." | 502 | "Read a summary buffer key sequence and execute it." |
| @@ -1009,7 +1009,7 @@ The following commands are available: | |||
| 1009 | (buffer-disable-undo) | 1009 | (buffer-disable-undo) |
| 1010 | (setq buffer-read-only t) | 1010 | (setq buffer-read-only t) |
| 1011 | (make-local-variable 'gnus-carpal-attached-buffer) | 1011 | (make-local-variable 'gnus-carpal-attached-buffer) |
| 1012 | (gnus-run-hooks 'gnus-carpal-mode-hook)) | 1012 | (gnus-run-mode-hooks 'gnus-carpal-mode-hook)) |
| 1013 | 1013 | ||
| 1014 | (defun gnus-carpal-setup-buffer (type) | 1014 | (defun gnus-carpal-setup-buffer (type) |
| 1015 | (let ((buffer (symbol-value (intern (format "gnus-carpal-%s-buffer" type))))) | 1015 | (let ((buffer (symbol-value (intern (format "gnus-carpal-%s-buffer" type))))) |
diff --git a/lisp/gnus/gnus-srvr.el b/lisp/gnus/gnus-srvr.el index 7b3c033fddb..1c2ba9447ff 100644 --- a/lisp/gnus/gnus-srvr.el +++ b/lisp/gnus/gnus-srvr.el | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | ;;; gnus-srvr.el --- virtual server support for Gnus | 1 | ;;; gnus-srvr.el --- virtual server support for Gnus |
| 2 | ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | 2 | ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, |
| 3 | ;; 2004, 2005 | ||
| 3 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 4 | 5 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -269,7 +270,7 @@ The following commands are available: | |||
| 269 | (put 'gnus-server-mode 'font-lock-defaults '(gnus-server-font-lock-keywords t)) | 270 | (put 'gnus-server-mode 'font-lock-defaults '(gnus-server-font-lock-keywords t)) |
| 270 | (set (make-local-variable 'font-lock-defaults) | 271 | (set (make-local-variable 'font-lock-defaults) |
| 271 | '(gnus-server-font-lock-keywords t))) | 272 | '(gnus-server-font-lock-keywords t))) |
| 272 | (gnus-run-hooks 'gnus-server-mode-hook)) | 273 | (gnus-run-mode-hooks 'gnus-server-mode-hook)) |
| 273 | 274 | ||
| 274 | (defun gnus-server-insert-server-line (gnus-tmp-name method) | 275 | (defun gnus-server-insert-server-line (gnus-tmp-name method) |
| 275 | (let* ((gnus-tmp-how (car method)) | 276 | (let* ((gnus-tmp-how (car method)) |
| @@ -849,7 +850,7 @@ buffer. | |||
| 849 | (setq truncate-lines t) | 850 | (setq truncate-lines t) |
| 850 | (gnus-set-default-directory) | 851 | (gnus-set-default-directory) |
| 851 | (setq buffer-read-only t) | 852 | (setq buffer-read-only t) |
| 852 | (gnus-run-hooks 'gnus-browse-mode-hook)) | 853 | (gnus-run-mode-hooks 'gnus-browse-mode-hook)) |
| 853 | 854 | ||
| 854 | (defun gnus-browse-read-group (&optional no-article number) | 855 | (defun gnus-browse-read-group (&optional no-article number) |
| 855 | "Enter the group at the current line. | 856 | "Enter the group at the current line. |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 17cb1ea2a6b..fd44e475ddd 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -2722,7 +2722,7 @@ The following commands are available: | |||
| 2722 | (make-local-variable 'gnus-summary-mark-positions) | 2722 | (make-local-variable 'gnus-summary-mark-positions) |
| 2723 | (gnus-make-local-hook 'pre-command-hook) | 2723 | (gnus-make-local-hook 'pre-command-hook) |
| 2724 | (add-hook 'pre-command-hook 'gnus-set-global-variables nil t) | 2724 | (add-hook 'pre-command-hook 'gnus-set-global-variables nil t) |
| 2725 | (gnus-run-hooks 'gnus-summary-mode-hook) | 2725 | (gnus-run-mode-hooks 'gnus-summary-mode-hook) |
| 2726 | (turn-on-gnus-mailing-list-mode) | 2726 | (turn-on-gnus-mailing-list-mode) |
| 2727 | (mm-enable-multibyte) | 2727 | (mm-enable-multibyte) |
| 2728 | (gnus-update-format-specifications nil 'summary 'summary-mode 'summary-dummy) | 2728 | (gnus-update-format-specifications nil 'summary 'summary-mode 'summary-dummy) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 9e409001cf0..0f92c1fc189 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1016,10 +1016,11 @@ ARG is passed to the first function." | |||
| 1016 | (apply 'run-hooks funcs))) | 1016 | (apply 'run-hooks funcs))) |
| 1017 | 1017 | ||
| 1018 | (defun gnus-run-mode-hooks (&rest funcs) | 1018 | (defun gnus-run-mode-hooks (&rest funcs) |
| 1019 | "Run `run-mode-hooks' if it is available. Otherwise run `run-hooks'." | 1019 | "Run `run-mode-hooks' if it is available, otherwise `run-hooks'. |
| 1020 | This function saves the current buffer." | ||
| 1020 | (if (fboundp 'run-mode-hooks) | 1021 | (if (fboundp 'run-mode-hooks) |
| 1021 | (apply 'run-mode-hooks funcs) | 1022 | (save-current-buffer (apply 'run-mode-hooks funcs)) |
| 1022 | (apply 'run-hooks funcs))) | 1023 | (save-current-buffer (apply 'run-hooks funcs)))) |
| 1023 | 1024 | ||
| 1024 | ;;; Various | 1025 | ;;; Various |
| 1025 | 1026 | ||