]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention frame-text-* function in frame-pixel-* doc strings
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 24 Mar 2022 08:59:40 +0000 (09:59 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 24 Mar 2022 09:00:09 +0000 (10:00 +0100)
* src/frame.c (Fframe_native_width, Fframe_native_height): Link to
`frame-text-*' functions.

src/frame.c

index 8f8df8f8e0d796112a59d1bf6d5af50599a1ff54..e531891a8a35fcb99e2139fa7db7c82535cf913f 100644 (file)
@@ -3495,7 +3495,10 @@ DEFUN ("frame-native-width", Fframe_native_width,
        Sframe_native_width, 0, 1, 0,
        doc: /* Return FRAME's native width in pixels.
 For a terminal frame, the result really gives the width in characters.
-If FRAME is omitted or nil, the selected frame is used.  */)
+If FRAME is omitted or nil, the selected frame is used.
+
+If you're interested only in the width of the text portion of the
+frame, see `frame-text-width' instead.  */)
   (Lisp_Object frame)
 {
   struct frame *f = decode_any_frame (frame);
@@ -3519,6 +3522,9 @@ minibuffer or echo area), mode line, and header line.  It does not
 include the tool bar or menu bar.  With other graphical versions, it may
 also include the tool bar and the menu bar.
 
+If you're interested only in the height of the text portion of the
+frame, see `frame-text-height' instead.
+
 For a text terminal, it includes the menu bar.  In this case, the
 result is really in characters rather than pixels (i.e., is identical
 to `frame-height'). */)