From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 01 Aug 2007 07:55:48 +0200 Message-ID: <858x8vu7bv.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185947812 23397 80.91.229.12 (1 Aug 2007 05:56:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 05:56:52 +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 07:56:46 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 1IG7CN-000595-Fl for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 07:56:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG7CM-0000sr-Vx for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 01:56:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IG7CJ-0000si-22 for emacs-devel@gnu.org; Wed, 01 Aug 2007 01:56:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IG7CH-0000sL-It for emacs-devel@gnu.org; Wed, 01 Aug 2007 01:56:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG7CH-0000sD-Ak for emacs-devel@gnu.org; Wed, 01 Aug 2007 01:56:37 -0400 Original-Received: from mail-in-02.arcor-online.net ([151.189.21.42]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IG7CG-0005hS-QK for emacs-devel@gnu.org; Wed, 01 Aug 2007 01:56:37 -0400 Original-Received: from mail-in-09-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 1D5A93667F5; Wed, 1 Aug 2007 07:56:35 +0200 (CEST) Original-Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id 0D56628EE6A; Wed, 1 Aug 2007 07:56:35 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-010-191.pools.arcor-ip.net [84.61.10.191]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id DB9C91D3166; Wed, 1 Aug 2007 07:56:34 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C26E71C3E04F; Wed, 1 Aug 2007 07:55:48 +0200 (CEST) In-Reply-To: (Drew Adams's message of "Tue\, 31 Jul 2007 22\:14\:09 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3841/Wed Aug 1 05:01:08 2007 on mail-in-01.arcor-online.net X-Virus-Status: Clean 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:75886 Archived-At: "Drew Adams" writes: > (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. You mean: then that _file_ is visited. It does not make sense to visit a buffer. > What am I missing? Why is this thread so Byzantine? What does "exist at startup" mean? At the time the splash screen might get displayed, .emacs is already processed, and any number of buffers might be loaded already (including a whole desktop). Those numbers in general _don't_ have a buffer name corresponding to an actual complete file name (there certainly won't be a buffer named ~/ even if ~/ is already visited at the time the splash screen might get displayed). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum