all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How can I use fuction "append-to-buffer"?
@ 2002-08-19 17:00 Wu XiaoGuang
  0 siblings, 0 replies; 2+ messages in thread
From: Wu XiaoGuang @ 2002-08-19 17:00 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <ABC3DD304107D511B4D40002B32C1CF539A29A@brkmail01.adirtech.com>]

end of thread, other threads:[~2002-08-19 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-19 17:00 How can I use fuction "append-to-buffer"? Wu XiaoGuang
     [not found] <ABC3DD304107D511B4D40002B32C1CF539A29A@brkmail01.adirtech.com>
2002-08-19 20:33 ` Wu XiaoGuang

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.