]> git.eshelyaron.com Git - emacs.git/commitdiff
(archive-set-buffer-as-visiting-file): Save
authorEli Zaretskii <eliz@gnu.org>
Mon, 22 Feb 1999 16:01:30 +0000 (16:01 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 22 Feb 1999 16:01:30 +0000 (16:01 +0000)
excursion while calling set-auto-coding-function.

lisp/arc-mode.el

index cc9f10531e74061895b3580f1ae1e7d243e6f55c..05878ea52d5b705c6add441936d17c1662ff7ae0 100644 (file)
@@ -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