diff options
| author | Richard M. Stallman | 1994-05-25 22:09:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-25 22:09:47 +0000 |
| commit | bd9982597feb87528fb0619c5b3329fd4b02df35 (patch) | |
| tree | f835b2b182bf91e2dbce54b9a3015de3fea78b6f | |
| parent | ca0ecbf563d52e95d514b6c59949b5eb1baeb2fa (diff) | |
| download | emacs-bd9982597feb87528fb0619c5b3329fd4b02df35.tar.gz emacs-bd9982597feb87528fb0619c5b3329fd4b02df35.zip | |
*** empty log message ***
| -rw-r--r-- | lispref/frames.texi | 77 |
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 | ||
| 81 | If you use options that specify window appearance when you invoke Emacs, | 83 | @defvar initial-frame-alist |
| 82 | they take effect by adding elements to @code{default-frame-alist}. | 84 | This is an alist specifying frame parameters for the initial Emacs frame. |
| 83 | @xref{Command Arguments,,, emacs, The GNU Emacs Manual}. | 85 | |
| 86 | Emacs creates the initial X frame before it reads the user's init file, | ||
| 87 | which is the first occasion that the user has to set this variable. So | ||
| 88 | after reading the init file, Emacs modifies the parameters according to | ||
| 89 | the value of this variable. In most cases, that is good enough. | ||
| 90 | However, for window position parameters, it may be inconvenient that the | ||
| 91 | window initially appears in the wrong place or the wrong size. The way | ||
| 92 | to overcome this annoyance is to specify the initial frame's geometry | ||
| 93 | with an X resource. | ||
| 84 | @end defvar | 94 | @end defvar |
| 85 | 95 | ||
| 96 | If you use options that specify window appearance when you invoke Emacs, | ||
| 97 | they take effect by adding elements to @code{default-frame-alist}. One | ||
| 98 | exception is @samp{-geometry}, which adds to @code{initial-frame-alist} | ||
| 99 | instead. @xref{Command Arguments,,, emacs, The GNU Emacs Manual}. | ||
| 100 | |||
| 86 | @defvar before-make-frame-hook | 101 | @defvar before-make-frame-hook |
| 87 | A normal hook run by @code{make-frame} before it actually creates the | 102 | A normal hook run by @code{make-frame} before it actually creates the |
| 88 | frame. | 103 | frame. |
| @@ -168,10 +183,21 @@ name is also used (instead of the name of the Emacs executable) when | |||
| 168 | looking up X resources for the frame. | 183 | looking up X resources for the frame. |
| 169 | 184 | ||
| 170 | @item left | 185 | @item left |
| 171 | The screen position of the left edge, in pixels. | 186 | The 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 | ||
| 188 | specification. | ||
| 172 | 189 | ||
| 173 | @item top | 190 | @item top |
| 174 | The screen position of the top edge, in pixels. | 191 | The 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 | ||
| 193 | specification. | ||
| 194 | |||
| 195 | @item user-position | ||
| 196 | Non-@code{nil} if the screen position of the frame was explicitly | ||
| 197 | requested by the user (for example, with the @samp{-geometry} option). | ||
| 198 | Nothing automatically makes this parameter non-@code{nil}; it is up to | ||
| 199 | Lisp programs that call @code{make-frame} to specify this parameter as | ||
| 200 | well as specifying the @code{left} and @code{top} parameters. | ||
| 175 | 201 | ||
| 176 | @item height | 202 | @item height |
| 177 | The height of the frame contents, in characters. (To get the height in | 203 | The height of the frame contents, in characters. (To get the height in |
| @@ -221,7 +247,7 @@ server defines the meaningful color names. | |||
| 221 | The color to use for the background of text. | 247 | The color to use for the background of text. |
| 222 | 248 | ||
| 223 | @item mouse-color | 249 | @item mouse-color |
| 224 | The color for the mouse cursor. | 250 | The color for the mouse pointer. |
| 225 | 251 | ||
| 226 | @item cursor-color | 252 | @item cursor-color |
| 227 | The color for the cursor that shows point. | 253 | The 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 |
| 269 | frame parameters @code{left}, @code{top}, @code{height} and | 295 | frame 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 |
| 271 | size parameters or neither. Likewise, you must specify either both | 297 | by the window manager in its usual fashion. |
| 272 | position parameters or neither. Whatever geometry parameters you don't | ||
| 273 | specify 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 | |||
| 820 | pop-up menu in the center of the frame. | 844 | pop-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 | ||
| 853 | situations: | ||
| 854 | |||
| 855 | @table @code | ||
| 856 | @item x-pointer-shape | ||
| 857 | @vindex x-pointer-shape | ||
| 858 | This variable specifies the pointer shape to use ordinarily in the Emacs | ||
| 859 | frame. | ||
| 860 | |||
| 861 | @item x-sensitive-text-pointer-shape | ||
| 862 | @vindex x-sensitive-text-pointer-shape | ||
| 863 | This variable specifies the pointer shape to use when the mouse | ||
| 864 | is over mouse-sensitive text. | ||
| 865 | @end table | ||
| 866 | |||
| 867 | These variables affect newly created frames. They do not normally | ||
| 868 | affect existing frames; however, if you set the mouse color of a frame, | ||
| 869 | that also updates its pointer shapes based on the current values of | ||
| 870 | these variables. @xref{X Frame Parameters}. | ||
| 871 | |||
| 872 | The values you can use, to specify either of these pointer shapes, are | ||
| 873 | defined 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 |
| 1037 | The functions @code{x-pixel-width} and @code{x-pixel-height} return the | 1090 | The functions @code{x-pixel-width} and @code{x-pixel-height} return the |
| 1038 | width and height of an X Window frame, measured in pixels. | 1091 | width and height of an X Window frame, measured in pixels. |
| 1039 | |||
| 1040 | @item | ||
| 1041 | x-pointer-shape, x-nontext-pointer-shape, x-mode-pointer-shape. | ||
| 1042 | x-cross-pointer-shape. | ||
| 1043 | @end ignore | 1092 | @end ignore |