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: Wed, 18 Jul 2007 17:00:40 -0700 Message-ID: References: <871wf5cv6y.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 1184803350 16595 80.91.229.12 (19 Jul 2007 00:02:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 00:02:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 19 02:02:27 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 1IBJTO-0007Tl-Vy for ged-emacs-devel@m.gmane.org; Thu, 19 Jul 2007 02:02:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBJTO-0002xI-M1 for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 20:02:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBJTM-0002xD-GU for emacs-devel@gnu.org; Wed, 18 Jul 2007 20:02:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBJTL-0002x1-LO for emacs-devel@gnu.org; Wed, 18 Jul 2007 20:02:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBJTL-0002wy-Ik for emacs-devel@gnu.org; Wed, 18 Jul 2007 20:02:23 -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 1IBJTL-0000at-0B for emacs-devel@gnu.org; Wed, 18 Jul 2007 20:02:23 -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 l6J02JkM022641; Wed, 18 Jul 2007 18:02:20 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l6INxGt5022644; Wed, 18 Jul 2007 18:02:18 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 3051701781184803242; Wed, 18 Jul 2007 17:00:42 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <871wf5cv6y.fsf@jurta.org> 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:75103 Archived-At: > > 2. Wrt #2, I prefer my idea of having a user option, > `visit-on-startup', to > > specify the startup behavior. The default value could be > whatever you like, > > but users should be able to customize it. I personally prefer that the > > default behavior be to visit a directory with Dired, and that > the default > > directory be `~/': > > > > (defcustom visit-on-startup "~/" > > "What Emacs visits initially." > > :type '(choice > > (directory :tag "Directory" :value "~/") > > (file :tag "File" :value "~/new.txt") > > (const :tag "*scratch* buffer" :value "*scratch*") > > (const :tag "Splash screen" nil)) > > :group 'emacs) > > The default depends on the question what is Emacs? If Emacs is a file > browser then the default should be to visit the HOME directory with Dired. > If Emacs is a web browser then the default should be to visit its home > page. If Emacs is a Lisp interpreter then the default should be the > *scratch* buffer in lisp-interaction-mode (as is supposed now). > > Since Emacs can do everything then the splash screen could contain links > to the most common initial actions, e.g.: > > [Visit home directory] > [Open new file] > [Open buffer for notes you don't want to save] > [Emacs Tutorial] > [Emacs FAQ] > [Read the Emacs Manual] > ... Good idea: provide for more than just visiting *scratch* or a file or directory. But rather than putting a bunch of links on the splash page, we should define the defcustom in such a way that users can customize it to do the kinds of things you mention. The doc string and/or the tags of `visit-on-startup' can make clear the kinds of things you can do. This would be analogous to defining one's startup page for a Web browser: some people want it to be Google, some people want it to be `blank', and so on.