diff options
| author | Miles Bader | 2005-05-27 04:08:12 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-05-27 04:08:12 +0000 |
| commit | b4e8a25b8afdaed88fc62a0e222bc9b2ff686a6e (patch) | |
| tree | 2915db1aa3f0a996b4f7418f014d24064b1114f0 | |
| parent | 6b6f91b357f6fe2f1e0d72f046a1b8d8a2d6d8c3 (diff) | |
| download | emacs-b4e8a25b8afdaed88fc62a0e222bc9b2ff686a6e.tar.gz emacs-b4e8a25b8afdaed88fc62a0e222bc9b2ff686a6e.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-330
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 71-73)
- Merge from emacs--cvs-trunk--0
- Update from CVS
2005-05-27 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-util.el (gnus-run-mode-hooks): New function.
* lisp/gnus/score-mode.el (gnus-score-mode): Use gnus-run-mode-hooks.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/score-mode.el | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 84d38f3ff33..a5e1ccb3f7f 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-05-27 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-run-mode-hooks): New function. | ||
| 4 | |||
| 5 | * score-mode.el (gnus-score-mode): Use gnus-run-mode-hooks. | ||
| 6 | |||
| 1 | 2005-05-26 Luc Teirlinck <teirllm@auburn.edu> | 7 | 2005-05-26 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 8 | ||
| 3 | * gnus-agent.el (gnus-agent-make-mode-line-string): | 9 | * gnus-agent.el (gnus-agent-make-mode-line-string): |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 237e0507775..9e409001cf0 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1015,6 +1015,12 @@ ARG is passed to the first function." | |||
| 1015 | (save-current-buffer | 1015 | (save-current-buffer |
| 1016 | (apply 'run-hooks funcs))) | 1016 | (apply 'run-hooks funcs))) |
| 1017 | 1017 | ||
| 1018 | (defun gnus-run-mode-hooks (&rest funcs) | ||
| 1019 | "Run `run-mode-hooks' if it is available. Otherwise run `run-hooks'." | ||
| 1020 | (if (fboundp 'run-mode-hooks) | ||
| 1021 | (apply 'run-mode-hooks funcs) | ||
| 1022 | (apply 'run-hooks funcs))) | ||
| 1023 | |||
| 1018 | ;;; Various | 1024 | ;;; Various |
| 1019 | 1025 | ||
| 1020 | (defvar gnus-group-buffer) ; Compiler directive | 1026 | (defvar gnus-group-buffer) ; Compiler directive |
diff --git a/lisp/gnus/score-mode.el b/lisp/gnus/score-mode.el index 4d5d293d398..c537012a422 100644 --- a/lisp/gnus/score-mode.el +++ b/lisp/gnus/score-mode.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; score-mode.el --- mode for editing Gnus score files | 1 | ;;; score-mode.el --- mode for editing Gnus score files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 2001, 2004 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996, 2001, 2004, 2005 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 6 | ;; Keywords: news, mail | 6 | ;; Keywords: news, mail |
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | (eval-when-compile (require 'cl)) | 29 | (eval-when-compile (require 'cl)) |
| 30 | (require 'mm-util) ; for mm-universal-coding-system | 30 | (require 'mm-util) ; for mm-universal-coding-system |
| 31 | (require 'gnus-util) ; for gnus-pp | 31 | (require 'gnus-util) ; for gnus-pp, gnus-run-mode-hooks |
| 32 | 32 | ||
| 33 | (defvar gnus-score-mode-hook nil | 33 | (defvar gnus-score-mode-hook nil |
| 34 | "*Hook run in score mode buffers.") | 34 | "*Hook run in score mode buffers.") |
| @@ -71,7 +71,7 @@ This mode is an extended emacs-lisp mode. | |||
| 71 | (setq mode-name "Score") | 71 | (setq mode-name "Score") |
| 72 | (lisp-mode-variables nil) | 72 | (lisp-mode-variables nil) |
| 73 | (make-local-variable 'gnus-score-edit-exit-function) | 73 | (make-local-variable 'gnus-score-edit-exit-function) |
| 74 | (run-mode-hooks 'emacs-lisp-mode-hook 'gnus-score-mode-hook)) | 74 | (gnus-run-mode-hooks 'emacs-lisp-mode-hook 'gnus-score-mode-hook)) |
| 75 | 75 | ||
| 76 | (defun gnus-score-make-menu-bar () | 76 | (defun gnus-score-make-menu-bar () |
| 77 | (unless (boundp 'gnus-score-menu) | 77 | (unless (boundp 'gnus-score-menu) |