all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Navy Cheng <navych@126.com>, help-gnu-emacs@gnu.org
Subject: RE: How can I change "buffer" to "string"
Date: Wed, 5 Aug 2015 06:34:18 -0700 (PDT)	[thread overview]
Message-ID: <5f33bab1-954c-47d3-ad19-5287786b9d49@default> (raw)
In-Reply-To: <20150805034423.GA8540@debian>

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



  parent reply	other threads:[~2015-08-05 13:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05  3:44 How can I change "buffer" to "string" Navy Cheng
2015-08-05  5:04 ` Ian Zimmerman
2015-08-05 13:34 ` Drew Adams [this message]
2015-08-05 14:24   ` Navy Cheng
     [not found]   ` <mailman.7846.1438784713.904.help-gnu-emacs@gnu.org>
2015-08-05 14:27     ` Rusi
     [not found] <mailman.7829.1438746287.904.help-gnu-emacs@gnu.org>
2015-08-05  5:53 ` Pascal J. Bourguignon
2015-08-05  6:35   ` Navy Cheng
2015-08-05  6:49     ` Chunyang Xu
     [not found]   ` <mailman.7833.1438756549.904.help-gnu-emacs@gnu.org>
2015-08-05  8:10     ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f33bab1-954c-47d3-ad19-5287786b9d49@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=navych@126.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.