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

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

Re: save-current-buffer


From: Andreas Politz
Subject: Re: save-current-buffer
Date: Sun, 19 Oct 2008 12:31:23 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Glauber Alex Dias Prado wrote:
save-current-buffer is a special form in `C source code'.
(save-current-buffer &rest body)

Save the current buffer; execute body; restore the current buffer.
Executes body just like `progn'.

strange indeed,dunno why it works this way.

"B. T. Raven" <nihil@nihilo.net> writes:

Andreas Politz wrote:

Is this a bug, or am I missing something ?
Eval this in *scratch* buffer and you end up in the *Help* one.

(save-current-buffer
  (switch-to-buffer "*Help*"))


GNU Emacs 22.2.1


-ap

What would make sense is if `current buffer' refers to whatever 
(current-buffer) returns,
and switch-to-buffer changes that.   ?

-ap


reply via email to

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