all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Navy Cheng <navych@126.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I change "buffer" to "string"
Date: Wed, 5 Aug 2015 22:24:51 +0800	[thread overview]
Message-ID: <20150805142451.GA27314@debian> (raw)
In-Reply-To: <5f33bab1-954c-47d3-ad19-5287786b9d49@default>

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




  reply	other threads:[~2015-08-05 14:24 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
2015-08-05 14:24   ` Navy Cheng [this message]
     [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=20150805142451.GA27314@debian \
    --to=navych@126.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.