From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: adamsonj@email.unc.edu (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: Running .emacs style commands within emacs Date: Wed, 21 May 2008 09:28:47 -0400 Message-ID: <87ve17vjo8.fsf@W0053328.mgh.harvard.edu> References: <87skwcvxsi.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211378973 13659 80.91.229.12 (21 May 2008 14:09:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 14:09:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim X Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 16:10:08 2008 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 1JyowK-00039Y-UF for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 16:05:54 +0200 Original-Received: from localhost ([127.0.0.1]:58171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jyova-0005Lf-L1 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 May 2008 10:04:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyovF-0005Kc-Cp for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:04:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyovE-0005KI-DK for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:04:04 -0400 Original-Received: from [199.232.76.173] (port=55342 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyovD-0005K8-NI for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:04:03 -0400 Original-Received: from smtpsrv1.isis.unc.edu ([152.2.1.140]:36600 helo=smtp.unc.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JyovD-00009F-Jx for help-gnu-emacs@gnu.org; Wed, 21 May 2008 10:04:03 -0400 Original-Received: from W0053328.mgh.harvard.edu.partners.org (W0053328.mgh.harvard.edu [132.183.29.121]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id m4LE3J4r004253; Wed, 21 May 2008 10:03:27 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:54205 Archived-At: Tim X writes: > "Ben Forbes" writes: > >> Actually what I meant was, I want to run lisp forms from within emacs. Eg, >> (global-set-key "\C-\M-z" 'delete-whole-line). There must be a Lisp engine >> running within Emacs that interprets this form when it is in the .emacs init >> file. Can I send lisp forms to this engine at any given time during an Emacs >> session? I know global-set-key can be run from M-x but it's interactive, I'd >> like to be able to enter the above form manually. > > This is what I use the scratch buffer for. > There's also an interactive Emacs Lisp REPL called ielm in Emacs 23 (from CVS). M-x ielm Joel -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109 Public key: http://pgp.mit.edu http://www.unc.edu/~adamsonj