comparison src/window.c @ 6242:ed4b06e1975b

(Fwindow_width): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Tue, 08 Mar 1994 00:09:03 +0000
parents d695df82e96a
children 22d4037cbce2
comparison
equal deleted inserted replaced
6241:49538e6c482e 6242:ed4b06e1975b
255 { 255 {
256 return decode_window (window)->height; 256 return decode_window (window)->height;
257 } 257 }
258 258
259 DEFUN ("window-width", Fwindow_width, Swindow_width, 0, 1, 0, 259 DEFUN ("window-width", Fwindow_width, Swindow_width, 0, 1, 0,
260 "Return the number of columns in WINDOW.") 260 "Return the number of display columns in WINDOW.\n\
261 This is the width that is usable columns available for text in WINDOW.\n\
262 If you want to find out how many columns WINDOW takes up,\n\
263 use (let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))).")
261 (window) 264 (window)
262 Lisp_Object window; 265 Lisp_Object window;
263 { 266 {
264 register struct window *w = decode_window (window); 267 register struct window *w = decode_window (window);
265 register int width = XFASTINT (w->width); 268 register int width = XFASTINT (w->width);