GNU bug report logs - #50413
28.0.50; Top of window gets cut off on macOS

Previous Next

Package: emacs;

Reported by: Dale Sedivec <dale <at> codefu.org>

Date: Sun, 5 Sep 2021 22:53:02 UTC

Severity: normal

Found in version 28.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50413 in the body.
You can then email your comments to 50413 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50413; Package emacs. (Sun, 05 Sep 2021 22:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dale Sedivec <dale <at> codefu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 Sep 2021 22:53:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dale Sedivec <dale <at> codefu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Top of window gets cut off on macOS
Date: Sun, 5 Sep 2021 17:51:56 -0500
1. Start Emacs -Q

2. Eval this progn form in *scratch* with C-x C-e at the end of the
   form:

      (progn
        (setq ns-use-native-fullscreen nil)
        (tool-bar-mode -1)
        (set-frame-parameter nil 'fullscreen 'fullheight)
        (dotimes (_ 6)
          (toggle-frame-fullscreen)
          (sit-for 1)))

Expected behavior: Top line of the *scratch* buffer is visible

Observed behavior: Top line of the *scratch* buffer is cut off and
hidden under the window title bar

Other information:

I think tool-bar-mode can be left on if you wish, but repeated
invocations of toggle-frame-fullscreen seem to toggle between
demonstrating this bug and then fixing it.

6 for the number of times you have to toggle full screen was arrived at
empirically.  You may need more or less.

If you (setq header-line-format "foo") this might be even easier to
observe.


In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.5.2 (Build 20G95))
of 2021-09-05 built on dale
Repository revision: 1560a63bf1cbdd28d46c6570dfb65e3a413ffa3f
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2022
System Description:  macOS 11.5.2

Configured using:
'configure --without-x --with-modules --with-threads --with-xwidgets
--with-zlib --with-xml2 --with-json --with-cairo --with-gnutls
--with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg
--with-native-compilation --with-ns --enable-ns-self-contained
'CFLAGS=-O2 -I/opt/local/include/gcc10' LDFLAGS=-L/opt/local/lib/gcc10'

Configured features:
ACL GLIB GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS
PDUMPER PNG RSVG THREADS TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs
password-cache json map text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp
comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq
byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar
mouse jit-lock font-lock syntax font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice button loaddefs faces
cus-face macroexp files window text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote threads xwidget-internal kqueue cocoa ns lcms2 multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 82396 8153)
(symbols 48 7759 1)
(strings 32 22464 4320)
(string-bytes 1 787990)
(vectors 16 18266)
(vector-slots 8 331864 11673)
(floats 8 28 25)
(intervals 56 239 0)
(buffers 992 13))




Reply sent to Alan Third <alan <at> idiocy.org>:
You have taken responsibility. (Mon, 27 Sep 2021 12:41:02 GMT) Full text and rfc822 format available.

Notification sent to Dale Sedivec <dale <at> codefu.org>:
bug acknowledged by developer. (Mon, 27 Sep 2021 12:41:02 GMT) Full text and rfc822 format available.

Message #10 received at 50413-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Dale Sedivec <dale <at> codefu.org>
Cc: 50413-done <at> debbugs.gnu.org
Subject: Re: bug#50413: 28.0.50; Top of window gets cut off on macOS
Date: Mon, 27 Sep 2021 13:40:45 +0100
On Sun, Sep 05, 2021 at 05:51:56PM -0500, Dale Sedivec wrote:
> 1. Start Emacs -Q
> 
> 2. Eval this progn form in *scratch* with C-x C-e at the end of the
>    form:
> 
>       (progn
>         (setq ns-use-native-fullscreen nil)
>         (tool-bar-mode -1)
>         (set-frame-parameter nil 'fullscreen 'fullheight)
>         (dotimes (_ 6)
>           (toggle-frame-fullscreen)
>           (sit-for 1)))
> 
> Expected behavior: Top line of the *scratch* buffer is visible
> 
> Observed behavior: Top line of the *scratch* buffer is cut off and
> hidden under the window title bar

I believe I've fixed this on the master branch now. If you're still
seeing the problem, please reply to this email and I'll reopen the bug
report.
-- 
Alan Third




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 26 Oct 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.