home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / emacs / 3022 < prev    next >
Encoding:
Text File  |  1992-09-02  |  878 b   |  27 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!mcsun!sun4nl!alchemy!piet
  3. From: piet@cs.ruu.nl (Piet van Oostrum)
  4. Subject: Re: How to get region into a string?
  5. Sender: network-news@cs.ruu.nl
  6. Message-ID: <1992Sep3.104011.24357@cs.ruu.nl>
  7. In-Reply-To: jrv@siemens.com. (Jim Vallino)
  8. Date: Thu, 3 Sep 1992 10:40:11 GMT
  9. Reply-To: piet@cs.ruu.nl (Piet van Oostrum)
  10. References: <102345@siemens.siemens.com>
  11. Organization: Dept of Computer Science, Utrecht University, The Netherlands
  12. Lines: 13
  13.  
  14. >>>>> jrv@siemens.com. (Jim Vallino) (JV) writes:
  15.  
  16. JV> Simple question.  How do I get the region into a string in an emacs lisp
  17. JV> program?
  18.  
  19. If you do an apropos on "string" you will find:
  20.  
  21. buffer-substring          
  22.   Function: Return the contents of part of the current buffer as a string.
  23.  
  24. (buffer-substring (point) (mark)) should be a good start, I think.
  25. -- 
  26. Piet van Oostrum <piet@cs.ruu.nl>
  27.