* [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent
@ 2010-12-04 18:31 Fren Zeee
2010-12-04 20:10 ` Davis Herring
2010-12-06 2:40 ` Richard Stallman
0 siblings, 2 replies; 4+ messages in thread
From: Fren Zeee @ 2010-12-04 18:31 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent
2010-12-04 18:31 [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent Fren Zeee
@ 2010-12-04 20:10 ` Davis Herring
2010-12-06 2:40 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Davis Herring @ 2010-12-04 20:10 UTC (permalink / raw)
To: Fren Zeee; +Cc: Emacs Dev [emacs-devel]
> [Q] In emacs, how to copy a region of the buffer to a string to process ?
If you mean "how to send a buffer substring to a subprocess", it's
`process-send-region'. If you mean "how to copy a region for further
processing", it's `buffer-substring' in Lisp and `kill-ring-save' (M-w)
for the user.
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent
2010-12-04 18:31 [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent Fren Zeee
2010-12-04 20:10 ` Davis Herring
@ 2010-12-06 2:40 ` Richard Stallman
2010-12-06 5:10 ` Fren Zeee
1 sibling, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2010-12-06 2:40 UTC (permalink / raw)
To: Fren Zeee; +Cc: emacs-devel
This list is for discussions among developers of Emacs.
Please use help-gnu-emacs@gnu.org to ask for help.
--
Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-06 5:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04 18:31 [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent Fren Zeee
2010-12-04 20:10 ` Davis Herring
2010-12-06 2:40 ` Richard Stallman
2010-12-06 5:10 ` Fren Zeee
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).