[Top][All Lists]

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

Re: A feature to go to last edit locations

From: Daniel Martín
Subject: Re: A feature to go to last edit locations
Date: Sun, 12 Feb 2023 20:23:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 12/02/2023 20:50, Daniel Martín wrote:
>> Another question is how to track the edit locations efficiently.  A
>> naive implementation would be to add a function to
>> after-change-functions if the xref setting is enabled.
> Sure, as one option. Except you'd have to differentiate user-made
> changes to the buffer and ones created by more complex commands, or
> timers, or auto-revert-mode...

That's why I think we should somehow leverage the undo information to
implement this feature.  But if we want to support multiple buffers,
we'd need to at least bookkeep additional information when Emacs adds
entries to buffer-undo-list.

reply via email to

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