-2006-09-10 Daiki Ueno <ueno@unixuser.org>
-
- * epa-file.el (epa-file-insert-file-contents): Use
- decode-coding-inserted-region if available.
-
2006-09-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* epg-config.el (epg-configuration): Fixed the last change;
(cons "Opening input file" (cdr error)))))
(if (or beg end)
(setq string (substring string (or beg 0) end)))
+ (setq string
+ (decode-coding-string string
+ (or coding-system-for-read 'undecided)))
(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))
(save-excursion
- (if (and (null coding-system-for-read)
- (fboundp 'decode-coding-inserted-region))
- (save-restriction
- (narrow-to-region (point) (point))
- (insert string)
- (decode-coding-inserted-region
- (point-min) (point-max)
- (substring file 0 (string-match epa-file-name-regexp file))
- visit beg end replace)
- (setq length (- (point-max) (point-min))))
- (setq string (decode-coding-string string
- (or coding-system-for-read
- 'undecided))
- length (length string))
- (insert string))
+ (insert string)
+ (setq length (length string))
(if replace
(delete-region (point) (point-max)))))
(if (and local-copy