]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-completion-command-name, eshell-complete-commands-list): Use
authorJohn Wiegley <johnw@newartisans.com>
Fri, 18 May 2001 16:39:29 +0000 (16:39 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 18 May 2001 16:39:29 +0000 (16:39 +0000)
`eshell-explicit-command-char' instead of ?*.

lisp/eshell/em-cmpl.el

index 6c3032d069e1bc5cc7fbb3551e287689c2256049..3b620b074d2b6d125337a77faef6dec1e79a8898 100644 (file)
@@ -306,7 +306,7 @@ to writing a completion function."
   "Return the command name, possibly sans globbing."
   (let ((cmd (file-name-nondirectory (pcomplete-arg 'first))))
     (setq cmd (if (and (> (length cmd) 0)
-                      (eq (aref cmd 0) ?*))
+                      (eq (aref cmd 0) eshell-explicit-command-char))
                  (substring cmd 1)
                cmd))
     (if (eshell-under-windows-p)
@@ -396,7 +396,7 @@ to writing a completion function."
     (if (file-name-directory filename)
        (pcomplete-executables)
       (if (and (> (length filename) 0)
-              (eq (aref filename 0) ?*))
+              (eq (aref filename 0) eshell-explicit-command-char))
          (setq filename (substring filename 1)
                pcomplete-stub filename
                glob-name t))