[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How can I use fuction "append-to-buffer"?
From: |
Wu XiaoGuang |
Subject: |
How can I use fuction "append-to-buffer"? |
Date: |
Mon, 19 Aug 2002 17:00:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 |
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.
- How can I use fuction "append-to-buffer"?,
Wu XiaoGuang <=