]> code.delx.au - gnu-emacs/commitdiff
(load-file): Allow completion to .elc.
authorDave Love <fx@gnu.org>
Sun, 12 Mar 2000 14:42:35 +0000 (14:42 +0000)
committerDave Love <fx@gnu.org>
Sun, 12 Mar 2000 14:42:35 +0000 (14:42 +0000)
lisp/files.el

index 7c9a181262e911d50d88130880150700aa19d044..8c2d7806e86c421b6298e82963d504b045ddf76f 100644 (file)
@@ -494,7 +494,9 @@ colon-separated list of directories when resolving a relative directory name."
 (defun load-file (file)
   "Load the Lisp file named FILE."
   (interactive "fLoad file: ")
-  (load (expand-file-name file) nil nil t))
+  (let ((completion-ignored-extensions
+        (delete ".elc" completion-ignored-extensions)))
+    (load (expand-file-name file) nil nil t)))
 
 (defun load-library (library)
   "Load the library named LIBRARY.