GNU bug report logs -
#12935
24.3.50; `load-file' handling of "el[c]" extension
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 19 Nov 2012 17:32:01 UTC
Severity: normal
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 12935 <at> debbugs.gnu.org (full text, mbox):
> 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)
This bug report was last modified 12 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.