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

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

Re: save-current-buffer


From: Glauber Alex Dias Prado
Subject: Re: save-current-buffer
Date: Sun, 19 Oct 2008 05:24:53 -0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux)

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
>
> That's what you would expect. If you don't have an Emacs generated
> read-only *Help* buffer open then you will create an editable one with
> that name. Why does it seem like a bug? Of course the file *Help*
> can't be saved because the file name is illegal.
>
> Ed




reply via email to

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