From 85121e03e1d9d5fa349a255d7d67d3d6839a8f18 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 24 Nov 2015 22:35:11 +0200 Subject: [PATCH] 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 . --- lisp/files.el | 9 +++++---- 1 file 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'). 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) -- 2.39.2