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

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

Re: Jumping from one position to other position


From: Eric Abrahamsen
Subject: Re: Jumping from one position to other position
Date: Sat, 05 Dec 2020 15:38:45 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Jean Louis <bugs@gnu.support> writes:
>
>> If anybody have better way of jumping from one place A to place B and
>> returning again to place A, and again to place B, let me know.
>
> (1) Most obvious: Use two windows.
>
> (2) Use registers.  I've created "hotkeys" to save and restore 3
> positions in 3 registers (I use registers A, B and C for that).  One-key
> sequences, of course, should that be.  I chose H-kp-1, C-kp-1,
> H-kp-2, ...
>
> (3) A very smart "go to last change" package would ease that pain.  I
> once tried to implement something, but finding a good heuristic that
> behaves well under different circumstances is surprisingly hard.

I've often wanted this, and sometimes end up using undo-plus-redo
to get there. It only just occurred to me that `buffer-undo-list' has
all this information -- was that what you used? What difficulties did
you run into?




reply via email to

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