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 19:03:45 +0300 Message-ID: <86o76scaou.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> <86o76sea9d.fsf@gnu.org> <72a0b2e2-600e-46f1-b583-0bed86f27d2d@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9964"; 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 18:07:26 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 1sVCcH-0002Nm-Uz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jul 2024 18:07:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVCc2-0000yJ-6m; Sat, 20 Jul 2024 12:07:10 -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 1sVCbu-0000qi-Bb for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 12:07:04 -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 1sVCbu-0007Y9-37 for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 12:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sVCbu-00086i-7X for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 12:07:02 -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 16:07:02 +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.172149158231115 (code B ref 71866); Sat, 20 Jul 2024 16:07:02 +0000 Original-Received: (at 71866) by debbugs.gnu.org; 20 Jul 2024 16:06:22 +0000 Original-Received: from localhost ([127.0.0.1]:53828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVCbF-00085l-S3 for submit@debbugs.gnu.org; Sat, 20 Jul 2024 12:06:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVCb1-00085N-Pw for 71866@debbugs.gnu.org; Sat, 20 Jul 2024 12:06:20 -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 1sVCYp-0006qq-QE; Sat, 20 Jul 2024 12:03:51 -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=nUlfqpFMIoX+2qvpDC+LQlgSfMCB+KPDmg3CD6XUKos=; b=nVmYTYGgXED8 +RHY3pwRRhdmX7cYbDEbWJ3fdJbaxqZ817H+uBe4LRGK0JtU9QMJOdTnwTKh/9Eowl06bawgdlh7+ BnuZvJGa6eKSUrNSk75AkhQWABgB+VNGhXrYUlcKzlUvvbGC9zKzsuOK9SULLcDItbuJQbWQ0aaC4 ic6mFIRX1llmTZRkcJhKtuXZBsanj9o44HmHsl1hPALAAhhsNBbjgLlbIm4/gATC+2w7WJkYGfHEH bkHS/wQFLoduwX7XDOxX2tQXEEfKuByvtaRP6LnDM51j/M9r+/aoXaSDgLTKDRH126PajByYUJHJ5 o/SrNDhusw9KQuzBsjCrqQ==; In-Reply-To: <72a0b2e2-600e-46f1-b583-0bed86f27d2d@gutov.dev> (message from Dmitry Gutov on Sat, 20 Jul 2024 18:46:50 +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:289045 Archived-At: > Date: Sat, 20 Jul 2024 18:46:50 +0300 > Cc: 71866@debbugs.gnu.org > From: Dmitry Gutov > > > 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 do see a bunch of such calls earlier as well, but they don't seem to > result in no cursor being displayed - just in it not being updated, maybe? It depends on what was redrawn before that. > > 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? > > The scenario that I'm trying is the same that creates the original problem. That's not what you said, or maybe I misunderstood. But anyway, if this is the same scenario, then why are you only looking at what happens inside ns_draw_window_cursor? Redrawing the block cursor involves displaying the character under cursor with special colors, and ns_draw_window_cursor is just the beginning: it calls other functions which actually do the job. In addition, I don't think I understand from the debug session which call to ns_draw_window_cursor was done in what situation. If they all were part of the single repetition of the scenario, then without fully functional backtraces it is very hard to understand anything that goes on here. Using an unoptimized build might help, which is why I suggested that (unless the problem disappears in an unoptimized build).