Dima Kogan writes: > lisp/comint.el (comint-get-old-input-default): Modify behavior to follow > docstring: if `comint-use-prompt-regexp' is nil, then return the CURRENT LINE, > if point is on an output field. That patch returns current line when point is on an output field even if comint-use-prompt-regexp is non-nil. I think it should rather go like this: