[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I change "buffer" to "string"
From: |
Rusi |
Subject: |
Re: How can I change "buffer" to "string" |
Date: |
Wed, 5 Aug 2015 07:27:42 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Wednesday, August 5, 2015 at 7:55:16 PM UTC+5:30, Navy Cheng wrote:
> Thank you for all of you. *buffer-substring* is what I want. Sorry again for
> my poor English.
>
> On Wed, Aug 05, 2015 at 06:34:18AM -0700, Drew Adams wrote:
> > > I want to change one line in a *buffer* to *string*, How can I do that ?
> >
> > As others have noted, your question is unclear, in particular,
> > what you mean by "change" is unclear.
> >
> > My own wild guess is that you want to copy a line from a buffer
> > as a string.
> >
> > To copy the current line as a string:
> > (buffer-substring (line-beginning-position) (line-end-position))
> >
Do check whether its buffer-substring-no-properties that you really want