]> code.delx.au - gnu-emacs/commit
Better multi-line input support in comint.el
authorJuri Linkov <juri@linkov.net>
Thu, 5 Feb 2015 00:52:41 +0000 (02:52 +0200)
committerJuri Linkov <juri@linkov.net>
Thu, 5 Feb 2015 00:52:41 +0000 (02:52 +0200)
commita323b93d466c403cbef96184d510b134549c7806
tree9f95858f7a61482860822351fd03db2e7c123c6c
parent008a04ac9af20540d6e7ee4b61fb5bb3b21ef0e6
Better multi-line input support in comint.el

Revert the change of comint-line-beginning-position callers,
and modify comint-line-beginning-position instead.

* lisp/comint.el (comint-history-isearch-search)
(comint-history-isearch-message, comint-history-isearch-wrap):
Use comint-line-beginning-position instead of field-beginning.
(comint-send-input): Use either end-of-line or field-end
depending on comint-use-prompt-regexp.
(comint-line-beginning-position): Search backward
for comint-prompt-regexp if comint-use-prompt-regexp is non-nil.
Use field-beginning instead of line-beginning-position
if comint-use-prompt-regexp is nil.

Fixes: debbugs:19710
lisp/ChangeLog
lisp/comint.el