From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: How to get rid of *GNU Emacs* buffer on start-up? Date: Fri, 19 Sep 2008 08:36:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <985d5417-291c-4bf2-850e-efe3106f8115@x16g2000prn.googlegroups.com> References: <873ajzwoqu.fsf@kobe.laptop> <823901dd-c54c-4e3b-b6ad-512d52724a46@z11g2000prl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1221838925 31388 80.91.229.12 (19 Sep 2008 15:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2008 15:42:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 17:43:02 2008 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 1Kgi8G-0007ei-RU for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 17:42:57 +0200 Original-Received: from localhost ([127.0.0.1]:58149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kgi7F-0002Fg-Iu for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2008 11:41:53 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x16g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1221838618 25928 127.0.0.1 (19 Sep 2008 15:36:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 19 Sep 2008 15:36:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x16g2000prn.googlegroups.com; posting-host=24.6.185.159; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162464 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:57806 Archived-At: xraysmalev...@gmail.com wrote: > > > Emacs provides a user level function to create a new buffer. C-x b, > > > and enter a name of a non-existing buffer. > > >... > > > And if I close it without saving, > > > Emacs prompts me gently -- it doesn't demand a filename, it asks if I > > > want to save it. And only then, if I say yes, does it prompt for a > > > filename. How polite. Xah wrote: > > what you reported doesn't seems to be the emacs behavior for me. > > > For example: > > > Type C-x b xyz RET to create a new buffer named xyz. > > > Type something in it. > > > Now type M-x kill-buffer RET. The buffer will be killed with all > > content lost. xraysmalev...@gmail.com wrote: > I stand corrected: it doesn't prompt to save, since it was never a > file to begin with. I guess I'm just in the habit of saving when I > want to. Thanks for the correction. > Nevertheless, the original point was that Emacs DOES provide > a user-level function to create a new buffer. And it also allows you > to save that buffer as a file -- if you wish. I don't agree that emacs does provide a user-level function for creating a new buffer. The 2 practical methods to create a new buffer, by find-file or switch-to-buffer, are both not designed to create a new buffer for temp use, and each has serious problems in my opinion. =E2=80=A2 There is no easy, intuitive way to create multiple scratch buffer= s. (it is done by using the switch-to-buffer command (C-x b) and give name that is not one of existing buffers.) =E2=80=A2 Emacs does not provide a user level function to create a new buff= er. It has =E2=80=9COpen file...=E2=80=9D (a wrapper to the find-file command),= which immediately prompt user for a full file path. This is annoying. Modern apps's New File command actually just create a new untitled file without prompting, and only when user save it it prompt a file name. If user closes it, it prompts for saving. In summary: the problem with find-file is that it promps user to enter a file name upfront. The problem with switch-to-buffer is that it doesn't promp to save when user closes it. In both, the functions are simply not designed for creating a new temp buffer. ------------------------- But now suppose for a moment that find-file and switch-to-buffer are very good for creating temp buffers. Isn't that more reason to get rid of =E2=80=9C*scratch*=E2=80=9D? original article http://xahlee.org/emacs/modernization_scratch_buffer.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84