GNU bug report logs -
#47234
28.0.50; frame-inner-height fails without window system on tab-bar-height
Previous Next
Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Date: Thu, 18 Mar 2021 13:42:02 UTC
Severity: normal
Tags: fixed
Found in versions 27.1.91, 28.0.50
Fixed in version 27.2
Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
> Date: Thu, 18 Mar 2021 13:41:04 +0000
> Cc: juri linkov <juri <at> linkov.net>
>
> In a build --without-x:
>
> 0. ./src/emacs -Q
> 1. (frame-inner-height) C-j
>
> Debugger entered--Lisp error: (void-function tab-bar-height)
> tab-bar-height(#<frame F1 0x55aeb85320a0> t)
> frame-inner-height()
> (progn (frame-inner-height))
> eval((progn (frame-inner-height)) t)
> elisp--eval-last-sexp(t)
> eval-last-sexp(t)
> eval-print-last-sexp(nil)
> funcall-interactively(eval-print-last-sexp nil)
> call-interactively(eval-print-last-sexp nil nil)
> command-execute(eval-print-last-sexp)
>
> The obvious band-aid is to check (fboundp 'tab-bar-height) in
> frame-inner-height, but shouldn't we count 1 line when tab-bar-mode is
> enabled even --without-x? IOW, can/should tab-bar-height or similar be
> defined regardless of HAVE_WINDOW_SYSTEM? What's TRT here?
TRT is to teach Emacs to return the tab-bar height on TTY frames as
well. But I don't think defining tab-bar-height on TTY frames is the
right way: the tab-bar is always 1 line high on those frames, so we
could simply use that hardcoded value instead of signaling an error, I
think.
This bug report was last modified 4 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.