all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I change "buffer" to "string"
Date: Wed, 5 Aug 2015 07:27:42 -0700 (PDT)	[thread overview]
Message-ID: <8a479349-f4f8-4960-9ecf-a557c591449e@googlegroups.com> (raw)
In-Reply-To: <mailman.7846.1438784713.904.help-gnu-emacs@gnu.org>

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


  parent reply	other threads:[~2015-08-05 14:27 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
     [not found]   ` <mailman.7846.1438784713.904.help-gnu-emacs@gnu.org>
2015-08-05 14:27     ` Rusi [this message]
     [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=8a479349-f4f8-4960-9ecf-a557c591449e@googlegroups.com \
    --to=rustompmody@gmail.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.