Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ucbvax!decwrl!labrea!eos!ames!xanth!mcnc!ecsvax!dukeac!bet From: bet@dukeac.UUCP (Bennett Todd) Newsgroups: comp.emacs Subject: Re: Wanted: minimal EMACS in C Message-ID: <1307@dukeac.UUCP> Date: 22 Mar 89 23:32:17 GMT References: <2200001@uxg.cso.uiuc.edu> Reply-To: bet@orion.mc.duke.edu (Bennett Todd) Organization: Radiology, Duke Med. Center, Durham, NC Lines: 32 In article <2200001@uxg.cso.uiuc.edu> phil@uxg.cso.uiuc.edu writes: > >I would like to find other versions of EMACS to "play" with. GNUEMACS is >already available here. I've tried UniPress "Emacs" and am not interested >in that bitter flavor. A previous posting mentions JOVE and ELLE. > >In particular I'd like to get my hands on a portable C source version of a >minimal EMACS, perhaps MicroEmacs. It doesn't have to have any macro >capability since I am intersted in hacking the source in C. I'd also be interested. All the EMACS-style editors I've seen are big enough to attempt to stand as complete, useful editors on their own two feet. I'd like to have a teeny, tiny editor that could reasonably be dropped into larger programs as a function for acquiring or modifying small chunks of text. For this sort of thing, a featureful, powerful, high-performance system is exactly what you don't want. Rather, simplicity, clear, portable coding, and minimal size are the concerns. Maybe I'll have to write one. Here's what I'd really love to see in an emacs(3): char *emacs(buff, fp, rows, cols, gotoxy) char *buff; /* buffer to be edited, lines separated w/ \n, may be realloc()-ed */ FILE *fp; /* file pointer for terminal I/O */ int rows; /* height of terminal or window */ int cols; /* width of terminal or window */ void (*gotoxy)(int x, int y); /* scoot to x, y */ Any takers? -Bennett bet@orion.mc.duke.edu