[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b702225 1/3: Merge from origin/emacs-27
From: |
Paul Eggert |
Subject: |
master b702225 1/3: Merge from origin/emacs-27 |
Date: |
Thu, 25 Mar 2021 11:33:42 -0400 (EDT) |
branch: master
commit b702225619afebb3d5becb95d142a60a9f62f60e
Merge: 52a7460 deef5ef
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Merge from origin/emacs-27
deef5efafb ; * ChangeLog.3: Update with the log of the last change.
bd991e3c9b Fix frame-inner-height in non-GUI builds
---
ChangeLog.3 | 14 ++++++++++++++
lisp/frame.el | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog.3 b/ChangeLog.3
index 83e5001..8b872a0 100644
--- a/ChangeLog.3
+++ b/ChangeLog.3
@@ -2,6 +2,20 @@
* Version 27.2 released.
+2021-03-18 Basil L. Contovounesios <contovob@tcd.ie>
+
+ Fix 'frame-inner-height' in non-GUI builds
+
+ Include tab bar in frame's inner height in non-GUI builds that
+ don't define 'tab-bar-height'. This is consistent with the
+ inclusion of the menu bar in the calculated height. It is also
+ consistent with TTY frames of GUI builds, for which
+ 'tab-bar-height' is always zero anyway (bug#47234).
+ Fix suggested by Eli Zaretskii <eliz@gnu.org>.
+
+ * lisp/frame.el (frame-inner-height): Don't assume
+ 'tab-bar-height' is defined in builds --without-x.
+
2021-03-18 Eli Zaretskii <eliz@gnu.org>
* etc/HISTORY: Update for Emacs 27.2.
diff --git a/lisp/frame.el b/lisp/frame.el
index b5a8e0e..151aefb 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1370,7 +1370,7 @@ FRAME defaults to the selected frame."
FRAME defaults to the selected frame."
(setq frame (window-normalize-frame frame))
(- (frame-native-height frame)
- (tab-bar-height frame t)
+ (if (fboundp 'tab-bar-height) (tab-bar-height frame t) 0)
(* 2 (frame-internal-border-width frame))))
(defun frame-outer-width (&optional frame)