(with-auth-source-epa-overrides): Fix compilation error with `find-file-hooks' on...
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Jun 2011 11:30:30 +0000 (13:30 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 26 Jun 2011 11:30:30 +0000 (13:30 +0200)
lisp/ChangeLog
lisp/auth-source.el

index 5103f1a..4ea4814 100644 (file)
@@ -1,5 +1,8 @@
 2011-06-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * auth-source.el (with-auth-source-epa-overrides): Fix compilation
+       error with `find-file-hooks' on Emacs 22.
+
        * spam.el (spam-stat): Require in a normal fashion without binding
        `spam-stat-install-hooks' to avoid compilation warnings.
 
index c9a0929..2e8a82a 100644 (file)
@@ -981,7 +981,7 @@ Note that the MAX parameter is used so we can exit the parse early."
          (,(if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks)
           ',(remove
              'epa-file-find-file-hook
-             (if (boundp 'find-file-hook) 'find-file-hook 'find-file-hooks)))
+             (if (boundp 'find-file-hook) find-file-hook find-file-hooks)))
          (auto-mode-alist
           ',(if (boundp 'epa-file-auto-mode-alist-entry)
                 (remove (symbol-value 'epa-file-auto-mode-alist-entry)