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: Johan Bockgård
Subject: Re: A new(?) warning of erase-buffer, which was not seen before.
Date: Fri, 23 Mar 2007 13:56:34 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

Miles Bader <address@hidden> writes:

> address@hidden (Johan Bockgård) writes:
>>> 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.
>>
>> FWIW, erc.el does this kind of selective undo.
>
> How does it deal with changing buffer locations?

Nicely.

> My attempted solution was to scan through buffer-undo-list, updating
> those position, every time I inserted some "hidden from undo" text.
> [This isn't typically a performance problem because _usually_
> buffer-undo-list is nil when process output is occuring.]

That's exactly what ERC does.  See erc-update-undo-list.

-- 
Johan Bockgård





reply via email to

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