emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/inf-ruby 05984b3d24 201/265: inf-ruby-console-read-directo


From: ELPA Syncer
Subject: [nongnu] elpa/inf-ruby 05984b3d24 201/265: inf-ruby-console-read-directory: Fix for predicates with wildcards
Date: Sat, 9 Jul 2022 21:59:26 -0400 (EDT)

branch: elpa/inf-ruby
commit 05984b3d240c27a09fffb493a43de8e623419075
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    inf-ruby-console-read-directory: Fix for predicates with wildcards
    
    #103
---
 inf-ruby.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index 745ff77252..c1d031178c 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -755,10 +755,10 @@ automatically."
   (or
    (let ((predicate (car (rassq type inf-ruby-console-patterns-alist))))
      (locate-dominating-file (read-directory-name "" nil nil t)
-                             (if (stringp predicate)
-                                 predicate
-                               (lambda (dir)
-                                 (let ((default-directory dir))
+                             (lambda (dir)
+                               (let ((default-directory dir))
+                                 (if (stringp predicate)
+                                     (file-expand-wildcards predicate)
                                    (funcall predicate))))))
    (error "No matching directory for %s console found"
           (capitalize (symbol-name type)))))



reply via email to

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