changeset 34296:98daea465817

(load-file): Fix change of 2000-03-12.
author Dave Love <fx@gnu.org>
date Wed, 06 Dec 2000 18:38:47 +0000
parents b99749cc8b64
children 8fffee49b42e
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Dec 06 18:03:35 2000 +0000
+++ b/lisp/files.el	Wed Dec 06 18:38:47 2000 +0000
@@ -535,10 +535,11 @@
 
 (defun load-file (file)
   "Load the Lisp file named FILE."
-  (interactive "fLoad file: ")
-  (let ((completion-ignored-extensions
-	 (delete ".elc" completion-ignored-extensions)))
-    (load (expand-file-name file) nil nil t)))
+  ;; This is a case where .elc makes a lot of sense.
+  (interactive (list (let ((completion-ignored-extensions
+			    (delete ".elc" completion-ignored-extensions)))
+		       (read-file-name "Load file: "))))
+  (load (expand-file-name file) nil nil t))
 
 (defun load-library (library)
   "Load the library named LIBRARY.