unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* window-inside-pixel-edges
@ 2005-05-19  1:01 KOBAYASHI Yasuhiro
  2005-05-19 22:40 ` window-inside-pixel-edges Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: KOBAYASHI Yasuhiro @ 2005-05-19  1:01 UTC (permalink / 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: window-inside-pixel-edges
  2005-05-19  1:01 window-inside-pixel-edges KOBAYASHI Yasuhiro
@ 2005-05-19 22:40 ` Richard Stallman
  2005-05-20 11:18   ` window-inside-pixel-edges Lute Kamstra
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2005-05-19 22:40 UTC (permalink / raw)
  Cc: emacs-devel

Thanks.  WOuld someone please install this change?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: window-inside-pixel-edges
  2005-05-19 22:40 ` window-inside-pixel-edges Richard Stallman
@ 2005-05-20 11:18   ` Lute Kamstra
  0 siblings, 0 replies; 3+ messages in thread
From: Lute Kamstra @ 2005-05-20 11:18 UTC (permalink / raw)
  Cc: KOBAYASHI Yasuhiro, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Thanks.  WOuld someone please install this change?

Done.

Lute.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-20 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19  1:01 window-inside-pixel-edges KOBAYASHI Yasuhiro
2005-05-19 22:40 ` window-inside-pixel-edges Richard Stallman
2005-05-20 11:18   ` window-inside-pixel-edges Lute Kamstra

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).