unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: master a1a435b3f6: Respect test function when performing local drag-and-drop
Date: Tue, 14 Jun 2022 14:21:57 +0300	[thread overview]
Message-ID: <83fsk7trqi.fsf@gnu.org> (raw)
In-Reply-To: <875yl4arfp.fsf@yahoo.com> (message from Po Lu on Tue, 14 Jun 2022 10:51:06 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Tue, 14 Jun 2022 10:51:06 +0800
> 
> How about this?
> 
> Function called for the return value of `x-begin-drag' when dropping on a frame.
> 
> It should accept two arguments POS and ACTION, and return a symbol
> describing what to return from `x-begin-drag' if the drop happens on a
> frame.  POS is a mouse position list detailing the location of the drop,
> and ACTION is the action specified by the caller of `x-begin-drag'.
> 
> If nil or a non-symbol value is returned, the drop will be cancelled.

Suggest a slight rewording:

  Function that determines return value of drag-and-drop on Emacs frames.

  If the value is a function, `x-begin-drag' will call it with two
  arguments, POS and ACTION, where POS is a mouse position list
  that specifies the location of the drop, and ACTION is the action
  specified by the caller of `x-begin-drag'.  The function should
  return a symbol describing what to return from `x-begin-drag' if the
  drop happens on an Emacs frame.

  If the value is nil, or the function returns a value that is not a
  symbol, a drop on an Emacs frame will be canceled.



  reply	other threads:[~2022-06-14 11:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-13 13:51 master a1a435b3f6: Respect test function when performing local drag-and-drop Eli Zaretskii
2022-06-14  1:04 ` Po Lu
2022-06-14  2:32   ` Eli Zaretskii
2022-06-14  2:51     ` Po Lu
2022-06-14 11:21       ` Eli Zaretskii [this message]
2022-06-14 11:47         ` Po Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83fsk7trqi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).