Subject: bug#12935: 24.3.50; `load-file' handling of "el[c]" extension

From: Stefan Monnier <[email-masked]>
Date: Mon, 19 Nov 2012 13:28:46 -0500

> Contrast that with Emacs 22 and later (I did not check 21):
> M-x load-file RET icicles-cmd1

You forgot RET at the end.

> Emacs says this immediately: Cannot open load file: icicles-cmd1.
> IOW, it does not try for icicles-cmd1.el, asking for confirmation.
 
Right, that's a bug introduced in Emacs-21.
I installed the patch below in `trunk', which should revert to the
Emacs-20 behavior.

        Stefan

=== modified file 'lisp/files.el'
--- lisp/files.el	2012-11-08 19:50:08 +0000
+++ lisp/files.el	2012-11-19 18:24:40 +0000
@@ -730,7 +730,7 @@
   ;; This is a case where .elc makes a lot of sense.
   (interactive (list (let ((completion-ignored-extensions
 			    (remove ".elc" completion-ignored-extensions)))
-		       (read-file-name "Load file: "))))
+		       (read-file-name "Load file: " nil nil 'lambda))))
   (load (expand-file-name file) nil nil t))
 
 (defun locate-file (filename path &optional suffixes predicate)