home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / lucidem / help / 164 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.2 KB  |  32 lines

  1. Newsgroups: alt.lucid-emacs.help
  2. Sender: help-lucid-emacs-request@lucid.com
  3. Date: Wed, 29 Jul 92 10:27:03 PDT
  4. Message-ID: <9207291727.AA22139@thalidomide.lucid>
  5. X-Windows: Dissatisfaction guaranteed.
  6. From: Jamie Zawinski <jwz@lucid.com>
  7. Subject: Re: RPC protocols in LEmacs 19
  8. References: <4028@seti.UUCP>
  9. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  10. Lines: 20
  11.  
  12. In message <4028@seti.UUCP> Chet Murthy wrote:
  13. >
  14. > Which incurs the allocation cost of the buffer/string list.  Does
  15. > anybody out there have a better idea?  Or, even better, has anybody
  16. > implemented this?
  17.  
  18. There are two ways to deal with processes in emacs: one is to have a function
  19. be called with a string of the process output as it arrives: this conses a
  20. string.  The other is to have the text automagically added to a buffer: this
  21. doesn't really cons anything, since buffers can easily be reused, but it
  22. doesn't give you any way of noticing when new output has arrived.
  23.  
  24. I think there should be a third way, which puts the text into a buffer, and
  25. then calls a function to tell you that it's there.  This seems to be what
  26. you're asking for.
  27.  
  28. But unless you're dealing with really large amounts of data, the "call a
  29. function with a string" method should be fine.
  30.  
  31.     -- Jamie
  32.