diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/arc-mode.el | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 18fa97f0d20..7d5dbce1d35 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2006-03-07 Chong Yidong <cyd@stupidchicken.com> | 1 | 2006-03-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * arc-mode.el (archive-extract): Check if an existing buffer name | ||
| 4 | comes from a different archive. | ||
| 5 | |||
| 3 | * help.el (describe-key-briefly): If KEY is a down event, read and | 6 | * help.el (describe-key-briefly): If KEY is a down event, read and |
| 4 | discard the up event. | 7 | discard the up event. |
| 5 | 8 | ||
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index 9799e3e0834..abf38994235 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el | |||
| @@ -907,16 +907,18 @@ using `make-temp-file', and the generated name is returned." | |||
| 907 | (read-only-p (or archive-read-only | 907 | (read-only-p (or archive-read-only |
| 908 | view-p | 908 | view-p |
| 909 | (string-match file-name-invalid-regexp ename))) | 909 | (string-match file-name-invalid-regexp ename))) |
| 910 | (arcfilename (expand-file-name (concat arcname ":" iname))) | ||
| 910 | (buffer (get-buffer bufname)) | 911 | (buffer (get-buffer bufname)) |
| 911 | (just-created nil)) | 912 | (just-created nil)) |
| 912 | (if buffer | 913 | (if (and buffer |
| 914 | (string= (buffer-file-name buffer) arcfilename)) | ||
| 913 | nil | 915 | nil |
| 914 | (setq archive (archive-maybe-copy archive)) | 916 | (setq archive (archive-maybe-copy archive)) |
| 917 | (setq bufname (generate-new-buffer-name bufname)) | ||
| 915 | (setq buffer (get-buffer-create bufname)) | 918 | (setq buffer (get-buffer-create bufname)) |
| 916 | (setq just-created t) | 919 | (setq just-created t) |
| 917 | (with-current-buffer buffer | 920 | (with-current-buffer buffer |
| 918 | (setq buffer-file-name | 921 | (setq buffer-file-name arcfilename) |
| 919 | (expand-file-name (concat arcname ":" iname))) | ||
| 920 | (setq buffer-file-truename | 922 | (setq buffer-file-truename |
| 921 | (abbreviate-file-name buffer-file-name)) | 923 | (abbreviate-file-name buffer-file-name)) |
| 922 | ;; Set the default-directory to the dir of the superior buffer. | 924 | ;; Set the default-directory to the dir of the superior buffer. |