[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I change "buffer" to "string"
From: |
Navy Cheng |
Subject: |
Re: How can I change "buffer" to "string" |
Date: |
Wed, 5 Aug 2015 22:24:51 +0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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))
>