Variable: comint-insert-previous-argument-from-end

comint-insert-previous-argument-from-end is a customizable variable defined in comint.el.gz.

Value

nil

Documentation

If non-nil, comint-insert-previous-argument counts args from the end.

If this variable is nil, the default, comint-insert-previous-argument counts the arguments from the beginning; if non-nil, it counts from the end instead. This emulates the behavior of ESC-NUM ESC-. in both Bash and zsh: in Bash, number counts from the beginning (variable is nil), while in zsh, it counts from the end.

This variable was added, or its default value changed, in Emacs 27.1.

View in manual

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defcustom comint-insert-previous-argument-from-end nil
  "If non-nil, `comint-insert-previous-argument' counts args from the end.
If this variable is nil, the default, `comint-insert-previous-argument'
counts the arguments from the beginning; if non-nil, it counts from
the end instead.  This emulates the behavior of `ESC-NUM ESC-.'
in both Bash and zsh: in Bash, `number' counts from the
beginning (variable is nil), while in zsh, it counts from the end."
  :type 'boolean
  :group 'comint
  :version "27.1")