aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-24 22:35:11 +0200
committerEli Zaretskii2015-11-24 22:35:11 +0200
commit85121e03e1d9d5fa349a255d7d67d3d6839a8f18 (patch)
tree067c88d30942531255c0085a300b3e996a782167
parent7233767e3c7362b36828e5e6f68d45a411a9e3a1 (diff)
downloademacs-85121e03e1d9d5fa349a255d7d67d3d6839a8f18.tar.gz
emacs-85121e03e1d9d5fa349a255d7d67d3d6839a8f18.zip
Allow completion on dynamic module files in load-library
* 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>.
-rw-r--r--lisp/files.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index ac44e0f0fc7..0397f650163 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1023,10 +1023,11 @@ well as `load-file-rep-suffixes').
1023See Info node `(emacs)Lisp Libraries' for more details. 1023See Info node `(emacs)Lisp Libraries' for more details.
1024See `load-file' for a different interface to `load'." 1024See `load-file' for a different interface to `load'."
1025 (interactive 1025 (interactive
1026 (list (completing-read "Load library: " 1026 (let (completion-ignored-extensions)
1027 (apply-partially 'locate-file-completion-table 1027 (list (completing-read "Load library: "
1028 load-path 1028 (apply-partially 'locate-file-completion-table
1029 (get-load-suffixes))))) 1029 load-path
1030 (get-load-suffixes))))))
1030 (load library)) 1031 (load library))
1031 1032
1032(defun file-remote-p (file &optional identification connected) 1033(defun file-remote-p (file &optional identification connected)