aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/complete.el
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-10 00:37:52 +0000
committerRichard M. Stallman1997-04-10 00:37:52 +0000
commit328c069714ae705f93fc09607e47f5c19ddf2353 (patch)
tree11cdd33a7da11482c56ed7d0874fe5eabf622adb /lisp/complete.el
parent3e7562b11e7f32f5947ce4a054456eb2386c5c38 (diff)
downloademacs-328c069714ae705f93fc09607e47f5c19ddf2353.tar.gz
emacs-328c069714ae705f93fc09607e47f5c19ddf2353.zip
(PC-try-load-many-files): Set truename.
Diffstat (limited to 'lisp/complete.el')
-rw-r--r--lisp/complete.el6
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))