From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 01 Aug 2007 09:34:19 +0100 Message-ID: <46B0458B.8080608@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185957285 16881 80.91.229.12 (1 Aug 2007 08:34:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 08:34:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 10:34:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IG9fC-00020D-6t for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 10:34:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG9fB-0003gb-MX for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 04:34:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IG9f7-0003gG-GM for emacs-devel@gnu.org; Wed, 01 Aug 2007 04:34:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IG9f5-0003g4-5v for emacs-devel@gnu.org; Wed, 01 Aug 2007 04:34:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG9f5-0003g1-1B for emacs-devel@gnu.org; Wed, 01 Aug 2007 04:34:31 -0400 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IG9f4-0002Re-NY for emacs-devel@gnu.org; Wed, 01 Aug 2007 04:34:30 -0400 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 161CA54457; Wed, 1 Aug 2007 09:34:30 +0100 (BST) User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) In-Reply-To: X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75890 Archived-At: Drew Adams wrote: > (defcustom visit-on-startup nil > "What Emacs visits when it starts up. > A non-nil value is a string naming a directory, file, or buffer to visit. > If nil, then the splash screen is displayed." > :type '(choice > (directory :tag "Directory" :value "~/") > (file :tag "File" :value "~/new.txt") > (string :tag "Buffer" :value "*scratch*") > (const :tag "Splash Screen" nil)) > :group 'startup-display) > > The value is a string or nil. If you choose `Buffer', then you can enter any > string (without completion). If the string names a buffer that exists at > startup, such as *scratch* or *Messages*, then that buffer is visited (in > the proper mode). If the string names a nonexistent buffer, then that buffer > is created and visited. > > What am I missing? Why is this thread so Byzantine? > You are making a distinction in the UI between buffer and file. But the distinction is thrown away immediately because buffer, file and directory all map to strings.