🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.68k
Article #54

Saving keyboard macros in uEmacs

#54
From: RDROYA01
Date: Wed, 11 Jun 1986 00:11
28 lines
1747 bytes
Hello again,

I just wanted to tell about the latest addition to the uEmacs I've been
working on.  I missed the ability to save keyboard macros, so I devised a
way to do that.  First you define a keyboard macro using the usual macro
commands.  Then you issue the extrct_macr() function.  This function opens a
pop-up window, like that for the buffer list, it "reads" the keyboard macro,
and assigns function declarations and names to the values.  For example, if
you want a macro that drops the "." out of the midst of current onto the
next line preserving the indent, the keyboard macro is CTRL|'E'
(end-of-line) and CTRL|'J' (indent subsequent same as this).  The extract
macro function prompts for a function name, opens a window, and writes to
it.  Here's the actual output:

mdnlin(f,n)
int f,n;
{
        if(!gotoeol(f, n))
                return(FALSE);
        if(!indent(f, n))
                return(FALSE);
        return(TRUE);
}

This can then be added to a macro file and compiled into the program.  I use
the function for proto-typing new commands and, eventually, so that other
users here can "write" their own compiled functions pretty easily.
Technical Details
Message-ID: <8606110041.AA01880@ucbjade.Berkeley.Edu>
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!ULKYVX.BITNET!RDROYA01

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!ULKYVX.BITNET!RDROYA01
From: RDROYA01@ULKYVX.BITNET.UUCP
Newsgroups: mod.computers.68k
Subject: Saving keyboard macros in uEmacs
Message-ID: <8606110041.AA01880@ucbjade.Berkeley.Edu>
Date: Tue, 10-Jun-86 20:11:00 EDT
Article-I.D.: ucbjade.8606110041.AA01880
Posted: Tue Jun 10 20:11:00 1986
Date-Received: Wed, 11-Jun-86 18:54:29 EDT
Sender: mwm@ucbvax.BERKELEY.EDU
Organization: University of Louisville
Lines: 28
Approved: info-68k@ucbvax.berkeley.edu