diff --git a/lisp/comint.el b/lisp/comint.el index a3236d904d5..bf7aea518d8 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -189,6 +189,10 @@ executed once when the buffer is created.") "True if communications via pty; false if by pipe. Buffer local. This is to work around a bug in emacs process signalling.") +(defvar comint-last-input-match "" + "Last string searched for by comint input history search, for defaulting. +Buffer local variable.") + (defvar comint-input-ring nil) (defvar comint-last-input-start) (defvar comint-last-input-end) @@ -427,10 +431,6 @@ Answer is guaranteed to be non-negative, and less than m." (interactive "*p") (comint-previous-input (- arg))) -(defvar comint-last-input-match "" - "Last string searched for by comint input history search, for defaulting. -Buffer local variable.") - (defun comint-previous-input-matching (str) "Searches backwards through input history for substring match." (interactive (let* ((last-command last-command) ; preserve around r-f-m