bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Monnier
Subject: bug#12935: 24.3.50; `load-file' handling of "el[c]" extension
Date: Mon, 19 Nov 2012 13:28:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]