help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to edit already defined macros


From: Ferdinand
Subject: Re: how to edit already defined macros
Date: Thu, 2 Aug 2012 13:22:13 +0200

On Aug 2, 2012, at 5:42 AM, "John Wiegley" <johnw@newartisans.com> wrote:

>>>>>> Ferdinand  <Ferdinand.Gruebler@gmx.de> 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
> 

Hi John,

ok, that brings me to the edit macro-buffer. And of course I can change things 
there.

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.

So, how can I for instance transform the (changed) macro-buffer into lisp code, 
so that I can replace my original lisp code?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]