From 549007363da5ee3d6eba2c5ef6609b3955b85df5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 3 Feb 2004 18:02:45 +0000 Subject: [PATCH] * frames.texi (Drag and drop): New section. --- man/ChangeLog | 4 ++++ man/frames.texi | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/man/ChangeLog b/man/ChangeLog index 0cb867e5af1..9c9334bf1f5 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,7 @@ +2004-02-03 Jan Dj,Ad(Brv + + * frames.texi (Drag and drop): New section. + 2004-01-24 Richard M. Stallman * emacs.texi (Acknowledgments): Renamed from Acknowledgements. diff --git a/man/frames.texi b/man/frames.texi index 2663a417b10..9a0882e3e5a 100644 --- a/man/frames.texi +++ b/man/frames.texi @@ -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 -- 2.39.2