summaryrefslogtreecommitdiff
path: root/lisp/epa-file.el
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@unixuser.org>2010-07-25 20:50:51 +0900
committerDaiki Ueno <ueno@unixuser.org>2010-07-25 20:50:51 +0900
commit192cfe779a963f1a86f4361c9a60494a27c5ec94 (patch)
tree76bd7a9965b11beb61831a35c283c72519f99d31 /lisp/epa-file.el
parent4f195cf7040ce0d934c25ec132313c7bc07f1ca9 (diff)
downloademacs-192cfe779a963f1a86f4361c9a60494a27c5ec94.tar.gz
Fix typo and comment.
Diffstat (limited to 'lisp/epa-file.el')
-rw-r--r--lisp/epa-file.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/epa-file.el b/lisp/epa-file.el
index 53dc7ddac76..af016eb20be 100644
--- a/lisp/epa-file.el
+++ b/lisp/epa-file.el
@@ -139,11 +139,11 @@ way."
(error
(if (setq entry (assoc file epa-file-passphrase-alist))
(setcdr entry nil))
+ ;; Hack to prevent find-file from opening empty buffer
+ ;; when decryption failed (bug#6568). See the place
+ ;; where `find-file-not-found-functions' are called in
+ ;; `find-file-noselect-1'.
(when (file-exists-p local-file)
- ;; Hack to prevent find-file from opening empty buffer
- ;; when decryption failed (bug#6568). See the place
- ;; where `find-file-not-found-functions' are called in
- ;; `find-file-noselect-1'.
(make-local-variable 'epa-file-error)
(setq epa-file-error error)
(add-hook 'find-file-not-found-functions