+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,
(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
(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)))