Commit b35ac83e authored by Chong Yidong's avatar Chong Yidong
Browse files

* window.c (Fwindow_edges, Fwindow_pixel_edges)

(Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
(Bug#4775).
parent 48feed59
2009-10-23 Chong Yidong <cyd@stupidchicken.com>
* window.c (Fwindow_edges, Fwindow_pixel_edges)
(Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
(Bug#4775).
2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca> 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
   
* fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char. * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
......
...@@ -609,12 +609,15 @@ Afterwards the end-trigger value is reset to nil. */) ...@@ -609,12 +609,15 @@ Afterwards the end-trigger value is reset to nil. */)
DEFUN ("window-edges", Fwindow_edges, Swindow_edges, 0, 1, 0, DEFUN ("window-edges", Fwindow_edges, Swindow_edges, 0, 1, 0,
doc: /* Return a list of the edge coordinates of WINDOW. doc: /* Return a list of the edge coordinates of WINDOW.
\(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame. The list has the form (LEFT TOP RIGHT BOTTOM).
RIGHT is one more than the rightmost column occupied by WINDOW, TOP and BOTTOM count by lines, and LEFT and RIGHT count by columns,
and BOTTOM is one more than the bottommost row occupied by WINDOW. all relative to 0, 0 at top left corner of frame.
The edges include the space used by the window's scroll bar,
display margins, fringes, header line, and mode line, if it has them. RIGHT is one more than the rightmost column occupied by WINDOW.
To get the edges of the actual text area, use `window-inside-edges'. */) BOTTOM is one more than the bottommost row occupied by WINDOW.
The edges include the space used by WINDOW's scroll bar, display
margins, fringes, header line, and/or mode line. For the edges of
just the text area, use `window-inside-edges'. */)
(window) (window)
Lisp_Object window; Lisp_Object window;
{ {
...@@ -629,12 +632,14 @@ To get the edges of the actual text area, use `window-inside-edges'. */) ...@@ -629,12 +632,14 @@ To get the edges of the actual text area, use `window-inside-edges'. */)
DEFUN ("window-pixel-edges", Fwindow_pixel_edges, Swindow_pixel_edges, 0, 1, 0, DEFUN ("window-pixel-edges", Fwindow_pixel_edges, Swindow_pixel_edges, 0, 1, 0,
doc: /* Return a list of the edge pixel coordinates of WINDOW. doc: /* 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. The list has the form (LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at
RIGHT is one more than the rightmost x position occupied by WINDOW, the top left corner of the frame.
and BOTTOM is one more than the bottommost y position occupied by WINDOW.
The pixel edges include the space used by the window's scroll bar, RIGHT is one more than the rightmost x position occupied by WINDOW.
display margins, fringes, header line, and mode line, if it has them. BOTTOM is one more than the bottommost y position occupied by WINDOW.
To get the edges of the actual text area, use `window-inside-pixel-edges'. */) The pixel edges include the space used by WINDOW's scroll bar, display
margins, fringes, header line, and/or mode line. For the pixel edges
of just the text area, use `window-inside-pixel-edges'. */)
(window) (window)
Lisp_Object window; Lisp_Object window;
{ {
...@@ -649,11 +654,14 @@ To get the edges of the actual text area, use `window-inside-pixel-edges'. */) ...@@ -649,11 +654,14 @@ To get the edges of the actual text area, use `window-inside-pixel-edges'. */)
DEFUN ("window-inside-edges", Fwindow_inside_edges, Swindow_inside_edges, 0, 1, 0, DEFUN ("window-inside-edges", Fwindow_inside_edges, Swindow_inside_edges, 0, 1, 0,
doc: /* Return a list of the edge coordinates of WINDOW. doc: /* Return a list of the edge coordinates of WINDOW.
\(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame. The list has the form (LEFT TOP RIGHT BOTTOM).
RIGHT is one more than the rightmost column used by text in WINDOW, TOP and BOTTOM count by lines, and LEFT and RIGHT count by columns,
and BOTTOM is one more than the bottommost row used by text in WINDOW. all relative to 0, 0 at top left corner of frame.
The inside edges do not include the space used by the window's scroll bar,
display margins, fringes, header line, and/or mode line. */) RIGHT is one more than the rightmost column of WINDOW's text area.
BOTTOM is one more than the bottommost row of WINDOW's text area.
The inside edges do not include the space used by the WINDOW's scroll
bar, display margins, fringes, header line, and/or mode line. */)
(window) (window)
Lisp_Object window; Lisp_Object window;
{ {
...@@ -673,10 +681,12 @@ display margins, fringes, header line, and/or mode line. */) ...@@ -673,10 +681,12 @@ display margins, fringes, header line, and/or mode line. */)
DEFUN ("window-inside-pixel-edges", Fwindow_inside_pixel_edges, Swindow_inside_pixel_edges, 0, 1, 0, DEFUN ("window-inside-pixel-edges", Fwindow_inside_pixel_edges, Swindow_inside_pixel_edges, 0, 1, 0,
doc: /* Return a list of the edge pixel coordinates of WINDOW. doc: /* 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. The list has the form (LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at
RIGHT is one more than the rightmost x position used by text in WINDOW, the top left corner of the frame.
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, RIGHT is one more than the rightmost x position of WINDOW's text area.
BOTTOM is one more than the bottommost y position of WINDOW's text area.
The inside edges do not include the space used by WINDOW's scroll bar,
display margins, fringes, header line, and/or mode line. */) display margins, fringes, header line, and/or mode line. */)
(window) (window)
Lisp_Object window; Lisp_Object window;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment