diff options
| author | Dave Love | 2000-03-12 14:42:35 +0000 |
|---|---|---|
| committer | Dave Love | 2000-03-12 14:42:35 +0000 |
| commit | a1fe6488ecfe88e7465f431edf112fe47d34e620 (patch) | |
| tree | 90844ff03ef8c1a416afee98a805e3489ba507d7 | |
| parent | 5e5dff44e71453dc170a413f493af220b1bb9063 (diff) | |
| download | emacs-a1fe6488ecfe88e7465f431edf112fe47d34e620.tar.gz emacs-a1fe6488ecfe88e7465f431edf112fe47d34e620.zip | |
(load-file): Allow completion to .elc.
| -rw-r--r-- | lisp/files.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 7c9a181262e..8c2d7806e86 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -494,7 +494,9 @@ colon-separated list of directories when resolving a relative directory name." | |||
| 494 | (defun load-file (file) | 494 | (defun load-file (file) |
| 495 | "Load the Lisp file named FILE." | 495 | "Load the Lisp file named FILE." |
| 496 | (interactive "fLoad file: ") | 496 | (interactive "fLoad file: ") |
| 497 | (load (expand-file-name file) nil nil t)) | 497 | (let ((completion-ignored-extensions |
| 498 | (delete ".elc" completion-ignored-extensions))) | ||
| 499 | (load (expand-file-name file) nil nil t))) | ||
| 498 | 500 | ||
| 499 | (defun load-library (library) | 501 | (defun load-library (library) |
| 500 | "Load the library named LIBRARY. | 502 | "Load the library named LIBRARY. |