From 8d0f97a4a39b2624476ccc52452299fef53d1dc7 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 9 Dec 2007 04:10:26 +0000 Subject: (declare-function): Add compatibility definition. (password-read-and-add): Declare as a function. --- lisp/gnus/smime.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisp/gnus/smime.el') diff --git a/lisp/gnus/smime.el b/lisp/gnus/smime.el index 31545c16044..bd9ce5a5c46 100644 --- a/lisp/gnus/smime.el +++ b/lisp/gnus/smime.el @@ -121,6 +121,9 @@ ;;; Code: +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) (require 'dig) (or (require 'password-cache nil t) (require 'password)) @@ -257,6 +260,7 @@ must be set in `ldap-host-parameters-alist'." temporary-file-directory)))))) ;; Password dialog function +(declare-function password-read-and-add "password-cache" (prompt &optional key)) (defun smime-ask-passphrase (&optional cache-key) "Asks the passphrase to unlock the secret key. -- cgit v1.2.1