diff options
Diffstat (limited to 'lisp/dos-w32.el')
-rw-r--r-- | lisp/dos-w32.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/dos-w32.el b/lisp/dos-w32.el index 9bec5b7a1db..2c98417caea 100644 --- a/lisp/dos-w32.el +++ b/lisp/dos-w32.el @@ -197,8 +197,7 @@ set to the appropriate coding system, and the value of (find-file filename))) (defun find-file-not-found-set-buffer-file-coding-system () - (save-excursion - (set-buffer (current-buffer)) + (with-current-buffer (current-buffer) (let ((coding buffer-file-coding-system)) ;; buffer-file-coding-system is already set by ;; find-operation-coding-system, which was called from |