]> git.eshelyaron.com Git - emacs.git/commitdiff
(windmove-coordinates-of-position): Let compute-motion
authorKim F. Storm <storm@cua.dk>
Mon, 2 Aug 2004 15:20:05 +0000 (15:20 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 2 Aug 2004 15:20:05 +0000 (15:20 +0000)
calculate usable window width and height.

lisp/windmove.el

index 7008b86335e386c05f4ff38546dda1b2335fb00d..642f04a1d8de1c6187d86519b1a9f448b2d3eda7 100644 (file)
@@ -429,14 +429,12 @@ the return value from `windmove-coordinates-of-position' is (0 . 0)
 regardless of the where point is in the buffer and where the window
 is placed in the frame."
   (let* ((wind (if (null window) (selected-window) window))
-         (usable-width (1- (window-width wind))) ; 1- for cont. column
-         (usable-height (1- (window-height wind))) ; 1- for mode line
          (big-hairy-result (compute-motion
                             (window-start)
                             '(0 . 0)
                             pos
-                            (cons usable-width usable-height)
-                            usable-width
+                            nil ; (window-width window-height)
+                            nil ; window-width
                             (cons (window-hscroll)
                                   0)    ; why zero?
                             wind)))