aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/arc-mode.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>1999-02-22 16:01:30 +0000
committerEli Zaretskii <[email protected]>1999-02-22 16:01:30 +0000
commit06e3b626d8bc871fafe5760abd3bc394923f65ab (patch)
treea154a11a960e131a70b6f8d46bb1749be738179a /lisp/arc-mode.el
parent504737d5f65ef070bac4ed9787e23acb52cb032d (diff)
(archive-set-buffer-as-visiting-file): Save
excursion while calling set-auto-coding-function.
Diffstat (limited to 'lisp/arc-mode.el')
-rw-r--r--lisp/arc-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index cc9f10531e..05878ea52d 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -844,8 +844,9 @@ using `make-temp-name', and the generated name is returned."
(let ((coding
(or coding-system-for-read
(and set-auto-coding-function
- (funcall set-auto-coding-function
- filename (- (point-max) (point-min))))
+ (save-excursion
+ (funcall set-auto-coding-function
+ filename (- (point-max) (point-min)))))
;; dos-w32.el defines find-operation-coding-system for
;; DOS/Windows systems which preserves the coding-system
;; of existing files. We want it to act here as if the