aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-03 07:29:03 +0000
committerRichard M. Stallman2005-02-03 07:29:03 +0000
commit511002e96270cc157d552db4f0c83073b5786602 (patch)
treeec79c4ae3de6e8e549867e266dd484ae9825154d
parent6d8d2de06e4b36ca96adb9bf92973548bf271937 (diff)
downloademacs-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.texi154
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.
29so that you can use many of the features described in this chapter. 29so 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
34under 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
66compatible with the @code{xterm} program. You can use the same mouse 62compatible with the @code{xterm} program. You can use the same mouse
67commands for copying between Emacs and other X client programs. 63commands for copying between Emacs and other window-based programs.
64Most 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}.
188system for X selections, use @kbd{C-x @key{RET} x} or @kbd{C-x 186system 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,
275particularly under OpenWindows and Gnome. 271particularly 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
293lists of files, of buffers, of possible completions, of matches for 290commands you can activate. These include names of files, of buffers,
294a pattern, and so on. 291of possible completions, of matches for a pattern, as well as the
295 292buttons in Help buffers and customization buffers. You can follow the
296 Since yanking text into these buffers is not very useful, most of them 293reference or activate the command by moving point to it and typing
297define @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
298click 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
301buffer, you visit that file. If you click @kbd{Mouse-2} on an error 298buffers generally define @kbd{Mouse-2} to follow a reference or
302message in the @samp{*Compilation*} buffer, you go to the source code 299activate a command. For example, if you click @kbd{Mouse-2} on a file
303for that error message. If you click @kbd{Mouse-2} on a completion in 300name in a Dired buffer, you visit that file. If you click
304the @samp{*Completions*} buffer, you choose that completion. 301@kbd{Mouse-2} on an error message in the @samp{*Compilation*} buffer,
302you 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
304choose that completion.
305
306@vindex mouse-1-click-follows-link
307 However, most applications use @kbd{Mouse-1} to do this sort of
308thing, so Emacs implements this too. If you click @kbd{Mouse-1}
309quickly on a reference or button, it follows or activates. If you
310click slowly, it moves point as usual. Dragging, meaning moving the
311mouse while it is held down, also has its usual behavior of setting
312the region. The variable @code{mouse-1-click-follows-link} controls
313whether @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
308meaning because the sensitive text highlights when you move the mouse 317special sort of meaning because the sensitive text highlights when you
309over it. The variable @code{mouse-highlight} controls whether to do 318move the mouse over it. The variable @code{mouse-highlight} controls
310this highlighting always (even when such text appears where the mouse 319whether to do this highlighting always (even when such text appears
311already is), never, or only immediately after you move the mouse. 320where the mouse already is), never, or only immediately after you move
321the 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
334This menu is mode-specific. For most modes if Menu-bar mode is on, this 344This menu is mode-specific. For most modes if Menu-bar mode is on,
335menu has the same items as all the mode-specific menu-bar menus put 345this menu has the same items as all the mode-specific menu-bar menus
336together. Some modes may specify a different menu for this 346put together. Some modes may specify a different menu for this
337button.@footnote{Some systems use @kbd{Mouse-3} for a mode-specific 347button.@footnote{Some systems use @kbd{Mouse-3} for a mode-specific
338menu. We took a survey of users, and found they preferred to keep 348menu. 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
340use @kbd{C-Mouse-3} for this menu.} If Menu-bar mode is off, this menu 350to use @kbd{C-Mouse-3} for this menu. To use @kbd{Mouse-3} instead,
341contains all the items which would be present in the menu bar---not just 351do @code{(global-set-key [mouse-3] 'mouse-popup-menubar-stuff)}.} If
342the mode-specific ones---so that you can access them without having to 352Menu-bar mode is off, this menu contains all the items which would be
343display the menu bar. 353present in the menu bar---not just the mode-specific ones---so that
354you can access them without having to display the menu bar.
344 355
345@item S-Mouse-1 356@item S-Mouse-1
346This menu is for specifying the frame's principal font. 357This 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 372dragging @kbd{Mouse-1} on the mode line, you can move it, thus
362height of the windows above and below. 373changing 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
371only one window, it buries the current buffer instead and switches to 382frame has only one window, it buries the current buffer instead, and
372another buffer. 383switches 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
799buffers are scrolled. 810buffers 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.
806Currently supported drag and drop protocols are XDND, Motif and the old
807KDE 1.x protocol. There is no drag support yet.
808When text is dropped on Emacs, Emacs inserts the text where it is dropped.
809When a file is dragged from a file manager to Emacs, Emacs opens that file.
810As a special case, if a file is dropped on a dired buffer the file is
811copied or moved (depends on exactly how it is dragged and the application
812it was dragged from) to the directory the dired buffer is displaying.
813 815
816 Emacs supports @cindex{drag and drop} using the mouse. For
817instance, dropping text onto an Emacs frame inserts the text where it
818is dropped. Dropping a file onto an Emacs frame visits that file. As
819a special case, dropping the file on a Dired buffer moves or copies
820the file (according to the conventions of the application it came
821from) 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
825you prefer to visit the file in a new window in such cases, customize
826the 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
823on some other criteria. 839on 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
827prefer 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
832or add a new type, you shall customize @code{x-dnd-types-alist}. This 843or add a new type, customize @code{x-dnd-types-alist}. This requires
833requires detailed knowledge of what types other applications use 844detailed knowledge of what types other applications use for drag and
834for drag and drop. 845drop.
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
838another URL type (ftp, http, etc.). Emacs first checks 849another 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
840is no match there and if @code{browse-url-browser-function} is an alist, 851there is no match there and if @code{browse-url-browser-function} is
841Emacs looks for a match there. If no match is found the text for the URL 852an alist, Emacs looks for a match there. If no match is found the
842is inserted. If you want to alter Emacs behaviour you can customize these 853text for the URL is inserted. If you want to alter Emacs behavior,
843variables. 854you can customize these variables.
855@end ignore
844 856
857 The drag and drop protocols XDND, Motif and the
858old 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
876The @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
877of the Emacs window. You can click on these icons with the mouse 891Emacs window, just below the menu bar. You can click on these icons
878to do various jobs. 892with the mouse to do various jobs.
879 893
880The global tool bar contains general commands. Some major modes 894 The global tool bar contains general commands. Some major modes
881define their own tool bars to replace it. A few ``special'' modes 895define their own tool bars to replace it. A few ``special'' modes
882that are not designed for ordinary editing remove some items from the 896that are not designed for ordinary editing remove some items from the
883global tool bar. 897global tool bar.
884 898
885Tool 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
886XPM icons if Emacs was built with XPM support. Otherwise, the tool 900XPM icons if Emacs was built with XPM support. Otherwise, the tool
887bar uses monochrome icons (PBM or XBM format). 901bar uses monochrome icons (PBM or XBM format).
888 902
889You 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
890tool-bar-mode}. 904tool-bar-mode}.
891 905
892@node Dialog Boxes 906@node Dialog Boxes