diff options
| author | Richard M. Stallman | 2002-06-08 18:28:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-06-08 18:28:06 +0000 |
| commit | f402ba38f52d407923f47a18372f84e2ad794ae7 (patch) | |
| tree | df4d83cd0019f81f48e16a089b43250360f00b2f | |
| parent | fe1d72d007a9dc16caa8da74dfae0270a531adb0 (diff) | |
| download | emacs-f402ba38f52d407923f47a18372f84e2ad794ae7.tar.gz emacs-f402ba38f52d407923f47a18372f84e2ad794ae7.zip | |
(find-file-noselect-1): Undo previous change.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 25 |
2 files changed, 16 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f77e977f798..df6177b542f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2002-06-08 Richard M. Stallman <rms@gnu.org> | 1 | 2002-06-08 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (find-file-noselect-1): Undo previous change. | ||
| 4 | |||
| 3 | * bookmark.el (bookmark-file-or-variation-thereof): Doc fix. | 5 | * bookmark.el (bookmark-file-or-variation-thereof): Doc fix. |
| 4 | 6 | ||
| 5 | 2002-06-07 Karl Fogel <kfogel@red-bean.com> | 7 | 2002-06-07 Karl Fogel <kfogel@red-bean.com> |
diff --git a/lisp/files.el b/lisp/files.el index f6f787cff4d..34fdefd6da6 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1286,15 +1286,14 @@ that are visiting the various files." | |||
| 1286 | (progn | 1286 | (progn |
| 1287 | (make-local-variable 'backup-inhibited) | 1287 | (make-local-variable 'backup-inhibited) |
| 1288 | (setq backup-inhibited t))) | 1288 | (setq backup-inhibited t))) |
| 1289 | (let ((buffer (current-buffer))) | 1289 | (if rawfile |
| 1290 | (if rawfile | 1290 | (progn |
| 1291 | (progn | 1291 | (set-buffer-multibyte nil) |
| 1292 | (set-buffer-multibyte nil) | 1292 | (setq buffer-file-coding-system 'no-conversion) |
| 1293 | (setq buffer-file-coding-system 'no-conversion) | 1293 | (make-local-variable 'find-file-literally) |
| 1294 | (make-local-variable 'find-file-literally) | 1294 | (setq find-file-literally t)) |
| 1295 | (setq find-file-literally t)) | 1295 | (after-find-file error (not nowarn))) |
| 1296 | (after-find-file error (not nowarn))) | 1296 | (current-buffer)))) |
| 1297 | buffer)))) | ||
| 1298 | 1297 | ||
| 1299 | (defun insert-file-contents-literally (filename &optional visit beg end replace) | 1298 | (defun insert-file-contents-literally (filename &optional visit beg end replace) |
| 1300 | "Like `insert-file-contents', but only reads in the file literally. | 1299 | "Like `insert-file-contents', but only reads in the file literally. |
| @@ -3223,8 +3222,12 @@ non-nil, it is called instead of rereading visited file contents." | |||
| 3223 | (if auto-save-p 'emacs-mule-unix | 3222 | (if auto-save-p 'emacs-mule-unix |
| 3224 | coding-system-for-read))) | 3223 | coding-system-for-read))) |
| 3225 | ;; Note that this preserves point in an intelligent way. | 3224 | ;; Note that this preserves point in an intelligent way. |
| 3226 | (insert-file-contents file-name (not auto-save-p) | 3225 | (if preserve-modes |
| 3227 | nil nil t)))) | 3226 | (let ((buffer-file-formats buffer-file-formats)) |
| 3227 | (insert-file-contents file-name (not auto-save-p) | ||
| 3228 | nil nil t)) | ||
| 3229 | (insert-file-contents file-name (not auto-save-p) | ||
| 3230 | nil nil t))))) | ||
| 3228 | ;; Recompute the truename in case changes in symlinks | 3231 | ;; Recompute the truename in case changes in symlinks |
| 3229 | ;; have changed the truename. | 3232 | ;; have changed the truename. |
| 3230 | (setq buffer-file-truename | 3233 | (setq buffer-file-truename |