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: Mon, 01 Jul 2024 14:36:06 +0300 Message-ID: <86frstfiop.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17630"; 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 Mon Jul 01 13:37:29 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 1sOFLc-0004Lw-MA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jul 2024 13:37:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOFLF-0002NL-0E; Mon, 01 Jul 2024 07:37: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 1sOFLC-0002N2-Cy for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 07:37: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 1sOFLC-0004cd-4J for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOFLC-0000YB-JW for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 07:37: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: Mon, 01 Jul 2024 11:37: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.17198337782043 (code B ref 71866); Mon, 01 Jul 2024 11:37:02 +0000 Original-Received: (at 71866) by debbugs.gnu.org; 1 Jul 2024 11:36:18 +0000 Original-Received: from localhost ([127.0.0.1]:60338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOFKU-0000Wt-14 for submit@debbugs.gnu.org; Mon, 01 Jul 2024 07:36:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOFKS-0000Wg-0R for 71866@debbugs.gnu.org; Mon, 01 Jul 2024 07:36:16 -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 1sOFKL-0003GF-SA; Mon, 01 Jul 2024 07:36:09 -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=o8VVh8eoxsDE0mtQFDLy57QFJoybZg17nUYmFKWDj5U=; b=YznvPT4IPVez HhRUJVSkOPzmh1/1x1n43trJNPZQkmEXPEbT8+a+zlMaHAb7YzDDMdWRNpIyiw38o3dnexvUkFHhK hRF+yCzGEgdviq8NE0BOHFRVnHrLAgDVKrX2D4jRRrw7VSmZTiZUdq4RFg/KBJ7RPTwdw7UwwBMeE DQo92ZC2XP9QWsly7YM9+J7jozoXQt8NOC7hpQiVoM6OMAxdbRibqiUaNWUsw8Lcf+3FVlcB0KtfH fQoFLxx5YUFlFqCXObvzxRGfaLdXKAIT+fK3brEJgC6glgU7XTc6nwUgW7fS1rm9kB7ocyDCW3P+C MFFWkJkiUwWbwARNxFPhvA==; In-Reply-To: (message from Dmitry Gutov on Mon, 1 Jul 2024 06:14:28 +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:288247 Archived-At: > Date: Mon, 1 Jul 2024 06:14:28 +0300 > From: Dmitry Gutov > > Repro script is attached. Disabling blink-cursor-mode is not a > hard requirement, but it makes the bug easier to see. The font and face > customizations are both necessary. > > 1. emacs -Q -l nocursor-repro.el > 2. Type 'asdasd' (without quotes) > 3. Move point to either of the 's' chars > 4. Create a new frame with 'C-x 5 2' > > The character under cursor won't be visible - just a blank cell (the > cursor is blank as well). Then I move point with e.g. C-f and it's > visible again. This is definitely macOS specific. I cannot reproduce on my system (although by some miracle I do have the Cascadia Mono font installed). Basically, what happens is that redisplay has some bug in how it draws the cursor. Given all the tricks that redisplay plays on macOS, I'm not surprised. On other platforms, the code which draws the cursor is in draw_glyphs, called from XXX_draw_window_cursor function (where XXX is the GUI backend, in your case probably XXX = ns). If the same is true on macOS, you could try stepping through that code. > The face customization is a part of a 3rd party theme (tango-plus). I'm > pretty sure the :inverse-video customization should be a no-op but it > isn't. Seems like a subtle bug somewhere. As a user of the theme it's > taken me a while to narrow down the problem, so it'd be great if someone > could look into it. So if inverse-video is not used, the problem goes away? If so, just don't use it.