GNU Info

Info Node: (emacs-lisp-intro.info)insert-buffer

(emacs-lisp-intro.info)insert-buffer


Next: beginning-of-buffer Prev: copy-to-buffer Up: More Complex
Enter node , (file) or (file)node

The Definition of `insert-buffer'
=================================

   `insert-buffer' is yet another buffer-related function.  This
command copies another buffer _into_ the current buffer.  It is the
reverse of `append-to-buffer' or `copy-to-buffer', since they copy a
region of text _from_ the current buffer to another buffer.

   In addition, this code illustrates the use of `interactive' with a
buffer that might be "read-only" and the important distinction between
the name of an object and the object actually referred to.

insert-buffer code
insert-buffer interactive
When you can read, but not write.
insert-buffer body
The body has an `or' and a `let'.
if & or
Using an `if' instead of an `or'.
Insert or
How the `or' expression works.
Insert let
Two `save-excursion' expressions.

automatically generated by info2www version 1.2.2.9