Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I return back to point position after jumping by <down-mouse-1>?
Example: moving in the buffer for a while with C-pbfn, then use mouse for navigation, and press C-u C-<space> trying to return back, but last point not in mark-ring.
By C-pbfn I mean navigation via keyboard. And by <down-mouse-1> – mouse clicking. So when I reposition cursor by mouse, I want to be able to jump back where it was by C-u C-<space>, how I usually do while navigating via keyboard. Thank you.
You mean clicking mouse-1, I guess. That does not set the mark. Are you asking how to make it set the mark? If so, that's easy to do, but if you use the mouse at all besides just clicking mouse-1 then that will interfere with what it normally does. Normally, mouse-1 sets point, not the mark. That lets you drag the mouse to select text or use mouse-3 to select text or double- or triple-click mouse-1 to select text. Better be sure of what you want first. ;-) Have you tried clicking mouse-1 followed by immediately clicking mouse-3? Does have the effect you're looking for?
C-pbfnI mean navigation via keyboard. And by<down-mouse-1>– mouse clicking. So when I reposition cursor by mouse, I want to be able to jump back where it was byC-u C-<space>, how I usually do while navigating via keyboard. Thank you.mouse-1, I guess. That does not set the mark. Are you asking how to make it set the mark? If so, that's easy to do, but if you use the mouse at all besides just clickingmouse-1then that will interfere with what it normally does. Normally,mouse-1sets point, not the mark. That lets you drag the mouse to select text or usemouse-3to select text or double- or triple-clickmouse-1to select text. Better be sure of what you want first. ;-) Have you tried clickingmouse-1followed by immediately clickingmouse-3? Does have the effect you're looking for?