[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `save-excursion' defeated by `set-buffer'
From: |
David Kastrup |
Subject: |
Re: `save-excursion' defeated by `set-buffer' |
Date: |
Fri, 11 Mar 2011 10:54:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Maybe let's put the question another way:
>
> is there an example, where save-excursion will fail, ie not restore
> the buffer due to a set-buffer afterwards?
No. It will restore buffer, point and mark, in that order. It is never
defeated. What _may_ be defeated is an excursion happening within the
scope of `set-buffer' because restoring buffer will in some instances
restore to the same buffer before restoring point and mark.
--
David Kastrup
- Re: `save-excursion' defeated by `set-buffer', Uday Reddy, 2011/03/02
- Re: `save-excursion' defeated by `set-buffer', Stefan Monnier, 2011/03/04
- Re: `save-excursion' defeated by `set-buffer', Andreas Röhler, 2011/03/10
- Re: `save-excursion' defeated by `set-buffer', Leo, 2011/03/10
- Re: `save-excursion' defeated by `set-buffer', Stefan Monnier, 2011/03/10
- Re: `save-excursion' defeated by `set-buffer', Andreas Röhler, 2011/03/11
- Message not available
- Re: `save-excursion' defeated by `set-buffer',
David Kastrup <=
- Re: `save-excursion' defeated by `set-buffer', Andreas Röhler, 2011/03/11
- Message not available
- Re: `save-excursion' defeated by `set-buffer', David Kastrup, 2011/03/11
- Message not available
- Re: `save-excursion' defeated by `set-buffer', Stefan Monnier, 2011/03/11
- Re: `save-excursion' defeated by `set-buffer', Eli Zaretskii, 2011/03/12
- Re: `save-excursion' defeated by `set-buffer', Andreas Röhler, 2011/03/12
- RE: `save-excursion' defeated by `set-buffer', Drew Adams, 2011/03/12
- Re: `save-excursion' defeated by `set-buffer', Eli Zaretskii, 2011/03/12
- RE: `save-excursion' defeated by `set-buffer', Drew Adams, 2011/03/12
- Re: `save-excursion' defeated by `set-buffer', Juanma Barranquero, 2011/03/14
- RE: `save-excursion' defeated by `set-buffer', Drew Adams, 2011/03/14