point to the end of the inserted region.
Reported by doug <douglas.bagley@gmail.com>
+2006-06-12 Daiki Ueno <ueno@unixuser.org>
+
+ * epa-file.el (epa-file-insert-file-contents): Don't move the
+ point to the end of the inserted region.
+ Reported by doug <douglas.bagley@gmail.com>
+
2006-06-01 Daiki Ueno <ueno@unixuser.org>
* epa-file.el (epa-file-insert-file-contents): Support partial read.
(if (boundp 'last-coding-system-used)
(set-buffer-file-coding-system last-coding-system-used)
(set-buffer-file-coding-system default-buffer-file-coding-system))
- (insert string)
- (setq length (length string))
- (if replace
- (delete-region (point) (point-max))))
+ (save-excursion
+ (insert string)
+ (setq length (length string))
+ (if replace
+ (delete-region (point) (point-max)))))
(if (and local-copy
(file-exists-p local-copy))
(delete-file local-copy)))