From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Wed, 01 Aug 2007 19:45:55 +0300 Organization: JURTA Message-ID: <878x8v8qge.fsf@jurta.org> References: <871wf5cv6y.fsf@jurta.org> <7dbe73ed0707190725l426d0731u5f9c36cd14278f78@mail.gmail.com> <87k5st7iqt.fsf@jurta.org> <87sl7ebwtk.fsf@jurta.org> <87sl7d9w9s.fsf@jurta.org> <874pjp5xl5.fsf@jurta.org> <87abtfo9vr.fsf@jurta.org> <86ir80prc1.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185987211 28061 80.91.229.12 (1 Aug 2007 16:53:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2007 16:53:31 +0000 (UTC) Cc: Andreas Schwab , rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 01 18:53:23 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 1IGHRm-0002dJ-GI for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 18:53:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGHRm-0005Ph-4N for ged-emacs-devel@m.gmane.org; Wed, 01 Aug 2007 12:53:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGHRD-0005Ad-Pc for emacs-devel@gnu.org; Wed, 01 Aug 2007 12:52:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGHRC-00059t-Ai for emacs-devel@gnu.org; Wed, 01 Aug 2007 12:52:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGHRC-00059o-2s for emacs-devel@gnu.org; Wed, 01 Aug 2007 12:52:42 -0400 Original-Received: from smtp-out.neti.ee ([194.126.126.39]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGHR5-0005RE-CQ; Wed, 01 Aug 2007 12:52:35 -0400 X-Virus-Scanned: by amavisd-new-2.4.3 (20060930) (Debian) at neti.ee Original-Received: from Relayhost1.neti.ee (Relayhost1 [88.196.174.141]) by MXR-8.estpak.ee (Postfix) with ESMTP id 5494A120845; Wed, 1 Aug 2007 19:52:04 +0300 (EEST) Original-Received: from mail.estpak.ee (84-50-157-21-dsl.est.estpak.ee [84.50.157.21]) by Relayhost1.neti.ee (Postfix) with ESMTP id 5963728263B; Wed, 1 Aug 2007 19:52:04 +0300 (EEST) In-Reply-To: <86ir80prc1.fsf@lola.quinscape.zz> (David Kastrup's message of "Tue\, 31 Jul 2007 16\:42\:38 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) 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:75916 Archived-At: > Maybe we should have > initial-visitor just evaluated. Then one can set it to (find-file > "~/") or (display-splash-screen) or (switch-to-buffer "*scratch*"). Yes, then it would be easier to customize and precisely distinguish different meanings of string values: (defcustom startup-function nil "Function to call after starting Emacs." :type '(choice (const :tag "Splash screen" nil) (list :tag "Directory" (const :value dired) (directory :tag "Directory name" :value "~/")) (list :tag "File" (const :value find-file) (file :tag "File name" :value "~/new.txt")) (list :tag "Buffer" (const :value switch-to-buffer) (string :tag "Buffer name" :value "*scratch*"))) :version "23.1" :group 'initialization) And to eval one of the predefined non-nil funcalls: (dired "~/") (find-file "~/new.txt") (switch-to-buffer "*scratch*") -- Juri Linkov http://www.jurta.org/emacs/