mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Add regression tests for Eshell completions
* lisp/eshell/esh-cmd.el (eshell-complete-lisp-symbols): Fix docstring. * test/lisp/eshell/em-cmpl-tests.el: New file.
This commit is contained in:
parent
e19b91f946
commit
79154f625c
2 changed files with 171 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ This only returns external (non-Lisp) processes."
|
|||
#'eshell-complete-lisp-symbols nil t)))
|
||||
|
||||
(defun eshell-complete-lisp-symbols ()
|
||||
"If there is a user reference, complete it."
|
||||
"If there is a Lisp symbol, complete it."
|
||||
(let ((arg (pcomplete-actual-arg)))
|
||||
(when (string-match (concat "\\`" eshell-lisp-regexp) arg)
|
||||
(setq pcomplete-stub (substring arg (match-end 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue