From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38016: 27.0.50; Display issues with delay-warning and side-by-side windows in terminal Date: Fri, 01 Nov 2019 17:57:34 +0200 Message-ID: <83mudflhch.fsf@gnu.org> References: <87bltw5gfi.fsf@clyde.resnet.cms.waikato.ac.nz> <83pnicm5x6.fsf@gnu.org> <83mudgm424.fsf@gnu.org> <83a79glycp.fsf@gnu.org> <83zhhfloyr.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111223"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38016@debbugs.gnu.org To: tomlevy93@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 17:01:44 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQZMu-000Snj-3q for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 17:01:44 +0100 Original-Received: from localhost ([::1]:40640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQZMs-0006AB-DG for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 12:01:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56431) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQZJO-0004ac-5Y for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 11:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQZJM-0000mk-2e for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 11:58:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQZJL-0000g0-VU for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 11:58:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQZJJ-0000Z5-SC for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38016 X-GNU-PR-Package: emacs Original-Received: via spool by 38016-submit@debbugs.gnu.org id=B38016.15726238602138 (code B ref 38016); Fri, 01 Nov 2019 15:58:01 +0000 Original-Received: (at 38016) by debbugs.gnu.org; 1 Nov 2019 15:57:40 +0000 Original-Received: from localhost ([127.0.0.1]:56859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQZIy-0000YP-22 for submit@debbugs.gnu.org; Fri, 01 Nov 2019 11:57:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQZIw-0000YB-38 for 38016@debbugs.gnu.org; Fri, 01 Nov 2019 11:57:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQZIq-0006ha-Oo; Fri, 01 Nov 2019 11:57:32 -0400 Original-Received: from [176.228.60.248] (port=4153 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQZIo-00056M-JX; Fri, 01 Nov 2019 11:57:31 -0400 In-reply-to: <83zhhfloyr.fsf@gnu.org> (message from Eli Zaretskii on Fri, 01 Nov 2019 15:13:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170617 Archived-At: > Date: Fri, 01 Nov 2019 15:13:00 +0200 > From: Eli Zaretskii > Cc: 38016@debbugs.gnu.org > > > From: Tom Levy > > Date: Sat, 2 Nov 2019 01:29:22 +1300 > > Cc: 38016@debbugs.gnu.org > > > > emacs -Q -nw --eval '(progn > > (setq truncate-partial-width-windows nil) > > (setq initial-scratch-message ";; short\n;; message\n\n") > > (setq split-height-threshold 80) > > (setq split-width-threshold 20) > > (delay-warning :debug "line 1\nline 2"))' > > > > Results: > > > > $LINES first value of $COLUMNS with glitch > > 18 155 > > 19 149 > > 24 129 > > 37 99 > > 48 89 > > Thanks, now I see this and will look into it when I have time. Looks like some weird problem with cursor motion commands Emacs emits on a TTY. As screen dimension change, Emacs tries to optimize the commands it sends, and changes the commands it emits to put the cursor at given display coordinates, see cm.c:cmgoto. Probably related to bug#24124 (which remains unresolved). The way to record the commands Emacs sends to the terminal is to invoke open-termscript. The commands will be in the file this function gets as its 2nd argument. We need a terminfo expert to find out what's wrong here. Anyone?