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: beginner el form Date: Sun, 3 Apr 2005 23:49:57 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <1151ht7f9rotk1d@corp.supernews.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112627140 18011 80.91.229.2 (4 Apr 2005 15:05:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2005 15:05:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 04 17:05:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIT8G-0002YQ-Vd for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Apr 2005 17:04:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DISgz-0002Qw-67 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Apr 2005 10:36:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 48 Original-Xref: shelby.stanford.edu gnu.emacs.help:129810 Original-To: help-gnu-emacs@gnu.org 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:25367 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25367 "Adam" wrote in message news:d2pp0t$ven$1@lust.ihug.co.nz... > > At the top of the "Programming in Emacs Lisp", before and around the section > Practicing Evaluation, examples are given for the novice to evaluate by c-x > c-e. And this does produce the result in the minibuffer or echo section > below. > > My question is, How should create a buffer in which the results will be > echoed in the buffer, like in a lisp-evaluation-mode ? > > In particular, what extension whould this file/buffer be called. Presumeably > name.el where expressions are evaluated by highlighted and evaluated by c-x > c-e but then doesn't this required the major-mode to be changed every time > the file/buffer is opened ? > > I am looking for a file in which I can incrementally create an emacs-lisp > program, will much trial and error, where screes of text can be printed as > a result if necessary, and the minibuffer is just not big enough. > > Now, if some setup *---interactive-mode---* stuff could be included at the > top of that buffer, then that would be ideal. Perhaps it is an > "self-evaluating form" that I really need. > > Any suggestions or comments appreciate. > > I assume that you know that the **scratch** buffer is set up automatically in lisp interaction mode. You can convert any buffer to this mode by simply invoking M-x lisp-interaction-mode while in the buffer. I think you could make this your default mode by putting '(default-major-mode (quote lisp-interaction-mode)) into your .emacs with Options>Customize>Specific Option, etc. Ed