]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dired drag and drop actions
authorPo Lu <luangruo@yahoo.com>
Fri, 3 Jun 2022 12:36:24 +0000 (20:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 3 Jun 2022 12:36:24 +0000 (20:36 +0800)
* lisp/dired.el (dired-mouse-drag): Make `link' values work
again.

lisp/dired.el

index 1ab2c8c38b4891329f8bee44bb11ad8584579664..4d3d93441b65700f86207134fa20e5f374f3e8d5 100644 (file)
@@ -1758,14 +1758,14 @@ other marked file as well.  Otherwise, unmark all files."
                     (if (and (consp filename)
                              (cdr filename))
                         (dnd-begin-drag-files filename nil
-                                              (if (eq 'dired-mouse-drag-files 'link)
-                                                  'move 'copy)
+                                              (if (eq dired-mouse-drag-files 'link)
+                                                  'link 'copy)
                                               t)
                       (dnd-begin-file-drag (if (stringp filename)
                                                filename
                                              (car filename))
-                                           nil (if (eq 'dired-mouse-drag-files 'link)
-                                                   'move 'copy)
+                                           nil (if (eq dired-mouse-drag-files 'link)
+                                                   'link 'copy)
                                            t))))
               (error (when (eq (event-basic-type new-event) 'mouse-1)
                        (push new-event unread-command-events))))))))))