282
|
1 * Sun May 3 1998 Oliver Graf <ograf@fga.de>
|
|
2
|
|
3 This path contains test code for the new XEmacs
|
|
4 Drag'n'Drop code.
|
|
5
|
284
|
6 Currently only drops are of interest. The internal
|
288
|
7 functions should work for OffiX, CDE, and MSWindows.
|
282
|
8
|
|
9 The misc-user-event now also responds as a button-x-event
|
|
10 to the event-* query functions.
|
|
11
|
|
12 The function of a drag is called dragdrop-drop-dispatch
|
|
13 as you can see in droptest.el. From within the function
|
|
14 you can access the actual misc-user-event through the
|
|
15 current-mouse-event variable.
|
|
16
|
|
17 Short description of the object part of a drop misc-user-event:
|
|
18 ( TYPE . DATA )
|
|
19 TYPE is either the symbol dragdrop_MIME
|
|
20 or the symbol dragdrop_URL
|
|
21
|
|
22 DATA is a list of URL strings if TYPE is dragdrop_URL
|
|
23 if TYPE is dragdrop_MIME DATA is either a string
|
|
24 which contains the MIME data, or it is a list of
|
|
25 ( CONTENT-TYPE CONTENT-ENCODING MIME-DATA )
|
284
|
26 CONTENT-TYPE is encoded for tm-view (list, first element type,
|
|
27 rest key.value conses)
|
|
28 CONTENT-ENCODING is a string
|
|
29 MIME-DATA is a string
|
282
|
30
|
284
|
31 CONTENT-TYPE and -ENCODING can be directly supplied to mime/viewer-mode.
|
|
32
|