🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1799

E-lisp problem...

#1799
From: Ward... James Ward
Date: Tue, 17 Nov 1992 22:34
42 lines
1764 bytes
I've never written in e-lisp, but I have a problem I need to solve in
it.  I figure it is probably easy, but would like some suggestions.
Is this the right place to ask this question?

Here's the problem:

While interacting with a program using emacs' tinymud.el, I'd like to
be able to take a message containing directions from one place to
another and convert them into movement commands and issue the to the
muse.

Input:

Caspian pages: Path from Foyer to Cyberion City University, type Out, Out, s,
Spin(to Main Transportation Spine <Section 7>), type 1 (to Main Transportation
Spine <Section 1>), s, uni (to Cyberion City University).

Output: (one word per line followed by an enter at the end of the buffer)

Out
Out
s
Spin
1
s
uni


Details: Caspian is a program, so his output is always of this form.
The directions begin with "type" or "Type", and are separated by
commas.  All text prior to the first occurence of "[Tt]ype", all
occurences of "[Tt]ype", and all text between parenthesis need to be
discarded.

So, what I'd like to be able to do is mark a region, and have some
e-lisp do the rest, including entering the movement commands for me at
the bottom of the buffer.  Any e-lisp wizards out there want to take a
stab at this one?

Thanks in advance!
--
jew@sunquest.com
Technical Details
Message-ID: <JEW.92Nov17223445@venus.venus.sunquest.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!news.cs.indiana.edu!arizona.edu!penny.telcom.arizona.edu!jew

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!news.cs.indiana.edu!arizona.edu!penny.telcom.arizona.edu!jew
Newsgroups: gnu.emacs.help
Subject: E-lisp problem...
Message-ID: <JEW.92Nov17223445@venus.venus.sunquest.com>
From: jew@venus.sunquest.com (Ward... James Ward)
Date: 17 Nov 92 22:34:45
Distribution: world,local
Organization: Sunquest Information Systems
Nntp-Posting-Host: venus.sunquest.com
Lines: 43