From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71163: Cursor can disappear off the window if no-special-glyphs is enabled Date: Fri, 24 May 2024 11:16:36 +0200 Message-ID: <0c858561-45a2-4737-942f-c205a1b06fb0@gmx.at> References: <86v8333ccs.fsf@gnu.org> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29993"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71163@debbugs.gnu.org To: Eli Zaretskii , Emre Yolcu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 11:17:22 2024 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 1sAR3B-0007af-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 11:17:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAR2o-0004qy-91; Fri, 24 May 2024 05:16:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAR2l-0004qi-VF for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 05:16:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAR2l-0005eM-Mq for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 05:16:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAR2s-0005tZ-8r for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 05:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2024 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71163 X-GNU-PR-Package: emacs Original-Received: via spool by 71163-submit@debbugs.gnu.org id=B71163.171654221822652 (code B ref 71163); Fri, 24 May 2024 09:17:02 +0000 Original-Received: (at 71163) by debbugs.gnu.org; 24 May 2024 09:16:58 +0000 Original-Received: from localhost ([127.0.0.1]:36015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAR2n-0005tG-PA for submit@debbugs.gnu.org; Fri, 24 May 2024 05:16:58 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:54715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAR2k-0005tA-3W for 71163@debbugs.gnu.org; Fri, 24 May 2024 05:16:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1716542198; x=1717146998; i=rudalics@gmx.at; bh=PLIq4oyEySD+uCihxBMnvEZoV6BIF1wex6i6q1UcPeI=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=SvRoiD27u1RVeO6MuNHd/ldp9zJMIoI2Q/pQMJW0JvnI9swFqDPMcWnxUJCmDalq MIt3M3MkP5UJgpMFKiOWvBdEKOhkU9UH5L19veVsQkp+/+r6Z6kYZYZm44L4lAn0A SOuee00imDSyOhHBLEAM1vfNA3kvh7nPk4DyPdjGJyLt37lx2r2AyuCwarLBwiyUt n6Gfo/+chiNFkhQpuYZaVUR1Vzoc9ZYeG49eW9AyT7G/Xfqh4Clw93g11MRreSiVY 4Y85JoaRBRjlPgUpugGixv8r4Pc5eS880DoF0xjdlE2BUKP4MdAZM7ZrOBArmB6PL wFsU61sjsydTzJY9og== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.146]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MdefJ-1sk2uF1W8P-00cgg9; Fri, 24 May 2024 11:16:38 +0200 Content-Language: en-US In-Reply-To: <86v8333ccs.fsf@gnu.org> X-Provags-ID: V03:K1:d26ifKz3rz2F5Z6WPrDlDyKhX6jXIsB6tdo5OZ642Z2g1aspGWH 9z+LRgyfjbAMuYDjeYqjgpMAGf8SwtSc4ZTpcAvbNu3Pt7IbTKFkrhn6DjkTHIFv/qxuG/r Hymt64g9vrR4TMY6NO4SH3fkBXgayTKdVO5eAEQdcoB3zeldRYdFSYTQ6I14T7lT7xolR52 /FxAzA7r+RLOeZbxOm88w== UI-OutboundReport: notjunk:1;M01:P0:W7Ma9K+dP5w=;OSjXaNZaS4tqyNiHDUVOsRAnXKF SKt3RftiL0fVM6GNQ67iVQ025VYVbc5Qvjz7nvrTajjGkVXKxDsbLzgQUexTY6tJMpQkOU1o/ lf1ns7q9Hsz7GfZkt91OY9U1ruMYcUywz/HPqwc1aMen3GP9po0t6gg8/w5wLHRMjaU9pTJL2 39cvl9lBhrK92H0GzhlR5w1t0iULBysDcTovcA2MwQwlYdg7pebJmA2IUMCP1ujal10WD1S3k mKUQ1lI5ReMSXnc+zTgkOgouSxoBNhy29dMmv+kpX6tAFQS2amGJPLkas0VprI55E58Ywgl63 siY+R27WR6SkTYZ2KavcXXfzm2h964FQSNNuFAHtkBG3IKuo79mRjUpsKrnLb/w/6UT5uFCOr UduWbHA8SyUNa34bWcwovdNx5vyfElrqKJgtOINm6XhX7G/CJWTSv8XukQKBJvPKkOZ6/E+Pl 0UPpF/MR+FpfoSb/J3neog38Lu3YU+RWsI5lauv6r4QfoYm1IMyXeW47Ilu9TTE+0ojoJt3mm GHsLsJ8PfhLnSeqbYI27rcmPTF/tBijSo4WQ8gR02y+rUVoes+x7wXXCdy1vLrz0u4xoMx4q0 nMW/BzHTKNdaPIc2oFszChme9+8Hp5jks6Fvkc1crUjyHfloxMS9vMYuwQ5RYZ43WxxkAIND2 nUbczYHNImyz0WbaIdy2htgDehIrpcp+yyS+ZB4C3IGo2GTKdT5T1Jr5tlYGnxVu+TBRNdwH4 eaJgrRJxC1afRjRob4BC8xaLeitWzPIj+FuiMpI574zeGwx+5gvbEEdsr1YY0B5hhUfqVAtx 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285755 Archived-At: > I don't really understand how this was intended to behave, so I added > Martin who introduced this feature, in the hope that he could provide > the explanation of the intent. This was added as part of support for > child frames, so I presume it has something to do with child frames, > but I don't really understand what exactly and why child frames would > need that. IIRC this feature is used to make 'fit-frame-to-buffer' work reasonably for tooltip frames and child frames that display information in a similar way. Bug#25408, Bug#52929 are two examples of why it is useful. > AFAICT, this is currently broken in several ways: > > . it only has effect on GUI frames (basically, the code ignores this > parameter on TTY frames), although the documentation doesn't say > that, and I see no immediate reason why it wouldn't make sense on > TTY frames; We neither had child frames nor tooltip frames on TTYs when this feature was introduced. Did this change in the meantime? > . it doesn't affect the display of fringe truncation and > continuation bitmaps, although the documentation doesn't say that, > either, and it is not clear to me that those bitmaps should be > displayed in that case; Fringes should not be shown on such frames. > . not only display of cursor in full-window lines is broken, but > also the automatic horizontal scrolling (auto-hscroll-mode) in > that case: the line is not hscrolled until you type one more > character beyond those visible; Neither of these are supported by this feature. > . if you insert a TAB near the end of a screen line such that the > next tab stop is on the next screen line, the TAB is shown with > wrong number of columns, as if the next tab stop is at column zero > of the next screen line. Interactive insertion is not supported either. > The last 2 points, and the report that started this bug discussion, > are because the logic of line-continuation and truncation is basically > broken in this case: the layout code thinks the continuation and > truncation glyphs are inserted when needed, whereas they are not. > That's because the layout code was not adapted to this frame > parameter, only the geometry of the screen line was adjusted. > > Fixing this will take a while. But first we need to understand and > agree on the scope of support for this frame parameter, and what Emacs > should do in each supported case. Turning off special glyphs is a pure presentation feature. The variable 'show-paren--context-child-frame-parameters' tells best what should be turned off too on any frames where it is used - such frames should never be switched to, should not show a cursor, decorations and the like. Feel free to add an appropriate explanation to the manual. Thanks, martin