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/emacs-lisp | |
parent | 1ded4a8b932eb377f5882e7b99ab7365dce43445 (diff) | |
download | emacs-2c4509179110459f42119ce328d72fea65689288.tar.gz emacs-2c4509179110459f42119ce328d72fea65689288.tar.bz2 emacs-2c4509179110459f42119ce328d72fea65689288.zip |
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/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/find-func.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 167ead3ce02..e35db56550d 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -279,6 +279,7 @@ Interactively, prompt for LIBRARY using the one at or near point." (switch-to-buffer (find-file-noselect (find-library-name library))) (run-hooks 'find-function-after-hook))) +;;;###autoload (defun read-library-name () "Read and return a library name, defaulting to the one near point. |