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: A wish, a plea Date: Mon, 25 Jun 2007 14:30:14 -0700 Message-ID: References: <87hcox1tbh.fsf@jurta.org> 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 1182807150 5020 80.91.229.12 (25 Jun 2007 21:32:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2007 21:32:30 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 25 23:32:28 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 1I2wAd-0006KF-BO for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 23:32:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2wAc-0006ai-Ut for ged-emacs-devel@m.gmane.org; Mon, 25 Jun 2007 17:32:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2wA4-0006O7-R7 for emacs-devel@gnu.org; Mon, 25 Jun 2007 17:31:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2wA3-0006Nh-OK for emacs-devel@gnu.org; Mon, 25 Jun 2007 17:31:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2wA3-0006NZ-Fs for emacs-devel@gnu.org; Mon, 25 Jun 2007 17:31:51 -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 1I2wA1-0004sW-GO; Mon, 25 Jun 2007 17:31:49 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l5PLVkTP021761; Mon, 25 Jun 2007 15:31:47 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l5PK0FLd026017; Mon, 25 Jun 2007 15:31:46 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt351.oracle.com with ESMTP id 2986948111182807015; Mon, 25 Jun 2007 14:30:15 -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: <87hcox1tbh.fsf@jurta.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= 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:73866 Archived-At: > > (defcustom visit-on-startup "~/" > > "File or directory to visit when Emacs is started." > > :type '(choice (const :tag "Splash screen only" nil) > > (file :tag "Visit file or directory" :value "~/")) > > :group 'emacs) > > > > I'd vote for the default value being `~/', but deciding on the > > default value is a different issue than deciding to let users > > customize the startup behavior. > > You forgot the option for displaying *scratch* on startup. No I didn't (it did occur to me), but I might not have considered all the angles. Just set the value to "*scratch*". It will open a buffer visiting new "file" *scratch* (or possibly *scratch*<2>, if *scratch* pre-exists). Maybe the user option :tags should make such a possibility more clear. And we might need to configure a visit of *scratch* to use the right mode, but it should work OK. That was/is my thinking. That is, visiting buffer *scratch* is not essentially different from visiting a new file buffer named *scratch*, provided the right mode is in effect. If this is not effective enough, then, yes, we can add a buffer to the :type `choice'. > Perhaps nil should do that, and I think it should be the default value. My vote for the default behavior is still Dired. But which default to use is a different question from deciding to have a `visit-on-startup' option that users can customize. > FWIW, I have as the last line of .emacs: > > (dired "~") > > that allows me immediately after startup navigate to the necessary > directory and to open/create files in it. And *scratch* still exists, > coming up after pressing `q' in the initial dired buffer. So I welcome > a new option to customize this. You would get exactly that behavior if you just do nothing, in my proposal, I believe (IIUYC). By default, Dired would be opened to `~/', and hitting `q' in Dired will give you *scratch*. That's exactly my own preference too. Currently, I just provide the directory as an argument to `runemacs', but the effect is the same.