emacs-devel
[Top][All Lists]
Advanced

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

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


From: Jan D.
Subject: Re: [patch] enhanced mac drag-n-drop
Date: Thu, 7 Apr 2005 17:18:12 +0200

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

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.

This is one thing that I won't remove from Lisp. For example, the format of URLs from Netscape/Mozilla has changed several times. More and more new types are being added by Gnome and KDE file managers. Having the decoding of all that in Lisp is so much more flexible and much easier to modify, maintain and debug than having it in C. If a general part is made, the decodings will be done in the platform specific parts, that's obvious.


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).

I don't follow, what kind of action is text, URL, file? An action would be more like insert-text, open-file or some such.

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

As it is part of the protocol in both XDND and Motif, it will not go anywhere. I'll try to include some generalization of the concept.

        Jan D.




reply via email to

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