Function: eshell-insert-special-reference
eshell-insert-special-reference is an interactive and byte-compiled
function defined in esh-arg.el.gz.
Signature
(eshell-insert-special-reference TYPE &rest ARGS)
Documentation
Insert a special reference of the specified TYPE.
ARGS is a list of arguments to pass to the insertion function for
TYPE (see eshell-special-ref-alist).
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-arg.el.gz
(defun eshell-insert-special-reference (type &rest args)
"Insert a special reference of the specified TYPE.
ARGS is a list of arguments to pass to the insertion function for
TYPE (see `eshell-special-ref-alist')."
(interactive
(let* ((type (completing-read
(format-prompt "Type" eshell-special-ref-default)
(mapcar #'car eshell-special-ref-alist)
nil 'require-match nil nil eshell-special-ref-default))
(insertion-fun (eshell--special-ref-function
type 'insertion-function)))
(list :interactive (call-interactively insertion-fun))))
(if (eq type :interactive)
(car args)
(apply (eshell--special-ref-function type 'insertion-function) args)))