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

Iliya Lefterov iliya.lefterov at gmail.com
Thu Sep 22 22:10:33 EDT 2011


Jack,

i totally agree with you. i also think the "save in a register" code you
brought in is very, very important and  may be the most useful in this
series of emails and comments. one great thing about Emacs (and it is my
opinion, other people may disagree...) is the possibility to make it working
in a way the user likes it. is it easy to get there...? - i don't think so.
BTW, i still don't know if Marius is using Aquamacs to edit and compile
LaTex files...? :)

cheers, and have a nice weekend.

iliya

On Thu, Sep 22, 2011 at 9:42 PM, Jack Repenning <jrepenning at collab.net>wrote:

> On Sep 22, 2011, at 5:37 PM, Iliya Lefterov wrote:
>
> so what about if at the end of your point 4) you delete the paragraph? are
> you still interested in going in the meddle of that one as you state in
> point 1)?
>
>
> Amusingly enough, that actually is a well-formed question in Emacs. If a
> region is deleted, and either point or mark were inside it, then they're
> moved to the spot where the deleted region formerly lived. So it's still
> meaningful to say "the same spot" even though the whole neighborhood around
> that spot is gone. This same logic applies to the save/restore window
> configuration code I posted, and I believe it also applies to the "save in a
> register" code: they're all cases of Emacs' general notion of "markers," and
> all markers behave this way.
>
> It's also true that deleting a region leaves point at the point of deletion
> -- i.e., the same spot as the old point and mark are mapped to. So you don't
> need to want to go there, because you're already be there!
>
> -==-
> Jack Repenning
> Technologist
> CollabNet Cloud Services
> CollabNet, Inc.
> 8000 Marina Boulevard, Suite 600
> Brisbane, California 94005
> office: +1 650.228.2562
> twitter: http://twitter.com/jrep
>
>
>
>
>
>
>
>
>
>
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
>


-- 

Iliya Lefterov, MD, PhD,
University of Pittsburgh,
Pittsburgh, PA
USA

iliya.lefterov at gmail.com
iliyal at pitt.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20110922/044774e2/attachment.html>


More information about the MacOSX-Emacs mailing list