emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save-excursion again


From: Lennart Borgman
Subject: Re: save-excursion again
Date: Sat, 19 Jun 2010 19:30:33 +0200

On Sat, Jun 19, 2010 at 7:23 PM, Stephen J. Turnbull <address@hidden> wrote:
> Lennart Borgman writes:
>
>  > > What is wrong with just saving the point in the buffer you are
>  > > interested and then returning to that, i.e.
>  >
>  > (let ((here (point)))
>  >    ...
>  >    (prog1
>  >         return_value
>  >      (goto-char here)))
>
> No protection against abnormal exits or changes to the mark.

I see, thanks.

> 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?

I really think that would be useful.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]