aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/frames.texi4
-rw-r--r--src/xfns.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index e87e2474967..20e9c17f1f9 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -4106,6 +4106,10 @@ is also a valid return value in addition to @code{XdndActionCopy} and
4106@code{XdndActionMove}; it means that the drop target chose to perform 4106@code{XdndActionMove}; it means that the drop target chose to perform
4107an unspecified action, and no further processing is required by the 4107an unspecified action, and no further processing is required by the
4108caller. 4108caller.
4109
4110The caller must cooperate with the target to fully perform the action
4111chosen by the target. For example, callers should delete the buffer
4112text that was dragged if this function returns @code{XdndActionMove}.
4109@end defun 4113@end defun
4110 4114
4111@node Color Names 4115@node Color Names
diff --git a/src/xfns.c b/src/xfns.c
index 60b22ff145d..9f218d2b7fe 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -6792,8 +6792,9 @@ buttons are released, then return the action chosen by the target, or
6792starts when the mouse is pressed on FRAME, and the contents of the 6792starts when the mouse is pressed on FRAME, and the contents of the
6793selection `XdndSelection' will be sent to the X window underneath the 6793selection `XdndSelection' will be sent to the X window underneath the
6794mouse pointer (the drop target) when the mouse button is released. 6794mouse pointer (the drop target) when the mouse button is released.
6795ACTION is a symbol which tells the target what the source will do, and 6795
6796can be one of the following: 6796ACTION is a symbol which tells the target what it should do, and can
6797be one of the following:
6797 6798
6798 - `XdndActionCopy', which means to copy the contents from the drag 6799 - `XdndActionCopy', which means to copy the contents from the drag
6799 source (FRAME) to the drop target. 6800 source (FRAME) to the drop target.
@@ -6805,6 +6806,10 @@ can be one of the following:
6805`XdndActionPrivate' is also a valid return value, and means that the 6806`XdndActionPrivate' is also a valid return value, and means that the
6806drop target chose to perform an unspecified or unknown action. 6807drop target chose to perform an unspecified or unknown action.
6807 6808
6809The source is also expected to cooperate with the target to perform
6810the action chosen by the target. For example, callers should delete
6811the buffer text that was dragged if `XdndActionMove' is returned.
6812
6808There are also some other valid values of ACTION that depend on 6813There are also some other valid values of ACTION that depend on
6809details of both the drop target's implementation details and that of 6814details of both the drop target's implementation details and that of
6810Emacs. For that reason, they are not mentioned here. Consult 6815Emacs. For that reason, they are not mentioned here. Consult