Commit ac5392dc authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/files.el (load-file): Require match in minibuffer selection, as was

the case in Emacs-20 before we changed the spec to allow .elc files.

Fixes: debbugs:12935
parent 19dc7206
2012-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
 
* files.el (load-file): Require match in minibuffer selection, as was
the case in Emacs-20 before we changed the spec to allow .elc files
(bug#12935).
* json.el: Don't require cl since we don't use it.
* color.el: Don't require cl.
(color-complement): `caddr' -> `nth 2'.
......
......@@ -730,7 +730,7 @@ The path separator is colon in GNU and GNU-like systems."
;; 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment