Function: comint-replace-by-expanded-history
comint-replace-by-expanded-history is an interactive and byte-compiled
function defined in comint.el.gz.
Signature
(comint-replace-by-expanded-history &optional SILENT START)
Documentation
Expand input command history references before point.
Expansion is dependent on the value of comint-input-autoexpand.
This function depends on the buffer's idea of the input history, which may not match the command interpreter's idea, assuming it has one.
Assumes history syntax is like typical Un*x shells'. However, since Emacs cannot know the interpreter's idea of input line numbers, assuming it has one, it cannot expand absolute input line number references.
If the optional argument SILENT is non-nil, never complain even if history reference seems erroneous.
If the optional argument START is non-nil, that specifies the start of the text to scan for history references, rather than the logical beginning of line.
See comint-magic-space and comint-replace-by-expanded-history-before-point.
Returns t if successful.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-replace-by-expanded-history (&optional silent start)
"Expand input command history references before point.
Expansion is dependent on the value of `comint-input-autoexpand'.
This function depends on the buffer's idea of the input history, which may not
match the command interpreter's idea, assuming it has one.
Assumes history syntax is like typical Un*x shells'. However, since Emacs
cannot know the interpreter's idea of input line numbers, assuming it has one,
it cannot expand absolute input line number references.
If the optional argument SILENT is non-nil, never complain
even if history reference seems erroneous.
If the optional argument START is non-nil, that specifies the
start of the text to scan for history references, rather
than the logical beginning of line.
See `comint-magic-space' and `comint-replace-by-expanded-history-before-point'.
Returns t if successful."
(interactive nil comint-mode)
(let ((f (comint-c-a-p-replace-by-expanded-history silent start)))
(if f (funcall f))))