home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / emacs / 3025 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.0 KB  |  36 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!tekbspa!tekbspa!esh
  3. From: esh@curly.tekbspa.com (Edward S. Hirgelt)
  4. Subject: Re: How to get region into a string?
  5. In-Reply-To: jrv@siemens.com.'s message of 2 Sep 92 20:52:43 GMT
  6. Message-ID: <ESH.92Sep3093100@curly.tekbspa.com>
  7. Sender: news@tss.com (USENET Network News)
  8. Organization: Direct Interfaces Corporation @ Teknekron
  9. References: <102345@siemens.siemens.com>
  10. Date: Thu, 3 Sep 1992 17:31:00 GMT
  11. Lines: 23
  12.  
  13.  
  14. On 2 Sep 92 20:52:43 GMT,
  15. jrv@siemens.com. (Jim Vallino) said:
  16.  
  17. Jim> Simple question.  How do I get the region into a string in an emacs
  18. Jim> lisp program?
  19.  
  20. Jim> I'm looking for something like the function region-to-string which
  21. Jim> I have used in mock-lisp functions.
  22.  
  23. A quick check of ^H a substring turned up several hits, but the
  24. important one is buffer-substring:
  25.  
  26.     buffer-substring:
  27.     Return the contents of part of the current buffer as a string.
  28.     The two arguments specify the start and end, as character numbers.
  29.  
  30. Enjoy,
  31. Ed
  32. --
  33. Ed Hirgelt            esh@tss.com
  34. Direct Interfaces Corporation
  35. San Jose, Ca.
  36.