From: KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
Subject: window-inside-pixel-edges
Date: Thu, 19 May 2005 10:01:17 +0900 [thread overview]
Message-ID: <umzqsav1e.fsf@otsukakj.co.jp> (raw)
The doc string for window-inside-pixel-edges says:
Return a list of the edge pixel coordinates of window.
(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame.
RIGHT is one more than the rightmost x position used by text in window,
and BOTTOM is one more than the bottommost y position used by text in window.
The inside edges do not include the space used by the window's scroll bar,
display margins, fringes, header line, and/or mode line.
But it seems to include the right scroll bar.
window-inside-edges also has the same problem.
2005-05-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
* window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
Correct the right value.
--- window.c.orig 2005-05-19 09:51:28.532918600 +0900
+++ window.c 2005-05-19 09:54:11.685894200 +0900
@@ -544,7 +544,7 @@
+ WINDOW_LEFT_FRINGE_COLS (w)),
make_number (WINDOW_TOP_EDGE_LINE (w)
+ WINDOW_HEADER_LINE_LINES (w)),
- make_number (WINDOW_RIGHT_EDGE_COL (w)
+ make_number (WINDOW_BOX_RIGHT_EDGE_COL (w)
- WINDOW_RIGHT_MARGIN_COLS (w)
- WINDOW_RIGHT_FRINGE_COLS (w)),
make_number (WINDOW_BOTTOM_EDGE_LINE (w)
@@ -568,7 +568,7 @@
+ WINDOW_LEFT_FRINGE_WIDTH (w)),
make_number (WINDOW_TOP_EDGE_Y (w)
+ WINDOW_HEADER_LINE_HEIGHT (w)),
- make_number (WINDOW_RIGHT_EDGE_X (w)
+ make_number (WINDOW_BOX_RIGHT_EDGE_X (w)
- WINDOW_RIGHT_MARGIN_WIDTH (w)
- WINDOW_RIGHT_FRINGE_WIDTH (w)),
make_number (WINDOW_BOTTOM_EDGE_Y (w)
--
KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
next reply other threads:[~2005-05-19 1:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 1:01 KOBAYASHI Yasuhiro [this message]
2005-05-19 22:40 ` window-inside-pixel-edges Richard Stallman
2005-05-20 11:18 ` window-inside-pixel-edges Lute Kamstra
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=umzqsav1e.fsf@otsukakj.co.jp \
--to=kobayays@otsukakj.co.jp \
/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).