diff options
| author | Richard M. Stallman | 2005-02-03 07:29:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-03 07:29:03 +0000 |
| commit | 511002e96270cc157d552db4f0c83073b5786602 (patch) | |
| tree | ec79c4ae3de6e8e549867e266dd484ae9825154d | |
| parent | 6d8d2de06e4b36ca96adb9bf92973548bf271937 (diff) | |
| download | emacs-511002e96270cc157d552db4f0c83073b5786602.tar.gz emacs-511002e96270cc157d552db4f0c83073b5786602.zip | |
(Frames): Delete unnecessary mention of Windows.
(Mouse Commands): Likewise. Mention xterm mouse support.
(Clipboard): Clarify.
(Mouse References): Mention use of Mouse-1 for following links.
(Menu Mouse Clicks): Clarify.
(Mode Line Mouse): Clarify.
(Drag and Drop): Rewrite.
| -rw-r--r-- | man/frames.texi | 154 |
1 files changed, 84 insertions, 70 deletions
diff --git a/man/frames.texi b/man/frames.texi index 2d6c953d2e4..877d9a0e319 100644 --- a/man/frames.texi +++ b/man/frames.texi | |||
| @@ -29,10 +29,6 @@ frame. | |||
| 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 Input}, for more information. | 30 | @xref{MS-DOS Input}, for more information. |
| 31 | 31 | ||
| 32 | @cindex MS Windows | ||
| 33 | Emacs compiled for MS Windows mostly supports the same features as | ||
| 34 | under X. | ||
| 35 | |||
| 36 | @menu | 32 | @menu |
| 37 | * Mouse Commands:: Moving, cutting, and pasting, with the mouse. | 33 | * Mouse Commands:: Moving, cutting, and pasting, with the mouse. |
| 38 | * Secondary Selection:: Cutting without altering point and mark. | 34 | * Secondary Selection:: Cutting without altering point and mark. |
| @@ -64,7 +60,9 @@ under X. | |||
| 64 | 60 | ||
| 65 | The mouse commands for selecting and copying a region are mostly | 61 | The mouse commands for selecting and copying a region are mostly |
| 66 | compatible with the @code{xterm} program. You can use the same mouse | 62 | compatible with the @code{xterm} program. You can use the same mouse |
| 67 | commands for copying between Emacs and other X client programs. | 63 | commands for copying between Emacs and other window-based programs. |
| 64 | Most of these commands also work in Emacs when you run it under an | ||
| 65 | @code{xterm} terminal. | ||
| 68 | 66 | ||
| 69 | @kindex DELETE @r{(and mouse selection)} | 67 | @kindex DELETE @r{(and mouse selection)} |
| 70 | If you select a region with any of these mouse commands, and then | 68 | If you select a region with any of these mouse commands, and then |
| @@ -188,8 +186,6 @@ you want. Then yank it in Emacs with @kbd{C-y} or @kbd{Mouse-2}. | |||
| 188 | system for X selections, use @kbd{C-x @key{RET} x} or @kbd{C-x | 186 | system for X selections, use @kbd{C-x @key{RET} x} or @kbd{C-x |
| 189 | @key{RET} X}. @xref{Specify Coding}. | 187 | @key{RET} X}. @xref{Specify Coding}. |
| 190 | 188 | ||
| 191 | These cutting and pasting commands also work on MS-Windows. | ||
| 192 | |||
| 193 | @cindex primary selection | 189 | @cindex primary selection |
| 194 | @cindex cut buffer | 190 | @cindex cut buffer |
| 195 | @cindex selection, primary | 191 | @cindex selection, primary |
| @@ -270,7 +266,7 @@ that matters is which window you click on. @xref{Mouse Commands}. | |||
| 270 | @cindex OpenWindows | 266 | @cindex OpenWindows |
| 271 | @cindex Gnome | 267 | @cindex Gnome |
| 272 | 268 | ||
| 273 | As well as the primary and secondary selection types, X supports a | 269 | Apart from the primary and secondary selection types, X supports a |
| 274 | @dfn{clipboard} selection type which is used by some applications, | 270 | @dfn{clipboard} selection type which is used by some applications, |
| 275 | particularly under OpenWindows and Gnome. | 271 | particularly under OpenWindows and Gnome. |
| 276 | 272 | ||
| @@ -287,28 +283,42 @@ unlike most systems. | |||
| 287 | 283 | ||
| 288 | @node Mouse References | 284 | @node Mouse References |
| 289 | @section Following References with the Mouse | 285 | @section Following References with the Mouse |
| 286 | @kindex Mouse-1 @r{(selection)} | ||
| 290 | @kindex Mouse-2 @r{(selection)} | 287 | @kindex Mouse-2 @r{(selection)} |
| 291 | 288 | ||
| 292 | Some Emacs buffers display lists of various sorts. These include | 289 | Some read-only Emacs buffers include references you can follow, or |
| 293 | lists of files, of buffers, of possible completions, of matches for | 290 | commands you can activate. These include names of files, of buffers, |
| 294 | a pattern, and so on. | 291 | of possible completions, of matches for a pattern, as well as the |
| 295 | 292 | buttons in Help buffers and customization buffers. You can follow the | |
| 296 | Since yanking text into these buffers is not very useful, most of them | 293 | reference or activate the command by moving point to it and typing |
| 297 | define @kbd{Mouse-2} specially, as a command to use or view the item you | 294 | @key{RET}. You can also do this with the mouse, using either |
| 298 | click on. | 295 | @kbd{Mouse-1} or @kbd{Mouse-2}. |
| 299 | 296 | ||
| 300 | For example, if you click @kbd{Mouse-2} on a file name in a Dired | 297 | Since yanking text into a read-only buffer is not allowed, these |
| 301 | buffer, you visit that file. If you click @kbd{Mouse-2} on an error | 298 | buffers generally define @kbd{Mouse-2} to follow a reference or |
| 302 | message in the @samp{*Compilation*} buffer, you go to the source code | 299 | activate a command. For example, if you click @kbd{Mouse-2} on a file |
| 303 | for that error message. If you click @kbd{Mouse-2} on a completion in | 300 | name in a Dired buffer, you visit that file. If you click |
| 304 | the @samp{*Completions*} buffer, you choose that completion. | 301 | @kbd{Mouse-2} on an error message in the @samp{*Compilation*} buffer, |
| 302 | you go to the source code for that error message. If you click | ||
| 303 | @kbd{Mouse-2} on a completion in the @samp{*Completions*} buffer, you | ||
| 304 | choose that completion. | ||
| 305 | |||
| 306 | @vindex mouse-1-click-follows-link | ||
| 307 | However, most applications use @kbd{Mouse-1} to do this sort of | ||
| 308 | thing, so Emacs implements this too. If you click @kbd{Mouse-1} | ||
| 309 | quickly on a reference or button, it follows or activates. If you | ||
| 310 | click slowly, it moves point as usual. Dragging, meaning moving the | ||
| 311 | mouse while it is held down, also has its usual behavior of setting | ||
| 312 | the region. The variable @code{mouse-1-click-follows-link} controls | ||
| 313 | whether @kbd{Mouse-1} has this behavior. | ||
| 305 | 314 | ||
| 306 | @vindex mouse-highlight | 315 | @vindex mouse-highlight |
| 307 | You can usually tell when @kbd{Mouse-2} has this special sort of | 316 | You can usually tell when @kbd{Mouse-1} and @kbd{Mouse-2} have this |
| 308 | meaning because the sensitive text highlights when you move the mouse | 317 | special sort of meaning because the sensitive text highlights when you |
| 309 | over it. The variable @code{mouse-highlight} controls whether to do | 318 | move the mouse over it. The variable @code{mouse-highlight} controls |
| 310 | this highlighting always (even when such text appears where the mouse | 319 | whether to do this highlighting always (even when such text appears |
| 311 | already is), never, or only immediately after you move the mouse. | 320 | where the mouse already is), never, or only immediately after you move |
| 321 | the mouse. | ||
| 312 | 322 | ||
| 313 | @node Menu Mouse Clicks | 323 | @node Menu Mouse Clicks |
| 314 | @section Mouse Clicks for Menus | 324 | @section Mouse Clicks for Menus |
| @@ -331,16 +341,17 @@ for editing formatted text. @xref{Formatted Text}. | |||
| 331 | 341 | ||
| 332 | @item C-Mouse-3 | 342 | @item C-Mouse-3 |
| 333 | @kindex C-Mouse-3 | 343 | @kindex C-Mouse-3 |
| 334 | This menu is mode-specific. For most modes if Menu-bar mode is on, this | 344 | This menu is mode-specific. For most modes if Menu-bar mode is on, |
| 335 | menu has the same items as all the mode-specific menu-bar menus put | 345 | this menu has the same items as all the mode-specific menu-bar menus |
| 336 | together. Some modes may specify a different menu for this | 346 | put together. Some modes may specify a different menu for this |
| 337 | button.@footnote{Some systems use @kbd{Mouse-3} for a mode-specific | 347 | button.@footnote{Some systems use @kbd{Mouse-3} for a mode-specific |
| 338 | menu. We took a survey of users, and found they preferred to keep | 348 | menu. We took a survey of users, and found they preferred to keep |
| 339 | @kbd{Mouse-3} for selecting and killing regions. Hence the decision to | 349 | @kbd{Mouse-3} for selecting and killing regions. Hence the decision |
| 340 | use @kbd{C-Mouse-3} for this menu.} If Menu-bar mode is off, this menu | 350 | to use @kbd{C-Mouse-3} for this menu. To use @kbd{Mouse-3} instead, |
| 341 | contains all the items which would be present in the menu bar---not just | 351 | do @code{(global-set-key [mouse-3] 'mouse-popup-menubar-stuff)}.} If |
| 342 | the mode-specific ones---so that you can access them without having to | 352 | Menu-bar mode is off, this menu contains all the items which would be |
| 343 | display the menu bar. | 353 | present in the menu bar---not just the mode-specific ones---so that |
| 354 | you can access them without having to display the menu bar. | ||
| 344 | 355 | ||
| 345 | @item S-Mouse-1 | 356 | @item S-Mouse-1 |
| 346 | This menu is for specifying the frame's principal font. | 357 | This menu is for specifying the frame's principal font. |
| @@ -357,9 +368,9 @@ windows. | |||
| 357 | @table @kbd | 368 | @table @kbd |
| 358 | @item Mouse-1 | 369 | @item Mouse-1 |
| 359 | @kindex Mouse-1 @r{(mode line)} | 370 | @kindex Mouse-1 @r{(mode line)} |
| 360 | @kbd{Mouse-1} on a mode line selects the window above. By dragging | 371 | @kbd{Mouse-1} on a mode line selects the window it belongs to. By |
| 361 | @kbd{Mouse-1} on the mode line, you can move it, thus changing the | 372 | dragging @kbd{Mouse-1} on the mode line, you can move it, thus |
| 362 | height of the windows above and below. | 373 | changing the height of the windows above and below. |
| 363 | 374 | ||
| 364 | @item Mouse-2 | 375 | @item Mouse-2 |
| 365 | @kindex Mouse-2 @r{(mode line)} | 376 | @kindex Mouse-2 @r{(mode line)} |
| @@ -367,9 +378,9 @@ height of the windows above and below. | |||
| 367 | 378 | ||
| 368 | @item Mouse-3 | 379 | @item Mouse-3 |
| 369 | @kindex Mouse-3 @r{(mode line)} | 380 | @kindex Mouse-3 @r{(mode line)} |
| 370 | @kbd{Mouse-3} on a mode line deletes the window above. If the frame has | 381 | @kbd{Mouse-3} on a mode line deletes the window it belongs to. If the |
| 371 | only one window, it buries the current buffer instead and switches to | 382 | frame has only one window, it buries the current buffer instead, and |
| 372 | another buffer. | 383 | switches to another buffer. |
| 373 | 384 | ||
| 374 | @item C-Mouse-2 | 385 | @item C-Mouse-2 |
| 375 | @kindex C-mouse-2 @r{(mode line)} | 386 | @kindex C-mouse-2 @r{(mode line)} |
| @@ -798,19 +809,24 @@ generating appropriate events for Emacs. | |||
| 798 | @code{mouse-wheel-scroll-amount} determine where and by how much | 809 | @code{mouse-wheel-scroll-amount} determine where and by how much |
| 799 | buffers are scrolled. | 810 | buffers are scrolled. |
| 800 | 811 | ||
| 801 | @node Drag and drop | 812 | @node Drag and Drop |
| 802 | @section Drag and drop in Emacs. | 813 | @section Drag and Drop |
| 803 | |||
| 804 | @cindex drag and drop | 814 | @cindex drag and drop |
| 805 | Emacs supports drag and drop so that dropping of files and text is handled. | ||
| 806 | Currently supported drag and drop protocols are XDND, Motif and the old | ||
| 807 | KDE 1.x protocol. There is no drag support yet. | ||
| 808 | When text is dropped on Emacs, Emacs inserts the text where it is dropped. | ||
| 809 | When a file is dragged from a file manager to Emacs, Emacs opens that file. | ||
| 810 | As a special case, if a file is dropped on a dired buffer the file is | ||
| 811 | copied or moved (depends on exactly how it is dragged and the application | ||
| 812 | it was dragged from) to the directory the dired buffer is displaying. | ||
| 813 | 815 | ||
| 816 | Emacs supports @cindex{drag and drop} using the mouse. For | ||
| 817 | instance, dropping text onto an Emacs frame inserts the text where it | ||
| 818 | is dropped. Dropping a file onto an Emacs frame visits that file. As | ||
| 819 | a special case, dropping the file on a Dired buffer moves or copies | ||
| 820 | the file (according to the conventions of the application it came | ||
| 821 | from) into the directory displayed in that buffer. | ||
| 822 | |||
| 823 | @vindex x-dnd-open-file-other-window | ||
| 824 | Dropping a file normally visits it in the window you drop it on. If | ||
| 825 | you prefer to visit the file in a new window in such cases, customize | ||
| 826 | the variable @code{x-dnd-open-file-other-window}. | ||
| 827 | |||
| 828 | @ignore | ||
| 829 | @c ??? To Lisp manual | ||
| 814 | @vindex x-dnd-test-function | 830 | @vindex x-dnd-test-function |
| 815 | @vindex x-dnd-known-types | 831 | @vindex x-dnd-known-types |
| 816 | When a user drags something from another application over Emacs, that other | 832 | When a user drags something from another application over Emacs, that other |
| @@ -822,26 +838,24 @@ which accepts drops if the type of the data to be dropped is present in | |||
| 822 | @code{x-dnd-known-types} if you want Emacs to accept or reject drops based | 838 | @code{x-dnd-known-types} if you want Emacs to accept or reject drops based |
| 823 | on some other criteria. | 839 | on some other criteria. |
| 824 | 840 | ||
| 825 | @vindex x-dnd-open-file-other-window | ||
| 826 | A file is normally opened in the window it is dropped on, but if you | ||
| 827 | prefer the file to be opened in a new window you can customize the variable | ||
| 828 | @code{x-dnd-open-file-other-window}. | ||
| 829 | |||
| 830 | @vindex x-dnd-types-alist | 841 | @vindex x-dnd-types-alist |
| 831 | If you want to change the way Emacs handles drop of different types | 842 | If you want to change the way Emacs handles drop of different types |
| 832 | or add a new type, you shall customize @code{x-dnd-types-alist}. This | 843 | or add a new type, customize @code{x-dnd-types-alist}. This requires |
| 833 | requires detailed knowledge of what types other applications use | 844 | detailed knowledge of what types other applications use for drag and |
| 834 | for drag and drop. | 845 | drop. |
| 835 | 846 | ||
| 836 | @vindex x-dnd-protocol-alist | 847 | @vindex x-dnd-protocol-alist |
| 837 | When an URL is dropped on Emacs it may be a file, but it may also be | 848 | When an URL is dropped on Emacs it may be a file, but it may also be |
| 838 | another URL type (ftp, http, etc.). Emacs first checks | 849 | another URL type (ftp, http, etc.). Emacs first checks |
| 839 | @code{x-dnd-protocol-alist} to determine what to do with the URL. If there | 850 | @code{x-dnd-protocol-alist} to determine what to do with the URL. If |
| 840 | is no match there and if @code{browse-url-browser-function} is an alist, | 851 | there is no match there and if @code{browse-url-browser-function} is |
| 841 | Emacs looks for a match there. If no match is found the text for the URL | 852 | an alist, Emacs looks for a match there. If no match is found the |
| 842 | is inserted. If you want to alter Emacs behaviour you can customize these | 853 | text for the URL is inserted. If you want to alter Emacs behavior, |
| 843 | variables. | 854 | you can customize these variables. |
| 855 | @end ignore | ||
| 844 | 856 | ||
| 857 | The drag and drop protocols XDND, Motif and the | ||
| 858 | old KDE 1.x protocol are currently supported. | ||
| 845 | 859 | ||
| 846 | @node Menu Bars | 860 | @node Menu Bars |
| 847 | @section Menu Bars | 861 | @section Menu Bars |
| @@ -873,20 +887,20 @@ menus. | |||
| 873 | @cindex mode, Tool Bar | 887 | @cindex mode, Tool Bar |
| 874 | @cindex icons, toolbar | 888 | @cindex icons, toolbar |
| 875 | 889 | ||
| 876 | The @dfn{tool bar} is a line (or multiple lines) of icons at the top | 890 | The @dfn{tool bar} is a line (or lines) of icons at the top of the |
| 877 | of the Emacs window. You can click on these icons with the mouse | 891 | Emacs window, just below the menu bar. You can click on these icons |
| 878 | to do various jobs. | 892 | with the mouse to do various jobs. |
| 879 | 893 | ||
| 880 | The global tool bar contains general commands. Some major modes | 894 | The global tool bar contains general commands. Some major modes |
| 881 | define their own tool bars to replace it. A few ``special'' modes | 895 | define their own tool bars to replace it. A few ``special'' modes |
| 882 | that are not designed for ordinary editing remove some items from the | 896 | that are not designed for ordinary editing remove some items from the |
| 883 | global tool bar. | 897 | global tool bar. |
| 884 | 898 | ||
| 885 | Tool bars work only on a graphical display. The tool bar uses colored | 899 | Tool bars work only on a graphical display. The tool bar uses colored |
| 886 | XPM icons if Emacs was built with XPM support. Otherwise, the tool | 900 | XPM icons if Emacs was built with XPM support. Otherwise, the tool |
| 887 | bar uses monochrome icons (PBM or XBM format). | 901 | bar uses monochrome icons (PBM or XBM format). |
| 888 | 902 | ||
| 889 | You can turn display of tool bars on or off with @kbd{M-x | 903 | You can turn display of tool bars on or off with @kbd{M-x |
| 890 | tool-bar-mode}. | 904 | tool-bar-mode}. |
| 891 | 905 | ||
| 892 | @node Dialog Boxes | 906 | @node Dialog Boxes |