From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.devel 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 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291487493 22777 80.91.229.12 (4 Dec 2010 18:31:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2010 18:31:33 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 04 19:31:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POwtM-00008U-DJ for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2010 19:31:29 +0100 Original-Received: from localhost ([127.0.0.1]:38149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POwtL-0000Vf-Uc for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2010 13:31:27 -0500 Original-Received: from [140.186.70.92] (port=48858 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POwtI-0000VX-6L for emacs-devel@gnu.org; Sat, 04 Dec 2010 13:31:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POwtH-0007JU-8t for emacs-devel@gnu.org; Sat, 04 Dec 2010 13:31:24 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:58669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POwtH-0007JQ-51 for emacs-devel@gnu.org; Sat, 04 Dec 2010 13:31:23 -0500 Original-Received: by iwn33 with SMTP id 33so1084171iwn.0 for ; Sat, 04 Dec 2010 10:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=jfpXZ2zzCWdkhddaigNsZW22o+ToAHV1letBQwHoJW0=; b=XiBmYiiSbqterg6mgbZ1A9RHsYjVRXzHGTuogrkskftdQcdWcNfXKP4ZniSx6EggkO r3VJR1cZlC35ko58Eap37qNTsxZVqC3h4fzCxnfAleXOtz3aQqo2vBF5NjyV2jWoKlLj fmMBfLE1phhh6tsEY877+zUmg+TZHk64POC4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KoRpKK+/HZaARvUEB8Hd4isFXkywIs3gA77+tgdvEPJS6JepcojWgDeISLc+FoYH4x Umg2NsAvNeVI1GMNO0/vq51vVkcqRnd3hoiwYdF0Mvl9WWT3ZexNSKs/N81k8l36Ew6p HALBNNTHlarNAyCk5BnuMWDCWIJ8XTLCMBEjg= Original-Received: by 10.231.16.67 with SMTP id n3mr3484167iba.113.1291487482339; Sat, 04 Dec 2010 10:31:22 -0800 (PST) Original-Received: by 10.231.35.195 with HTTP; Sat, 4 Dec 2010 10:31:22 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133410 Archived-At: 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