From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glauber Alex Dias Prado Newsgroups: gmane.emacs.help Subject: Re: save-current-buffer Date: Sun, 19 Oct 2008 05:24:53 -0200 Message-ID: <864p39gi7u.fsf@gmail.com> References: <1224362986.875430@arno.fh-trier.de> <0oCdnWtUBfnQ8GfVnZ2dnUVZ_tzinZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224401169 31457 80.91.229.12 (19 Oct 2008 07:26:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2008 07:26:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "B. T. Raven" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 19 09:27:12 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KrSgu-0003w1-Pk for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 09:27:09 +0200 Original-Received: from localhost ([127.0.0.1]:35131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrSfp-0007IK-Ax for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 03:26:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrSfN-0007I7-3b for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 03:25:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrSfK-0007Hu-Eg for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 03:25:31 -0400 Original-Received: from [199.232.76.173] (port=43821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrSfK-0007Hr-8Q for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 03:25:30 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:34455) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KrSfK-0002HK-0l for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 03:25:30 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.232]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrSfI-0007Ct-7q for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 03:25:28 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s15so555588wxc.24 for ; Sun, 19 Oct 2008 00:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=o8gCIRqXIXv+6Hrp73IKN4gjjMRnQDVlYiZ1XEWMVo0=; b=EPi1WFWXQZ2A9Iy4unj4qKO/6Q3L8Z+kmLybGOOOnM3NgQw8/zR6sKtYDdFV+7ALFA krinnLaWKDtiUYz2dUvhqCzMcWBd9FHdB8Fuj63+cWgtcgG2szfi4PxSV9nlkSSaNONt 4UmffJ7ynyintTSj2mho/AVNT/jorPCclGl5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=PzdkhEde2hjSku+R7IUMolNfJoGH6eDWocG9jAmx/juN/yQFnGOnzGqUJ8QLOh76Y0 +tSm+IL6lrl1HKWtLlJ3tEPwA/rBsmybSIaLI2l1M5N6rMCAoRKPCH5vBsFxklIxXVjV OUJxvENmJMsfhYTSWfdmuc0biKfGOjKiUljM0= Original-Received: by 10.64.213.8 with SMTP id l8mr3226652qbg.57.1224401126616; Sun, 19 Oct 2008 00:25:26 -0700 (PDT) Original-Received: from navemae.horizoneye.org (201-26-101-143.dsl.telesp.net.br [201.26.101.143]) by mx.google.com with ESMTPS id p6sm987341qbp.17.2008.10.19.00.25.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Oct 2008 00:25:26 -0700 (PDT) In-Reply-To: <0oCdnWtUBfnQ8GfVnZ2dnUVZ_tzinZ2d@sysmatrix.net> (B. T. Raven's message of "Sat, 18 Oct 2008 18:12:35 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58923 Archived-At: 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" 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