comparison lispref/buffers.texi @ 83353:532e0a9335a9

Merged in changes from CVS trunk. Plus added lisp/term tweaks. Patches applied: * lorentey@elte.hu--2004/emacs--cvs-trunk--0--base-0 tag of miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-474 * lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-1 Add CVS metadata files. * lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-2 Update from CVS. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-393
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 04 Sep 2005 03:48:17 +0000
parents a1cc73fd8161
children 50ae7c160214 2d92f5c9d6ae
comparison
equal deleted inserted replaced
83352:b258b3492423 83353:532e0a9335a9
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual. 2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2004 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2002, 2003,
4 @c Free Software Foundation, Inc. 4 @c 2004, 2005 Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 5 @c See the file elisp.texi for copying conditions.
6 @setfilename ../info/buffers 6 @setfilename ../info/buffers
7 @node Buffers, Windows, Backups and Auto-Saving, Top 7 @node Buffers, Windows, Backups and Auto-Saving, Top
8 @chapter Buffers 8 @chapter Buffers
9 @cindex buffer 9 @cindex buffer
755 755
756 @node The Buffer List 756 @node The Buffer List
757 @section The Buffer List 757 @section The Buffer List
758 @cindex buffer list 758 @cindex buffer list
759 759
760 The @dfn{buffer list} is a list of all live buffers. Creating a 760 The @dfn{buffer list} is a list of all live buffers. The order of
761 buffer adds it to this list, and killing a buffer removes it. The 761 the buffers in the list is based primarily on how recently each buffer
762 order of the buffers in the list is based primarily on how recently 762 has been displayed in a window. Several functions, notably
763 each buffer has been displayed in the selected window. Buffers move 763 @code{other-buffer}, use this ordering. A buffer list displayed for
764 to the front of the list when they are selected (selecting a window 764 the user also follows this order.
765 that already displays the buffer counts as selecting the buffer), and 765
766 Creating a buffer adds it to the end of the buffer list, and killing
767 a buffer removes it. Buffers move to the front of the list when they
768 are selected for display in a window (@pxref{Displaying Buffers}), and
766 to the end when they are buried (see @code{bury-buffer}, below). 769 to the end when they are buried (see @code{bury-buffer}, below).
767 Several functions, notably @code{other-buffer}, use this ordering. A 770 There are no functions available to the Lisp programmer which directly
768 buffer list displayed for the user also follows this order. 771 manipulate the buffer list.
769 772
770 In addition to the fundamental Emacs buffer list, each frame has its 773 In addition to the fundamental Emacs buffer list, each frame has its
771 own version of the buffer list, in which the buffers that have been 774 own version of the buffer list, in which the buffers that have been
772 selected in that frame come first, starting with the buffers most 775 selected in that frame come first, starting with the buffers most
773 recently selected @emph{in that frame}. (This order is recorded in 776 recently selected @emph{in that frame}. (This order is recorded in
774 @var{frame}'s @code{buffer-list} frame parameter; see @ref{Window Frame 777 @var{frame}'s @code{buffer-list} frame parameter; see @ref{Buffer
775 Parameters}.) The buffers that were never selected in @var{frame} come 778 Parameters}.) The buffers that were never selected in @var{frame} come
776 afterward, ordered according to the fundamental Emacs buffer list. 779 afterward, ordered according to the fundamental Emacs buffer list.
777 780
778 @defun buffer-list &optional frame 781 @defun buffer-list &optional frame
779 This function returns the buffer list, including all buffers, even those 782 This function returns the buffer list, including all buffers, even those
836 buffer list that is not now visible in any window in a visible frame. 839 buffer list that is not now visible in any window in a visible frame.
837 840
838 If @var{frame} has a non-@code{nil} @code{buffer-predicate} parameter, 841 If @var{frame} has a non-@code{nil} @code{buffer-predicate} parameter,
839 then @code{other-buffer} uses that predicate to decide which buffers to 842 then @code{other-buffer} uses that predicate to decide which buffers to
840 consider. It calls the predicate once for each buffer, and if the value 843 consider. It calls the predicate once for each buffer, and if the value
841 is @code{nil}, that buffer is ignored. @xref{Window Frame Parameters}. 844 is @code{nil}, that buffer is ignored. @xref{Buffer Parameters}.
842 845
843 @c Emacs 19 feature 846 @c Emacs 19 feature
844 If @var{visible-ok} is @code{nil}, @code{other-buffer} avoids returning 847 If @var{visible-ok} is @code{nil}, @code{other-buffer} avoids returning
845 a buffer visible in any window on any visible frame, except as a last 848 a buffer visible in any window on any visible frame, except as a last
846 resort. If @var{visible-ok} is non-@code{nil}, then it does not matter 849 resort. If @var{visible-ok} is non-@code{nil}, then it does not matter