1 |
@c This is part of the Emacs manual. |
@c This is part of the Emacs manual. |
2 |
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 99, 2000, 2001 |
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 99, 2000, 2001, 2004 |
3 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
4 |
@c See file emacs.texi for copying conditions. |
@c See file emacs.texi for copying conditions. |
5 |
@node Frames, International, Windows, Top |
@node Frames, International, Windows, Top |
230 |
back into the window. This way, you can mark regions that don't fit |
back into the window. This way, you can mark regions that don't fit |
231 |
entirely on the screen. |
entirely on the screen. |
232 |
|
|
233 |
|
This way of setting the secondary selection does not alter the kill ring. |
234 |
|
|
235 |
@findex mouse-start-secondary |
@findex mouse-start-secondary |
236 |
@kindex M-Mouse-1 |
@kindex M-Mouse-1 |
237 |
@item M-Mouse-1 |
@item M-Mouse-1 |
242 |
@kindex M-Mouse-3 |
@kindex M-Mouse-3 |
243 |
@item M-Mouse-3 |
@item M-Mouse-3 |
244 |
Make a secondary selection, using the place specified with @kbd{M-Mouse-1} |
Make a secondary selection, using the place specified with @kbd{M-Mouse-1} |
245 |
as the other end (@code{mouse-secondary-save-then-kill}). A second click |
as the other end (@code{mouse-secondary-save-then-kill}). This also |
246 |
at the same place kills the secondary selection just made. |
puts the selected text in the kill ring. A second click at the same |
247 |
|
place kills the secondary selection just made. |
248 |
|
|
249 |
@findex mouse-yank-secondary |
@findex mouse-yank-secondary |
250 |
@kindex M-Mouse-2 |
@kindex M-Mouse-2 |
379 |
|
|
380 |
@kindex C-Mouse-2 @r{(scroll bar)} |
@kindex C-Mouse-2 @r{(scroll bar)} |
381 |
@kbd{C-Mouse-2} on a scroll bar splits the corresponding window |
@kbd{C-Mouse-2} on a scroll bar splits the corresponding window |
382 |
vertically, unless you are using an X toolkit's implementation of |
vertically. @xref{Split Window}. |
|
scroll bars. @xref{Split Window}. |
|
383 |
|
|
384 |
The commands above apply to areas of the mode line which do not have |
The commands above apply to areas of the mode line which do not have |
385 |
special mouse bindings of their own. Some areas, such as the buffer |
special mouse bindings of their own. Some areas, such as the buffer |
749 |
down to the level where you click. By clicking repeatedly in the same |
down to the level where you click. By clicking repeatedly in the same |
750 |
place, you can scroll by the same distance over and over. |
place, you can scroll by the same distance over and over. |
751 |
|
|
752 |
If you are using Emacs's own implementation of scroll bars, as opposed |
You can also click @kbd{C-Mouse-2} in the scroll bar to split a |
753 |
to scroll bars from an X toolkit, you can also click @kbd{C-Mouse-2} in |
window vertically. The split occurs on the line where you click. |
|
the scroll bar to split a window vertically. The split occurs on the |
|
|
line where you click. |
|
754 |
|
|
755 |
@findex scroll-bar-mode |
@findex scroll-bar-mode |
756 |
@vindex scroll-bar-mode |
@vindex scroll-bar-mode |
800 |
@section Drag and drop in Emacs. |
@section Drag and drop in Emacs. |
801 |
|
|
802 |
@cindex drag and drop |
@cindex drag and drop |
803 |
Emacs supports drag and drop so that dropping of files and text is handeled. |
Emacs supports drag and drop so that dropping of files and text is handled. |
804 |
Currently supported drag and drop protocols are XDND, Motif and the old |
Currently supported drag and drop protocols are XDND, Motif and the old |
805 |
KDE 1.x protocol. There is no drag support yet. |
KDE 1.x protocol. There is no drag support yet. |
806 |
When text is dropped on Emacs, Emacs inserts the text where it is dropped. |
When text is dropped on Emacs, Emacs inserts the text where it is dropped. |
807 |
When a file is dragged from a file manager to Emacs, Emacs opens that file. |
When a file is dragged from a file manager to Emacs, Emacs opens that file. |
808 |
As a special case, if a file is dropped on a dired buffer the file is |
As a special case, if a file is dropped on a dired buffer the file is |
809 |
copied or moved (depends on exactly how it is dragged and the application |
copied or moved (depends on exactly how it is dragged and the application |
810 |
it was dragged from) to the directory the dired buffer is displaying. |
it was dragged from) to the directory the dired buffer is displaying. |
811 |
|
|
812 |
|
@vindex x-dnd-test-function |
813 |
|
@vindex x-dnd-known-types |
814 |
|
When a user drags something from another application over Emacs, that other |
815 |
|
application expects Emacs to tell it if Emacs can handle the data that is |
816 |
|
dragged. The variable @code{x-dnd-test-function} is used by Emacs to determine |
817 |
|
what to reply. The default value is @code{x-dnd-default-test-function} |
818 |
|
which accepts drops if the type of the data to be dropped is present in |
819 |
|
@code{x-dnd-known-types}. You can customize @code{x-dnd-test-function} and/or |
820 |
|
@code{x-dnd-known-types} if you want Emacs to accept or reject drops based |
821 |
|
on some other criteria. |
822 |
|
|
823 |
@vindex x-dnd-open-file-other-window |
@vindex x-dnd-open-file-other-window |
824 |
A file is normally opened in the window it is dropped on, but if you |
A file is normally opened in the window it is dropped on, but if you |
825 |
prefer the file to be opened in a new window you can customize the variable |
prefer the file to be opened in a new window you can customize the variable |
907 |
|
|
908 |
You can customize the option @code{use-file-dialog} to suppress the |
You can customize the option @code{use-file-dialog} to suppress the |
909 |
use of file selection windows even if you still want other kinds |
use of file selection windows even if you still want other kinds |
910 |
of dialogs. This option has no effect if you have supressed all dialog |
of dialogs. This option has no effect if you have suppressed all dialog |
911 |
boxes with the option @code{use-dialog-box}. |
boxes with the option @code{use-dialog-box}. |
912 |
|
|
913 |
|
|