diff options
| author | Richard M. Stallman | 2006-02-02 04:31:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-02-02 04:31:13 +0000 |
| commit | 9c75b18738b4f5436b071ea1b402fca17d046bc3 (patch) | |
| tree | a206d9ba74c47663507ca289ed54341c021a5176 | |
| parent | 1384a6109ee7a8243d867bd05ac6bd0f309ad9c0 (diff) | |
| download | emacs-9c75b18738b4f5436b071ea1b402fca17d046bc3.tar.gz emacs-9c75b18738b4f5436b071ea1b402fca17d046bc3.zip | |
Minor clarifications.
Reduce the specific references to X Windows.
Refer to "graphical" terminals, rather than window systems.
(Frame Parameters): Don't mention commands like
set-foreground-color. Just say to customize a face.
(Drag and Drop): Lisp-level stuff moved to Emacs Lisp manual.
| -rw-r--r-- | man/frames.texi | 335 |
1 files changed, 134 insertions, 201 deletions
diff --git a/man/frames.texi b/man/frames.texi index dd076262e82..15d9c5f4eed 100644 --- a/man/frames.texi +++ b/man/frames.texi | |||
| @@ -3,29 +3,29 @@ | |||
| 3 | @c 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | 3 | @c 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 4 | @c See file emacs.texi for copying conditions. | 4 | @c See file emacs.texi for copying conditions. |
| 5 | @node Frames, International, Windows, Top | 5 | @node Frames, International, Windows, Top |
| 6 | @chapter Frames and X Windows | 6 | @chapter Frames and Graphical Displays |
| 7 | @cindex frames | 7 | @cindex frames |
| 8 | 8 | ||
| 9 | When using the X Window System, you can create multiple windows at the | 9 | When using a graphical display, you can create multiple windows at |
| 10 | X level in a single Emacs session. Each X window that belongs to Emacs | 10 | the system in a single Emacs session. Each system-level window that |
| 11 | displays a @dfn{frame} which can contain one or several Emacs windows. | 11 | belongs to Emacs displays a @dfn{frame} which can contain one or |
| 12 | A frame initially contains a single general-purpose Emacs window which | 12 | several Emacs windows. A frame initially contains a single |
| 13 | you can subdivide vertically or horizontally into smaller windows. A | 13 | general-purpose Emacs window which you can subdivide vertically or |
| 14 | frame normally contains its own echo area and minibuffer, but you can | 14 | horizontally into smaller windows. A frame normally contains its own |
| 15 | make frames that don't have these---they use the echo area and | 15 | echo area and minibuffer, but you can make frames that don't have |
| 16 | minibuffer of another frame. | 16 | these---they use the echo area and minibuffer of another frame. |
| 17 | 17 | ||
| 18 | Editing you do in one frame also affects the other frames. For | 18 | To avoid confusion, we reserve the word ``window'' for the |
| 19 | subdivisions that Emacs implements, and never use it to refer to a | ||
| 20 | frame. | ||
| 21 | |||
| 22 | Editing you do in one frame affects the other frames. For | ||
| 19 | instance, if you put text in the kill ring in one frame, you can yank it | 23 | instance, if you put text in the kill ring in one frame, you can yank it |
| 20 | in another frame. If you exit Emacs through @kbd{C-x C-c} in one frame, | 24 | in another frame. If you exit Emacs through @kbd{C-x C-c} in one frame, |
| 21 | it terminates all the frames. To delete just one frame, use @kbd{C-x 5 | 25 | it terminates all the frames. To delete just one frame, use @kbd{C-x 5 |
| 22 | 0} (that is zero, not @kbd{o}). | 26 | 0} (that is zero, not @kbd{o}). |
| 23 | 27 | ||
| 24 | To avoid confusion, we reserve the word ``window'' for the | 28 | Emacs compiled for MS-DOS emulates some windowing functionality, |
| 25 | subdivisions that Emacs implements, and never use it to refer to a | ||
| 26 | frame. | ||
| 27 | |||
| 28 | Emacs compiled for MS-DOS emulates some aspects of the window system | ||
| 29 | so that you can use many of the features described in this chapter. | 29 | so that you can use many of the features described in this chapter. |
| 30 | @xref{MS-DOS Mouse}, for more information. | 30 | @xref{MS-DOS Mouse}, for more information. |
| 31 | 31 | ||
| @@ -185,46 +185,46 @@ point. Then it does not matter where you click, or even which of the | |||
| 185 | frame's windows you click on. The default value is @code{nil}. This | 185 | frame's windows you click on. The default value is @code{nil}. This |
| 186 | variable also affects yanking the secondary selection. | 186 | variable also affects yanking the secondary selection. |
| 187 | 187 | ||
| 188 | @cindex cutting and X | 188 | @cindex cutting |
| 189 | @cindex pasting and X | 189 | @cindex pasting |
| 190 | @cindex X cutting and pasting | 190 | @cindex X cutting and pasting |
| 191 | To copy text to another X window, kill it or save it in the kill ring. | 191 | To copy text to another windowing application, kill it or save it in |
| 192 | Under X, this also sets the @dfn{primary selection}. Then use the | 192 | the kill ring. Then use the ``paste'' or ``yank'' command of the |
| 193 | ``paste'' or ``yank'' command of the program operating the other window | 193 | other application to insert the text. |
| 194 | to insert the text from the selection. | ||
| 195 | 194 | ||
| 196 | To copy text from another X window, use the ``cut'' or ``copy'' | 195 | To copy text from another windowing application, use its ``cut'' or |
| 197 | command of the program operating the other window, to select the text | 196 | ``copy'' command to select the text you want. Then yank it in Emacs |
| 198 | you want. Then yank it in Emacs with @kbd{C-y} or @kbd{Mouse-2}. | 197 | with @kbd{C-y} or @kbd{Mouse-2}. |
| 199 | |||
| 200 | The standard coding system for X selections is | ||
| 201 | @code{compound-text-with-extensions}. To specify another coding | ||
| 202 | system for X selections, use @kbd{C-x @key{RET} x} or @kbd{C-x | ||
| 203 | @key{RET} X}. @xref{Specify Coding}. | ||
| 204 | 198 | ||
| 205 | @cindex primary selection | 199 | @cindex primary selection |
| 206 | @cindex cut buffer | 200 | @cindex cut buffer |
| 207 | @cindex selection, primary | 201 | @cindex selection, primary |
| 208 | @vindex x-cut-buffer-max | 202 | @vindex x-cut-buffer-max |
| 209 | When Emacs puts text into the kill ring, or rotates text to the front | 203 | When Emacs puts text into the kill ring, or rotates text to the |
| 210 | of the kill ring, it sets the @dfn{primary selection} in the X server. | 204 | front of the kill ring, it sets the @dfn{primary selection} in the |
| 211 | This is how other X clients can access the text. Emacs also stores the | 205 | window system. This is how other windowing applications can access |
| 212 | text in the cut buffer, but only if the text is short enough | 206 | the text. On the X Window System, emacs also stores the text in the |
| 213 | (the value of @code{x-cut-buffer-max} specifies the maximum number of | 207 | cut buffer, but only if the text is short enough (the value of |
| 214 | characters); putting long strings in the cut buffer can be slow. | 208 | @code{x-cut-buffer-max} specifies the maximum number of characters); |
| 209 | putting long strings in the cut buffer can be slow. | ||
| 215 | 210 | ||
| 216 | The commands to yank the first entry in the kill ring actually check | 211 | The commands to yank the first entry in the kill ring actually check |
| 217 | first for a primary selection in another program; after that, they check | 212 | first for a primary selection in another program; after that, they check |
| 218 | for text in the cut buffer. If neither of those sources provides text | 213 | for text in the cut buffer. If neither of those sources provides text |
| 219 | to yank, the kill ring contents are used. | 214 | to yank, the kill ring contents are used. |
| 220 | 215 | ||
| 216 | The standard coding system for X Window System selections is | ||
| 217 | @code{compound-text-with-extensions}. To specify another coding | ||
| 218 | system for selections, use @kbd{C-x @key{RET} x} or @kbd{C-x @key{RET} | ||
| 219 | X}. @xref{Communication Coding}. | ||
| 220 | |||
| 221 | @node Secondary Selection | 221 | @node Secondary Selection |
| 222 | @section Secondary Selection | 222 | @section Secondary Selection |
| 223 | @cindex secondary selection | 223 | @cindex secondary selection |
| 224 | 224 | ||
| 225 | The @dfn{secondary selection} is another way of selecting text using | 225 | The @dfn{secondary selection} is another way of selecting text using |
| 226 | X. It does not use point or the mark, so you can use it to kill text | 226 | the X Window System. It does not use point or the mark, so you can |
| 227 | without setting point or the mark. | 227 | use it to kill text without setting point or the mark. |
| 228 | 228 | ||
| 229 | @table @kbd | 229 | @table @kbd |
| 230 | @findex mouse-set-secondary | 230 | @findex mouse-set-secondary |
| @@ -275,16 +275,15 @@ that matters is which window you click on. @xref{Mouse Commands}. | |||
| 275 | 275 | ||
| 276 | @node Clipboard | 276 | @node Clipboard |
| 277 | @section Using the Clipboard | 277 | @section Using the Clipboard |
| 278 | @cindex X clipboard | ||
| 279 | @cindex clipboard | 278 | @cindex clipboard |
| 280 | @vindex x-select-enable-clipboard | 279 | @vindex x-select-enable-clipboard |
| 281 | @findex menu-bar-enable-clipboard | 280 | @findex menu-bar-enable-clipboard |
| 282 | @cindex OpenWindows | 281 | @cindex OpenWindows |
| 283 | @cindex Gnome | 282 | @cindex Gnome |
| 284 | 283 | ||
| 285 | Apart from the primary and secondary selection types, X supports a | 284 | Apart from the primary and secondary selection types, Emacs can |
| 286 | @dfn{clipboard} selection type which is used by some applications, | 285 | handle the @dfn{clipboard} selection type which is used by some |
| 287 | particularly under OpenWindows and Gnome. | 286 | applications, particularly under OpenWindows and Gnome. |
| 288 | 287 | ||
| 289 | The command @kbd{M-x menu-bar-enable-clipboard} makes the @code{Cut}, | 288 | The command @kbd{M-x menu-bar-enable-clipboard} makes the @code{Cut}, |
| 290 | @code{Paste} and @code{Copy} menu items, as well as the keys of the same | 289 | @code{Paste} and @code{Copy} menu items, as well as the keys of the same |
| @@ -295,7 +294,7 @@ the Emacs yank functions consult the clipboard before the primary | |||
| 295 | selection, and to make the kill functions to store in the clipboard as | 294 | selection, and to make the kill functions to store in the clipboard as |
| 296 | well as the primary selection. Otherwise they do not access the | 295 | well as the primary selection. Otherwise they do not access the |
| 297 | clipboard at all. Using the clipboard is the default on MS-Windows, | 296 | clipboard at all. Using the clipboard is the default on MS-Windows, |
| 298 | unlike most systems. | 297 | but not on other systems. |
| 299 | 298 | ||
| 300 | @node Mouse References | 299 | @node Mouse References |
| 301 | @section Following References with the Mouse | 300 | @section Following References with the Mouse |
| @@ -342,16 +341,16 @@ the mouse. | |||
| 342 | 341 | ||
| 343 | @vindex mouse-1-click-follows-link | 342 | @vindex mouse-1-click-follows-link |
| 344 | In Emacs versions before 22, only @kbd{Mouse-2} follows links and | 343 | In Emacs versions before 22, only @kbd{Mouse-2} follows links and |
| 345 | @kbd{Mouse-1} always sets points. If you prefer this behavior, set | 344 | @kbd{Mouse-1} always sets point. If you prefer this older behavior, |
| 346 | the variable @code{mouse-1-click-follows-link} to @code{nil}. This | 345 | set the variable @code{mouse-1-click-follows-link} to @code{nil}. |
| 347 | variable also lets you choose various other alternatives for following | 346 | This variable also lets you choose various other alternatives for |
| 348 | links with the mouse. Type @kbd{C-h v mouse-1-click-follows-link @key{RET}} | 347 | following links with the mouse. Type @kbd{C-h v |
| 349 | for more details. | 348 | mouse-1-click-follows-link @key{RET}} for more details. |
| 350 | 349 | ||
| 351 | @node Menu Mouse Clicks | 350 | @node Menu Mouse Clicks |
| 352 | @section Mouse Clicks for Menus | 351 | @section Mouse Clicks for Menus |
| 353 | 352 | ||
| 354 | Mouse clicks modified with the @key{CTRL} and @key{SHIFT} keys | 353 | Several mouse clicks with the @key{CTRL} and @key{SHIFT} modifiers |
| 355 | bring up menus. | 354 | bring up menus. |
| 356 | 355 | ||
| 357 | @table @kbd | 356 | @table @kbd |
| @@ -382,7 +381,7 @@ present in the menu bar---not just the mode-specific ones---so that | |||
| 382 | you can access them without having to display the menu bar. | 381 | you can access them without having to display the menu bar. |
| 383 | 382 | ||
| 384 | @item S-Mouse-1 | 383 | @item S-Mouse-1 |
| 385 | This menu is for specifying the frame's principal font. | 384 | This menu is for specifying the frame's default font. |
| 386 | @end table | 385 | @end table |
| 387 | 386 | ||
| 388 | @node Mode Line Mouse | 387 | @node Mode Line Mouse |
| @@ -396,17 +395,17 @@ windows. | |||
| 396 | Some areas of the mode line, such as the buffer name and the major | 395 | Some areas of the mode line, such as the buffer name and the major |
| 397 | mode name, have their own special mouse bindings. These areas are | 396 | mode name, have their own special mouse bindings. These areas are |
| 398 | highlighted when you hold the mouse over them, and information about | 397 | highlighted when you hold the mouse over them, and information about |
| 399 | the special bindings will be displayed (@pxref{Tooltips}). | 398 | the special bindings will be displayed (@pxref{Tooltips}). This |
| 400 | 399 | section's commands do not apply in those areas. | |
| 401 | You can also click on areas of the mode line that do not have | ||
| 402 | special mouse bindings of their own. This has the following effects: | ||
| 403 | 400 | ||
| 404 | @table @kbd | 401 | @table @kbd |
| 405 | @item Mouse-1 | 402 | @item Mouse-1 |
| 406 | @kindex Mouse-1 @r{(mode line)} | 403 | @kindex Mouse-1 @r{(mode line)} |
| 407 | @kbd{Mouse-1} on a mode line selects the window it belongs to. By | 404 | @kbd{Mouse-1} on a mode line selects the window it belongs to. By |
| 408 | dragging @kbd{Mouse-1} on the mode line, you can move it, thus | 405 | dragging @kbd{Mouse-1} on the mode line, you can move it, thus |
| 409 | changing the height of the windows above and below. | 406 | changing the height of the windows above and below. Changing heights |
| 407 | with the mouse in this way never deletes windows, it just refuses to | ||
| 408 | make any window smaller than the minimum height. | ||
| 410 | 409 | ||
| 411 | @item Mouse-2 | 410 | @item Mouse-2 |
| 412 | @kindex Mouse-2 @r{(mode line)} | 411 | @kindex Mouse-2 @r{(mode line)} |
| @@ -425,7 +424,10 @@ horizontally, above the place in the mode line where you click. | |||
| 425 | @end table | 424 | @end table |
| 426 | 425 | ||
| 427 | @kindex C-Mouse-2 @r{(scroll bar)} | 426 | @kindex C-Mouse-2 @r{(scroll bar)} |
| 428 | @kbd{C-Mouse-2} on a scroll bar splits the corresponding window | 427 | @kindex Mouse-1 @r{(scroll bar)} |
| 428 | Using @kbd{Mouse-1} on the divider between two side-by-side mode | ||
| 429 | lines, you can move the vertical boundary left or right. Using | ||
| 430 | @kbd{C-Mouse-2} on a scroll bar splits the corresponding window | ||
| 429 | vertically. @xref{Split Window}. | 431 | vertically. @xref{Split Window}. |
| 430 | 432 | ||
| 431 | @node Creating Frames | 433 | @node Creating Frames |
| @@ -638,12 +640,12 @@ for all of them! | |||
| 638 | @section Special Buffer Frames | 640 | @section Special Buffer Frames |
| 639 | 641 | ||
| 640 | @vindex special-display-buffer-names | 642 | @vindex special-display-buffer-names |
| 641 | You can make certain chosen buffers, for which Emacs normally creates | 643 | You can make certain chosen buffers, which Emacs normally displays |
| 642 | a second window when you have just one window, appear in special frames | 644 | in ``another window,'' appear in special frames of their own. To do |
| 643 | of their own. To do this, set the variable | 645 | this, set the variable @code{special-display-buffer-names} to a list |
| 644 | @code{special-display-buffer-names} to a list of buffer names; any | 646 | of buffer names; any buffer whose name is in that list automatically |
| 645 | buffer whose name is in that list automatically gets a special frame, | 647 | gets a special frame, when an Emacs command wants to display it ``in |
| 646 | when an Emacs command wants to display it ``in another window.'' | 648 | another window.'' |
| 647 | 649 | ||
| 648 | For example, if you set the variable this way, | 650 | For example, if you set the variable this way, |
| 649 | 651 | ||
| @@ -664,7 +666,7 @@ frame automatically. | |||
| 664 | More generally, you can set @code{special-display-regexps} to a list | 666 | More generally, you can set @code{special-display-regexps} to a list |
| 665 | of regular expressions; then a buffer gets its own frame if its name | 667 | of regular expressions; then a buffer gets its own frame if its name |
| 666 | matches any of those regular expressions. (Once again, this applies only | 668 | matches any of those regular expressions. (Once again, this applies only |
| 667 | to buffers that normally get displayed for you in a separate window.) | 669 | to buffers that normally get displayed for you in ``another window.'') |
| 668 | 670 | ||
| 669 | @vindex special-display-frame-alist | 671 | @vindex special-display-frame-alist |
| 670 | The variable @code{special-display-frame-alist} specifies the frame | 672 | The variable @code{special-display-frame-alist} specifies the frame |
| @@ -707,79 +709,39 @@ whether that feature is also in use for the same buffer name. | |||
| 707 | @cindex Auto-Raise mode | 709 | @cindex Auto-Raise mode |
| 708 | @cindex Auto-Lower mode | 710 | @cindex Auto-Lower mode |
| 709 | 711 | ||
| 710 | This section describes commands for altering the display style and | 712 | @kindex S-Mouse-1 |
| 711 | window management behavior of the selected frame. | 713 | @item S-Mouse-1 |
| 714 | You can specify the font and colors used for text display, and the | ||
| 715 | colors for the frame borders, the cursor, and the mouse cursor, by | ||
| 716 | customizing the faces @code{default}, @code{border}, @code{cursor} and | ||
| 717 | @code{mouse}. @xref{Face Customization}. You can also set a frame's | ||
| 718 | default font through a pop-up menu. Press @kbd{S-Mouse-1} to activate | ||
| 719 | this menu. | ||
| 712 | 720 | ||
| 713 | @findex set-foreground-color | 721 | These commands are available for controlling the window management |
| 714 | @findex set-background-color | 722 | behavior of the selected frame. |
| 715 | @findex set-cursor-color | ||
| 716 | @findex set-mouse-color | ||
| 717 | @findex set-border-color | ||
| 718 | @findex auto-raise-mode | ||
| 719 | @findex auto-lower-mode | ||
| 720 | @cindex colors | ||
| 721 | @table @kbd | ||
| 722 | @item M-x set-foreground-color @key{RET} @var{color} @key{RET} | ||
| 723 | Specify color @var{color} for the foreground of the selected frame. | ||
| 724 | (This also changes the foreground color of the default face.) You can | ||
| 725 | specify @var{color} either by its symbolic name or by its RGB | ||
| 726 | numerical specification@footnote{ | ||
| 727 | See the X Window System documentation for more details. On a typical | ||
| 728 | GNU or Unix system, the command @kbd{man 7 X} or @kbd{man -s 7 X} will | ||
| 729 | display the X manual page that explains how to specify colors.}. | ||
| 730 | |||
| 731 | @item M-x set-background-color @key{RET} @var{color} @key{RET} | ||
| 732 | Specify color @var{color} for the background of the selected frame. | ||
| 733 | (This also changes the background color of the default face.) | ||
| 734 | |||
| 735 | @item M-x set-cursor-color @key{RET} @var{color} @key{RET} | ||
| 736 | Specify color @var{color} for the cursor of the selected frame. | ||
| 737 | |||
| 738 | @item M-x set-mouse-color @key{RET} @var{color} @key{RET} | ||
| 739 | Specify color @var{color} for the mouse cursor when it is over the | ||
| 740 | selected frame. | ||
| 741 | |||
| 742 | @item M-x set-border-color @key{RET} @var{color} @key{RET} | ||
| 743 | Specify color @var{color} for the border of the selected frame. | ||
| 744 | |||
| 745 | @item M-x list-colors-display | ||
| 746 | Display the defined color names and show what the colors look like. | ||
| 747 | This command is somewhat slow. @xref{Colors, list-colors-display, | ||
| 748 | Display available colors}. | ||
| 749 | 723 | ||
| 724 | @table @kbd | ||
| 725 | @findex auto-raise-mode | ||
| 750 | @item M-x auto-raise-mode | 726 | @item M-x auto-raise-mode |
| 751 | Toggle whether or not the selected frame should auto-raise. Auto-raise | 727 | Toggle whether or not the selected frame should auto-raise. Auto-raise |
| 752 | means that every time you move the mouse onto the frame, it raises the | 728 | means that every time you move the mouse onto the frame, it raises the |
| 753 | frame. | 729 | frame. |
| 754 | 730 | ||
| 755 | Note that this auto-raise feature is implemented by Emacs itself. Some | 731 | Some window managers also implement auto-raise. If you enable |
| 756 | window managers also implement auto-raise. If you enable auto-raise for | 732 | auto-raise for Emacs frames in your window manager, it will work, but |
| 757 | Emacs frames in your X window manager, it should work, but it is beyond | 733 | it is beyond Emacs' control, so @code{auto-raise-mode} has no effect |
| 758 | Emacs's control and therefore @code{auto-raise-mode} has no effect on | 734 | on it. |
| 759 | it. | ||
| 760 | 735 | ||
| 736 | @findex auto-lower-mode | ||
| 761 | @item M-x auto-lower-mode | 737 | @item M-x auto-lower-mode |
| 762 | Toggle whether or not the selected frame should auto-lower. | 738 | Toggle whether or not the selected frame should auto-lower. |
| 763 | Auto-lower means that every time you move the mouse off the frame, | 739 | Auto-lower means that every time you move the mouse off the frame, |
| 764 | the frame moves to the bottom of the stack of X windows. | 740 | the frame moves to the bottom of the stack on the screen. |
| 765 | 741 | ||
| 766 | The command @code{auto-lower-mode} has no effect on auto-lower | 742 | The command @code{auto-lower-mode} has no effect on auto-lower |
| 767 | implemented by the X window manager. To control that, you must use | 743 | implemented by the window manager. To control that, you must use the |
| 768 | the appropriate window manager features. | 744 | appropriate window manager features. |
| 769 | |||
| 770 | @findex set-frame-font | ||
| 771 | @item M-x set-frame-font @key{RET} @var{font} @key{RET} | ||
| 772 | @cindex font (principal) | ||
| 773 | Specify font @var{font} as the principal font for the selected frame. | ||
| 774 | The principal font controls several face attributes of the | ||
| 775 | @code{default} face (@pxref{Faces}). For example, if the principal font | ||
| 776 | has a height of 12 pt, all text will be drawn in 12 pt fonts, unless you | ||
| 777 | use another face that specifies a different height. @xref{Font X}, for | ||
| 778 | ways to list the available fonts on your system. | ||
| 779 | |||
| 780 | @kindex S-Mouse-1 | ||
| 781 | You can also set a frame's principal font through a pop-up menu. | ||
| 782 | Press @kbd{S-Mouse-1} to activate this menu. | ||
| 783 | @end table | 745 | @end table |
| 784 | 746 | ||
| 785 | In Emacs versions that use an X toolkit, the color-setting and | 747 | In Emacs versions that use an X toolkit, the color-setting and |
| @@ -800,13 +762,13 @@ Parameters,,, elisp, The Emacs Lisp Reference Manual}. | |||
| 800 | @cindex Scroll Bar mode | 762 | @cindex Scroll Bar mode |
| 801 | @cindex mode, Scroll Bar | 763 | @cindex mode, Scroll Bar |
| 802 | 764 | ||
| 803 | When using X, Emacs normally makes a @dfn{scroll bar} at the left of | 765 | On graphical displays, Emacs normally makes a @dfn{scroll bar} at |
| 804 | each Emacs window.@footnote{Placing it at the left is usually more | 766 | the left of each Emacs window.@footnote{Placing it at the left is |
| 805 | useful with overlapping frames with text starting at the left margin.} | 767 | usually more useful with overlapping frames with text starting at the |
| 806 | The scroll bar runs the height of the window, and shows a moving | 768 | left margin.} The scroll bar runs the height of the window, and shows |
| 807 | rectangular inner box which represents the portion of the buffer | 769 | a moving rectangular inner box which represents the portion of the |
| 808 | currently displayed. The entire height of the scroll bar represents the | 770 | buffer currently displayed. The entire height of the scroll bar |
| 809 | entire length of the buffer. | 771 | represents the entire length of the buffer. |
| 810 | 772 | ||
| 811 | You can use @kbd{Mouse-2} (normally, the middle button) in the scroll | 773 | You can use @kbd{Mouse-2} (normally, the middle button) in the scroll |
| 812 | bar to move or drag the inner box up and down. If you move it to the | 774 | bar to move or drag the inner box up and down. If you move it to the |
| @@ -826,16 +788,18 @@ window vertically. The split occurs on the line where you click. | |||
| 826 | @findex scroll-bar-mode | 788 | @findex scroll-bar-mode |
| 827 | @vindex scroll-bar-mode | 789 | @vindex scroll-bar-mode |
| 828 | You can enable or disable Scroll Bar mode with the command @kbd{M-x | 790 | You can enable or disable Scroll Bar mode with the command @kbd{M-x |
| 829 | scroll-bar-mode}. With no argument, it toggles the use of scroll bars. | 791 | scroll-bar-mode}. With no argument, it toggles the use of scroll |
| 830 | With an argument, it turns use of scroll bars on if and only if the | 792 | bars. With an argument, it turns use of scroll bars on if and only if |
| 831 | argument is positive. This command applies to all frames, including | 793 | the argument is positive. This command applies to all frames, |
| 832 | frames yet to be created. Customize the variable @code{scroll-bar-mode} | 794 | including frames yet to be created. Customize the variable |
| 833 | to control the use of scroll bars at startup. You can use it to specify | 795 | @code{scroll-bar-mode} to control the use of scroll bars at startup. |
| 834 | that they are placed at the right of windows if you prefer that. You | 796 | You can use it to specify that they are placed at the right of windows |
| 835 | have to set this variable through the @samp{Customize} interface | 797 | if you prefer that. You have to set this variable through the |
| 836 | (@pxref{Easy Customization}). Otherwise, it will not work properly. | 798 | @samp{Customize} interface (@pxref{Easy Customization}), or it will |
| 837 | You can use the X resource @samp{verticalScrollBars} to control the | 799 | not work properly. |
| 838 | initial setting of Scroll Bar mode similarly. @xref{Resources}. | 800 | |
| 801 | You can also use the X resource @samp{verticalScrollBars} to control | ||
| 802 | the initial setting of Scroll Bar mode. @xref{Resources}. | ||
| 839 | 803 | ||
| 840 | @findex toggle-scroll-bar | 804 | @findex toggle-scroll-bar |
| 841 | To enable or disable scroll bars for just the selected frame, use the | 805 | To enable or disable scroll bars for just the selected frame, use the |
| @@ -887,37 +851,8 @@ directory displayed in that buffer. | |||
| 887 | you prefer to visit the file in a new window in such cases, customize | 851 | you prefer to visit the file in a new window in such cases, customize |
| 888 | the variable @code{dnd-open-file-other-window}. | 852 | the variable @code{dnd-open-file-other-window}. |
| 889 | 853 | ||
| 890 | @ignore | 854 | The XDND and Motif drag and drop protocols, and the old KDE 1.x |
| 891 | @c ??? To Lisp manual | 855 | protocol, are currently supported. |
| 892 | @vindex x-dnd-test-function | ||
| 893 | @vindex x-dnd-known-types | ||
| 894 | When a user drags something from another application over Emacs, that other | ||
| 895 | application expects Emacs to tell it if Emacs can handle the data that is | ||
| 896 | dragged. The variable @code{x-dnd-test-function} is used by Emacs to determine | ||
| 897 | what to reply. The default value is @code{x-dnd-default-test-function} | ||
| 898 | which accepts drops if the type of the data to be dropped is present in | ||
| 899 | @code{x-dnd-known-types}. You can customize @code{x-dnd-test-function} and/or | ||
| 900 | @code{x-dnd-known-types} if you want Emacs to accept or reject drops based | ||
| 901 | on some other criteria. | ||
| 902 | |||
| 903 | @vindex x-dnd-types-alist | ||
| 904 | If you want to change the way Emacs handles drop of different types | ||
| 905 | or add a new type, customize @code{x-dnd-types-alist}. This requires | ||
| 906 | detailed knowledge of what types other applications use for drag and | ||
| 907 | drop. | ||
| 908 | |||
| 909 | @vindex dnd-protocol-alist | ||
| 910 | When an URL is dropped on Emacs it may be a file, but it may also be | ||
| 911 | another URL type (ftp, http, etc.). Emacs first checks | ||
| 912 | @code{dnd-protocol-alist} to determine what to do with the URL. If | ||
| 913 | there is no match there and if @code{browse-url-browser-function} is | ||
| 914 | an alist, Emacs looks for a match there. If no match is found the | ||
| 915 | text for the URL is inserted. If you want to alter Emacs behavior, | ||
| 916 | you can customize these variables. | ||
| 917 | @end ignore | ||
| 918 | |||
| 919 | The drag and drop protocols XDND, Motif and the | ||
| 920 | old KDE 1.x protocol are currently supported. | ||
| 921 | 856 | ||
| 922 | @node Menu Bars | 857 | @node Menu Bars |
| 923 | @section Menu Bars | 858 | @section Menu Bars |
| @@ -941,7 +876,7 @@ with @kbd{C-Mouse-3} on a display which supports pop-up menus. | |||
| 941 | 876 | ||
| 942 | @xref{Menu Bar}, for information on how to invoke commands with the | 877 | @xref{Menu Bar}, for information on how to invoke commands with the |
| 943 | menu bar. @xref{X Resources}, for how to customize the menu bar | 878 | menu bar. @xref{X Resources}, for how to customize the menu bar |
| 944 | menus. | 879 | menus' visual appearance. |
| 945 | 880 | ||
| 946 | @node Tool Bars | 881 | @node Tool Bars |
| 947 | @section Tool Bars | 882 | @section Tool Bars |
| @@ -980,13 +915,18 @@ use of dialog boxes. This also controls whether to use file selection | |||
| 980 | windows (but those are not supported on all platforms). | 915 | windows (but those are not supported on all platforms). |
| 981 | 916 | ||
| 982 | @vindex use-file-dialog | 917 | @vindex use-file-dialog |
| 983 | A file selection window is a special kind of dialog box for asking for | 918 | A file selection window is a special kind of dialog box for asking |
| 984 | file names. | 919 | for file names. You can customize the variable @code{use-file-dialog} |
| 920 | to suppress the use of file selection windows, even if you still want | ||
| 921 | other kinds of dialogs. This variable has no effect if you have | ||
| 922 | suppressed all dialog boxes with the variable @code{use-dialog-box}. | ||
| 985 | 923 | ||
| 986 | You can customize the variable @code{use-file-dialog} to suppress the | 924 | @vindex x-gtk-show-hidden-files |
| 987 | use of file selection windows even if you still want other kinds | 925 | For Gtk+ version 2.4 and newer, Emacs use the Gtk+ file chooser |
| 988 | of dialogs. This variable has no effect if you have suppressed all dialog | 926 | dialog. Emacs adds a toggle button that enables and disables showing |
| 989 | boxes with the variable @code{use-dialog-box}. | 927 | of hidden files (files starting with a dot) in that dialog. The |
| 928 | variable @code{x-gtk-show-hidden-files} controls whether to show | ||
| 929 | hidden files by default. | ||
| 990 | 930 | ||
| 991 | @vindex x-use-old-gtk-file-dialog | 931 | @vindex x-use-old-gtk-file-dialog |
| 992 | For Gtk+ version 2.4 and 2.6, you can make Emacs use the old file dialog | 932 | For Gtk+ version 2.4 and 2.6, you can make Emacs use the old file dialog |
| @@ -994,12 +934,6 @@ by setting the variable @code{x-use-old-gtk-file-dialog} to a non-@code{nil} | |||
| 994 | value. If Emacs is built with a Gtk+ version that has only one file dialog, | 934 | value. If Emacs is built with a Gtk+ version that has only one file dialog, |
| 995 | the setting of this variable has no effect. | 935 | the setting of this variable has no effect. |
| 996 | 936 | ||
| 997 | @vindex x-gtk-show-hidden-files | ||
| 998 | For Gtk+ version 2.4 and newer, Emacs use the Gtk+ file chooser dialog. | ||
| 999 | Emacs adds a toggle button that enables and disables showing of hidden files | ||
| 1000 | (files starting with a dot) in that dialog. This variable controls if | ||
| 1001 | hidden files should be shown by default or not. | ||
| 1002 | |||
| 1003 | @node Tooltips | 937 | @node Tooltips |
| 1004 | @section Tooltips | 938 | @section Tooltips |
| 1005 | @cindex tooltips | 939 | @cindex tooltips |
| @@ -1010,13 +944,13 @@ movement. There are two types of tooltip: help tooltips and GUD | |||
| 1010 | tooltips. | 944 | tooltips. |
| 1011 | 945 | ||
| 1012 | @dfn{Help tooltips} typically display over text---including the mode | 946 | @dfn{Help tooltips} typically display over text---including the mode |
| 1013 | line---but may be also available for many other parts of the Emacs | 947 | line---but are also available for other parts of the Emacs frame, such |
| 1014 | frame such as the tool bar and menu items. | 948 | as the tool bar and menu items. |
| 1015 | 949 | ||
| 1016 | @findex tooltip-mode | 950 | @findex tooltip-mode |
| 1017 | You can toggle help tooltips (Tooltip mode) with the command | 951 | You can toggle display of help tooltips (Tooltip mode) with the |
| 1018 | @kbd{M-x tooltip-mode}. When Tooltip mode is disabled, the help text | 952 | command @kbd{M-x tooltip-mode}. When Tooltip mode is disabled, the |
| 1019 | is displayed in the echo area instead. | 953 | help text is displayed in the echo area instead. |
| 1020 | 954 | ||
| 1021 | @dfn{GUD tooltips} show values of variables. They are useful when | 955 | @dfn{GUD tooltips} show values of variables. They are useful when |
| 1022 | you are debugging a program. @xref{Debugger Operation}. | 956 | you are debugging a program. @xref{Debugger Operation}. |
| @@ -1066,11 +1000,10 @@ the mode. | |||
| 1066 | @cindex non-window terminals | 1000 | @cindex non-window terminals |
| 1067 | @cindex single-frame terminals | 1001 | @cindex single-frame terminals |
| 1068 | 1002 | ||
| 1069 | If your terminal does not have a window system that Emacs supports, | 1003 | On a text-only terminal, Emacs can display only one Emacs frame at a |
| 1070 | then it can display only one Emacs frame at a time. However, you can | 1004 | time. However, you can still create multiple Emacs frames, and switch |
| 1071 | still create multiple Emacs frames, and switch between them. Switching | 1005 | between them. Switching frames on these terminals is much like |
| 1072 | frames on these terminals is much like switching between different | 1006 | switching between different window configurations. |
| 1073 | window configurations. | ||
| 1074 | 1007 | ||
| 1075 | Use @kbd{C-x 5 2} to create a new frame and switch to it; use @kbd{C-x | 1008 | Use @kbd{C-x 5 2} to create a new frame and switch to it; use @kbd{C-x |
| 1076 | 5 o} to cycle through the existing frames; use @kbd{C-x 5 0} to delete | 1009 | 5 o} to cycle through the existing frames; use @kbd{C-x 5 0} to delete |
| @@ -1083,20 +1016,20 @@ appears near the beginning of the mode line, in the form | |||
| 1083 | 1016 | ||
| 1084 | @findex set-frame-name | 1017 | @findex set-frame-name |
| 1085 | @findex select-frame-by-name | 1018 | @findex select-frame-by-name |
| 1086 | @samp{F@var{n}} is actually the frame's name. You can also specify a | 1019 | @samp{F@var{n}} is in fact the frame's initial name. You can give |
| 1087 | different name if you wish, and you can select a frame by its name. Use | 1020 | frames more meaningful names if you wish, and you can select a frame |
| 1088 | the command @kbd{M-x set-frame-name @key{RET} @var{name} @key{RET}} to | 1021 | by its name. Use the command @kbd{M-x set-frame-name @key{RET} |
| 1089 | specify a new name for the selected frame, and use @kbd{M-x | 1022 | @var{name} @key{RET}} to specify a new name for the selected frame, |
| 1090 | select-frame-by-name @key{RET} @var{name} @key{RET}} to select a frame | 1023 | and use @kbd{M-x select-frame-by-name @key{RET} @var{name} @key{RET}} |
| 1091 | according to its name. The name you specify appears in the mode line | 1024 | to select a frame according to its name. The name you specify appears |
| 1092 | when the frame is selected. | 1025 | in the mode line when the frame is selected. |
| 1093 | 1026 | ||
| 1094 | @node XTerm Mouse | 1027 | @node XTerm Mouse |
| 1095 | @section Using a Mouse in Terminal Emulators | 1028 | @section Using a Mouse in Terminal Emulators |
| 1096 | @cindex xterm, mouse support | 1029 | @cindex xterm, mouse support |
| 1097 | @cindex terminal emulators, mouse support | 1030 | @cindex terminal emulators, mouse support |
| 1098 | 1031 | ||
| 1099 | Some terminal emulators under X support mouse clicks in the terminal | 1032 | Some terminal emulators under X support mouse clicks in the terminal |
| 1100 | window. In a terminal emulator which is compatible with @code{xterm}, | 1033 | window. In a terminal emulator which is compatible with @code{xterm}, |
| 1101 | you can use @kbd{M-x xterm-mouse-mode} to give Emacs control over | 1034 | you can use @kbd{M-x xterm-mouse-mode} to give Emacs control over |
| 1102 | simple use of the mouse---basically, only non-modified single clicks | 1035 | simple use of the mouse---basically, only non-modified single clicks |