Function: eshell-complete-variable-reference
eshell-complete-variable-reference is a byte-compiled function defined
in esh-var.el.gz.
Signature
(eshell-complete-variable-reference)
Documentation
If there is a variable reference, complete it.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-var.el.gz
;;;_* Variable name completion
(defun eshell-complete-variable-reference ()
"If there is a variable reference, complete it."
(let ((arg (pcomplete-actual-arg)) index)
(when (setq index
(string-match
(concat "\\$\\(" eshell-variable-name-regexp
"\\)?\\'") arg))
(setq pcomplete-stub (substring arg (1+ index)))
(throw 'pcomplete-completions (eshell-variables-list)))))