Commit 03714c7f authored by Jan Djärv's avatar Jan Djärv
Browse files

* x-dnd.el (x-dnd-drop-data): Don't set dnd-open-file-other-window

to nil if dropping on a window.  Handle dropping on a minibuffer window
like dropping on a non-window part of Emacs.
parent 9a49a36b
2005-10-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* x-dnd.el (x-dnd-drop-data): Don't set dnd-open-file-other-window
to nil if dropping on a window. Handle dropping on a minibuffer window
like dropping on a non-window part of Emacs.
2005-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
 
* textmodes/ispell.el (ispell-find-aspell-dictionaries):
......
......@@ -307,10 +307,11 @@ nil if not."
(action (aref state 5))
(w (posn-window (event-start event))))
(when handler
(if (and (windowp w) (window-live-p w))
(if (and (windowp w) (window-live-p w)
(not (minibufferp (window-buffer w))))
;; If dropping in a window, open files in that window rather
;; than in a new widow.
(let ((dnd-open-file-other-window nil))
(progn
(goto-char (posn-point (event-start event)))
(funcall handler window action data))
(let ((dnd-open-file-other-window t)) ;; Dropping on non-window.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment