emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comint read-only prompt


From: Stefan Monnier
Subject: Re: comint read-only prompt
Date: Wed, 21 Aug 2002 11:28:27 -0400

> > A proposed solution: if snapshot were moved to the beginning of the
> > output-filter, these problems would disappear.
> 
> That would be completely wrong.  The reason why `prompt snapshotting'
> is done when the user sends input is because that's the only time you
> can be pretty sure that what the overlay covers is _actually_ a prompt.

I think what he was suggesting is:

- comint-send-string sets the overlay's `snapshot' property.
- comint's output filter checks the `snapshot' property to determine
  whether to call comint-snapshot-last-prompt or to just move
  the overlay.

But it seems that it's much simpler to just use process-send-string.
Maybe comint-send-string's docstring could be a bit more forthcoming about
what it means by "extra bookkeeping" so that authors can make a better
informed choice between the two functions.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]