]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix XDS file name expansion
authorPo Lu <luangruo@yahoo.com>
Sat, 15 Oct 2022 05:27:05 +0000 (13:27 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 15 Oct 2022 05:27:37 +0000 (13:27 +0800)
* lisp/x-dnd.el (x-dnd-handle-xds-drop): Expand file names
again.  That code was mistakenly removed.

lisp/x-dnd.el

index 2bda67fe3f320f3ee6a8584b1ea73a5eb148018a..ee80e41a22ee4f0ef20146a35756439cfdc85322 100644 (file)
@@ -1640,8 +1640,9 @@ VERSION is the version of the XDND protocol understood by SOURCE."
                                 desired-name
                                 (or file-name-coding-system
                                     default-file-name-coding-system)))
-            (let ((name (funcall x-dnd-direct-save-function
-                                 t desired-name)))
+            (let ((name (expand-file-name
+                         (funcall x-dnd-direct-save-function
+                                  t desired-name))))
               (setq save-to name save-to-remote name))
             (when save-to
               (if (file-remote-p save-to)