diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/complete.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/complete.el b/lisp/complete.el index 50855ebd804..c12e2ce95cb 100644 --- a/lisp/complete.el +++ b/lisp/complete.el | |||
| @@ -676,16 +676,20 @@ or properties are considered." | |||
| 676 | (kill-buffer (current-buffer)) | 676 | (kill-buffer (current-buffer)) |
| 677 | (or files | 677 | (or files |
| 678 | (error "No matching files")) | 678 | (error "No matching files")) |
| 679 | ;; Bring the other files (not the first) into buffers. | ||
| 679 | (save-window-excursion | 680 | (save-window-excursion |
| 680 | (while (setq next (cdr next)) | 681 | (while (setq next (cdr next)) |
| 681 | (let ((buf (find-file-noselect (car next)))) | 682 | (let ((buf (find-file-noselect (car next)))) |
| 683 | ;; Put this buffer at the front of the buffer list. | ||
| 682 | (switch-to-buffer buf)))) | 684 | (switch-to-buffer buf)))) |
| 683 | ;; This modifies the "buf" variable inside find-file-noselect. | 685 | ;; This modifies the `buf' variable inside find-file-noselect. |
| 684 | (setq buf (get-file-buffer first)) | 686 | (setq buf (get-file-buffer first)) |
| 685 | (if buf | 687 | (if buf |
| 686 | nil ; should do verify-visited-file-modtime stuff. | 688 | nil ; should do verify-visited-file-modtime stuff. |
| 687 | (setq filename first) | 689 | (setq filename first) |
| 688 | (setq buf (create-file-buffer filename)) | 690 | (setq buf (create-file-buffer filename)) |
| 691 | ;; This modified `truename' inside find-file-noselect. | ||
| 692 | (setq truename (abbreviate-file-name (file-truename filename))) | ||
| 689 | (set-buffer buf) | 693 | (set-buffer buf) |
| 690 | (erase-buffer) | 694 | (erase-buffer) |
| 691 | (insert-file-contents filename t)) | 695 | (insert-file-contents filename t)) |