> ! (let ((inhibit-read-only t))
> ! (delete-region comint-last-input-end
> !(+ comint-last-input-end echo-len))
Please add a one-line comment explaining why the let-binding was added.
Stefan
On Tue, 2005-06-07 at 18:53 -0500, Luc Teirlinck wrote:
> The following simple patch seems to fix the problem completely for the
> program I am experimenting with (GAP). It allows some text to be
> misfontified, but that text gets erased anyway.
>
> If it works for you too and if there are no obj
The following simple patch seems to fix the problem completely for the
program I am experimenting with (GAP). It allows some text to be
misfontified, but that text gets erased anyway.
If it works for you too and if there are no objections in the next two
days or so, I will install it.
===File ~/
JD Smith wrote:
When read-only is nil, process-echoes functions normally, and I get only
one input echoed; i.e. the duplicate input *is* deleted (but the prompt
is erasable).
Indeed, the duplication gets correctly removed for the program I am
working with (GAP) too. My impression to the
On Tue, 2005-06-07 at 16:28 -0500, Luc Teirlinck wrote:
> I managed to duplicate the "Text is read-only" warning with a
> different program. But if I understand you correctly, if you set
> comint-prompt-read-only to nil, you of course no longer get the
> warning, but the duplicate input still does
I managed to duplicate the "Text is read-only" warning with a
different program. But if I understand you correctly, if you set
comint-prompt-read-only to nil, you of course no longer get the
warning, but the duplicate input still does not get deleted. That is
the behavior I observe with my progra
On Tue, 2005-06-07 at 12:38 -0500, Luc Teirlinck wrote:
> JD Smith wrote:
>
>I just compiled a CVS Emacs v22, and was pleased to find that there is
>a new comint- prompt-read-only variable. However, when I enable that
>variable, I get the following non-desired behavior:
>
> 1.
JD Smith wrote:
I just compiled a CVS Emacs v22, and was pleased to find that there is
a new comint- prompt-read-only variable. However, when I enable that
variable, I get the following non-desired behavior:
1. At each prompt, I am warned "Text is read-only".
2. All my i
I maintain the Emacs programming mode IDLWAVE, and have previously
hacked up a comint read-only prompt with an advice to snapshot-last-
prompt.
I just compiled a CVS Emacs v22, and was pleased to find that there is
a new comint- prompt-read-only variable. However, when I enable that
variable, I