From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: jmbarranquero@laley.wke.es
Subject: Re: windmove and the minibuffer
Date: Sun, 1 Jun 2003 10:46:28 -0500 (CDT) [thread overview]
Message-ID: <200306011546.h51FkSQ22849@eel.dms.auburn.edu> (raw)
In-Reply-To: <200306011421.h51ELSY22735@eel.dms.auburn.edu> (message from Luc Teirlinck on Sun, 1 Jun 2003 09:21:28 -0500 (CDT))
>From my previous message:
This seems strange. What does it return for you?
Never mind, in the case of Alex I can pretty much guess: (1 . 1), of
course.
>From frame.h:
/* Convert pixel-value X to canonical units. F is the frame whose
canonical character width is to be used. X is a C integer. Result
is a Lisp float if X is not a multiple of the canon width,
otherwise it's a Lisp integer. */
#define FRAME_CANON_X_FROM_PIXEL_X(F, X) \
((X) % FRAME_COLUMN_WIDTH (F) != 0
\
? make_float ((double) (X) / FRAME_COLUMN_WIDTH (F)) \
: make_number ((X) / FRAME_COLUMN_WIDTH (F)))
/* Convert pixel-value Y to canonical units. F is the frame whose
canonical character height is to be used. Y is a C integer.
Result is a Lisp float if Y is not a multiple of the canon width,
otherwise it's a Lisp integer. */
#define FRAME_CANON_Y_FROM_PIXEL_Y(F, Y) \
((Y) % FRAME_LINE_HEIGHT (F)
\
? make_float ((double) (Y) / FRAME_LINE_HEIGHT (F)) \
: make_number ((Y) / FRAME_LINE_HEIGHT (F)))
coordinates-in-window-p uses this.
A logical explanation for the variation in behavior for
coordinates-in-window-p might be that if we wind up working with Lisp
integers everything is OK and otherwise, we get bugs.
Since Alex sees no bug in coordinates-in-window-p, but sees one in
window-at, the two bugs are not necessarily related. Somebody who
knows the involved C code better than I do should take a look at this.
Sincerely,
Luc.
next prev parent reply other threads:[~2003-06-01 15:46 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-26 17:52 windmove and the minibuffer Alex Schroeder
2003-05-27 8:03 ` Juanma Barranquero
2003-05-27 17:25 ` Alex Schroeder
2003-05-27 21:59 ` Juanma Barranquero
2003-05-27 23:04 ` Luc Teirlinck
2003-05-28 2:16 ` Luc Teirlinck
2003-05-28 7:00 ` Juanma Barranquero
2003-05-28 19:27 ` Luc Teirlinck
2003-05-28 20:11 ` Luc Teirlinck
2003-05-28 22:41 ` Juanma Barranquero
2003-05-28 22:55 ` Luc Teirlinck
2003-05-31 19:52 ` Richard Stallman
2003-05-31 23:16 ` Luc Teirlinck
2003-06-01 0:10 ` Robert J. Chassell
2003-06-01 0:46 ` Luc Teirlinck
2003-06-01 8:44 ` Alex Schroeder
2003-06-01 12:04 ` Robert J. Chassell
2003-06-01 12:15 ` David Kastrup
2003-06-01 16:29 ` { SPAM 2 }::Re: " Luc Teirlinck
2003-06-01 13:36 ` Luc Teirlinck
2003-06-01 14:21 ` Luc Teirlinck
2003-06-01 14:49 ` Luc Teirlinck
2003-06-01 15:46 ` Luc Teirlinck [this message]
2003-06-01 16:05 ` Luc Teirlinck
2003-06-01 17:30 ` Alex Schroeder
2003-06-02 11:15 ` Richard Stallman
2003-05-28 23:05 ` Juanma Barranquero
2003-05-28 23:25 ` Luc Teirlinck
[not found] <E19KknO-0004NB-Qx@monty-python.gnu.org>
2003-05-28 6:11 ` Lars Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200306011546.h51FkSQ22849@eel.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=jmbarranquero@laley.wke.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.