[darcs-users] darcs interactive use from non-terminals

Trent W. Buck trentbuck at gmail.com
Wed Apr 1 02:15:31 UTC 2009


On Tue, Mar 31, 2009 at 06:56:15PM -0700, Judah Jacobson wrote:
> The real problem with treating emacs' shell as an interactive terminal
> is that you end up with the input echoed twice (once by emacs, and
> once by Haskeline re-displaying each character).

Comint (the foundation for M-x shell) is supposed to handle that:

    comint-process-echoes is a variable defined in `comint.el'.
    Its value is nil
    Local in buffer *shell*; global value is nil

    Documentation:
    If non-nil, assume that the subprocess echoes any input.
    If so, delete one copy of the input so that only one copy eventually
    appears in the buffer.

    This variable is buffer-local.

> The echo check is what readline does [...]

OK, then I'll say no more about it.  I trust readline to be a
reasonable approximation of the Right Thing given its maturity and
large user base.


More information about the darcs-users mailing list