aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPo Lu2022-06-02 07:05:21 +0000
committerPo Lu2022-06-02 07:05:21 +0000
commit00a5bc9314cf18c8b6e3801765c832fca5f9f3f1 (patch)
tree72ace511f1f6d7248aa56bb20d7d376c7f16a999 /lisp
parent2244dc5ce9f78ecab7232323e8dfeb9e79835b2b (diff)
downloademacs-00a5bc9314cf18c8b6e3801765c832fca5f9f3f1.tar.gz
emacs-00a5bc9314cf18c8b6e3801765c832fca5f9f3f1.zip
Handle dropping text/uri-list on Haiku
* lisp/term/haiku-win.el (window-system-initialization): Remove extra whitespace. (haiku-drag-and-drop): Handle "text/uri-list".
Diffstat (limited to 'lisp')
-rw-r--r--lisp/term/haiku-win.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/term/haiku-win.el b/lisp/term/haiku-win.el
index 2a31dd38c81..2fa27ed08af 100644
--- a/lisp/term/haiku-win.el
+++ b/lisp/term/haiku-win.el
@@ -185,7 +185,6 @@ The resources should be a list of strings in COMMAND-LINE-RESOURCES."
185 "Set up the window system. WINDOW-SYSTEM must be HAIKU. 185 "Set up the window system. WINDOW-SYSTEM must be HAIKU.
186DISPLAY may be set to the name of a display that will be initialized." 186DISPLAY may be set to the name of a display that will be initialized."
187 (cl-assert (not haiku-initialized)) 187 (cl-assert (not haiku-initialized))
188
189 (create-default-fontset) 188 (create-default-fontset)
190 (when x-command-line-resources 189 (when x-command-line-resources
191 (haiku--handle-x-command-line-resources 190 (haiku--handle-x-command-line-resources
@@ -307,6 +306,11 @@ or a pair of markers) and turns it into a file system reference."
307 (dolist (filename (cddr (assoc "refs" string))) 306 (dolist (filename (cddr (assoc "refs" string)))
308 (dnd-handle-one-url window 'private 307 (dnd-handle-one-url window 'private
309 (concat "file:" filename))))) 308 (concat "file:" filename)))))
309 ((assoc "text/uri-list" string)
310 (dolist (text (cddr (assoc "text/uri-list" string)))
311 (let ((uri-list (split-string text "[\0\r\n]" t)))
312 (dolist (bf uri-list)
313 (dnd-handle-one-url window 'private bf)))))
310 ((assoc "text/plain" string) 314 ((assoc "text/plain" string)
311 (with-selected-window window 315 (with-selected-window window
312 (raise-frame) 316 (raise-frame)