Jason Rumney <[EMAIL PROTECTED]> 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. /s _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel