From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71866: 30.0.50; [macOS] Cursor hiding char behind it with certain theme customization Date: Sat, 20 Jul 2024 11:30:06 +0300 Message-ID: <86o76sea9d.fsf@gnu.org> References: <86frstfiop.fsf@gnu.org> <03b9a1c2-986d-40ea-bdd6-d13b419c9aa0@gutov.dev> <86v81i526t.fsf@gnu.org> <1f5f741f-d599-4051-8a34-27d349360eb8@gutov.dev> <86sewiztr2.fsf@gnu.org> <867cdto3uk.fsf@gnu.org> <56cc929b-5491-4ed4-a527-d0b1a369e625@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34870"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71866@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 20 10:31:21 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 1sV5Uv-0008t5-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jul 2024 10:31:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sV5Uf-0003t5-S3; Sat, 20 Jul 2024 04:31:05 -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 1sV5Uc-0003sD-8C for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 04:31:02 -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 1sV5Uc-0004vT-0H for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sV5Ub-0005yf-Pk for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 04:31: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: Sat, 20 Jul 2024 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71866 X-GNU-PR-Package: emacs Original-Received: via spool by 71866-submit@debbugs.gnu.org id=B71866.172146422022916 (code B ref 71866); Sat, 20 Jul 2024 08:31:01 +0000 Original-Received: (at 71866) by debbugs.gnu.org; 20 Jul 2024 08:30:20 +0000 Original-Received: from localhost ([127.0.0.1]:51642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV5Tv-0005xY-Su for submit@debbugs.gnu.org; Sat, 20 Jul 2024 04:30:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV5Ts-0005xI-TZ for 71866@debbugs.gnu.org; Sat, 20 Jul 2024 04:30:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV5Tn-0004gv-6X; Sat, 20 Jul 2024 04:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uXTvv82zwAsYE3L2qsTyTcEQAdVgU8bLs+HsRVs+oDs=; b=LldHkrBocbkd pUseL1x3vEBiCz3jS/5ya8hrv4OPIEAwUWdODTGYjP96iovnTFnv3zyM6VS+A+dzumwAyFcSRYIKq FEzEg49Bac8UOSxdXN42QC6gzyfWTU6jN0mylEhaDsyr84ys/eBB4td8h9iRnZySq+iI3u8aTyTNi Fv/gi9HBL9nnE9oqyTwjVA/Z/9k4KtzCt6iVMoP46bOs/1OWADkCZY1f10UzcejCplvCsb6E0KWkd Os2XNAiTaqHyNLztsh5ZEKwv9anmlGWWfMcC73Xcb2Jis+geGGZC5RY7ptsyS46iERJh/+y5SmIeq oKSw+eocA8RD6Z2hG8vuvg==; In-Reply-To: <56cc929b-5491-4ed4-a527-d0b1a369e625@gutov.dev> (message from Dmitry Gutov on Fri, 19 Jul 2024 04:57:12 +0300) 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:289013 Archived-At: > Date: Fri, 19 Jul 2024 04:57:12 +0300 > Cc: 71866@debbugs.gnu.org > From: Dmitry Gutov > > Okay, I have tried that, and the results might or might not be useful. > > Similarly to the case of switching from another application, when I have > to switch to another application to handle the breakpoints (just typing > 'c RET'), the behavior is different. > > BUT the last call to ns_draw_window_cursor (out of 14) before the > control is returned results in the cursor getting hidden (in the new > selected Emacs frame only). Unlike the problem I described, the > character under the cursor stays drawn, but the cursor rectangle goes > away (and that happens after the last breakpoint hit, before that the > text and the cursor look correctly - hollow cursor around the character). > > I'm attaching the last debugging log - maybe the backtrace can be > useful? - but note that the backtrace printing is halfway broken as well > - it freezes and I have to press ^C a bunch of times to see something. > > Anyway, while wrong, the behavior is not the same, so I can't be sure > it's the same problem that is being triggered. I don't really see any useful information here, except that the last call tells Emacs to show the cursor using type NO_CURSOR (i.e. not to display anything). I don't understand why this happens; the value is returned by get_window_cursor_type called inside display_and_set_cursor (which is what gui_update_window_end calls on line 3941 of dispnew.c, but the backtrace doesn't even mention that). But before we try to analyze this situation, shouldn't we try to stick to the original issue? Why could not you investigate what happens in that case? Also, if the problem persists in a non-optimized build, I suggest to use that, since then the backtraces will be much more helpful, and there will be no "optimized-out" variables whose values you cannot see in the debugger.