From c7e9cfaf696803061e90ce07fc62af34046c9be6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 11 Dec 2007 05:44:18 +0000 Subject: [PATCH] Add declare-function compatibility definition. (gnus-group-decoded-name): Declare as a function. --- lisp/gnus/gnus.el | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ (eval '(run-hooks 'gnus-load-hook)) +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) + (eval-when-compile (require 'cl)) (require 'wid-edit) (require 'mm-util) @@ -3736,6 +3740,8 @@ server is native)." "Return the prefix of the current group name." (< 0 (length (gnus-group-real-prefix group)))) +(declare-function gnus-group-decoded-name "gnus-group" (string)) + (defun gnus-summary-buffer-name (group) "Return the summary buffer name of GROUP." (concat "*Summary " (gnus-group-decoded-name group) "*")) -- 2.39.2