1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* finder.el (finder-commentary):

* subr.el (locate-library): Use locate-file-completion-table.
This commit is contained in:
Stefan Monnier 2008-04-19 04:01:16 +00:00
parent af48580eee
commit 6a02191778
3 changed files with 9 additions and 5 deletions

View File

@ -1,9 +1,12 @@
2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
* files.el (locate-file-completion-table): Rename from
locate-file-completion and make it use `pred' in the normal way.
(locate-file-completion): New compatibility wrapper.
(load-library): Use locate-file-completion-table.
* finder.el (finder-commentary):
* subr.el (locate-library):
* emacs-lisp/find-func.el (find-library): Likewise.
* info.el: Use with-current-buffer and inhibit-read-only.
(Info-read-node-name-2): Change to use `predicate' in the normal way.

View File

@ -287,9 +287,9 @@ FILE should be in a form suitable for passing to `locate-library'."
(interactive
(list
(completing-read "Library name: "
'locate-file-completion
(cons (or find-function-source-path load-path)
(find-library-suffixes)))))
(apply-partially 'locate-file-completion-table
(or find-function-source-path load-path)
(find-library-suffixes)))))
(let* ((str (lm-commentary (find-library-name file))))
(if (null str)
(error "Can't find any Commentary section"))

View File

@ -1487,8 +1487,9 @@ When called from a program, the file name is normaly returned as a
string. When run interactively, the argument INTERACTIVE-CALL is t,
and the file name is displayed in the echo area."
(interactive (list (completing-read "Locate library: "
'locate-file-completion
(cons load-path (get-load-suffixes)))
(apply-partially
'locate-file-completion-table
load-path (get-load-suffixes)))
nil nil
t))
(let ((file (locate-file library