From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitrii Kuragin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57434: 28.1.91; Terminal Emacs Mac OS flickering. Date: Fri, 26 Aug 2022 09:54:19 -0700 Message-ID: Reply-To: Dmitrii Kuragin Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000086e33a05e727c4f3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26635"; mail-complaints-to="usenet@ciao.gmane.io" To: 57434@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 26 18:55:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRccB-0006km-0R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Aug 2022 18:55:27 +0200 Original-Received: from localhost ([::1]:48328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRccA-0002iX-01 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Aug 2022 12:55:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRcbn-0002iA-4a for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 12:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRcbm-0006Ot-R6 for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 12:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRcbm-0003JH-D6 for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 12:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitrii Kuragin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Aug 2022 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57434 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166153288112673 (code B ref -1); Fri, 26 Aug 2022 16:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Aug 2022 16:54:41 +0000 Original-Received: from localhost ([127.0.0.1]:54423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRcbQ-0003IL-Vv for submit@debbugs.gnu.org; Fri, 26 Aug 2022 12:54:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRcbO-0003IA-Ck for submit@debbugs.gnu.org; Fri, 26 Aug 2022 12:54:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRcbO-0002g8-6S for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 12:54:38 -0400 Original-Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:37667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRcbL-0006ML-Le for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 12:54:37 -0400 Original-Received: by mail-ot1-x334.google.com with SMTP id h20-20020a056830165400b00638ac7ddba5so1382237otr.4 for ; Fri, 26 Aug 2022 09:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=BM5reFJJMRqqwQZvi7OgGc9sXgGnXzQ32koepwsOX/s=; b=eG5M15zkubj2Luw4VCL/1jboIb9YbcGYqIV7RYCr9doqGLSTu0gc4y0DGoO3MSAlv4 R0Peb5nz0HkT5fnj/UmfHyGaW4QX5UyVCpemZLMrxozNyJIblJuZu1gEvjja7PS6TLUC ZXvJZT0pbiFSx6K79h0mfwSZFEey03ML6u0GNZdopYYCwLEWEZaC4aVyL0jugqYrJGPl rt+DsdsFFGp20BKDgn2xkfSzXeSLaXvuCgrQk+Rpj9TpG9thj/w82VPU584iqVtVtB1e euDB921HCuXKxLNfqM90ffspbYGRGK3YKCpGsX39if0h1YqnzLoeLDVokZ0KNIJdDOMP 7MIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=BM5reFJJMRqqwQZvi7OgGc9sXgGnXzQ32koepwsOX/s=; b=Cv5VxQiZNrRYeO75JgBXyFM1G/6pb9L/qFnMrP8m5EbH6eA0mfKG9VE7ZrOOCxPjYx ZJ9HvFpDYX2abil09dQwWgaDFYEciB+Y26TorEo9Vd0X1azRQoneGDlQrfgVJuPB0yxk P2D0iNxUK0Vd3INBRTU++RQksZiBkh9MOD2lQAatgQFntLP7Qia1nU0UUyySd07ukHol S9j38WUboBS7HMqMRu4HD7UAV6QAhDRhkd+/DXNBHzv3ynOkMXmgq8R2iWuGnymS7vvZ xR/R7gwrKTg6J88mglXfVZscIwwojgvU2ozmgFlGm7Q8gSqGNuRG9DVA4qJd+8ID4+O1 GAAw== X-Gm-Message-State: ACgBeo0JMWe/d3E1yXCmghge/ctDcpV3/Oz/sUENkFlLfurHgU+JXLX5 xn+3aOCH3L7YOVVZ1c2PcCxkb8PGAXlgtkmxF4EWITZR+Nax5Q== X-Google-Smtp-Source: AA6agR6caFSdvI5mCdsWT6KghHQmik8DnX24WGnbAM/wrHR+HTOGCX2SI+GxhaLe2ez9fjhRd5hT1MZz/kjGeL3QCW4= X-Received: by 2002:a9d:481a:0:b0:637:338e:dd73 with SMTP id c26-20020a9d481a000000b00637338edd73mr1724207otf.110.1661532870438; Fri, 26 Aug 2022 09:54:30 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::334; envelope-from=kuragin@google.com; helo=mail-ot1-x334.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240854 Archived-At: --00000000000086e33a05e727c4f3 Content-Type: text/plain; charset="UTF-8" I can reproduce the bug in the following configuration: - Large monitor or small font in terminal. - Having 2 vertically splitted windows. - Enable `display-line-number-mode` on the left pane. - Terminal flickers on scrooling on some lines. The main point is it flickers only when the right pane has a little content. If the file contents fits into the whole right window, the it doesn't flicker, and it flickers only on the lines which do not have content to display. For example, -------------------- | | | | | | | |~ | | *|* |~ | | |~ | | |~ | -------------------- "~" is the part where there is no content. When I use the left window and scroll on the lines where the right windown doesn't have content, the screen flickers. But, as long, as I open some large file in the right pange it works as expected w/o any flickering. I tried to find a possible way to put some content in there, but seems like emacs supports frigne only on GUI. I tried different terminal emulators (iTerm2, Alacritty), in additional to w/ and w/o tmux. The same configuration but with ssh to linux work perfectly well. So, I assume, it excudes terminal emulator issues. I also tried different emacs distributions: - https://emacsformacosx.com/ - https://github.com/jimeh/emacs-builds - Some with come homebrew as well. Do you have any possible ideas where I can look into it? In GNU Emacs 28.1.91 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2202.70 Version 11.6.8 (Build 20G730)) of 2022-08-22 built on Mac-1661214538296.local Repository revision: bfa5bcf79b5069126308664c1701f86d253df337 Repository branch: HEAD System Description: macOS 12.5.1 Configured using: 'configure --with-ns --with-modules '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp:/usr/local/share/emacs/site-lisp' --with-xwidgets --with-native-compilation 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -O2' 'LDFLAGS=-L/usr/local/opt/gcc/lib/gcc/12 -L/usr/local/opt/gcc/lib/gcc/12/gcc/x86_64-apple-darwin20/12 -L/usr/local/opt/libgccjit/lib/gcc/12 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -Wl,-headerpad_max_install_names'' Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: display-line-numbers-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny 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 display-line-numbers cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired-aux cl-loaddefs cl-lib dired dired-loaddefs term/xterm xterm byte-opt gv bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 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 emoji-zwj 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 dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 133662 7351) (symbols 48 9789 0) (strings 32 28712 1544) (string-bytes 1 1059484) (vectors 16 17862) (vector-slots 8 336624 10901) (floats 8 32 218) (intervals 56 2454 0) (buffers 992 16)) --00000000000086e33a05e727c4f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


I can rep= roduce the bug in the following configuration:
- Large monitor or small = font in terminal.
- Having 2 vertically splitted windows.
- Enable `d= isplay-line-number-mode` on the left pane.
- Terminal flickers on scrool= ing on some lines.

The main point is it flickers only when the right= pane has a little
content. If the file contents fits into the whole rig= ht window, the it
doesn't flicker, and it flickers only on the lines= which do not have
content to display. For example,
-----------------= ---
| =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
| = =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
| =C2=A0 =C2= =A0 =C2=A0 =C2=A0|~ =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| *|* =C2=A0 =C2=A0|~ = =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| =C2=A0 =C2=A0 =C2=A0 =C2=A0|~ =C2=A0 =C2= =A0 =C2=A0 =C2=A0|
| =C2=A0 =C2=A0 =C2=A0 =C2=A0|~ =C2=A0 =C2=A0 =C2=A0 = =C2=A0|
--------------------

"~" is the part where ther= e is no content. When I use the left window
and scroll on the lines wher= e the right windown doesn't have content,
the screen flickers. But, = as long, as I open some large file in the
right pange it works as expect= ed w/o any flickering.

I tried to find a possible way to put some co= ntent in there, but seems
like emacs supports frigne only on GUI.
I tried different terminal emulators (iTerm2, Alacritty), in additionalto w/ and w/o tmux.

The same configuration but with ssh to linux wo= rk perfectly well. So, I
assume, it excudes terminal emulator issues.
I also tried different emacs distributions:
=C2=A0- https://emacsformacosx.com/
=C2=A0- https://github.com/jimeh/emacs-b= uilds
=C2=A0- Some with come homebrew as well.

Do you have an= y possible ideas where I can look into it?



In GNU Emacs 28.1= .91 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2202.70 Version 11.6.8 (= Build 20G730))
=C2=A0of 2022-08-22 built on Mac-1661214538296.local
R= epository revision: bfa5bcf79b5069126308664c1701f86d253df337
Repository = branch: HEAD
System Description: =C2=A0macOS 12.5.1

Configured us= ing:
=C2=A0'configure --with-ns --with-modules
=C2=A0'--enabl= e-locallisppath=3D/Library/Application
=C2=A0Support/Emacs/${version}/si= te-lisp:/Library/Application
=C2=A0Support/Emacs/site-lisp:/usr/local/sh= are/emacs/site-lisp'
=C2=A0--with-xwidgets --with-native-compilation=
=C2=A0'CFLAGS=3D-I/usr/local/opt/gcc/include -I/usr/local/opt/libgc= cjit/include
=C2=A0-O2' 'LDFLAGS=3D-L/usr/local/opt/gcc/lib/gcc/= 12
=C2=A0-L/usr/local/opt/gcc/lib/gcc/12/gcc/x86_64-apple-darwin20/12=C2=A0-L/usr/local/opt/libgccjit/lib/gcc/12 -I/usr/local/opt/gcc/include=C2=A0-I/usr/local/opt/libgccjit/include -Wl,-headerpad_max_install_names= ''

Configured features:
ACL DBUS GIF GLIB GMP GNUTLS JPEG= JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSV= G THREADS TIFF TOOLKIT_SCROLL_BARS XIM
XWIDGETS ZLIB

Important se= ttings:
=C2=A0 value of $LC_ALL: en_US.UTF-8
=C2=A0 value of $LANG: e= n_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: C+= +//l

Minor modes in effect:
=C2=A0 display-line-numbers-mode: t=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 show-pare= n-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-sh= adow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 li= ne-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mo= de: t
=C2=A0 abbrev-mode: t

Load-path shadows:
None found.
=
Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mm= l mml-sec epa
derived epg rfc6068 epg-config gnus-util rmail rmail-loadd= efs
auth-source eieio eieio-core eieio-loaddefs password-cache json map<= br>text-property-search time-date mm-decode mm-bodies mm-encode mail-parse<= br>rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf= -drums mm-util mail-prsvr mail-utils comp comp-cstr warnings subr-x
rx c= l-seq cl-macs cl-extra help-mode seq display-line-numbers cc-mode
cc-fon= ts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-def= s dired-aux cl-loaddefs cl-lib dired dired-loaddefs term/xterm
xterm byt= e-opt gv bytecomp byte-compile cconv iso-transl tooltip eldoc
paren elec= tric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel term= /ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd font= set image regexp-opt fringe tabulated-list replace
newcomment text-mode = lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch e= asymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-cor= e term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang m= isc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms c= p51932 hebrew greek romanian slovak czech
european ethiopic indian cyril= lic chinese composite emoji-zwj charscript
charprop case-table epa-hook = jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loa= ddefs faces cus-face macroexp files
window text-properties overlay sha1 = md5 base64 format env code-pages
mule custom widget hashtable-print-read= able backquote threads
xwidget-internal dbusbind kqueue cocoa ns lcms2 m= ulti-tty
make-network-process native-compile emacs)

Memory inform= ation:
((conses 16 133662 7351)
=C2=A0(symbols 48 9789 0)
=C2=A0(s= trings 32 28712 1544)
=C2=A0(string-bytes 1 1059484)
=C2=A0(vectors 1= 6 17862)
=C2=A0(vector-slots 8 336624 10901)
=C2=A0(floats 8 32 218)<= br>=C2=A0(intervals 56 2454 0)
=C2=A0(buffers 992 16))

<= /div> --00000000000086e33a05e727c4f3--