changeset 87200:ce561a765175

(declare-function): Add compatibility definition. (password-read, password-cache-add, password-cache-remove): Declare as functions.
author Glenn Morris <rgm@gnu.org>
date Sun, 09 Dec 2007 04:13:17 +0000
parents 3b5b54f14d90
children 3281ac5730e1
files lisp/gnus/sieve-manage.el
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/sieve-manage.el	Sun Dec 09 04:10:26 2007 +0000
+++ b/lisp/gnus/sieve-manage.el	Sun Dec 09 04:13:17 2007 +0000
@@ -76,6 +76,9 @@
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
 (or (require 'password-cache nil t)
     (require 'password))
 (eval-when-compile
@@ -193,6 +196,10 @@
   (when (fboundp 'set-buffer-multibyte)
     (set-buffer-multibyte nil)))
 
+(declare-function password-read         "password-cache" (prompt &optional key))
+(declare-function password-cache-add    "password-cache" (key password))
+(declare-function password-cache-remove "password-cache" (key))
+
 ;; Uses the dynamically bound `reason' variable.
 (defvar reason)
 (defun sieve-manage-interactive-login (buffer loginfunc)