|
From: | Andreas Röhler |
Subject: | Re: `save-excursion' defeated by `set-buffer' |
Date: | Sun, 13 Mar 2011 08:15:56 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 |
[ ... ]
I think it is a little more subtle than that. People may be using it under the expectation that point and mark will also be saved in the buffer accessed by set-buffer.
Hi Tim, Hi Uday, wherefrom you assume that?AFAIU buffer, point and mark are stored the very moment `(save-excursion' cames in.
They should be restored if the parentese closes.Every setting of buffer, mark and point between then doesn't matter as far as the buffer now current again is concerned.
Maybe there have been other `save-excursion' intercurse. But every one tells it's own story.
What's the difficulty? Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |