emacs-devel
[Top][All Lists]
Advanced

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

Re: A new(?) warning of erase-buffer, which was not seen before.


From: Miles Bader
Subject: Re: A new(?) warning of erase-buffer, which was not seen before.
Date: Fri, 23 Mar 2007 08:21:47 +0900

Richard Stallman <address@hidden> writes:
> Actually, we want people to tell us where they get these messages,
> so that we can learn about Emacs modes and facilities
> where we ought to turn off undo.

This is an issue for post-release, but:

I think comint is an obvious candidate for this -- the throughput in a
comint buffer can be massive, and basically you never want to undo
anything except small user edits at the end.  Indeed, it's all to easy
to accidentally undo part of the process output, which just messes
things up.  However, it _is_ handy to have undo for user edits of the
command line.

Ideally, you could keep undo information _only_ for user edits, and
flush even that whenever the user submits a line of input to the
subprocess (so once submitted, a command line would become "permanent").

I've been working on some patches to comint to do this, by selectively
disabling undo at various points, but it's not entirely straight-forward
because you then have to fix up the undo list to account for the
unrecorded buffer changes.

-Miles

-- 
"Don't just question authority,
Don't forget to question me."
-- Jello Biafra




reply via email to

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