]> git.eshelyaron.com Git - emacs.git/commitdiff
* frames.texi (Drag and drop): New section.
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Feb 2004 18:02:45 +0000 (18:02 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Feb 2004 18:02:45 +0000 (18:02 +0000)
man/ChangeLog
man/frames.texi

index 0cb867e5af18194471597a5a03ddc55dded6b0d5..9c9334bf1f5b4d2b7c42a4fd63623ec98e4fa040 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * frames.texi (Drag and drop): New section.
+
 2004-01-24  Richard M. Stallman  <rms@gnu.org>
 
        * emacs.texi (Acknowledgments): Renamed from Acknowledgements.
index 2663a417b10428cd4d756052d7b92120f09edf3b..9a0882e3e5a6c4fc3614e06e21d91352b393e47c 100644 (file)
@@ -48,6 +48,7 @@ under X.
 * Frame Parameters::    Changing the colors and other modes of frames.
 * Scroll Bars::                How to enable and disable scroll bars; how to use them.
 * 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.
 * Tool Bars::           Enabling and disabling the tool bar.
 * Dialog Boxes::        Controlling use of dialog boxes.
@@ -795,6 +796,38 @@ generating appropriate events for Emacs.
 @code{mouse-wheel-scroll-amount} determine where and by how much
 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
 @section Menu Bars
 @cindex Menu Bar mode