emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 85121e0: Allow completion on dynamic module files


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 85121e0: Allow completion on dynamic module files in load-library
Date: Tue, 24 Nov 2015 20:36:04 +0000

branch: emacs-25
commit 85121e03e1d9d5fa349a255d7d67d3d6839a8f18
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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 <address@hidden>.
---
 lisp/files.el |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/files.el b/lisp/files.el
index ac44e0f..0397f65 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]