mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
* epa-file.el (epa-file-insert-file-contents): Set
buffer-file-name before decrypting a file.
This commit is contained in:
parent
bf46b4d428
commit
2cb35a563b
@ -1,3 +1,8 @@
|
||||
2008-12-17 Daiki Ueno <ueno@unixuser.org>
|
||||
|
||||
* epa-file.el (epa-file-insert-file-contents): Set
|
||||
buffer-file-name before decrypting a file.
|
||||
|
||||
2008-12-16 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* server.el (server-start): If unable to start the server,
|
||||
|
@ -110,6 +110,8 @@
|
||||
(local-file (or local-copy file))
|
||||
(context (epg-make-context))
|
||||
string length entry)
|
||||
(if visit
|
||||
(setq buffer-file-name file))
|
||||
(epg-context-set-passphrase-callback
|
||||
context
|
||||
(cons #'epa-file-passphrase-callback-function
|
||||
@ -139,9 +141,8 @@
|
||||
(setq length (- (point-max) (point-min))))
|
||||
(if replace
|
||||
(delete-region (point) (point-max)))
|
||||
(when visit
|
||||
(setq buffer-file-name file)
|
||||
(set-visited-file-modtime))))
|
||||
(if visit
|
||||
(set-visited-file-modtime))))
|
||||
(if (and local-copy
|
||||
(file-exists-p local-copy))
|
||||
(delete-file local-copy)))
|
||||
|
Loading…
Reference in New Issue
Block a user