From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: how to edit already defined macros Date: Thu, 2 Aug 2012 12:40:21 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98268CB610@DAKIYA1.pegasus.local> References: <420DE722-905A-4404-9DCD-C8EB602DE043@gmx.de> <4AC6D107-A92C-4D8D-9530-C44F7472F8AA@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343911225 22419 80.91.229.3 (2 Aug 2012 12:40:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 12:40:25 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Ferdinand , John Wiegley Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 02 14:40:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwuhU-0005gU-6j for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 14:40:24 +0200 Original-Received: from localhost ([::1]:40519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwuhT-0002x4-IK for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 08:40:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwuhJ-0002ws-Cz for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 08:40:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwuhB-000508-3Q for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 08:40:13 -0400 Original-Received: from mailhost.shubertorg.com ([207.246.209.200]:27451 helo=webmail.shubertorg.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwuhA-0004rD-VF for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 08:40:05 -0400 Original-Received: from dakiya1.pegasus.local ([::1]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Thu, 2 Aug 2012 08:40:21 -0400 Thread-Topic: how to edit already defined macros Thread-Index: AQHNcD9GVRDd3OJnIkCOiC6nYjWkIJdF4WvugADDRYD//9GmwA== In-Reply-To: <4AC6D107-A92C-4D8D-9530-C44F7472F8AA@gmx.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86155 Archived-At: In the edit-macro-buffer there is a line near the top with the keyword "Com= mand:". You can give the macro a name there. To save it in a file, find that file and type M-x insert-kbd-macro That should give you LISP that you can use next time. (Don't forget where y= ou put it!) If you want to load it every time, then do the above in your .emacs file. I hope this helps. ,Doug > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Ferdinand > Sent: Thursday, 2012 August 02 07:22 > To: John Wiegley > Cc: help-gnu-emacs@gnu.org > Subject: Re: how to edit already defined macros >=20 >=20 > On Aug 2, 2012, at 5:42 AM, "John Wiegley" > wrote: >=20 > >>>>>> Ferdinand writes: > > > >> I made a macro, gave it a name and inserted it as lisp-code (M-x > >> insert-kbd-macro) in the .emacs file (so that it gets loaded on > startup). > > > >> But now, what do I do if I made a slight mistake and want to change > >> something in the macro? > > > > C-x C-k RET. And be amazed. > > > > John > > >=20 > Hi John, >=20 > ok, that brings me to the edit macro-buffer. And of course I can change > things there. >=20 > But these changes only persist for one session (as far as I know). > In my .emacs file is still the old lisp-code that is not affected by > changes in the macro-buffer and that will get loaded again the next > time I open emacs. >=20 > So, how can I for instance transform the (changed) macro-buffer into > lisp code, so that I can replace my original lisp code?