diff options
| author | Štěpán Němec <stepnem@gmail.com> | 2020-03-28 22:16:28 +0100 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2020-04-03 14:54:49 +0300 |
| commit | 2c4509179110459f42119ce328d72fea65689288 (patch) | |
| tree | f7c21f68a88fc2d931f3dd436241130e32212bb2 /lisp/files.el | |
| parent | 1ded4a8b932eb377f5882e7b99ab7365dce43445 (diff) | |
| download | emacs-2c4509179110459f42119ce328d72fea65689288.tar.gz | |
load-library, locate-library: Use read-library-name
* lisp/emacs-lisp/find-func.el (read-library-name): Add autoload
cookie.
* lisp/files.el (load-library)
* lisp/subr.el (locate-library): Use 'read-library-name' when called
interactively. (bug#6652 bug#6679)
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/files.el b/lisp/files.el index 55a0958f540..beafdaca991 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1103,12 +1103,7 @@ well as `load-file-rep-suffixes'). See Info node `(emacs)Lisp Libraries' for more details. See `load-file' for a different interface to `load'." - (interactive - (let (completion-ignored-extensions) - (list (completing-read "Load library: " - (apply-partially 'locate-file-completion-table - load-path - (get-load-suffixes)))))) + (interactive (list (read-library-name))) (load library)) (defun file-remote-p (file &optional identification connected) |
