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: arthur miller
Subject: RE: Jumping from one position to other position
Date: Sat, 5 Dec 2020 22:21:45 +0000

Would this be useful: to you guys?

https://www.emacswiki.org/emacs/VisibleBookmarks

https://github.com/joodland/bm



-------- Originalmeddelande --------
Från: Michael Heerdegen <michael_heerdegen@web.de>
Datum: 2020-12-05 23:12 (GMT+01:00)
Till: help-gnu-emacs@gnu.org
Ämne: Re: Jumping from one position to other position

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.

(2a) Instead of using registers, you can also use something that jumps
to the old position and stores the new one at the same time with one
command, a "switch between two places" command so to say.  Implementing
something like that is obviously easy.  I already did and am now using
(1) and (2) instead (probably because these are much more general tools,
so I have to remember less).


Regards,

Michael.




reply via email to

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