aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/frame.el13
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 35362f1f4e4..06eb7c9acb4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -16,6 +16,8 @@
16 16
172009-10-10 Glenn Morris <rgm@gnu.org> 172009-10-10 Glenn Morris <rgm@gnu.org>
18 18
19 * frame.el (frame-height): Doc fix.
20
19 * calendar/calendar.el (calendar-split-width-threshold): New option. 21 * calendar/calendar.el (calendar-split-width-threshold): New option.
20 (calendar-basic-setup): Use calendar-split-width-threshold. 22 (calendar-basic-setup): Use calendar-split-width-threshold.
21 23
diff --git a/lisp/frame.el b/lisp/frame.el
index e5d92fa1df3..91619ce62fd 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1,7 +1,7 @@
1;;; frame.el --- multi-frame management independent of window systems 1;;; frame.el --- multi-frame management independent of window systems
2 2
3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2002, 2003, 3;; Copyright (C) 1993, 1994, 1996, 1997, 2000, 2001, 2002, 2003,
4;; 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 5
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: internal 7;; Keywords: internal
@@ -1027,7 +1027,16 @@ is given and non-nil, the unwanted frames are iconified instead."
1027 1027
1028(defun frame-height (&optional frame) 1028(defun frame-height (&optional frame)
1029 "Return number of lines available for display on FRAME. 1029 "Return number of lines available for display on FRAME.
1030If FRAME is omitted, describe the currently selected frame." 1030If FRAME is omitted, describe the currently selected frame.
1031Exactly what is included in the return value depends on the
1032window-system and toolkit in use - see `frame-pixel-height' for
1033more details. The lines are in units of the default font height.
1034
1035The result is roughly related to the frame pixel height via
1036height in pixels = height in lines * `frame-char-height'.
1037However, this is only approximate, and is complicated e.g. by the
1038fact that individual window lines and menu bar lines can have
1039differing font heights."
1031 (cdr (assq 'height (frame-parameters frame)))) 1040 (cdr (assq 'height (frame-parameters frame))))
1032 1041
1033(defun frame-width (&optional frame) 1042(defun frame-width (&optional frame)