Fix dired drag and drop actions
* lisp/dired.el (dired-mouse-drag): Make `link' values work again.
This commit is contained in:
parent
34a681cfc7
commit
e4611107e5
1 changed files with 4 additions and 4 deletions
|
@ -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))))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue