emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] windmove.el: Fix windmove-reference-loc miscalculation


From: martin rudalics
Subject: Re: [PATCH] windmove.el: Fix windmove-reference-loc miscalculation
Date: Fri, 20 Jan 2012 19:07:51 +0100

> Effectively the issue is only windmove.el related.

So IIUC the issue is that `windmove-reference-loc'

          (windmove-coord-add
             top-left
             (let ((col-row
                    (posn-col-row
                     (posn-at-point (window-point window) window))))
               (cons (- (car col-row) (window-hscroll window))
                     (cdr col-row)))))))))

wrongly subtracts the value returned by `window-hscroll' from a column
value correctly calculated by `posn-at-point' (window_box_left_offset)?

In this case I think your patch is correct.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]