changeset 28099:18744efb17ba

(load-file): Allow completion to .elc.
author Dave Love <fx@gnu.org>
date Sun, 12 Mar 2000 14:42:35 +0000
parents 2fc1959fa99d
children 5f10effee172
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Sun Mar 12 13:49:28 2000 +0000
+++ b/lisp/files.el	Sun Mar 12 14:42:35 2000 +0000
@@ -494,7 +494,9 @@
 (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.