home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4838 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!news.cs.indiana.edu!arizona.edu!penny.telcom.arizona.edu!jew
  2. Newsgroups: gnu.emacs.help
  3. Subject: E-lisp problem...
  4. Message-ID: <JEW.92Nov17223445@venus.venus.sunquest.com>
  5. From: jew@venus.sunquest.com (Ward... James Ward)
  6. Date: 17 Nov 92 22:34:45
  7. Distribution: world,local
  8. Organization: Sunquest Information Systems
  9. Nntp-Posting-Host: venus.sunquest.com
  10. Lines: 43
  11.  
  12. I've never written in e-lisp, but I have a problem I need to solve in
  13. it.  I figure it is probably easy, but would like some suggestions.
  14. Is this the right place to ask this question?
  15.  
  16. Here's the problem:
  17.  
  18. While interacting with a program using emacs' tinymud.el, I'd like to
  19. be able to take a message containing directions from one place to
  20. another and convert them into movement commands and issue the to the
  21. muse.
  22.  
  23. Input:
  24.  
  25. Caspian pages: Path from Foyer to Cyberion City University, type Out, Out, s,
  26. Spin(to Main Transportation Spine <Section 7>), type 1 (to Main Transportation
  27. Spine <Section 1>), s, uni (to Cyberion City University).
  28.  
  29. Output: (one word per line followed by an enter at the end of the buffer)
  30.  
  31. Out
  32. Out
  33. s
  34. Spin
  35. 1
  36. s
  37. uni
  38.  
  39.  
  40. Details: Caspian is a program, so his output is always of this form.
  41. The directions begin with "type" or "Type", and are separated by
  42. commas.  All text prior to the first occurence of "[Tt]ype", all
  43. occurences of "[Tt]ype", and all text between parenthesis need to be
  44. discarded.
  45.  
  46. So, what I'd like to be able to do is mark a region, and have some
  47. e-lisp do the rest, including entering the movement commands for me at
  48. the bottom of the buffer.  Any e-lisp wizards out there want to take a
  49. stab at this one?
  50.  
  51. Thanks in advance!
  52. --
  53. jew@sunquest.com
  54.  
  55.