help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `save-exursion' makes a comeback!


From: David Kastrup
Subject: Re: `save-exursion' makes a comeback!
Date: Tue, 15 Mar 2011 16:23:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> Forget about `save-excursion' "saving" or "restoring" or
> "hiding" or "protecting" anything.  Forget about it "defeating"
> or being "defeated".  Forget all of that right now.
>
> The real name of `save-excursion' is `come-back-here'.
> Just remember that and Bob's your uncle.

M-: (with-temp-buffer (let ((b (current-buffer))) (save-excursion
    (set-buffer "*scratch*") (kill-buffer b))) (current-buffer)) RET

-- 
David Kastrup


reply via email to

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