all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wu XiaoGuang <xgwu@linux.net.cn>
Subject: How can I use fuction "append-to-buffer"?
Date: Mon, 19 Aug 2002 17:00:46 +0000	[thread overview]
Message-ID: <3D61243E.6070400@linux.net.cn> (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.

             reply	other threads:[~2002-08-19 17:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 17:00 Wu XiaoGuang [this message]
     [not found] <ABC3DD304107D511B4D40002B32C1CF539A29A@brkmail01.adirtech.com>
2002-08-19 20:33 ` How can I use fuction "append-to-buffer"? Wu XiaoGuang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D61243E.6070400@linux.net.cn \
    --to=xgwu@linux.net.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.