aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-04-13 20:52:30 +0300
committerEli Zaretskii2017-04-13 20:52:30 +0300
commit030c4f94b630f8ca925ad59e814dc1f4fa69cfe3 (patch)
tree50672beff759c88e5bc02ae27c66443208533b8f
parentdbae41896c325de5cae3d98afedb27f42e306ed5 (diff)
downloademacs-030c4f94b630f8ca925ad59e814dc1f4fa69cfe3.tar.gz
emacs-030c4f94b630f8ca925ad59e814dc1f4fa69cfe3.zip
Minor copyedits of recent changes in documentation
* doc/lispref/frames.texi (Frame Layout, Frame Position) (Frame Size, Frame Interaction Parameters, Input Focus) (Raising and Lowering, Child Frames): Improve wording and indexing. * doc/emacs/cmdargs.texi (Borders X): Improve indexing.
-rw-r--r--doc/emacs/cmdargs.texi1
-rw-r--r--doc/lispref/frames.texi174
-rw-r--r--doc/lispref/windows.texi6
3 files changed, 96 insertions, 85 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index 721a2cebb22..6c39fe7b644 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -1077,6 +1077,7 @@ frame's text area), in pixels.
1077@itemx --border-width=@var{width} 1077@itemx --border-width=@var{width}
1078@opindex --border-width 1078@opindex --border-width
1079@cindex main border width, command-line argument 1079@cindex main border width, command-line argument
1080@cindex outer border width, command-line argument
1080Specify @var{width} as the width of the outer border, in pixels. 1081Specify @var{width} as the width of the outer border, in pixels.
1081@end table 1082@end table
1082 1083
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 2fac8020ffb..b8f42578111 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -505,17 +505,17 @@ two frames adjacent to each other on the screen. Usually, the outer
505size of a frame is available only after the frame has been mapped (made 505size of a frame is available only after the frame has been mapped (made
506visible, @pxref{Visibility of Frames}) at least once. For the initial 506visible, @pxref{Visibility of Frames}) at least once. For the initial
507frame or a frame that has not been created yet, the outer size can be 507frame or a frame that has not been created yet, the outer size can be
508estimated only or must be calculated from the window-system's or window 508only estimated or must be calculated from the window-system's or window
509manager defaults. One workaround is to obtain the differences of the 509manager's defaults. One workaround is to obtain the differences of the
510outer and native (see below) sizes of a mapped frame and use them for 510outer and native (see below) sizes of a mapped frame and use them for
511calculating the outer size of the new frame. 511calculating the outer size of the new frame.
512 512
513@cindex outer position 513@cindex outer position
514The upper left corner of the outer frame (indicated by @samp{(0)} in the 514The position of the upper left corner of the outer frame (indicated by
515drawing above) is the @dfn{outer position} of the frame. The outer 515@samp{(0)} in the drawing above) is the @dfn{outer position} of the
516position of a graphical frame is also referred to as ``the position'' of 516frame. The outer position of a graphical frame is also referred to as
517the frame because it usually remains unchanged on its display whenever 517``the position'' of the frame because it usually remains unchanged on
518the frame is resized or its layout is changed. 518its display whenever the frame is resized or its layout is changed.
519 519
520The outer position is specified by and can be set via the @code{left} 520The outer position is specified by and can be set via the @code{left}
521and @code{top} frame parameters (@pxref{Position Parameters}). For a 521and @code{top} frame parameters (@pxref{Position Parameters}). For a
@@ -551,22 +551,24 @@ frames (@pxref{Child Frames}) and @code{undecorated} or
551@code{override-redirect} frames (@pxref{Management Parameters}). 551@code{override-redirect} frames (@pxref{Management Parameters}).
552 552
553Outer borders are never shown on text terminal frames and on frames 553Outer borders are never shown on text terminal frames and on frames
554generated by GTK+ routines. On Windows, the outer border is emulated 554generated by GTK+ routines. On MS-Windows, the outer border is emulated
555with the help of a one pixel wide external border. Non-toolkit builds 555with the help of a one pixel wide external border. Non-toolkit builds
556allow to change the color of the outer border by setting the 556on X allow to change the color of the outer border by setting the
557@code{border-color} frame parameter (@pxref{Layout Parameters}). 557@code{border-color} frame parameter (@pxref{Layout Parameters}).
558 558
559@item Title Bar 559@item Title Bar
560@cindex title bar 560@cindex title bar
561The @dfn{title bar} is also part of the window manager's decorations and 561@cindex caption bar
562typically displays the title of the frame (@pxref{Frame Titles}) as well 562The @dfn{title bar}, a.k.a.@ @dfn{caption bar}, is also part of the
563as buttons for minimizing, maximizing and deleting the frame. It can be 563window manager's decorations and typically displays the title of the
564also used for dragging the frame with the mouse. The title bar is 564frame (@pxref{Frame Titles}) as well as buttons for minimizing,
565usually not displayed for fullboth (@pxref{Size Parameters}), tooltip 565maximizing and deleting the frame. It can be also used for dragging
566(@pxref{Tooltips}) and child frames (@pxref{Child Frames}) and doesn't 566the frame with the mouse. The title bar is usually not displayed for
567exist for terminal frames. Display of the title bar can be suppressed 567fullboth (@pxref{Size Parameters}), tooltip (@pxref{Tooltips}) and
568by setting the @code{override-redirect} or the @code{undecorated} frame 568child frames (@pxref{Child Frames}) and doesn't exist for terminal
569parameters (@pxref{Management Parameters}). 569frames. Display of the title bar can be suppressed by setting the
570@code{override-redirect} or the @code{undecorated} frame parameters
571(@pxref{Management Parameters}).
570 572
571@item Menu Bar 573@item Menu Bar
572@cindex internal menu bar 574@cindex internal menu bar
@@ -582,11 +584,12 @@ and Frames}). As a rule, menu bars are never shown on child frames
582setting the @code{menu-bar-lines} parameter (@pxref{Layout Parameters}) 584setting the @code{menu-bar-lines} parameter (@pxref{Layout Parameters})
583to zero. 585to zero.
584 586
585It depends on the toolkit whether to wrap or truncate the menu bar 587Whether the menu bar is wrapped or truncated whenever its width
586whenever it becomes too long to fit on its frame. Usually, only Motif 588becomes too large to fit on its frame depends on the toolkit .
587and Windows builds can wrap the menu bar. When they (un-)wrap the menu 589Usually, only Motif and MS-Windows builds can wrap the menu bar. When
588bar, they try to keep the outer height of the frame unchanged, so the 590they (un-)wrap the menu bar, they try to keep the outer height of the
589native height of the frame (see below) will change instead. 591frame unchanged, so the native height of the frame (see below) will
592change instead.
590 593
591@item Tool Bar 594@item Tool Bar
592@cindex internal tool bar 595@cindex internal tool bar
@@ -602,12 +605,13 @@ setting the @code{tool-bar-lines} parameter (@pxref{Layout
602Parameters}) to zero. 605Parameters}) to zero.
603 606
604If the variable @code{auto-resize-tool-bars} is non-@code{nil}, Emacs 607If the variable @code{auto-resize-tool-bars} is non-@code{nil}, Emacs
605wraps the internal tool bar when it becomes too long for its frame. If 608wraps the internal tool bar when its width becomes too large for its
606and when Emacs (un-)wraps the internal tool bar, it by default keeps the 609frame. If and when Emacs (un-)wraps the internal tool bar, it by
607outer height of the frame unchanged, so the native height of the frame 610default keeps the outer height of the frame unchanged, so the native
608(see below) will change instead. Emacs built with GTK+, on the other 611height of the frame (see below) will change instead. Emacs built with
609hand, never wraps the tool bar but may automatically increase the outer 612GTK+, on the other hand, never wraps the tool bar but may
610width of a frame in order to accommodate an overlong tool bar. 613automatically increase the outer width of a frame in order to
614accommodate an overlong tool bar.
611 615
612@item Native Frame 616@item Native Frame
613@cindex native frame 617@cindex native frame
@@ -631,14 +635,14 @@ button in the title bar or when dragging its external border with the
631mouse. 635mouse.
632 636
633@cindex native position 637@cindex native position
634The top left corner of the native frame specifies the @dfn{native 638The position of the top left corner of the native frame specifies the
635position} of the frame. (1)--(3) in the drawing above indicate that 639@dfn{native position} of the frame. (1)--(3) in the drawing above
636position for the various builds: 640indicate that position for the various builds:
637 641
638@itemize @w{} 642@itemize @w{}
639@item (1) non-toolkit and terminal frames 643@item (1) non-toolkit and terminal frames
640 644
641@item (2) Lucid, Motif and Windows frames 645@item (2) Lucid, Motif and MS-Windows frames
642 646
643@item (3) GTK+ and NS frames 647@item (3) GTK+ and NS frames
644@end itemize 648@end itemize
@@ -697,11 +701,11 @@ The @dfn{text area} of a frame is a somewhat fictitious area that can be
697embedded in the native frame. Its position is unspecified. Its width 701embedded in the native frame. Its position is unspecified. Its width
698can be obtained by removing from that of the native width the widths of 702can be obtained by removing from that of the native width the widths of
699the internal border, one vertical scroll bar, and one left and one right 703the internal border, one vertical scroll bar, and one left and one right
700fringe as specified for this frame, see @ref{Layout Parameters}. Its 704fringe if they are specified for this frame, see @ref{Layout
701height can be obtained by removing from that of the native height the 705Parameters}. Its height can be obtained by removing from that of the
702widths of the internal border and the heights of the frame's internal 706native height the widths of the internal border and the heights of the
703menu and tool bars and one horizontal scroll bar as specified for this 707frame's internal menu and tool bars and one horizontal scroll bar if
704frame. 708specified for this frame.
705@end table 709@end table
706 710
707@cindex absolute position 711@cindex absolute position
@@ -715,7 +719,7 @@ horizontal and vertical pixel offsets relative to an origin (0, 0) of
715the frame's display. Correspondingly, the @dfn{absolute edges} of a 719the frame's display. Correspondingly, the @dfn{absolute edges} of a
716frame are given as pixel offsets from that origin. 720frame are given as pixel offsets from that origin.
717 721
718 Note that with multiple monitors the origin of the display does not 722 Note that with multiple monitors, the origin of the display does not
719necessarily coincide with the top-left corner of the entire usable 723necessarily coincide with the top-left corner of the entire usable
720display area of the terminal. Hence the absolute position of a frame 724display area of the terminal. Hence the absolute position of a frame
721can be negative in such an environment even when that frame is 725can be negative in such an environment even when that frame is
@@ -724,7 +728,7 @@ completely visible.
724 By convention, vertical offsets increase ``downwards''. This means 728 By convention, vertical offsets increase ``downwards''. This means
725that the height of a frame is obtained by subtracting the offset of its 729that the height of a frame is obtained by subtracting the offset of its
726top edge from that of its bottom edge. Horizontal offsets increase 730top edge from that of its bottom edge. Horizontal offsets increase
727``leftwards'' as expected so a frame's width is calculated by 731``rightwards'', as expected, so a frame's width is calculated by
728subtracting the offset of its left edge from that of its right edge. 732subtracting the offset of its left edge from that of its right edge.
729 733
730 For a frame on a graphical terminal the following function returns the 734 For a frame on a graphical terminal the following function returns the
@@ -734,9 +738,10 @@ sizes of the areas described above:
734This function returns geometric attributes of @var{frame}. The return 738This function returns geometric attributes of @var{frame}. The return
735value is an association list of the attributes listed below. All 739value is an association list of the attributes listed below. All
736coordinate, height and width values are integers counting pixels. Note 740coordinate, height and width values are integers counting pixels. Note
737that if @var{frame} has not been mapped (@pxref{Visibility of Frames}) 741that if @var{frame} has not been mapped yet, (@pxref{Visibility of
738yet, some of the return values may only represent approximations of the 742Frames}) some of the return values may only represent approximations of
739actual values---those that can be seen after the frame has been mapped. 743the actual values---those that can be seen after the frame has been
744mapped.
740 745
741@table @code 746@table @code
742@item outer-position 747@item outer-position
@@ -792,10 +797,10 @@ native and inner frame.
792@defun frame-edges &optional frame type 797@defun frame-edges &optional frame type
793This function returns the absolute edges of the outer, native or inner 798This function returns the absolute edges of the outer, native or inner
794frame of @var{frame}. @var{frame} must be a live frame and defaults to 799frame of @var{frame}. @var{frame} must be a live frame and defaults to
795the selected one. The list returned has the form (@var{left} @var{top} 800the selected one. The returned list has the form @w{@code{(@var{left}
796@var{right} @var{bottom}) where all values are in pixels relative to the 801@var{top} @var{right} @var{bottom})}} where all values are in pixels
797origin of @var{frame}'s display. For terminal frames the values 802relative to the origin of @var{frame}'s display. For terminal frames
798returned for @var{left} and @var{top} are always zero. 803the values returned for @var{left} and @var{top} are always zero.
799 804
800Optional argument @var{type} specifies the type of the edges to return: 805Optional argument @var{type} specifies the type of the edges to return:
801@code{outer-edges} means to return the outer edges of @var{frame}, 806@code{outer-edges} means to return the outer edges of @var{frame},
@@ -803,14 +808,15 @@ Optional argument @var{type} specifies the type of the edges to return:
803@code{inner-edges} means to return its inner edges. 808@code{inner-edges} means to return its inner edges.
804 809
805By convention, the pixels of the display at the values returned for 810By convention, the pixels of the display at the values returned for
806@var{left} and @var{top} are inside (part of) @var{frame}. Hence, if 811@var{left} and @var{top} are considered to be inside (part of)
807@var{left} and @var{top} are both zero, the pixel at the display's 812@var{frame}. Hence, if @var{left} and @var{top} are both zero, the
808origin is part of @var{frame}. The pixels at @var{bottom} and 813pixel at the display's origin is part of @var{frame}. The pixels at
809@var{right}, on the other hand, lie immediately outside @var{frame}. 814@var{bottom} and @var{right}, on the other hand, are considered to lie
810This means that if you have, for example, two side-by-side frames 815immediately outside @var{frame}. This means that if you have, for
811positioned such that the right outer edge of the frame on the left 816example, two side-by-side frames positioned such that the right outer
812equals the left outer edge of the frame on the right, the pixels at that 817edge of the frame on the left equals the left outer edge of the frame on
813edge show a part of the frame on the right. 818the right, the pixels at that edge show a part of the frame on the
819right.
814@end defun 820@end defun
815 821
816 822
@@ -878,21 +884,21 @@ Geometry}). The position of a child frame (@pxref{Child Frames}) is
878specified via pixel offsets of its outer edges relative to the native 884specified via pixel offsets of its outer edges relative to the native
879position of its parent frame. 885position of its parent frame.
880 886
881 You can read or change the position of a frame using the frame 887 You can access or change the position of a frame using the frame
882parameters @code{left} and @code{top} (@pxref{Position Parameters}). 888parameters @code{left} and @code{top} (@pxref{Position Parameters}).
883Here are two additional functions for working with the positions of an 889Here are two additional functions for working with the positions of an
884existing, visible frame. For both functions, the argument @var{frame} 890existing, visible frame. For both functions, the argument @var{frame}
885must denote a live frame and defaults to the selected frame. 891must denote a live frame and defaults to the selected frame.
886 892
887@defun frame-position &optional frame 893@defun frame-position &optional frame
888For a normal, non-child frame this function returns a cons of the (X, Y) 894For a normal, non-child frame this function returns a cons of the pixel
889pixel coordinates of its outer position (@pxref{Frame Layout}) with 895coordinates of its outer position (@pxref{Frame Layout}) with respect to
890respect to the origin (0, 0) of its display. For a child frame 896the origin @code{(0, 0)} of its display. For a child frame
891(@pxref{Child Frames}) this function returns the pixel coordinates of 897(@pxref{Child Frames}) this function returns the pixel coordinates of
892its outer position with respect to an origin (0, 0) at the native 898its outer position with respect to an origin @code{(0, 0)} at the native
893position of @var{frame}'s parent. 899position of @var{frame}'s parent.
894 900
895Negative return values never indicate an offset from the right or bottom 901Negative values never indicate an offset from the right or bottom
896edge of @var{frame}'s display or parent frame. Rather, they mean that 902edge of @var{frame}'s display or parent frame. Rather, they mean that
897@var{frame}'s outer position is on the left and/or above the origin of 903@var{frame}'s outer position is on the left and/or above the origin of
898its display or the native position of its parent frame. This usually 904its display or the native position of its parent frame. This usually
@@ -907,7 +913,7 @@ On a text terminal frame both values are zero.
907@defun set-frame-position frame x y 913@defun set-frame-position frame x y
908This function sets the outer frame position of @var{frame} to (@var{x}, 914This function sets the outer frame position of @var{frame} to (@var{x},
909@var{y}). The latter arguments specify pixels and normally count from 915@var{y}). The latter arguments specify pixels and normally count from
910an origin at the position (0, 0) of @var{frame}'s display. For child 916the origin at the position (0, 0) of @var{frame}'s display. For child
911frames, they count from the native position of @var{frame}'s parent 917frames, they count from the native position of @var{frame}'s parent
912frame. 918frame.
913 919
@@ -921,14 +927,15 @@ edge of @var{frame} exactly at the right or bottom edge of its display
921or parent frame. Neither do they allow to specify a position that does 927or parent frame. Neither do they allow to specify a position that does
922not lie within the edges of the display or parent frame. The frame 928not lie within the edges of the display or parent frame. The frame
923parameters @code{left} and @code{top} (@pxref{Position Parameters}) 929parameters @code{left} and @code{top} (@pxref{Position Parameters})
924allow to do that but may still fail to provide good results for the 930allow to do that, but may still fail to provide good results for the
925initial or a new frame. 931initial or a new frame.
926 932
927This function has no effect on text terminal frames. 933This function has no effect on text terminal frames.
928@end defun 934@end defun
929 935
930@defvar move-frame-functions 936@defvar move-frame-functions
931This hook specifies the functions run when an Emacs frame is moved 937@cindex frame position changes, a hook
938This hook specifies the functions that are run when an Emacs frame is moved
932(assigned a new position) by the window-system or window manager. The 939(assigned a new position) by the window-system or window manager. The
933functions are run with one argument, the frame that moved. For a child 940functions are run with one argument, the frame that moved. For a child
934frame (@pxref{Child Frames}), the functions are run only when the 941frame (@pxref{Child Frames}), the functions are run only when the
@@ -954,8 +961,8 @@ This means that in general you cannot use the native size to specify the
954initial size of a frame. As soon as you know the native size of a 961initial size of a frame. As soon as you know the native size of a
955visible frame, you can calculate its outer size (@pxref{Frame Layout}) 962visible frame, you can calculate its outer size (@pxref{Frame Layout})
956by adding in the remaining components from the return value of 963by adding in the remaining components from the return value of
957@code{frame-geometry} . For invisible frames or for frames that have 964@code{frame-geometry}. For invisible frames or for frames that have
958yet to be created, however, the outer size can be estimated only. This 965yet to be created, however, the outer size can only be estimated. This
959also means that calculating an exact initial position of a frame 966also means that calculating an exact initial position of a frame
960specified via offsets from the right or bottom edge of the screen 967specified via offsets from the right or bottom edge of the screen
961(@pxref{Frame Position}) is impossible. 968(@pxref{Frame Position}) is impossible.
@@ -1006,8 +1013,8 @@ leaving some empty space below and/or on the right of the frame. The
1006following option may help in that case. 1013following option may help in that case.
1007 1014
1008@defopt frame-resize-pixelwise 1015@defopt frame-resize-pixelwise
1009If this option is @code{nil}, a frame's text pixel size is usually 1016If this option is @code{nil} (the default), a frame's text pixel size is
1010rounded to a multiple of the current values of that frame's 1017usually rounded to a multiple of the current values of that frame's
1011@code{frame-char-height} and @code{frame-char-width} whenever the frame 1018@code{frame-char-height} and @code{frame-char-width} whenever the frame
1012is resized. If this is non-@code{nil}, no rounding occurs, hence frame 1019is resized. If this is non-@code{nil}, no rounding occurs, hence frame
1013sizes can increase/decrease by one pixel. 1020sizes can increase/decrease by one pixel.
@@ -1747,6 +1754,8 @@ If non-@code{nil}, this frame's window is never split automatically.
1747 1754
1748@node Frame Interaction Parameters 1755@node Frame Interaction Parameters
1749@subsubsection Frame Interaction Parameters 1756@subsubsection Frame Interaction Parameters
1757@cindex frame interaction parameters
1758@cindex interaction parameters between frames
1750 1759
1751These parameters supply forms of interactions between different frames. 1760These parameters supply forms of interactions between different frames.
1752 1761
@@ -1754,7 +1763,7 @@ These parameters supply forms of interactions between different frames.
1754@vindex parent-frame, a frame parameter 1763@vindex parent-frame, a frame parameter
1755@item parent-frame 1764@item parent-frame
1756If non-@code{nil}, this means that this frame is a child frame 1765If non-@code{nil}, this means that this frame is a child frame
1757(@pxref{Child Frames}) and this parameter specifies its parent frame. 1766(@pxref{Child Frames}), and this parameter specifies its parent frame.
1758If nil, this means that this frame is a normal, top-level frame. 1767If nil, this means that this frame is a normal, top-level frame.
1759 1768
1760@vindex delete-before, a frame parameter 1769@vindex delete-before, a frame parameter
@@ -1852,13 +1861,13 @@ display bugs or pine for that retro, flicker-y feeling.
1852If non-@code{nil}, this tells the window manager to remove the frame's 1861If non-@code{nil}, this tells the window manager to remove the frame's
1853icon from the taskbar associated with the frame's display and inhibit 1862icon from the taskbar associated with the frame's display and inhibit
1854switching to the frame's window via the combination @kbd{Alt-@key{TAB}}. 1863switching to the frame's window via the combination @kbd{Alt-@key{TAB}}.
1855On Windows, iconifying such a frame will "roll in" its window-system 1864On MS-Windows, iconifying such a frame will "roll in" its window-system
1856window at the bottom of the desktop. Some window managers may not honor 1865window at the bottom of the desktop. Some window managers may not honor
1857this parameter. 1866this parameter.
1858 1867
1859@vindex no-focus-on-map, a frame parameter 1868@vindex no-focus-on-map, a frame parameter
1860@item no-focus-on-map 1869@item no-focus-on-map
1861If non-@code{nil}, this means that the frame dos not want to receive 1870If non-@code{nil}, this means that the frame does not want to receive
1862input focus when it is mapped (@pxref{Visibility of Frames}). Some 1871input focus when it is mapped (@pxref{Visibility of Frames}). Some
1863window managers may not honor this parameter. 1872window managers may not honor this parameter.
1864 1873
@@ -1875,8 +1884,8 @@ this parameter.
1875@vindex undecorated, a frame parameter 1884@vindex undecorated, a frame parameter
1876@item undecorated 1885@item undecorated
1877If non-@code{nil}, this frame's window-system window is drawn without 1886If non-@code{nil}, this frame's window-system window is drawn without
1878decorations like title, minimize/maximize boxes and external borders. 1887decorations, like the title, minimize/maximize boxes and external
1879This usually means that the window cannot be dragged, resized, 1888borders. This usually means that the window cannot be dragged, resized,
1880iconified, maximized or deleted with the mouse. If nil, the frame's 1889iconified, maximized or deleted with the mouse. If nil, the frame's
1881window is usually drawn with all the elements listed above unless their 1890window is usually drawn with all the elements listed above unless their
1882display has been suspended via window manager settings. 1891display has been suspended via window manager settings.
@@ -2266,8 +2275,8 @@ frame.
2266It first deletes any child frame of @var{frame} (@pxref{Child Frames}) 2275It first deletes any child frame of @var{frame} (@pxref{Child Frames})
2267and any frame whose @code{delete-before} frame parameter (@pxref{Frame 2276and any frame whose @code{delete-before} frame parameter (@pxref{Frame
2268Interaction Parameters}) specifies @var{frame}. All such deletions are 2277Interaction Parameters}) specifies @var{frame}. All such deletions are
2269performed recursively; so this step makes sure that there will not exist 2278performed recursively; so this step makes sure that there no other
2270any other frames with @var{frame} as their ancestor. Then, unless 2279frames with @var{frame} as their ancestor will exist. Then, unless
2271@var{frame} specifies a tooltip, this function runs the hook 2280@var{frame} specifies a tooltip, this function runs the hook
2272@code{delete-frame-functions} (each function getting one argument, 2281@code{delete-frame-functions} (each function getting one argument,
2273@var{frame}) before actually killing the frame. 2282@var{frame}) before actually killing the frame.
@@ -2468,7 +2477,7 @@ non-@code{nil}, means to avoid making @var{frame}'s window-system window
2468the ``active'' window which should insist a bit more on avoiding to 2477the ``active'' window which should insist a bit more on avoiding to
2469raise @var{frame} above other frames. 2478raise @var{frame} above other frames.
2470 2479
2471On Windows the @var{noactivate} argument has no effect. However, if 2480On MS-Windows the @var{noactivate} argument has no effect. However, if
2472@var{frame} is a child frame (@pxref{Child Frames}), this function 2481@var{frame} is a child frame (@pxref{Child Frames}), this function
2473usualy does focus @var{frame} without raising it above other child 2482usualy does focus @var{frame} without raising it above other child
2474frames. 2483frames.
@@ -2593,7 +2602,7 @@ Note that this option does not distinguish ``sloppy'' focus (where the
2593frame that previously had focus retains focus as long as the mouse 2602frame that previously had focus retains focus as long as the mouse
2594pointer does not move into another window manager window) from 2603pointer does not move into another window manager window) from
2595``strict'' focus (where a frame immediately loses focus when it's left 2604``strict'' focus (where a frame immediately loses focus when it's left
2596by the mouse pointer). It neither recognizes whether your window 2605by the mouse pointer). Neither does it recognize whether your window
2597manager supports delayed focusing or auto-raising where you can 2606manager supports delayed focusing or auto-raising where you can
2598explicitly specify the time until a new frame gets focus or is 2607explicitly specify the time until a new frame gets focus or is
2599auto-raised. 2608auto-raised.
@@ -2656,7 +2665,7 @@ you can do that with @code{raise-frame} if you wish (@pxref{Raising and
2656Lowering}). 2665Lowering}).
2657 2666
2658Making a frame visible usually makes all its child frames (and their 2667Making a frame visible usually makes all its child frames (and their
2659descendants) visible too (@pxref{Child Frames}). 2668descendants) visible as well (@pxref{Child Frames}).
2660@end deffn 2669@end deffn
2661 2670
2662@deffn Command make-frame-invisible &optional frame force 2671@deffn Command make-frame-invisible &optional frame force
@@ -2691,6 +2700,7 @@ selected frame.
2691@cindex restacking a frame 2700@cindex restacking a frame
2692@cindex frame stacking order 2701@cindex frame stacking order
2693@cindex frame Z-order 2702@cindex frame Z-order
2703@cindex Z-order
2694 Most window systems use a desktop metaphor. Part of this metaphor is 2704 Most window systems use a desktop metaphor. Part of this metaphor is
2695the idea that system-level windows (representing, e.g., Emacs frames) 2705the idea that system-level windows (representing, e.g., Emacs frames)
2696are stacked in a notional third dimension perpendicular to the screen 2706are stacked in a notional third dimension perpendicular to the screen
@@ -2865,8 +2875,8 @@ frame does not show a menu or tool bar, any other of the frame's borders
2865(@pxref{Layout Parameters}) can be used instead of the external borders. 2875(@pxref{Layout Parameters}) can be used instead of the external borders.
2866 2876
2867 In particular, under X (but not when building with GTK+), the frame's 2877 In particular, under X (but not when building with GTK+), the frame's
2868outer border can be used. On Windows, specifying a non-zero outer 2878outer border can be used. On MS-Windows, specifying a non-zero outer
2869border width will show a one pixel wide external border. Under all 2879border width will show a one-pixel wide external border. Under all
2870window-systems, the internal border can be used. In either case, it's 2880window-systems, the internal border can be used. In either case, it's
2871advisable to disable a child frame's window manager decorations with the 2881advisable to disable a child frame's window manager decorations with the
2872@code{undecorated} frame parameter @pxref{Management Parameters}). 2882@code{undecorated} frame parameter @pxref{Management Parameters}).
@@ -2902,9 +2912,9 @@ policy to child frames. Customizing @code{mouse-autoselect-window} can
2902help in this regard (@pxref{Mouse Window Auto-selection}). 2912help in this regard (@pxref{Mouse Window Auto-selection}).
2903 2913
2904@item 2914@item
2905Dropping (@pxref{Drag and Drop}) on child frames is not guaranteed too 2915Dropping (@pxref{Drag and Drop}) on child frames is not guaranteed to
2906work on all window-systems. Some will drop the object on the parent 2916work on all window-systems. Some will drop the object on the parent
2907frame or some ancestor instead. 2917frame or on some ancestor instead.
2908@end itemize 2918@end itemize
2909 2919
2910 The following two functions may be useful when working with child and 2920 The following two functions may be useful when working with child and
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 931d1060d5d..fed2dea7572 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -1752,9 +1752,9 @@ whenever a window gets selected more ``permanently''.
1752not related to window management, it will usually make sense to save the 1752not related to window management, it will usually make sense to save the
1753value of the selected window somewhere and compare it with the value of 1753value of the selected window somewhere and compare it with the value of
1754@code{selected-window} while running that hook. Also, to avoid false 1754@code{selected-window} while running that hook. Also, to avoid false
1755positives when using @code{buffer-list-update-hook} it is good practice 1755positives when using @code{buffer-list-update-hook}, it is good practice
1756that every @code{select-window} call supposed to select a window only 1756that every @code{select-window} call supposed to select a window only
1757temporarily, passes a non-@code{nil} @var{norecord} argument. If 1757temporarily passes a non-@code{nil} @var{norecord} argument. If
1758possible, the macro @code{with-selected-window} (see below) should be 1758possible, the macro @code{with-selected-window} (see below) should be
1759used in such cases. 1759used in such cases.
1760 1760
@@ -4623,7 +4623,7 @@ Any other non-@code{nil} value means to select a window instantaneously
4623as soon as the mouse pointer enters it. 4623as soon as the mouse pointer enters it.
4624@end table 4624@end table
4625 4625
4626In either case the mouse pointer must enter the text area of a window in 4626In either case, the mouse pointer must enter the text area of a window in
4627order to trigger its selection. Dragging the scroll bar slider or the 4627order to trigger its selection. Dragging the scroll bar slider or the
4628mode line of a window conceptually should not cause its auto-selection. 4628mode line of a window conceptually should not cause its auto-selection.
4629 4629