[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: save-excursion again
From: |
Stephen J. Turnbull |
Subject: |
Re: save-excursion again |
Date: |
Sat, 26 Jun 2010 09:40:31 +0900 |
Stefan Monnier writes:
> > Which brings up a question for Stefan. Are you saying that the
> > condition-case-save-point-and-mark aspect of `save-excursion' should
> > be abstracted out (say as `save-region') and separated from the
> > save-buffer aspect?
>
> Not sure what you mean.
Well, ditto. I'm really unclear on why with-current-buffer is always
an appropriate substitute for (save-excursion (set-buffer fu-boofer)
...), for the same kinds of reasons I'm kinda unclear on why global
match data is ever a good idea. Not everybody programs in functional
style; you may have cause to call code which has nasty side effects on
the buffer you're explicitly working on.
> the semantics of "restore point in another buffer" is murky in
> Emacs.
I don't really see why. It would be the same as now except that you
don't do a final set-buffer. Whether that would be useful or not is
another question. Evidently you don't see it as useful, though, which
answers my question.
- Re: save-excursion again, (continued)
- Re: save-excursion again, David Kastrup, 2010/06/18
- Re: save-excursion again, Uday S Reddy, 2010/06/18
- Re: save-excursion again, Stefan Monnier, 2010/06/18
- Re: save-excursion again, Stephen J. Turnbull, 2010/06/19
- Re: save-excursion again, Lennart Borgman, 2010/06/19
- Re: save-excursion again, Lennart Borgman, 2010/06/19
- Re: save-excursion again, Stephen J. Turnbull, 2010/06/19
- Re: save-excursion again, Lennart Borgman, 2010/06/19
- Re: save-excursion again, Stefan Monnier, 2010/06/25
- Re: save-excursion again,
Stephen J. Turnbull <=
- Re: save-excursion again, Stefan Monnier, 2010/06/30
- Re: save-excursion again, Uday S Reddy, 2010/06/26
- Re: save-excursion again, Stefan Monnier, 2010/06/30
- Re: save-excursion again, Lennart Borgman, 2010/06/30
- Re: save-excursion again, Uday S Reddy, 2010/06/19
Re: save-excursion again, Davis Herring, 2010/06/18