help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How can I change "buffer" to "string"


From: Drew Adams
Subject: RE: How can I change "buffer" to "string"
Date: Wed, 5 Aug 2015 06:34:18 -0700 (PDT)

> 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]