[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] enhanced mac drag-n-drop

From: Sean O'Rourke
Subject: Re: [patch] enhanced mac drag-n-drop
Date: Thu, 07 Apr 2005 06:33:30 -0700
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (darwin)

Jason Rumney <address@hidden> writes:
>> We should break out what you can use in a general dnd.el file.

First, the XDND part (there are two other dnd protocols in there, but
I didn't look at them much) seems to contain code for enter, tracking,
leave, and drop handlers, which should probably be made into separate
hooks.  Carbon generates events for all of these, but currently we
only pass the drop up to the Lisp level, while the X version passes
all such events.  If this were cleaned up, it shouldn't be too hard to
extend the Mac version to pass the other events.

Second, the XDND version has message decoding mixed throughout the
Lisp code.  This is implementation-dependent, so IMHO it should be
done before Lisp gets ahold of the data, or at least before the
platform-independent part.  Examples include splitting URL-list
strings into separate URLs and matching on the XDND command names.

Third, there are the drop types, which have both different encodings
(platform-dependent) and different default actions (platform-
independent).  For the latter, it would be nice to agree on a set of
names (e.g. text, URL, file).

Finally, the "suggested action" in XDND will be very useful on Mac, so
I hope it stays around.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]