]> code.delx.au - gnu-emacs/blobdiff - man/frames.texi
(Horizontal Scrolling): Document automatic-hscroll-margin and
[gnu-emacs] / man / frames.texi
index a73308baba80ef833efad8066b28ad506bc1e670..9103a00b0bcf16e5d68c38d5fd693c250c55af3d 100644 (file)
@@ -19,7 +19,7 @@ minibuffer of another frame.
 instance, if you put text in the kill ring in one frame, you can yank it
 in another frame.  If you exit Emacs through @kbd{C-x C-c} in one frame,
 it terminates all the frames.  To delete just one frame, use @kbd{C-x 5
-0}.
+0} (that is zero, not @kbd{o}).
 
   To avoid confusion, we reserve the word ``window'' for the
 subdivisions that Emacs implements, and never use it to refer to a
@@ -31,8 +31,8 @@ so that you can use many of the features described in this chapter.
 
 @cindex MS Windows
   Emacs compiled for MS Windows mostly supports the same features as
-under X.  However, images, tool bars, and tooltips are not yet
-available on MS Windows as of Emacs version 21.1.
+under X.  However, images and tool bars are not yet available in Emacs
+version 21.3 on MS-Windows.
 
 @menu
 * Mouse Commands::      Moving, cutting, and pasting, with the mouse.
@@ -52,7 +52,7 @@ available on MS Windows as of Emacs version 21.1.
 * Menu Bars::          Enabling and disabling the menu bar.
 * Tool Bars::           Enabling and disabling the tool bar.
 * Dialog Boxes::        Controlling use of dialog boxes.
-* Tooltips::            Showing "tooltips", AKA "ballon help" for active text.
+* Tooltips::            Showing "tooltips", AKA "balloon help" for active text.
 * Mouse Avoidance::     Moving the mouse pointer out of the way.
 * Non-Window Terminals::  Multiple frames on terminals that show only one.
 * XTerm Mouse::         Using the mouse in an XTerm terminal emulator.
@@ -141,7 +141,7 @@ click on a character with ``symbol'' syntax (such as underscore, in C
 mode), it sets the region around the symbol surrounding that character.
 
 If you click on a character with open-parenthesis or close-parenthesis
-syntax, it sets the region around the parenthetical grouping (sexp)
+syntax, it sets the region around the parenthetical grouping
 which that character starts or ends.  If you click on a character with
 string-delimiter syntax (such as a singlequote or doublequote in C), it
 sets the region around the string constant (using heuristics to figure
@@ -179,9 +179,13 @@ Under X, this also sets the @dfn{primary selection}.  Then use the
 ``paste'' or ``yank'' command of the program operating the other window
 to insert the text from the selection.
 
-  To copy text from another X window, use the ``cut'' or ``copy'' command
-of the program operating the other window, to select the text you want.
-Then yank it in Emacs with @kbd{C-y} or @kbd{Mouse-2}.
+  To copy text from another X window, use the ``cut'' or ``copy''
+command of the program operating the other window, to select the text
+you want.  Then yank it in Emacs with @kbd{C-y} or @kbd{Mouse-2}.
+
+  The standard coding system for X selections is @code{compound-text}.
+To specify another coding system for X selections, use @kbd{C-x
+@key{RET} x} or @kbd{C-x @key{RET} X}.  @xref{Specify Coding}.
 
   These cutting and pasting commands also work on MS-Windows.
 
@@ -193,8 +197,8 @@ Then yank it in Emacs with @kbd{C-y} or @kbd{Mouse-2}.
 of the kill ring, it sets the @dfn{primary selection} in the X server.
 This is how other X clients can access the text.  Emacs also stores the
 text in the cut buffer, but only if the text is short enough
-(@code{x-cut-buffer-max} specifies the maximum number of characters);
-putting long strings in the cut buffer can be slow.
+(the value of @code{x-cut-buffer-max} specifies the maximum number of
+characters); putting long strings in the cut buffer can be slow.
 
   The commands to yank the first entry in the kill ring actually check
 first for a primary selection in another program; after that, they check
@@ -216,7 +220,9 @@ without setting point or the mark.
 Set the secondary selection, with one end at the place where you press
 down the button, and the other end at the place where you release it
 (@code{mouse-set-secondary}).  The highlighting appears and changes as
-you drag.
+you drag.  You can control the appearance of the highlighting by
+customizing the @code{secondary-selection} face (@pxref{Face
+Customization}).
 
 If you move the mouse off the top or bottom of the window while
 dragging, the window scrolls at a steady rate until you move the mouse
@@ -366,14 +372,14 @@ horizontally, above the place in the mode line where you click.
 
 @kindex C-Mouse-2 @r{(scroll bar)}
   @kbd{C-Mouse-2} on a scroll bar splits the corresponding window
-vertically, unless you are using an X toolkit's implentation of
+vertically, unless you are using an X toolkit's implementation of
 scroll bars.  @xref{Split Window}.
 
   The commands above apply to areas of the mode line which do not have
 special mouse bindings of their own.  Some areas, such as the buffer
 name and the major mode name, have their own special mouse bindings.
 Emacs displays information about these bindings when you hold the
-mouse over such a place.
+mouse over such a place (@pxref{Tooltips}).
 
 @node Creating Frames
 @section Creating Frames
@@ -438,6 +444,14 @@ parameter, as shown here:
 (add-to-list 'default-frame-alist '(font . "10x20"))
 @end example
 
+@noindent
+Here's a similar example for specifying a foreground color:
+
+@example
+(add-to-list 'default-frame-alist '(background-color . "blue"))
+@end example
+
+
 @node Frame Commands
 @section Frame Commands
 
@@ -676,11 +690,14 @@ Press @kbd{S-Mouse-1} to activate this menu.
   In Emacs versions that use an X toolkit, the color-setting and
 font-setting functions don't affect menus and the menu bar, since they
 are displayed by their own widget classes.  To change the appearance of
-the menus and menu bar, you must use X resources (@pxref{Resources X}).
-@xref{Colors X}, regarding colors.  @xref{Font X}, regarding choice of
+the menus and menu bar, you must use X resources (@pxref{Resources}).
+@xref{Colors}, regarding colors.  @xref{Font X}, regarding choice of
 font.
 
-  For information on frame parameters and customization, see @ref{Frame
+  Colors, fonts, and other attributes of the frame's display can also
+be customized by setting frame parameters in the variable
+@code{default-frame-alist} (@pxref{Creating Frames}).  For a detailed
+description of frame parameters and customization, see @ref{Frame
 Parameters,,, elisp, The Emacs Lisp Reference Manual}.
 
 @node Scroll Bars
@@ -723,12 +740,17 @@ frames yet to be created.  Customize the option @code{scroll-bar-mode}
 to control the use of scroll bars at startup.  You can use it to specify
 that they are placed at the right of windows if you prefer that.  You
 can use the X resource @samp{verticalScrollBars} to control the initial
-setting of Scroll Bar mode similarly.  @xref{Resources X}.
+setting of Scroll Bar mode similarly.  @xref{Resources}.
 
 @findex toggle-scroll-bar
   To enable or disable scroll bars for just the selected frame, use the
 @kbd{M-x toggle-scroll-bar} command.
 
+@vindex scroll-bar-width
+@cindex width of the scroll bar
+  You can control the scroll bar width by changing the value of the
+@code{scroll-bar-width} frame parameter.
+
 @node Wheeled Mice
 @section Scrolling With ``Wheeled'' Mice
 
@@ -763,17 +785,18 @@ With no argument, this command toggles Menu Bar mode, a
 minor mode.  With an argument, the command turns Menu Bar mode on if the
 argument is positive, off if the argument is not positive.  You can use
 the X resource @samp{menuBarLines} to control the initial setting of
-Menu Bar mode.  @xref{Resources X}.
+Menu Bar mode.  @xref{Resources}.
 
 @kindex C-Mouse-3 @r{(when menu bar is disabled)}
   Expert users often turn off the menu bar, especially on text-only
 terminals, where this makes one additional line available for text.
 If the menu bar is off, you can still pop up a menu of its contents
-with @kbd{C-Mouse-3} on a display which supports popup menus.
+with @kbd{C-Mouse-3} on a display which supports pop-up menus.
 @xref{Menu Mouse Clicks}.
 
   @xref{Menu Bar}, for information on how to invoke commands with the
-menu bar.
+menu bar.  @xref{X Resources}, for how to customize the menu bar
+menus.
 
 @node Tool Bars
 @section Tool Bars
@@ -827,7 +850,8 @@ tooltip-mode}.  The customization group @code{tooltip} controls
 various aspects of how tooltips work.  When Tooltip mode is disabled,
 the help text is displayed in the echo area instead.
 
-As of Emacs 21.1, tooltips are not supported on MS-Windows.
+  @xref{X Resources}, for information on customizing the windows
+that display tooltips.
 
 @node Mouse Avoidance
 @section Mouse Avoidance
@@ -843,7 +867,7 @@ move the mouse in several ways:
 
 @table @code
 @item banish
-Move the mouse to the upper-right corner on any keypress;
+Move the mouse to the upper-right corner on any key-press;
 @item exile
 Move the mouse to the corner only if the cursor gets too close,
 and allow it to return once the cursor is out of the way;