From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: save-current-buffer Date: Sun, 19 Oct 2008 19:37:27 -0500 Message-ID: References: <1224362986.875430@arno.fh-trier.de> <0oCdnWtUBfnQ8GfVnZ2dnUVZ_tzinZ2d@sysmatrix.net> <3a900$48faa228$cef88ba3$6936@TEKSAVVY.COM> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224504476 23368 80.91.229.12 (20 Oct 2008 12:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 12:07:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 14:08:58 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 1KriqA-0000AX-2s for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 02:41:46 +0200 Original-Received: from localhost ([127.0.0.1]:45743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Krip4-0003Sa-UK for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 20:40:38 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 19 Oct 2008 19:37:04 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: <3a900$48faa228$cef88ba3$6936@TEKSAVVY.COM> Original-Lines: 33 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.70 Original-X-Trace: sv3-ilCAl+t3biHoy99kkyZIXXGMKngxWOxkC2zxlyotuHidGoyLr4KMzLAM+gOhKUN8oZ8ZGY7KHtcbnK6!06u7jSwhOIHXQ3OB0YyrDvx+Ef4FcdRvJsBcJPy4Fro0Csusfn7eAAlSW3RiUYerhDNwdTkAKb+g!+rIQPAj9Z03wtr07HX0vWfoyHkVGnA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:163606 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:58946 Archived-At: Chris F.A. Johnson wrote: > On 2008-10-18, B. T. Raven wrote: >> 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. > > It is? That's news to me. In fact, I just created a buffer named > *Help* and saved it. > Using metacharacters in file names even in Gnu/Linux is deprecated. In MS OSes it's impossible, I think. At least it won't save *Help* on msw 2000. I assumed (wrongly) that save-current-buffer saved the buffer to a file and that the argument could make some other buffer current first. If that were true then switch-to-buffer would be evaluated before save-current-buffer. Apparently the argument is instead an implied progn. What form this argument takes I don't know. Maybe a list. Ed