Commit 54900736 authored by Jan Djärv's avatar Jan Djärv
Browse files

* frames.texi (Drag and drop): New section.

parent 0074d3a0
2004-02-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* frames.texi (Drag and drop): New section.
2004-01-24 Richard M. Stallman <rms@gnu.org> 2004-01-24 Richard M. Stallman <rms@gnu.org>
* emacs.texi (Acknowledgments): Renamed from Acknowledgements. * emacs.texi (Acknowledgments): Renamed from Acknowledgements.
......
...@@ -48,6 +48,7 @@ under X. ...@@ -48,6 +48,7 @@ under X.
* Frame Parameters:: Changing the colors and other modes of frames. * Frame Parameters:: Changing the colors and other modes of frames.
* Scroll Bars:: How to enable and disable scroll bars; how to use them. * Scroll Bars:: How to enable and disable scroll bars; how to use them.
* Wheeled Mice:: Using mouse wheels for scrolling. * Wheeled Mice:: Using mouse wheels for scrolling.
* Drag and drop:: Using drag and drop to open files and insert text.
* Menu Bars:: Enabling and disabling the menu bar. * Menu Bars:: Enabling and disabling the menu bar.
* Tool Bars:: Enabling and disabling the tool bar. * Tool Bars:: Enabling and disabling the tool bar.
* Dialog Boxes:: Controlling use of dialog boxes. * Dialog Boxes:: Controlling use of dialog boxes.
...@@ -795,6 +796,38 @@ generating appropriate events for Emacs. ...@@ -795,6 +796,38 @@ generating appropriate events for Emacs.
@code{mouse-wheel-scroll-amount} determine where and by how much @code{mouse-wheel-scroll-amount} determine where and by how much
buffers are scrolled. buffers are scrolled.
@node Drag and drop
@section Drag and drop in Emacs.
@cindex drag and drop
Emacs supports drag and drop so that dropping of files and text is handeled.
There is no drag support yet. When text is dropped, Emacs will insert the
text where it is dropped. When a file is dragged from a file manager to
Emacs, Emacs will open that file.
As a special case, if a file is dropped on a dired buffer the file will
be copied or moved (depends on exactly how it is dragged and the application
is was dragged from) to the directory the dired buffer is displaying.
A file is normally opened in the window it is dropped on, but if you
prefer the file to be opened in a new window, you can customize the variable
@code{x-dnd-open-file-other-window}.
@vindex x-dnd-types-alist
If you want to change the way Emacs handles drop of different types,
or add a new type, you shall customize @code{x-dnd-types-alist}. This
requires detailed knowledge of what types other applications use
for drag and drop.
@vindex x-dnd-protocol-alist
When an URL is dropped on Emacs, it may be a file, but it may also be
another URL type (ftp, http, etc.). Emacs first checks
@code{x-dnd-protocol-alist} to determine what to do with the URL. If there
is no match there, and if @code{browse-url-browser-function} is an alist,
Emacs looks for a match there. If no match is found, the text for the URL
is inserted. If you want to alter Emacs behaviour you can customize these
variables.
@node Menu Bars @node Menu Bars
@section Menu Bars @section Menu Bars
@cindex Menu Bar mode @cindex Menu Bar mode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment