Jack,<div><br></div><div>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...? :)</div>
<div><br></div><div>cheers, and have a nice weekend.</div><div><br></div><div>iliya<br><br><div class="gmail_quote">On Thu, Sep 22, 2011 at 9:42 PM, Jack Repenning <span dir="ltr"><<a href="mailto:jrepenning@collab.net">jrepenning@collab.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div class="im"><div><div>On Sep 22, 2011, at 5:37 PM, Iliya Lefterov wrote:</div><br>
<blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div>
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)?</div></span></blockquote><br></div></div><div>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.</div>
<div><br></div><div>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!</div>
<div class="im"><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
-==-<br>Jack Repenning<div>Technologist</div><div>CollabNet Cloud Services</div><div>CollabNet, Inc.<br>8000 Marina Boulevard, Suite 600<br>Brisbane, California 94005<br>office: <a href="tel:%2B1%20650.228.2562" value="+16502282562" target="_blank">+1 650.228.2562</a><div>
<div>twitter: <a href="http://twitter.com/jrep" target="_blank">http://twitter.com/jrep</a></div></div><br></div><br></div></span></div></span><br></div></span><br></div></span><br></div></span><br></div></span><br></div>
</span><br></span><br>
</div>
<br></div></div><br>_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font size="1" color="#336666"><br></font></div><div><font face="arial, helvetica, sans-serif" size="1" color="#336666">Iliya Lefterov, MD, PhD,<br>University of Pittsburgh,<br>
Pittsburgh, PA<br>USA</font></div><div><font face="verdana, sans-serif" size="1"><br></font></div><div><font face="verdana, sans-serif" size="1"><a href="mailto:iliya.lefterov@gmail.com" target="_blank">iliya.lefterov@gmail.com</a></font></div>
<div><font face="verdana, sans-serif" size="1"><a href="mailto:iliyal@pitt.edu" target="_blank">iliyal@pitt.edu</a></font></div><br>
</div>