From: "Hill, Gregory" <ghill@mc.com>
To: <bug-gnu-emacs@gnu.org>
Subject: Bugs in window-at and coordinates-in-window-p built-in functions
Date: Fri, 9 May 2008 13:32:40 -0400 [thread overview]
Message-ID: <D13333C0CC63084F8FAFA3B868A3BD040486EB@CHM-EMAIL1.ad.mc.com> (raw)
GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE
Use split-window-vertically once and split-window-horizontally twice to
create a frame that is split into 4 approximately equal sections (2 x
2).
Display a different buffer in each of the 4 windows.
Move the cursor to anywhere in the lower-right window.
Use eval-expression to execute the following expression:
(let* ((edges (window-edges))
(x (first edges))
(y (1- (second edges))))
(window-at x y))
Logically, this should return the upper-right window, but it actually
returns the upper-left window.
Possibly related to this bug, execute the following expression with the
cursor in any window:
(let* ((edges (window-edges))
(x (first edges))
(y (second edges))
(window (selected-window)))
(coordinates-in-window-p (cons x y) window))
Logically this should return (0 . 0) but it actually returns
'left-fringe.
Execute the following expression with the cursor in the lower-right
window:
(let* ((edges (window-edges))
(x (first edges))
(y (1- (second edges)))
(window (window-at x y)))
(coordinates-in-window-p (cons x y) window))
It returns 'vertical-line when it should really return 'mode-line. The
same expression evaluated with the cursor in the lower-left window
returns 'mode-line as it should.
reply other threads:[~2008-05-09 17:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D13333C0CC63084F8FAFA3B868A3BD040486EB@CHM-EMAIL1.ad.mc.com \
--to=ghill@mc.com \
--cc=bug-gnu-emacs@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).