[OS X Emacs] Select all: how to *not* jump to the beginning of the file + how to not change the selection?

David Reitter david.reitter at gmail.com
Wed Sep 21 16:39:33 EDT 2011


On Sep 21, 2011, at 4:25 PM, Piet van Oostrum wrote:
>  And as has been said,
> selecting all without moving the current position is impossible in
> Emacs. But it wouldn't be hard to change C-x h / Cmd-A such that it
> saves the current position and introduce another key to return to
> it. 

There is always the secondary selection (e.g., Option/Meta+mouse-drag). I have experimented with an automatic mechanism to set the region before executing any command, and reverting the point back to where it was, but there the tricky bit is to decide for which commands to do this.

Secondly, making a secondary selection does not scroll the window.  This would have to be taken care of.



--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!


More information about the MacOSX-Emacs mailing list