mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix completion of extended "..." syntax in eshell
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Expand "..." (bug#19626).
This commit is contained in:
parent
e26d628a4e
commit
9224a86319
1 changed files with 7 additions and 2 deletions
|
|
@ -72,6 +72,7 @@
|
|||
|
||||
(require 'esh-mode)
|
||||
(require 'esh-util)
|
||||
(require 'em-dirs)
|
||||
|
||||
(eval-when-compile
|
||||
(require 'cl-lib)
|
||||
|
|
@ -377,8 +378,12 @@ to writing a completion function."
|
|||
(cl-assert (eq (car result) 'quote))
|
||||
(cadr result))
|
||||
arg)))
|
||||
(if (numberp val)
|
||||
(setq val (number-to-string val)))
|
||||
(cond ((numberp val)
|
||||
(setq val (number-to-string val)))
|
||||
;; expand .../ etc that only eshell understands to
|
||||
;; standard ../../
|
||||
((string-match "\\.\\.\\.+/" val)
|
||||
(setq val (eshell-expand-multiple-dots val))))
|
||||
(or val "")))
|
||||
args)
|
||||
posns)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue