summaryrefslogtreecommitdiff
path: root/lisp/x-dnd.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-06-16 22:33:42 +0000
committerMiles Bader <miles@gnu.org>2007-06-16 22:33:42 +0000
commit262d5ce7c21d6c1136fd2b8df67736e41e8e8953 (patch)
tree853a5d30babd0abd585ccbe7f4e228bf43a42d5c /lisp/x-dnd.el
parent5534694247d2b5259325ff43af0624aa2f8abb3e (diff)
parentaf41f8a8d6660ad1fefad5bda69d1acb8e40b4d1 (diff)
downloademacs-262d5ce7c21d6c1136fd2b8df67736e41e8e8953.tar.gz
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 793-802) - Update from CVS - Remove RCS keywords - Merge from emacs--rel--22 * emacs--rel--22 (patch 42-50) - Update from CVS - Merge from gnus--rel--5.10 - Gnus ChangeLog tweaks * gnus--rel--5.10 (patch 229-232) - Merge from emacs--devo--0, emacs--rel--22 - ChangeLog tweak - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-23
Diffstat (limited to 'lisp/x-dnd.el')
-rw-r--r--lisp/x-dnd.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el
index 055e4305d9f..004fa1a42ef 100644
--- a/lisp/x-dnd.el
+++ b/lisp/x-dnd.el
@@ -172,7 +172,7 @@ FRAME-OR-WINDOW is the frame or window that the mouse is over."
WINDOW is the window the mouse is over. ACTION is the suggested
action from the source. If nothing has changed, return the last
action and type we got from `x-dnd-test-function'."
- (let ((buffer (when (and (windowp window) (window-live-p window))
+ (let ((buffer (when (window-live-p window)
(window-buffer window)))
(current-state (x-dnd-get-state-for-frame window)))
(when (or (not (equal buffer (aref current-state 0)))
@@ -207,9 +207,7 @@ EXTRA-DATA is data needed for a specific protocol."
(when types (aset current-state 2 types))
(when extra-data (aset current-state 6 extra-data))
(aset current-state 1 window)
- (aset current-state 0 (if (and (windowp window)
- (window-live-p window))
- (window-buffer window) nil))
+ (aset current-state 0 (and (window-live-p window) (window-buffer window)))
(setcdr (x-dnd-get-state-cons-for-frame window) current-state)))
@@ -320,7 +318,7 @@ 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 (window-live-p w)
(not (window-minibuffer-p w))
(not (window-dedicated-p w)))
;; If dropping in an ordinary window which we could use,