changeset 87198:f8d4c0a1f1ab

(declare-function): Add compatibility definition. (password-read-and-add): Declare as a function.
author Glenn Morris <rgm@gnu.org>
date Sun, 09 Dec 2007 04:09:30 +0000
parents 179f9af85230
children 3b5b54f14d90
files lisp/gnus/smime.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/smime.el	Sun Dec 09 02:18:04 2007 +0000
+++ b/lisp/gnus/smime.el	Sun Dec 09 04:09:30 2007 +0000
@@ -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 @@
 	   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.