[gnus git] branch master updated: n0-17-78-g993d802 =1= * auth-source.el (with-auth-source-epa-overrides): Don't depend on the EPA variables being defined.

Ted Zlatanov <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  993d802352a0626fad27cace617c827a56a91d16 (commit)
      from  10a8138a1a5e7be68ff9b86492b507b342a4dead (commit)


- Log -----------------------------------------------------------------
commit 993d802352a0626fad27cace617c827a56a91d16
Author: Ted Zlatanov <[email protected]>
Date:   Wed Jun 15 23:28:00 2011 -0500

    * auth-source.el (with-auth-source-epa-overrides): Don't depend on the EPA variables being defined.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6052296..b608c53 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,7 +4,8 @@
 	secret tokens should be saved encrypted.
 	(auth-source-netrc-parse, auth-source-netrc-search): Pass the file name
 	to `auth-source-netrc-normalize'.
-	(with-auth-source-epa-overrides): Add convenience macro.
+	(with-auth-source-epa-overrides): Add convenience macro.  Don't depend
+	on the EPA variables being defined.
 	(auth-source-epa-make-gpg-token): Convert text to a "gpg:" token.
 	(auth-source-netrc-normalize): Convert "gpg:" tokens back to text in
 	the lexical-let closure.
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 904d523..83e12d6 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -956,11 +956,17 @@ Note that the MAX parameter is used so we can exit the parse early."
 
 (defmacro with-auth-source-epa-overrides (&rest body)
   `(let ((file-name-handler-alist
-          ',(remove epa-file-handler file-name-handler-alist))
+          ',(if (boundp 'epa-file-handler)
+                (remove (symbol-value 'epa-file-handler)
+                        file-name-handler-alist)
+              file-name-handler-alist))
          (find-file-hook
           ',(remove 'epa-file-find-file-hook find-file-hook))
          (auto-mode-alist
-          ',(remove epa-file-auto-mode-alist-entry auto-mode-alist)))
+          ',(if (boundp 'epa-file-auto-mode-alist-entry)
+                (remove (symbol-value 'epa-file-auto-mode-alist-entry)
+                        auto-mode-alist)
+              auto-mode-alist)))
      ,@body))
 
 (defun auth-source-epa-make-gpg-token (secret file)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog      |    3 ++-
 lisp/auth-source.el |   10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.