]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix auth-source-epa-make-gpg-token compilation (bug#21724)
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 22 Oct 2015 23:55:31 +0000 (23:55 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 22 Oct 2015 23:55:31 +0000 (23:55 +0000)
* lisp/gnus/auth-source.el: Add eval-and-compile to autoloads for
epg-context-set-passphrase-callback, epg-decrypt-string, and
epg-encrypt-string; require epg when compiling for the setf-method
for epg-context-armor. (bug#21724)

lisp/gnus/auth-source.el

index 75e6d0499d029aa8b313b1e560300011d074d0f0..8846c2f16c5c240e646cb513f4c27fe9b0a98952 100644 (file)
 (autoload 'plstore-save "plstore")
 (autoload 'plstore-get-file "plstore")
 
-(autoload 'epg-make-context "epg")
-(autoload 'epg-context-set-passphrase-callback "epg")
-(autoload 'epg-decrypt-string "epg")
-(autoload 'epg-context-set-armor "epg")
-(autoload 'epg-encrypt-string "epg")
+(eval-and-compile
+  (autoload 'epg-make-context "epg")
+  (autoload 'epg-context-set-passphrase-callback "epg")
+  (autoload 'epg-decrypt-string "epg")
+  (autoload 'epg-encrypt-string "epg"))
+(eval-when-compile (require 'epg)) ;; setf-method for `epg-context-armor'
 
 (autoload 'help-mode "help-mode" nil t)