From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Running .emacs style commands within emacs Date: Tue, 20 May 2008 06:41:46 -0700 Message-ID: <003101c8ba7f$400ac640$0200a8c0@us.oracle.com> References: <206a409a0805200019w17c9fa64oc3d11c652edb285@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211291055 23323 80.91.229.12 (20 May 2008 13:44:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 13:44:15 +0000 (UTC) To: "'Ben Forbes'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 15:44:45 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 1JyS8c-000656-UQ for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 15:44:23 +0200 Original-Received: from localhost ([127.0.0.1]:47229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyS7s-0005bH-Sg for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 09:43:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyS7a-0005b1-Pa for help-gnu-emacs@gnu.org; Tue, 20 May 2008 09:43:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyS7X-0005a5-Lr for help-gnu-emacs@gnu.org; Tue, 20 May 2008 09:43:17 -0400 Original-Received: from [199.232.76.173] (port=58048 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyS7X-0005a0-GD for help-gnu-emacs@gnu.org; Tue, 20 May 2008 09:43:15 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:43248) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JyS7X-0007Pr-4K for help-gnu-emacs@gnu.org; Tue, 20 May 2008 09:43:15 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m4KDh1o2002753; Tue, 20 May 2008 07:43:01 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m4J1andW012515; Tue, 20 May 2008 07:42:59 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3675362011211290907; Tue, 20 May 2008 06:41:47 -0700 Original-Received: from dradamslap1 (/24.5.171.3) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 May 2008 06:41:47 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <206a409a0805200019w17c9fa64oc3d11c652edb285@mail.gmail.com> THREAD-INDEX: Aci6cMJc/R8bNo79T6GJA61uWOT4BgADg1zA X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:54167 Archived-At: > 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. C-M-x, with the cursor on the sexp somewhere, assuming you are in emacs-lisp-mode. See node Lisp Eval of the Emacs manual. P.S., use plain text, not HTML, for mail to this mailing list.