emacs-diffs
[Top][All Lists]
Advanced

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

master 49325e13560: ; Fix completion of variables in Eshell immediately


From: Jim Porter
Subject: master 49325e13560: ; Fix completion of variables in Eshell immediately after "$"
Date: Mon, 7 Oct 2024 13:22:06 -0400 (EDT)

branch: master
commit 49325e13560daa768e6f455ade8c9284b7369a26
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    ; Fix completion of variables in Eshell immediately after "$"
    
    * lisp/eshell/esh-var.el (eshell-complete-variable-reference): Match
    group 1 even when there's nothing after "$".
---
 lisp/eshell/esh-var.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
index 5d7ea1c3664..d53ae997cdf 100644
--- a/lisp/eshell/esh-var.el
+++ b/lisp/eshell/esh-var.el
@@ -840,10 +840,10 @@ START and END."
   (let ((arg (pcomplete-actual-arg)))
     (when (string-match
            (rx "$" (? (or "#" "@"))
-               (? (or (group-n 1 (regexp eshell-variable-name-regexp)
-                               string-end)
-                      (seq (group-n 2 (or "'" "\""))
-                           (group-n 1 (+ anychar))))))
+               (or (group-n 1 (? (regexp eshell-variable-name-regexp))
+                            string-end)
+                   (seq (group-n 2 (or "'" "\""))
+                        (group-n 1 (+ anychar)))))
            arg)
       (setq pcomplete-stub (substring arg (match-beginning 1)))
       (let ((delimiter (match-string 2 arg)))



reply via email to

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