aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-12-11 05:44:18 +0000
committerGlenn Morris2007-12-11 05:44:18 +0000
commitc7e9cfaf696803061e90ce07fc62af34046c9be6 (patch)
tree6a0b4a27a01e76ccec530302caac44e4e24710e1
parent1ffeb586a53bfad9006036f160c6321933cfd6b6 (diff)
downloademacs-c7e9cfaf696803061e90ce07fc62af34046c9be6.tar.gz
emacs-c7e9cfaf696803061e90ce07fc62af34046c9be6.zip
Add declare-function compatibility definition.
(gnus-group-decoded-name): Declare as a function.
-rw-r--r--lisp/gnus/gnus.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index bd96e52d65f..fc76fce86d7 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -30,6 +30,10 @@
30 30
31(eval '(run-hooks 'gnus-load-hook)) 31(eval '(run-hooks 'gnus-load-hook))
32 32
33;; For Emacs < 22.2.
34(eval-and-compile
35 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
36
33(eval-when-compile (require 'cl)) 37(eval-when-compile (require 'cl))
34(require 'wid-edit) 38(require 'wid-edit)
35(require 'mm-util) 39(require 'mm-util)
@@ -3736,6 +3740,8 @@ server is native)."
3736 "Return the prefix of the current group name." 3740 "Return the prefix of the current group name."
3737 (< 0 (length (gnus-group-real-prefix group)))) 3741 (< 0 (length (gnus-group-real-prefix group))))
3738 3742
3743(declare-function gnus-group-decoded-name "gnus-group" (string))
3744
3739(defun gnus-summary-buffer-name (group) 3745(defun gnus-summary-buffer-name (group)
3740 "Return the summary buffer name of GROUP." 3746 "Return the summary buffer name of GROUP."
3741 (concat "*Summary " (gnus-group-decoded-name group) "*")) 3747 (concat "*Summary " (gnus-group-decoded-name group) "*"))