diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 13 |
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 | ||
| 17 | 2009-10-10 Glenn Morris <rgm@gnu.org> | 17 | 2009-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. |
| 1030 | If FRAME is omitted, describe the currently selected frame." | 1030 | If FRAME is omitted, describe the currently selected frame. |
| 1031 | Exactly what is included in the return value depends on the | ||
| 1032 | window-system and toolkit in use - see `frame-pixel-height' for | ||
| 1033 | more details. The lines are in units of the default font height. | ||
| 1034 | |||
| 1035 | The result is roughly related to the frame pixel height via | ||
| 1036 | height in pixels = height in lines * `frame-char-height'. | ||
| 1037 | However, this is only approximate, and is complicated e.g. by the | ||
| 1038 | fact that individual window lines and menu bar lines can have | ||
| 1039 | differing 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) |