diff options
| author | Po Lu | 2022-06-08 10:40:20 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-08 10:40:20 +0800 |
| commit | 3237d1d6b63c2a299f81dcb8b4f2833e00a7fedf (patch) | |
| tree | 41ef3953c9d64693ac0271c8b80bbe15cf755e7d /lisp | |
| parent | f3162b82406f2162a4208c6b626def14ba68a03a (diff) | |
| download | emacs-3237d1d6b63c2a299f81dcb8b4f2833e00a7fedf.tar.gz emacs-3237d1d6b63c2a299f81dcb8b4f2833e00a7fedf.zip | |
Improve drag-and-drop tests
* lisp/dnd.el (dnd-begin-file-drag, dnd-begin-drag-files): Fix
type of `x-xdnd-username'.
* lisp/select.el (selection-converter-alist): Fix declaration of
_DT_NETFILE converter.
* test/lisp/dnd-tests.el (dnd-tests-verify-selection-data):
Handle "compound" selection converters.
(dnd-tests-parse-tt-netfile): New function.
(dnd-tests-begin-file-drag, dnd-tests-begin-drag-files): Verify
validity of file selection data.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/dnd.el | 4 | ||||
| -rw-r--r-- | lisp/select.el | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lisp/dnd.el b/lisp/dnd.el index 0f65b5228d6..7eb43f5baab 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el | |||
| @@ -423,7 +423,7 @@ currently being held down. It should only be called upon a | |||
| 423 | (x-begin-drag '(;; Xdnd types used by GTK, Qt, and most other | 423 | (x-begin-drag '(;; Xdnd types used by GTK, Qt, and most other |
| 424 | ;; modern programs that expect filenames to | 424 | ;; modern programs that expect filenames to |
| 425 | ;; be supplied as URIs. | 425 | ;; be supplied as URIs. |
| 426 | "text/uri-list" "text/x-dnd-username" | 426 | "text/uri-list" "text/x-xdnd-username" |
| 427 | ;; Traditional X selection targets used by | 427 | ;; Traditional X selection targets used by |
| 428 | ;; programs supporting the Motif | 428 | ;; programs supporting the Motif |
| 429 | ;; drag-and-drop protocols. Also used by NS | 429 | ;; drag-and-drop protocols. Also used by NS |
| @@ -493,7 +493,7 @@ FILES will be dragged." | |||
| 493 | (x-begin-drag '(;; Xdnd types used by GTK, Qt, and most other | 493 | (x-begin-drag '(;; Xdnd types used by GTK, Qt, and most other |
| 494 | ;; modern programs that expect filenames to | 494 | ;; modern programs that expect filenames to |
| 495 | ;; be supplied as URIs. | 495 | ;; be supplied as URIs. |
| 496 | "text/uri-list" "text/x-dnd-username" | 496 | "text/uri-list" "text/x-xdnd-username" |
| 497 | ;; Traditional X selection targets used by | 497 | ;; Traditional X selection targets used by |
| 498 | ;; programs supporting the Motif | 498 | ;; programs supporting the Motif |
| 499 | ;; drag-and-drop protocols. Also used by NS | 499 | ;; drag-and-drop protocols. Also used by NS |
diff --git a/lisp/select.el b/lisp/select.el index 706197e027e..417968b25cb 100644 --- a/lisp/select.el +++ b/lisp/select.el | |||
| @@ -819,8 +819,8 @@ VALUE should be SELECTION's local value." | |||
| 819 | (_EMACS_INTERNAL . xselect-convert-to-identity) | 819 | (_EMACS_INTERNAL . xselect-convert-to-identity) |
| 820 | (XmTRANSFER_SUCCESS . xselect-convert-xm-special) | 820 | (XmTRANSFER_SUCCESS . xselect-convert-xm-special) |
| 821 | (XmTRANSFER_FAILURE . xselect-convert-xm-special) | 821 | (XmTRANSFER_FAILURE . xselect-convert-xm-special) |
| 822 | (_DT_NETFILE . (xselect-convert-to-dt-netfile | 822 | (_DT_NETFILE . (xselect-dt-netfile-available-p |
| 823 | . xselect-dt-netfile-available-p)))) | 823 | . xselect-convert-to-dt-netfile)))) |
| 824 | 824 | ||
| 825 | (provide 'select) | 825 | (provide 'select) |
| 826 | 826 | ||