Function: eshell-resolve-current-argument

eshell-resolve-current-argument is a byte-compiled function defined in esh-arg.el.gz.

Signature

(eshell-resolve-current-argument)

Documentation

If there are pending modifications to be made, make them now.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-arg.el.gz
(defun eshell-resolve-current-argument ()
  "If there are pending modifications to be made, make them now."
  (when eshell-current-argument
    (when eshell-arg-listified
      (if-let ((grouped-terms (eshell-prepare-splice
                               eshell-current-argument)))
          (setq eshell-current-argument
                `(eshell-splice-args
                  (eshell-concat-groups ,eshell-current-quoted
                                        ,@grouped-terms)))
        ;; If no terms are spliced, use a simpler command form.
        (setq eshell-current-argument
              (append (list 'eshell-concat eshell-current-quoted)
                      eshell-current-argument)))
      (setq eshell-arg-listified nil))
    (when eshell-current-modifiers
      (eshell-debug-command 'form
        "applying modifiers %S\n\n%s" eshell-current-modifiers
        (eshell-stringify eshell-current-argument)))
    (dolist (modifier eshell-current-modifiers)
      (setq eshell-current-argument
            (list modifier eshell-current-argument))))
  (setq eshell-current-modifiers nil))