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

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