]> git.eshelyaron.com Git - emacs.git/commitdiff
* finder.el (finder-commentary):
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Apr 2008 04:01:16 +0000 (04:01 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 19 Apr 2008 04:01:16 +0000 (04:01 +0000)
* subr.el (locate-library): Use locate-file-completion-table.

lisp/ChangeLog
lisp/finder.el
lisp/subr.el

index 9c8e8ccc16bdc2f9921f3177afd2f27ce4808b59..dace8b927bae12a420962173dfe3f67829c4ef1b 100644 (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.
index e5a41ca7e4621dedad6269fc3e00110c3888d85a..667b2401d1423f4ced0a74e3f4cc404390621f3f 100644 (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"))
index d81dfae457573205e7b7f1577d518f5b490556cb..1f6d5580bfffbbdb318fcb486c780923183aa60c 100644 (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