all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fren Zeee <frenzeee@gmail.com>
To: "Emacs Dev [emacs-devel]" <emacs-devel@gnu.org>
Subject: [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent
Date: Sat, 4 Dec 2010 10:31:22 -0800	[thread overview]
Message-ID: <AANLkTi=j7QGyaNuYw0uSaZjWe3Ttz_Y86ksMg1CorewY@mail.gmail.com> (raw)

This is a newbie question for which I need quick help.

[Q] In emacs, how to copy a region of the buffer to a string to process ?

What are the various available functions and which is the lowest of these ?

copy-region-as-kill
  Command: Save the region as if killed, but don't kill it.
buffer-name
  Function: Return the name of BUFFER, as a string.
copy-to-buffer
  Command: Copy to specified buffer the text of the region.
current-buffer
  Function: Return the current buffer as a Lisp object.
get-buffer
  Function: Return the buffer named NAME (a string).

Thanks
Franz Xe



             reply	other threads:[~2010-12-04 18:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 18:31 Fren Zeee [this message]
2010-12-04 20:10 ` [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent Davis Herring
2010-12-06  2:40 ` Richard Stallman
2010-12-06  5:10   ` Fren Zeee

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='AANLkTi=j7QGyaNuYw0uSaZjWe3Ttz_Y86ksMg1CorewY@mail.gmail.com' \
    --to=frenzeee@gmail.com \
    --cc=emacs-devel@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.