aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-25 22:09:47 +0000
committerRichard M. Stallman1994-05-25 22:09:47 +0000
commitbd9982597feb87528fb0619c5b3329fd4b02df35 (patch)
treef835b2b182bf91e2dbce54b9a3015de3fea78b6f
parentca0ecbf563d52e95d514b6c59949b5eb1baeb2fa (diff)
downloademacs-bd9982597feb87528fb0619c5b3329fd4b02df35.tar.gz
emacs-bd9982597feb87528fb0619c5b3329fd4b02df35.zip
*** empty log message ***
-rw-r--r--lispref/frames.texi77
1 files changed, 63 insertions, 14 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi
index 82c4936c753..2c3cec4b102 100644
--- a/lispref/frames.texi
+++ b/lispref/frames.texi
@@ -42,6 +42,7 @@ This predicate returns @code{t} if @var{object} is a frame, and
42* Mouse Position:: Asking where the mouse is, or moving it. 42* Mouse Position:: Asking where the mouse is, or moving it.
43* Pop-Up Menus:: Displaying a menu for the user to select from. 43* Pop-Up Menus:: Displaying a menu for the user to select from.
44* Dialog Boxes:: Displaying a box to ask yes or no. 44* Dialog Boxes:: Displaying a box to ask yes or no.
45* Pointer Shapes:: Specifying the shape of the mouse pointer.
45* X Selections:: Transferring text to and from other X clients. 46* X Selections:: Transferring text to and from other X clients.
46* X Connections:: Opening and closing the X server connection. 47* X Connections:: Opening and closing the X server connection.
47* Resources:: Getting resource values from the server. 48* Resources:: Getting resource values from the server.
@@ -77,12 +78,26 @@ Each element has the form:
77@example 78@example
78(@var{parameter} . @var{value}) 79(@var{parameter} . @var{value})
79@end example 80@end example
81@end defvar
80 82
81If you use options that specify window appearance when you invoke Emacs, 83@defvar initial-frame-alist
82they take effect by adding elements to @code{default-frame-alist}. 84This is an alist specifying frame parameters for the initial Emacs frame.
83@xref{Command Arguments,,, emacs, The GNU Emacs Manual}. 85
86Emacs creates the initial X frame before it reads the user's init file,
87which is the first occasion that the user has to set this variable. So
88after reading the init file, Emacs modifies the parameters according to
89the value of this variable. In most cases, that is good enough.
90However, for window position parameters, it may be inconvenient that the
91window initially appears in the wrong place or the wrong size. The way
92to overcome this annoyance is to specify the initial frame's geometry
93with an X resource.
84@end defvar 94@end defvar
85 95
96If you use options that specify window appearance when you invoke Emacs,
97they take effect by adding elements to @code{default-frame-alist}. One
98exception is @samp{-geometry}, which adds to @code{initial-frame-alist}
99instead. @xref{Command Arguments,,, emacs, The GNU Emacs Manual}.
100
86@defvar before-make-frame-hook 101@defvar before-make-frame-hook
87A normal hook run by @code{make-frame} before it actually creates the 102A normal hook run by @code{make-frame} before it actually creates the
88frame. 103frame.
@@ -168,10 +183,21 @@ name is also used (instead of the name of the Emacs executable) when
168looking up X resources for the frame. 183looking up X resources for the frame.
169 184
170@item left 185@item left
171The screen position of the left edge, in pixels. 186The screen position of the left edge, in pixels. The value may be
187@code{-} instead of a number; that represents @samp{-0} in a geometry
188specification.
172 189
173@item top 190@item top
174The screen position of the top edge, in pixels. 191The screen position of the top edge, in pixels. The value may be
192@code{-} instead of a number; that represents @samp{-0} in a geometry
193specification.
194
195@item user-position
196Non-@code{nil} if the screen position of the frame was explicitly
197requested by the user (for example, with the @samp{-geometry} option).
198Nothing automatically makes this parameter non-@code{nil}; it is up to
199Lisp programs that call @code{make-frame} to specify this parameter as
200well as specifying the @code{left} and @code{top} parameters.
175 201
176@item height 202@item height
177The height of the frame contents, in characters. (To get the height in 203The height of the frame contents, in characters. (To get the height in
@@ -221,7 +247,7 @@ server defines the meaningful color names.
221The color to use for the background of text. 247The color to use for the background of text.
222 248
223@item mouse-color 249@item mouse-color
224The color for the mouse cursor. 250The color for the mouse pointer.
225 251
226@item cursor-color 252@item cursor-color
227The color for the cursor that shows point. 253The color for the cursor that shows point.
@@ -267,10 +293,8 @@ it and see if it works.)
267 293
268 You can read or change the size and position of a frame using the 294 You can read or change the size and position of a frame using the
269frame parameters @code{left}, @code{top}, @code{height} and 295frame parameters @code{left}, @code{top}, @code{height} and
270@code{width}. When you create a frame, you must specify either both 296@code{width}. Whatever geometry parameters you don't specify are chosen
271size parameters or neither. Likewise, you must specify either both 297by the window manager in its usual fashion.
272position parameters or neither. Whatever geometry parameters you don't
273specify are chosen by the window manager in its usual fashion.
274 298
275 Here are some special features for working with sizes and positions: 299 Here are some special features for working with sizes and positions:
276 300
@@ -820,6 +844,35 @@ display a real dialog box; so instead it displays the same items in a
820pop-up menu in the center of the frame. 844pop-up menu in the center of the frame.
821@end defun 845@end defun
822 846
847@node Pointer Shapes
848@section Pointer Shapes
849@cindex pointer shape
850@cindex mouse pointer shape
851
852 These variables specify which mouse pointer shape to use in various
853situations:
854
855@table @code
856@item x-pointer-shape
857@vindex x-pointer-shape
858This variable specifies the pointer shape to use ordinarily in the Emacs
859frame.
860
861@item x-sensitive-text-pointer-shape
862@vindex x-sensitive-text-pointer-shape
863This variable specifies the pointer shape to use when the mouse
864is over mouse-sensitive text.
865@end table
866
867 These variables affect newly created frames. They do not normally
868affect existing frames; however, if you set the mouse color of a frame,
869that also updates its pointer shapes based on the current values of
870these variables. @xref{X Frame Parameters}.
871
872 The values you can use, to specify either of these pointer shapes, are
873defined in the file @file{lisp/x-win.el}. Use @kbd{M-x apropos
874@key{RET} x-pointer @key{RET}} to see a list of them.
875
823@node X Selections 876@node X Selections
824@section X Selections 877@section X Selections
825@cindex selection (for X windows) 878@cindex selection (for X windows)
@@ -1036,8 +1089,4 @@ This variable's value is is @code{t} if no X window manager is in use.
1036@item 1089@item
1037The functions @code{x-pixel-width} and @code{x-pixel-height} return the 1090The functions @code{x-pixel-width} and @code{x-pixel-height} return the
1038width and height of an X Window frame, measured in pixels. 1091width and height of an X Window frame, measured in pixels.
1039
1040@item
1041x-pointer-shape, x-nontext-pointer-shape, x-mode-pointer-shape.
1042x-cross-pointer-shape.
1043@end ignore 1092@end ignore