bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#18: Fine-grained revert-buffer


From: martin rudalics
Subject: bug#18: Fine-grained revert-buffer
Date: Sat, 27 Apr 2019 10:31:30 +0200

> 4) Receieve feedback, suggestions, fixes on things I'm sure I'm missing.

What's IMHO urgently needed are better heuristics for restoring
markers after reverting their buffer.  Currently, most markers end up
at the beginning or end of a hunk that as been restored and thus
become useless.

What we probably need is an extra step to scan the buffer for markers
and save their textual context before reverting and a step to restore
them according to their textual context after reverting.  But if your
method allows to easily determine which hunks remain unchanged, we
could avoid such textual search for markers in unchanged hunks and,
depending on the approach used for replacing text, simply restore
these markers from their offsets from the beginning of the hunk they
belong to.

Many thanks for working on this, martin





reply via email to

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