From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: *scratch* lost Date: Wed, 17 Jun 2009 07:25:16 -0500 Message-ID: References: <7cr5xlyeui.fsf@pbourguignon.informatimago.com> <87zlc76s29.fsf@usenet.my.skamphausen.de> <7cskhzum63.fsf@pbourguignon.anevia.com> <87iqiv6pwg.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245242951 5851 80.91.229.12 (17 Jun 2009 12:49:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 12:49:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 14:49:09 2009 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.50) id 1MGuZg-0004Dn-7s for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 14:49:08 +0200 Original-Received: from localhost ([127.0.0.1]:48010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGuZf-00023m-FO for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 08:49:07 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!bigfeed3.bellsouth.net!news.bellsouth.net!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 17 Jun 2009 07:25:14 -0500 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87iqiv6pwg.fsf@usenet.my.skamphausen.de> Original-Lines: 42 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.130.146 Original-X-Trace: sv3-w1k7XaGbYrBcfgp0GaGq4ejXujPwA66cw8iFo3UvBcWbsd9r6ATgouxeAVIS/CDa/lBP/TAUUHiSeRZ!VI0Pe09s669B5cO2j8sYGSN7BgzwWrGbYOzRuhhW5fPQeyE+S1zRwGN3XmI4ZVb0OXBT7E7HPM2P!qrUgcBoMUDuPqVyc3ZgOyvbYc8vE0MM= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:170116 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:65341 Archived-At: Stefan Kamphausen wrote: > Hi Pascal, > > pjb@informatimago.com (Pascal J. Bourguignon) writes: > >>> Hm, I don't seem to need that. I can always M-x switch-to-buffer >>> *scratch* RET (having to type "*scratch*" without completion since it >>> may have been killed) and end up in a perfect stracth-buffer with >>> lisp-interaction-mode. It even works with iswitchb-buffer which asks >>> before creating the new buffer. >> Of course, but if you want to insert the initial-scratch-message... > > OK, I loose that. I understand that it is meant for newcomers anyway. > >> And switch-to-buffer creates a buffer in default-major-mode, not >> emacs-lisp-mode. > > My default-major-mode is fundamental-mode and my scratch buffer is > always in lisp-interaction-mode. I tried to find out where that comes > from but without success. Nothing in auto-mode-alist, magic-mode-alist, > interpreter-mode-alist. No configuration found with grep -ir > lisp-interaction-mode ~/.emacs.d/. Nothing found using apropos-value > lisp-interaction-mode. Funny that it, but very handy ;-) > > > Best, > Stefan Thanks for insight, Stefan. My problem was that I had a *scratch* buffer sans message, in Fundamental mode immediately after restarting Emacs. Impossible, no? But it was caused by some anomaly in specifing (via custom) 'org-agenda-files and in some way that debug-init didn't catch. After fixing that, the normal *scratch* was generated spontaneously. Also I learned that most of .emacs's (not all) can be gotten by evaluating .emacs piecewise after running emac -Q. When I was thinking elisp had gone crazy I discovered that I had invoked another keyboard (Italian instead of U.S Dvorak) that I had neglected to unload after testing something. The whole experience was so bizarre that I don't even want to understand what happened. Ed