From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Scratch buffer annoyance Date: Tue, 31 Jul 2007 23:18:26 -0700 Message-ID: References: <858x8vu7bv.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185949183 26799 80.91.229.12 (1 Aug 2007 06:19:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 06:19:43 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 08:19:37 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 1IG7YW-0001xh-Oc for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 08:19:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG7YV-0001Pm-TH for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 02:19:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IG7YT-0001Ph-4a for emacs-devel@gnu.org; Wed, 01 Aug 2007 02:19:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IG7YQ-0001PV-O8 for emacs-devel@gnu.org; Wed, 01 Aug 2007 02:19:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IG7YQ-0001PS-Hr for emacs-devel@gnu.org; Wed, 01 Aug 2007 02:19:30 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IG7YQ-0001he-77 for emacs-devel@gnu.org; Wed, 01 Aug 2007 02:19:30 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l716JRCs012694 for ; Wed, 1 Aug 2007 00:19:27 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l6V3WV69005954 for ; Wed, 1 Aug 2007 00:19:26 -0600 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-84-209.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3084676831185949113; Tue, 31 Jul 2007 23:18:33 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <858x8vu7bv.fsf@lola.goethe.zz> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:75887 Archived-At: > > (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. Oh, if you insist. I think we could use "visit" loosely here, to get the point across, but if you want to be pedantic about it, then we shouldn't say "visit" the splash screen either. So change it to speak of "visiting" a file or directory, "displaying and selecting" a buffer, and "displaying" the splash screen. Or whatever terminology is PC. Call the option "what-to-do-at-startup" if you like ("And tomorrow morning, we shall have what to do after firing. But today, today we have naming of parts."). > 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). And? If the string value of the option names a file or directory, then visit it. If not, and if the value names one of those numerous buffers "loaded already" (do we "load" buffers, BTW?), then display and select it. If not, and the value is a string, create, display, and select a buffer with that name. > 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). And? If the string value is "~/", then visit the home directory. If the string names an existing buffer, then display and select it; if not, create, display, and select a buffer with that name. Why would such a buffer need to "have a buffer name corresponding to an actual complete file name"? I still don't get the point or the difficulty here.