home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!tekbspa!tekbspa!esh
- From: esh@curly.tekbspa.com (Edward S. Hirgelt)
- Subject: Re: How to get region into a string?
- In-Reply-To: jrv@siemens.com.'s message of 2 Sep 92 20:52:43 GMT
- Message-ID: <ESH.92Sep3093100@curly.tekbspa.com>
- Sender: news@tss.com (USENET Network News)
- Organization: Direct Interfaces Corporation @ Teknekron
- References: <102345@siemens.siemens.com>
- Date: Thu, 3 Sep 1992 17:31:00 GMT
- Lines: 23
-
-
- On 2 Sep 92 20:52:43 GMT,
- jrv@siemens.com. (Jim Vallino) said:
-
- Jim> Simple question. How do I get the region into a string in an emacs
- Jim> lisp program?
-
- Jim> I'm looking for something like the function region-to-string which
- Jim> I have used in mock-lisp functions.
-
- A quick check of ^H a substring turned up several hits, but the
- important one is buffer-substring:
-
- buffer-substring:
- Return the contents of part of the current buffer as a string.
- The two arguments specify the start and end, as character numbers.
-
- Enjoy,
- Ed
- --
- Ed Hirgelt esh@tss.com
- Direct Interfaces Corporation
- San Jose, Ca.
-