From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarmo Hurri Newsgroups: gmane.emacs.help Subject: Re: Default directory in startup buffer Date: Fri, 21 Jan 2011 10:41:22 +0200 Organization: NA Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295774913 25628 80.91.229.12 (23 Jan 2011 09:28:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2011 09:28:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 23 10:28:29 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PgwFJ-0005Ua-NR for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2011 10:28:29 +0100 Original-Received: from localhost ([127.0.0.1]:57221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgwFI-0006WM-8h for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Jan 2011 04:28:28 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!newsfeed2.funet.fi!newsfeeds.funet.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:vuzf0NfRE8uafyCphVgZ+UZQsJc= Original-Lines: 35 Original-NNTP-Posting-Host: 82.181.233.130 Original-X-Complaints-To: newsmaster@saunalahti.com Original-X-Trace: uutiset.elisa.fi 1295599283 82.181.233.130 (Fri, 21 Jan 2011 10:41:23 EET) Original-NNTP-Posting-Date: Fri, 21 Jan 2011 10:41:23 EET Original-Xref: usenet.stanford.edu gnu.emacs.help:184476 X-Mailman-Approved-At: Sun, 23 Jan 2011 04:25:31 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78660 Archived-At: Mario Lassnig writes: > How about this for a clean slate, > starting out with a clean scratch-buffer. > > (setq inhibit-startup-echo-area-message t) > (setq inhibit-startup-screen t) > (setq initial-scratch-message nil) > (kill-buffer "*Messages*") I guess that will work in a .emacs, but it has no effect in site-start.el as I explained above. > oh, and the scratch buffer does not have a directory, because it's not > associated with a file. Yes, and that is why default-directory becomes important. That is why we are trying to set its value. I understood something while experimenting with your suggestion. Earlier I said that the workaround in site-start.el was (kill-buffer "*GNU Emacs*") which resulted in a clean screen and an error message. Well, the reason why it worked was that while in site-start.el, there is no such buffer, so the code actually caused an error. So my current workaround is to cause an error in site-start.el. -- Jarmo Hurri Remove all garbage from header email address when replying, or just use firstname.lastname@syk.fi .