mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Fix error when loading a new, non-existent foo.gpg file
* lisp/epa-file.el (epa-file-insert-file-contents): Propagate the correct error upwards (bug introduced by fixing bug#3829, and messing up where the `when' form ended). Reported by "Herbert J. Skuhra" <herbert@gojira.at>.
This commit is contained in:
parent
9c04760f16
commit
0980e1f537
@ -175,9 +175,9 @@ encryption is used."
|
|||||||
(setq-local epa-file-error error)
|
(setq-local epa-file-error error)
|
||||||
(add-hook 'find-file-not-found-functions
|
(add-hook 'find-file-not-found-functions
|
||||||
'epa-file--find-file-not-found-function
|
'epa-file--find-file-not-found-function
|
||||||
nil t)
|
nil t)))
|
||||||
(signal (if exists 'file-error 'file-missing)
|
(signal (if exists 'file-error 'file-missing)
|
||||||
(cons "Opening input file" (cdr error))))))))
|
(cons "Opening input file" (cdr error))))))
|
||||||
(set-buffer buf) ;In case timer/filter changed/killed it (bug#16029)!
|
(set-buffer buf) ;In case timer/filter changed/killed it (bug#16029)!
|
||||||
(setq-local epa-file-encrypt-to
|
(setq-local epa-file-encrypt-to
|
||||||
(mapcar #'car (epg-context-result-for
|
(mapcar #'car (epg-context-result-for
|
||||||
|
Loading…
Reference in New Issue
Block a user