diff options
| -rw-r--r-- | lisp/files.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index 579ad907404..22bb8c729a1 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -535,10 +535,11 @@ colon-separated list of directories when resolving a relative directory name." | |||
| 535 | 535 | ||
| 536 | (defun load-file (file) | 536 | (defun load-file (file) |
| 537 | "Load the Lisp file named FILE." | 537 | "Load the Lisp file named FILE." |
| 538 | (interactive "fLoad file: ") | 538 | ;; This is a case where .elc makes a lot of sense. |
| 539 | (let ((completion-ignored-extensions | 539 | (interactive (list (let ((completion-ignored-extensions |
| 540 | (delete ".elc" completion-ignored-extensions))) | 540 | (delete ".elc" completion-ignored-extensions))) |
| 541 | (load (expand-file-name file) nil nil t))) | 541 | (read-file-name "Load file: ")))) |
| 542 | (load (expand-file-name file) nil nil t)) | ||
| 542 | 543 | ||
| 543 | (defun load-library (library) | 544 | (defun load-library (library) |
| 544 | "Load the library named LIBRARY. | 545 | "Load the library named LIBRARY. |