GNU bug report logs - #16647
Imprecisions with window-resizing cursors

Previous Next

Package: emacs;

Reported by: E Sabof <evgkeni.sampelnikof <at> gmail.com>

Date: Wed, 5 Feb 2014 06:36:02 UTC

Severity: normal

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 16647 <at> debbugs.gnu.org (full text, mbox):

From: E Sabof <esabof <at> gmail.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 16647 <at> debbugs.gnu.org
Subject: Re: bug#16647: Imprecisions with window-resizing cursors
Date: Fri, 07 Feb 2014 17:32:23 +0000
martin rudalics <rudalics <at> 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




This bug report was last modified 10 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.