aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'lispref')
-rw-r--r--lispref/ChangeLog19
-rw-r--r--lispref/buffers.texi6
-rw-r--r--lispref/display.texi9
-rw-r--r--lispref/searching.texi13
-rw-r--r--lispref/windows.texi104
5 files changed, 111 insertions, 40 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog
index cdf120e7a41..a8c9c295a83 100644
--- a/lispref/ChangeLog
+++ b/lispref/ChangeLog
@@ -1,3 +1,22 @@
12004-07-16 Jim Blandy <jimb@redhat.com>
2
3 * searching.texi (Regexp Backslash): Document new \_< and \_>
4 operators.
5
62004-07-16 Juanma Barranquero <lektu@terra.es>
7
8 * display.texi (Images): Fix Texinfo usage.
9
102004-07-14 Luc Teirlinck <teirllm@auburn.edu>
11
12 * buffers.texi (Modification Time): `visited-file-modtime' now
13 returns a list of two integers, instead of a cons.
14
152004-07-13 Luc Teirlinck <teirllm@auburn.edu>
16
17 * windows.texi: Various changes in addition to:
18 (Splitting Windows): Add `split-window-keep-point'.
19
12004-07-09 Richard M. Stallman <rms@gnu.org> 202004-07-09 Richard M. Stallman <rms@gnu.org>
2 21
3 * frames.texi (Input Focus): Minor fix. 22 * frames.texi (Input Focus): Minor fix.
diff --git a/lispref/buffers.texi b/lispref/buffers.texi
index 8391159c088..d39a0746fe1 100644
--- a/lispref/buffers.texi
+++ b/lispref/buffers.texi
@@ -625,9 +625,9 @@ file should not be done.
625@c Emacs 19 feature 625@c Emacs 19 feature
626@defun visited-file-modtime 626@defun visited-file-modtime
627This function returns the current buffer's recorded last file 627This function returns the current buffer's recorded last file
628modification time, as a list of the form @code{(@var{high} . 628modification time, as a list of the form @code{(@var{high} @var{low})}.
629@var{low})}. (This is the same format that @code{file-attributes} 629(This is the same format that @code{file-attributes} uses to return
630uses to return time values; see @ref{File Attributes}.) 630time values; see @ref{File Attributes}.)
631 631
632The function returns zero if the buffer has no recorded last 632The function returns zero if the buffer has no recorded last
633modification time, which can happen, for instance, if the record has 633modification time, which can happen, for instance, if the record has
diff --git a/lispref/display.texi b/lispref/display.texi
index b6fd015beba..e77edc88aa1 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -2907,7 +2907,7 @@ To know which image types are really available, use
2907This in an alist of image types vs external libraries needed to 2907This in an alist of image types vs external libraries needed to
2908display them. 2908display them.
2909 2909
2910Each element is a list @code{(@var{IMAGE-TYPE} @var{LIBRARY}...)}, 2910Each element is a list @code{(@var{image-type} @var{library}...)},
2911where the car is a supported image format from @code{image-types}, and 2911where the car is a supported image format from @code{image-types}, and
2912the rest are strings giving alternate filenames for the corresponding 2912the rest are strings giving alternate filenames for the corresponding
2913external libraries to load. 2913external libraries to load.
@@ -2924,9 +2924,10 @@ into Emacs.
2924@defun image-type-available-p type 2924@defun image-type-available-p type
2925@findex image-type-available-p 2925@findex image-type-available-p
2926 2926
2927This function returns non-nil if image type @var{TYPE} is available, 2927This function returns non-@code{nil} if image type @var{type} is
2928i.e., if images of this type can be loaded and displayed in Emacs. 2928available, i.e., if images of this type can be loaded and displayed in
2929@var{TYPE} should be one of the types contained in @code{image-types}. 2929Emacs. @var{type} should be one of the types contained in
2930@code{image-types}.
2930 2931
2931For image types whose support libraries are statically linked, this 2932For image types whose support libraries are statically linked, this
2932function always returns @code{t}; for other image types, it returns 2933function always returns @code{t}; for other image types, it returns
diff --git a/lispref/searching.texi b/lispref/searching.texi
index 4a2703fd640..fd0d0e172a0 100644
--- a/lispref/searching.texi
+++ b/lispref/searching.texi
@@ -666,6 +666,19 @@ word-constituent character follows.
666matches the empty string, but only at the end of a word. @samp{\>} 666matches the empty string, but only at the end of a word. @samp{\>}
667matches at the end of the buffer (or string) only if the contents end 667matches at the end of the buffer (or string) only if the contents end
668with a word-constituent character. 668with a word-constituent character.
669
670@item \_<
671@cindex @samp{\_<} in regexp
672matches the empty string, but only at the beginning of a symbol. A
673symbol is a sequence of one or more word or symbol constituent
674characters. @samp{\_<} matches at the beginning of the buffer (or
675string) only if a symbol-constituent character follows.
676
677@item \_>
678@cindex @samp{\_>} in regexp
679matches the empty string, but only at the end of a symbol. @samp{\_>}
680matches at the end of the buffer (or string) only if the contents end
681with a symbol-constituent character.
669@end table 682@end table
670 683
671@kindex invalid-regexp 684@kindex invalid-regexp
diff --git a/lispref/windows.texi b/lispref/windows.texi
index 01d7d3bfb4b..92eb6cbc85d 100644
--- a/lispref/windows.texi
+++ b/lispref/windows.texi
@@ -158,7 +158,6 @@ This function splits @var{window} into two windows. The original
158window @var{window} remains the selected window, but occupies only 158window @var{window} remains the selected window, but occupies only
159part of its former screen area. The rest is occupied by a newly created 159part of its former screen area. The rest is occupied by a newly created
160window which is returned as the value of this function. 160window which is returned as the value of this function.
161This function returns the newly created window.
162 161
163If @var{horizontal} is non-@code{nil}, then @var{window} splits into 162If @var{horizontal} is non-@code{nil}, then @var{window} splits into
164two side by side windows. The original window @var{window} keeps the 163two side by side windows. The original window @var{window} keeps the
@@ -272,12 +271,34 @@ This function splits the selected window into two windows, one above the
272other, leaving the upper of the two windows selected, with @var{size} 271other, leaving the upper of the two windows selected, with @var{size}
273lines. (If @var{size} is negative, then the lower of the two windows 272lines. (If @var{size} is negative, then the lower of the two windows
274gets @minus{} @var{size} lines and the upper window gets the rest, but 273gets @minus{} @var{size} lines and the upper window gets the rest, but
275the upper window is still the one selected.) 274the upper window is still the one selected.) However, if
275@code{split-window-keep-point} (see below) is @code{nil}, then either
276window can be selected.
277
278In other respects, this function is similar to @code{split-window}.
279In particular, the upper window is the original one and the return
280value is the new, lower window.
276@end deffn 281@end deffn
277 282
283@defopt split-window-keep-point
284If this variable is non-@code{nil} (the default), then
285@code{split-window-vertically} behaves as described above.
286
287If it is @code{nil}, then @code{split-window-vertically} adjusts point
288in each of the two windows to avoid scrolling. (This is useful on
289slow terminals.) It selects whichever window contains the screen line
290that point was previously on.
291
292This variable only affects the behavior of @code{split-window-vertically}.
293It has no effect on the other functions described here.
294@end defopt
295
278@deffn Command split-window-horizontally &optional size 296@deffn Command split-window-horizontally &optional size
279This function splits the selected window into two windows 297This function splits the selected window into two windows
280side-by-side, leaving the selected window with @var{size} columns. 298side-by-side, leaving the selected window on the left with @var{size}
299columns. If @var{size} is negative, the rightmost window gets
300@minus{} @var{size} columns, but the leftmost window still remains
301selected.
281 302
282This function is basically an interface to @code{split-window}. 303This function is basically an interface to @code{split-window}.
283You could define a simplified version of the function like this: 304You could define a simplified version of the function like this:
@@ -364,17 +385,19 @@ deleting the other windows in that frame. If @var{window} is omitted or
364The return value is @code{nil}. 385The return value is @code{nil}.
365@end deffn 386@end deffn
366 387
367@deffn Command delete-windows-on buffer &optional frame 388@deffn Command delete-windows-on buffer-or-name &optional frame
368This function deletes all windows showing @var{buffer}. If there are 389This function deletes all windows showing @var{buffer-or-name}. If
369no windows showing @var{buffer}, it does nothing. 390there are no windows showing @var{buffer-or-name}, it does nothing.
391@var{buffer-or-name} must be a buffer or the name of an existing
392buffer.
370 393
371@code{delete-windows-on} operates frame by frame. If a frame has 394@code{delete-windows-on} operates frame by frame. If a frame has
372several windows showing different buffers, then those showing 395several windows showing different buffers, then those showing
373@var{buffer} are removed, and the others expand to fill the space. If 396@var{buffer-or-name} are removed, and the others expand to fill the
374all windows in some frame are showing @var{buffer} (including the case 397space. If all windows in some frame are showing @var{buffer-or-name}
375where there is only one window), then the frame reverts to having a 398(including the case where there is only one window), then the frame
376single window showing another buffer chosen with @code{other-buffer}. 399winds up with a single window showing another buffer chosen with
377@xref{The Buffer List}. 400@code{other-buffer}. @xref{The Buffer List}.
378 401
379The argument @var{frame} controls which frames to operate on. This 402The argument @var{frame} controls which frames to operate on. This
380function does not use it in quite the same way as the other functions 403function does not use it in quite the same way as the other functions
@@ -412,8 +435,9 @@ which the cursor appears and to which many commands apply.
412 435
413@defun select-window window &optional norecord 436@defun select-window window &optional norecord
414This function makes @var{window} the selected window. The cursor then 437This function makes @var{window} the selected window. The cursor then
415appears in @var{window} (on redisplay). The buffer being displayed in 438appears in @var{window} (on redisplay). Unless @var{window} was
416@var{window} is immediately designated the current buffer. 439already selected, @code{select-window} makes @var{window}'s buffer the
440current buffer.
417 441
418Normally @var{window}'s selected buffer is moved to the front of the 442Normally @var{window}'s selected buffer is moved to the front of the
419buffer list, but if @var{norecord} is non-@code{nil}, the buffer list 443buffer list, but if @var{norecord} is non-@code{nil}, the buffer list
@@ -431,14 +455,18 @@ The return value is @var{window}.
431@end defun 455@end defun
432 456
433@defmac save-selected-window forms@dots{} 457@defmac save-selected-window forms@dots{}
434This macro records the selected window of each frame, executes 458This macro records the selected window, as well as the selected window
435@var{forms} in sequence, then restores the earlier selected windows. 459of each frame, executes @var{forms} in sequence, then restores the
460earlier selected windows. It returns the value of the last form in
461@var{forms}.
436 462
437This macro does not save or restore anything about the sizes, 463This macro does not save or restore anything about the sizes,
438arrangement or contents of windows; therefore, if the @var{forms} 464arrangement or contents of windows; therefore, if the @var{forms}
439change them, the change persists. If the previously selected window 465change them, the change persists. If the previously selected window
440of some frame is no longer live at the time of exit from this form, 466of some frame is no longer live at the time of exit from @var{forms},
441that frame's selected window is left alone. 467that frame's selected window is left alone. If the previously
468selected window is no longer live, then whatever window is selected at
469the end of @var{forms} remains selected.
442@end defmac 470@end defmac
443 471
444@defmac with-selected-window window forms@dots{} 472@defmac with-selected-window window forms@dots{}
@@ -446,7 +474,7 @@ This macro selects @var{window} (without changing the buffer list),
446executes @var{forms} in sequence, then restores the previously 474executes @var{forms} in sequence, then restores the previously
447selected window (unless that window is no longer alive). It is similar 475selected window (unless that window is no longer alive). It is similar
448to @code{save-selected-window} except that it explicitly selects 476to @code{save-selected-window} except that it explicitly selects
449@var{window} and that it does not alter the buffer list sequence. 477@var{window}, without altering the buffer list sequence.
450@end defmac 478@end defmac
451 479
452@cindex finding windows 480@cindex finding windows
@@ -556,7 +584,9 @@ are the possible values and their meanings:
556@table @asis 584@table @asis
557@item @code{nil} 585@item @code{nil}
558Consider all the windows in @var{window}'s frame, plus the minibuffer 586Consider all the windows in @var{window}'s frame, plus the minibuffer
559used by that frame even if it lies in some other frame. 587used by that frame even if it lies in some other frame. If the
588minibuffer counts (as determined by @var{minibuf}), then all windows on
589all frames that share that minibuffer count too.
560 590
561@item @code{t} 591@item @code{t}
562Consider all windows in all existing frames. 592Consider all windows in all existing frames.
@@ -658,9 +688,10 @@ when you need complete control.
658 688
659@defun set-window-buffer window buffer-or-name &optional keep-margins 689@defun set-window-buffer window buffer-or-name &optional keep-margins
660This function makes @var{window} display @var{buffer-or-name} as its 690This function makes @var{window} display @var{buffer-or-name} as its
661contents. It returns @code{nil}. This is the fundamental primitive 691contents. It returns @code{nil}. @var{buffer-or-name} must be a
662for changing which buffer is displayed in a window, and all ways 692buffer, or the name of an existing buffer. This is the fundamental
663of doing that call this function. 693primitive for changing which buffer is displayed in a window, and all
694ways of doing that call this function.
664 695
665@example 696@example
666@group 697@group
@@ -770,7 +801,8 @@ the current buffer but does not display it in the selected window.
770If @var{buffer-or-name} does not identify an existing buffer, then a new 801If @var{buffer-or-name} does not identify an existing buffer, then a new
771buffer by that name is created. The major mode for the new buffer is 802buffer by that name is created. The major mode for the new buffer is
772set according to the variable @code{default-major-mode}. @xref{Auto 803set according to the variable @code{default-major-mode}. @xref{Auto
773Major Mode}. 804Major Mode}. If @var{buffer-or-name} is @code{nil},
805@code{switch-to-buffer} chooses a buffer using @code{other-buffer}.
774 806
775Normally the specified buffer is put at the front of the buffer list 807Normally the specified buffer is put at the front of the buffer list
776(both the selected frame's buffer list and the frame-independent buffer 808(both the selected frame's buffer list and the frame-independent buffer
@@ -783,6 +815,9 @@ the binding of @kbd{C-x b}. It is also used frequently in programs. It
783returns the buffer that it switched to. 815returns the buffer that it switched to.
784@end deffn 816@end deffn
785 817
818The next two functions are similar to @code{switch-to-buffer}, except
819for the described features.
820
786@deffn Command switch-to-buffer-other-window buffer-or-name &optional norecord 821@deffn Command switch-to-buffer-other-window buffer-or-name &optional norecord
787This function makes @var{buffer-or-name} the current buffer and 822This function makes @var{buffer-or-name} the current buffer and
788displays it in a window not currently selected. It then selects that 823displays it in a window not currently selected. It then selects that
@@ -842,12 +877,12 @@ This function updates the buffer list just like @code{switch-to-buffer}
842unless @var{norecord} is non-@code{nil}. 877unless @var{norecord} is non-@code{nil}.
843@end defun 878@end defun
844 879
845@deffn Command replace-buffer-in-windows buffer 880@deffn Command replace-buffer-in-windows buffer-or-name
846This function replaces @var{buffer} with some other buffer in all 881This function replaces @var{buffer-or-name} with some other buffer in all
847windows displaying it. The other buffer used is chosen with 882windows displaying it. It chooses the other buffer with
848@code{other-buffer}. In the usual applications of this function, you 883@code{other-buffer}. In the usual applications of this function, you
849don't care which other buffer is used; you just want to make sure that 884don't care which other buffer is used; you just want to make sure that
850@var{buffer} is no longer displayed. 885@var{buffer-or-name} is no longer displayed.
851 886
852This function returns @code{nil}. 887This function returns @code{nil}.
853@end deffn 888@end deffn
@@ -864,7 +899,8 @@ functions and commands use this subroutine. Here we describe how to use
864This command makes @var{buffer-or-name} appear in some window, like 899This command makes @var{buffer-or-name} appear in some window, like
865@code{pop-to-buffer}, but it does not select that window and does not 900@code{pop-to-buffer}, but it does not select that window and does not
866make the buffer current. The identity of the selected window is 901make the buffer current. The identity of the selected window is
867unaltered by this function. 902unaltered by this function. @var{buffer-or-name} must be a buffer, or
903the name of an existing buffer.
868 904
869If @var{not-this-window} is non-@code{nil}, it means to display the 905If @var{not-this-window} is non-@code{nil}, it means to display the
870specified buffer in a window other than the selected one, even if it is 906specified buffer in a window other than the selected one, even if it is
@@ -885,6 +921,7 @@ values of @var{frame}:
885@itemize @bullet 921@itemize @bullet
886@item 922@item
887If it is @code{nil}, consider windows on the selected frame. 923If it is @code{nil}, consider windows on the selected frame.
924(Actually, the last non-minibuffer frame.)
888@item 925@item
889If it is @code{t}, consider windows on all frames. 926If it is @code{t}, consider windows on all frames.
890@item 927@item
@@ -1017,7 +1054,7 @@ create the frame. See above, under @code{special-display-buffer-names}.
1017This function returns non-@code{nil} if displaying a buffer 1054This function returns non-@code{nil} if displaying a buffer
1018named @var{buffer-name} with @code{display-buffer} would 1055named @var{buffer-name} with @code{display-buffer} would
1019create a special frame. The value is @code{t} if it would 1056create a special frame. The value is @code{t} if it would
1020use the default frame paramaters, or else the specified list 1057use the default frame parameters, or else the specified list
1021of frame parameters. 1058of frame parameters.
1022@end defun 1059@end defun
1023 1060
@@ -1030,11 +1067,12 @@ The default value of this variable is
1030@code{special-display-popup-frame}. 1067@code{special-display-popup-frame}.
1031@end defvar 1068@end defvar
1032 1069
1033@defun special-display-popup-frame buffer &rest args 1070@defun special-display-popup-frame buffer &optional args
1034This function makes @var{buffer} visible in a frame of its own. If 1071This function makes @var{buffer} visible in a frame of its own. If
1035@var{buffer} is already displayed in a window in some frame, it makes 1072@var{buffer} is already displayed in a window in some frame, it makes
1036the frame visible and raises it, to use that window. Otherwise, it 1073the frame visible and raises it, to use that window. Otherwise, it
1037creates a frame that will be dedicated to @var{buffer}. 1074creates a frame that will be dedicated to @var{buffer}. This
1075function returns the window it used.
1038 1076
1039If @var{args} is an alist, it specifies frame parameters for the new 1077If @var{args} is an alist, it specifies frame parameters for the new
1040frame. 1078frame.
@@ -1080,9 +1118,9 @@ put it in the selected window.
1080This variable is the most flexible way to customize the behavior of 1118This variable is the most flexible way to customize the behavior of
1081@code{display-buffer}. If it is non-@code{nil}, it should be a function 1119@code{display-buffer}. If it is non-@code{nil}, it should be a function
1082that @code{display-buffer} calls to do the work. The function should 1120that @code{display-buffer} calls to do the work. The function should
1083accept two arguments, the same two arguments that @code{display-buffer} 1121accept two arguments, the first two arguments that @code{display-buffer}
1084received. It should choose or create a window, display the specified 1122received. It should choose or create a window, display the specified
1085buffer, and then return the window. 1123buffer in it, and then return the window.
1086 1124
1087This hook takes precedence over all the other options and hooks 1125This hook takes precedence over all the other options and hooks
1088described above. 1126described above.