bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#16647: Imprecisions with window-resizing cursors


From: E Sabof
Subject: bug#16647: Imprecisions with window-resizing cursors
Date: Fri, 07 Feb 2014 17:32:23 +0000
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.2

martin rudalics <rudalics@gmx.at> writes:

> (1) Check whether setting the right-divider frame parameter to 1 suffers
>      from the same problem.

No change.

> (2) Try putting `coordinates-in-window-p' in a loop where you simulate
>      (by incrementing the car of the first argument) the course of the
>      mouse and display the return value via a message.
>
> (3) In window.c DEFVAR_LISP a new variable, in coordinates_in_window set
>      that variable to the value coordinates_in_window is about to return,
>      display the value of that variable in the modeline, and then move
>      the mouse to find out what it reports.
>

(progn
  (scroll-bar-mode -1)
  (require 'cl-lib)
  (run-with-timer 0 0.1
                  (lambda ()
                    (let ((win-list (window-list))
                          (func (apply-partially
                                 'coordinates-in-window-p
                                 (cdr (mouse-position)))))
                      (message "%s" (cl-find-if func win-list))))))

I've tried the snippet above. There where imprecisions, but shouldn't that be 
expected, given `coordinates-in-window-p' returns characters and not pixels? 
Should I try something similar with `track-mouse' and pixels?

Evgeni





reply via email to

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