[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comint: 'C-c RET' changed unfavorabily
From: |
Luc Teirlinck |
Subject: |
Re: comint: 'C-c RET' changed unfavorabily |
Date: |
Thu, 1 Sep 2005 11:40:03 -0500 (CDT) |
Nick Roberts wrote:
The two functions overlap (they both retrieve earlier input). Can
you give a simple example of how you use comint-copy-old-input in a
way that doesn't work with comint-insert-input?
Setting comint-use-prompt-regexp to t. C-c RET will cease to work.
The bug is due to the fact that `comint-insert-input' uses fields to
delimit the old input:
(insert (buffer-substring-no-properties
(previous-single-char-property-change (1+ pos) 'field)
(next-single-char-property-change pos 'field))))))
But if comint-use-prompt-regexp is t, there are no fields.
I do not know the motivation for replacing comint-copy-old-input with
comint-insert-input, so I do not know whether the correct solution is
simply to revert that change or to fix comint-insert-input.
Sincerely,
Luc.