emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp ChangeLog frame.el


From: Glenn Morris
Subject: [Emacs-diffs] emacs/lisp ChangeLog frame.el
Date: Sat, 10 Oct 2009 23:50:16 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       09/10/10 23:50:15

Modified files:
        lisp           : ChangeLog frame.el 

Log message:
        (frame-height): Doc fix.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/ChangeLog?cvsroot=emacs&r1=1.16401&r2=1.16402
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/frame.el?cvsroot=emacs&r1=1.301&r2=1.302

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.16401
retrieving revision 1.16402
diff -u -b -r1.16401 -r1.16402
--- ChangeLog   10 Oct 2009 21:54:14 -0000      1.16401
+++ ChangeLog   10 Oct 2009 23:50:10 -0000      1.16402
@@ -16,6 +16,8 @@
 
 2009-10-10  Glenn Morris  <address@hidden>
 
+       * frame.el (frame-height): Doc fix.
+
        * calendar/calendar.el (calendar-split-width-threshold): New option.
        (calendar-basic-setup): Use calendar-split-width-threshold.
 

Index: frame.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/frame.el,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -b -r1.301 -r1.302
--- frame.el    13 Sep 2009 00:53:00 -0000      1.301
+++ frame.el    10 Oct 2009 23:50:14 -0000      1.302
@@ -1027,7 +1027,16 @@
 
 (defun frame-height (&optional frame)
   "Return number of lines available for display on FRAME.
-If FRAME is omitted, describe the currently selected frame."
+If FRAME is omitted, describe the currently selected frame.
+Exactly what is included in the return value depends on the
+window-system and toolkit in use - see `frame-pixel-height' for
+more details.  The lines are in units of the default font height.
+
+The result is roughly related to the frame pixel height via
+height in pixels = height in lines * `frame-char-height'.
+However, this is only approximate, and is complicated e.g. by the
+fact that individual window lines and menu bar lines can have
+differing font heights."
   (cdr (assq 'height (frame-parameters frame))))
 
 (defun frame-width (&optional frame)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]