From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wu XiaoGuang Newsgroups: gmane.emacs.help Subject: How can I use fuction "append-to-buffer"? Date: Mon, 19 Aug 2002 17:00:46 +0000 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D61243E.6070400@linux.net.cn> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1029747192 21052 127.0.0.1 (19 Aug 2002 08:53:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2002 08:53:12 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17giHd-0005TD-00 for ; Mon, 19 Aug 2002 10:53:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17giIZ-0003mU-00; Mon, 19 Aug 2002 04:54:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17giIM-0003m4-00 for help-gnu-emacs@gnu.org; Mon, 19 Aug 2002 04:53:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17giIK-0003ll-00 for help-gnu-emacs@gnu.org; Mon, 19 Aug 2002 04:53:53 -0400 Original-Received: from [210.82.103.10] (helo=mx.linux.net.cn) by monty-python.gnu.org with esmtp (Exim 4.10) id 17giIJ-0003lf-00 for Help-gnu-emacs@gnu.org; Mon, 19 Aug 2002 04:53:51 -0400 Original-Received: from linux.net.cn (TNT1-0-40.yz.js.cn [202.102.33.40]) by mx.linux.net.cn (Postfix) with ESMTP id 790D32419 for ; Mon, 19 Aug 2002 16:54:24 +0800 (CST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us, zh-cn, zh-tw Original-To: Help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:835 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:835 Hi,all: I am reading Emacs Lisp Intro. There is one fuction: (defun append-to-buffer (buffer start end) "Append to specified buffer the text of the region. It is inserted into that buffer before its point. When calling from a program, give three arguments: a buffer or the name of one, and two character numbers specifying the portion of the current buffer to be copied." (interactive "BAppend to buffer: \nr") (let ((oldbuf (current-buffer))) (save-excursion (set-buffer (get-buffer-create buffer)) (insert-buffer-substring oldbuf start end)))) I want to know how can I use it? Thank you.