Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decwrl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!decvax!decwrl!dyer@vaxuum.DEC From: dyer@vaxuum.DEC (Example #22) Newsgroups: net.emacs Subject: Re: saving macros??? Message-ID: <371@decwrl.UUCP> Date: Mon, 21-May-84 12:50:01 EDT Article-I.D.: decwrl.371 Posted: Mon May 21 12:50:01 1984 Date-Received: Tue, 22-May-84 08:27:32 EDT Organization: DEC Engineering Network Lines: 20 Re: saving macros???___________________________________________________________ Boy, that's a tall order. If you're into heavy kludgery, there's a way to do it: o Use (edit-macro). This will put your macro into a buffer called ``Macro edit'' and you can edit it. o Write the macro into a file. o The next day, when you go back into EMACS, do (edit-macro). The ``Macro edit'' buffer will reappear. o Insert the file into the ``Macro edit'' buffer. This is known as a hack. If there was a way to automate it, I'd like to look at it. Now, as far as rebinding the macro to another key sequence, use the (define-buffer-macro) function, which will make what's in that buffer become the keyboard macro. You can then use (define-keyboard-macro) to give the macro a name and (bind-to-key) to bind the macro to a key. Or, if you'd like to try it, there's a (define-string-macro) function that may or may not work if not called interactively. It would make interes- ting MLisp... <_Jym_>