From 8bf5a7d1d30d7e7272ec91b9a11ffbb2d00198ea Mon Sep 17 00:00:00 2001 From: ueno Date: Sun, 10 Sep 2006 02:45:33 +0000 Subject: [PATCH] Fixed. --- epa-file.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/epa-file.el b/epa-file.el index d02e789..b1743ee 100644 --- a/epa-file.el +++ b/epa-file.el @@ -110,10 +110,13 @@ (decode-coding-inserted-region (point-min) (point-max) (substring file 0 (string-match epa-file-name-regexp file)) - visit beg end replace)) - (insert (decode-coding-string string (or coding-system-for-read - 'undecided)))) - (setq length (length string)) + 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)) (if replace (delete-region (point) (point-max))))) (if (and local-copy -- 1.7.10.4