]> code.delx.au - gnu-emacs/commitdiff
Allow completion on dynamic module files in load-library
authorEli Zaretskii <eliz@gnu.org>
Tue, 24 Nov 2015 20:35:11 +0000 (22:35 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 24 Nov 2015 20:35:11 +0000 (22:35 +0200)
* lisp/files.el (load-library): Bind completion-ignored-extensions
to nil, to allow completion on dynamic modules typed as file
names.  Reported by Andy Moreton <andrewjmoreton@gmail.com>.

lisp/files.el

index ac44e0f0fc7a29af3306e547d5f36c7f9b456b7c..0397f650163e0499ea90b7b4e16ae3f542095223 100644 (file)
@@ -1023,10 +1023,11 @@ 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
-   (list (completing-read "Load library: "
-                         (apply-partially 'locate-file-completion-table
-                                           load-path
-                                           (get-load-suffixes)))))
+   (let (completion-ignored-extensions)
+     (list (completing-read "Load library: "
+                            (apply-partially 'locate-file-completion-table
+                                             load-path
+                                             (get-load-suffixes))))))
   (load library))
 
 (defun file-remote-p (file &optional identification connected)