aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-12-11 07:31:08 +0000
committerMiles Bader2000-12-11 07:31:08 +0000
commita4c22453ea45ad39fab386c6b726423c399be45f (patch)
tree2db5172f364da057062ccf2f323dcc585974f458
parentd80aeee83d1ea38393b94726a163c16a4f42da0e (diff)
downloademacs-a4c22453ea45ad39fab386c6b726423c399be45f.tar.gz
emacs-a4c22453ea45ad39fab386c6b726423c399be45f.zip
(window-text-height): Function removed (now in C).
-rw-r--r--lisp/window.el23
1 files changed, 0 insertions, 23 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 58f6f545e19..5d8c9a905cb 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -335,29 +335,6 @@ This is a kluge."
335 0)) 335 0))
336 336
337 337
338;;; These functions should eventually be replaced with versions that
339;;; really do the job (instead of using the kludgey mode-line face
340;;; hacking junk).
341
342(defun window-text-height (&optional window)
343 "Return the height in lines of the text display area of WINDOW.
344This doesn't include the mode-line (or header-line if any) or any
345partial-height lines in the text display area.
346
347Note that the current implementation of this function may sometimes
348return an inaccurate value, but attempts to be conservative, by
349returning fewer lines than actually exist in the case where the real
350value cannot be determined."
351 (with-current-buffer (window-buffer window)
352 (- (window-height window)
353 (if (and (not (window-minibuffer-p window))
354 mode-line-format)
355 (1+ (mode-line-window-height-fudge))
356 0)
357 (if header-line-format
358 (1+ (mode-line-window-height-fudge 'header-line))
359 0))))
360
361(defun set-window-text-height (window height) 338(defun set-window-text-height (window height)
362 "Sets the height in lines of the text display area of WINDOW to HEIGHT. 339 "Sets the height in lines of the text display area of WINDOW to HEIGHT.
363This doesn't include the mode-line (or header-line if any) or any 340This doesn't include the mode-line (or header-line if any) or any