diff options
| author | Richard M. Stallman | 1998-06-13 04:44:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-13 04:44:32 +0000 |
| commit | 666c1d8bab7378c72bf2449134b7df44d5cbc9d5 (patch) | |
| tree | 420420e4bc02b1cd398e6790b4fd7260ade6b96d | |
| parent | 4dd9d86d22ae41c63702d487dd465d88d56720e5 (diff) | |
| download | emacs-666c1d8bab7378c72bf2449134b7df44d5cbc9d5.tar.gz emacs-666c1d8bab7378c72bf2449134b7df44d5cbc9d5.zip | |
(find-file-noselect): Delete unused local var `error'.
(find-file-noselect-1): Add local var `error'.
| -rw-r--r-- | lisp/files.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el index 9768853c381..b952756d6ed 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -872,8 +872,7 @@ Optional second arg RAWFILE non-nil means the file is read literally." | |||
| 872 | (truename (abbreviate-file-name (file-truename filename))) | 872 | (truename (abbreviate-file-name (file-truename filename))) |
| 873 | (number (nthcdr 10 (file-attributes truename))) | 873 | (number (nthcdr 10 (file-attributes truename))) |
| 874 | ;; Find any buffer for a file which has same truename. | 874 | ;; Find any buffer for a file which has same truename. |
| 875 | (other (and (not buf) (find-buffer-visiting filename))) | 875 | (other (and (not buf) (find-buffer-visiting filename)))) |
| 876 | error) | ||
| 877 | ;; Let user know if there is a buffer with the same truename. | 876 | ;; Let user know if there is a buffer with the same truename. |
| 878 | (if other | 877 | (if other |
| 879 | (progn | 878 | (progn |
| @@ -951,7 +950,8 @@ Optional second arg RAWFILE non-nil means the file is read literally." | |||
| 951 | buf))) | 950 | buf))) |
| 952 | 951 | ||
| 953 | (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) | 952 | (defun find-file-noselect-1 (buf filename nowarn rawfile truename number) |
| 954 | (let ((inhibit-read-only t)) | 953 | (let ((inhibit-read-only t) |
| 954 | error) | ||
| 955 | (with-current-buffer buf | 955 | (with-current-buffer buf |
| 956 | (kill-local-variable 'find-file-literally) | 956 | (kill-local-variable 'find-file-literally) |
| 957 | (setq buffer-file-coding-system nil) | 957 | (setq buffer-file-coding-system nil) |