From unknown Sat Jun 21 10:33:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72579 <72579@debbugs.gnu.org> To: bug#72579 <72579@debbugs.gnu.org> Subject: Status: 29.4; Viper does not handle changing cursor colour well Reply-To: bug#72579 <72579@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:33:24 +0000 retitle 72579 29.4; Viper does not handle changing cursor colour well reassign 72579 emacs submitter 72579 ZharMeny severity 72579 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 11 11:14:08 2024 Received: (at submit) by debbugs.gnu.org; 11 Aug 2024 15:14:08 +0000 Received: from localhost ([127.0.0.1]:41865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdAGl-0007uh-QP for submit@debbugs.gnu.org; Sun, 11 Aug 2024 11:14:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:43880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd9DL-0005zZ-QS for submit@debbugs.gnu.org; Sun, 11 Aug 2024 10:06:32 -0400 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 1sd9Cq-0004Qe-Ld for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2024 10:06:00 -0400 Received: from mail-40137.protonmail.ch ([185.70.40.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sd9Co-0005Er-UB for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2024 10:06:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1723385149; x=1723644349; bh=6+rXb4LpMvHU75Aej9IDlEB7bNVI6Lx+omIuw55UGOk=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=wRSYihKJfjhZndiLW2EmueGnu+lSnb+hJcQxbldBQ6Uksmf90UO2h38iuPccGwugw 2W4C/+GUzZsK1W5GnOGJsTQpKGof6cq4Mfnc4vm8YWjN4Vg03jFE8XU4Djqtijg9gA mcWWF0olVva/fPPcqiDalNfIoJIby+7T0i5aO/VPdPK+bf7JpeUc7LmO7Nv1XSMKwO 1B8GXWViBbXEloxE0BOVh+ma+wyoxxGp9MOQwowb2iRsN2Oo7v5TOvOEsgKqkJq9S5 BS5/OIofhHIkg8jy/TVE1mxR4HmiDOHs55mbFX6oOMDlXf8yLOCuxxrKE4ESioOVWM EUeo2r7z+G63w== Date: Sun, 11 Aug 2024 14:05:44 +0000 To: "bug-gnu-emacs@gnu.org" From: ZharMeny Subject: 29.4; Viper does not handle changing cursor colour well Message-ID: Feedback-ID: 90799146:user:proton X-Pm-Message-ID: 25e8ea112eae61b332d9e80580e4dc3876dbbe72 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.137; envelope-from=zharmeny@protonmail.com; helo=mail-40137.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 11 Aug 2024 11:14:06 -0400 Cc: "info@protesilaos.com" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) If you change the cursor colour with viper-mode enabled, it will use the 'r= emembered' cursor colour from the previous theme, which makes cursor practi= cally invisible if switching between dark and light themes. Here's an `emacs -Q` reproduction: (load-theme 'modus-operandi) (viper-mode) (modus-themes-toggle) The (internal) variable `viper-vi-state-cursor-color` seems to be the culpr= it, as it remembers the cursor color of the theme that is no longer active = after the toggle. This problem is not specific to modus-themes, any theme should work. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 11 11:30:49 2024 Received: (at control) by debbugs.gnu.org; 11 Aug 2024 15:30:49 +0000 Received: from localhost ([127.0.0.1]:41878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdAWu-0008LS-PU for submit@debbugs.gnu.org; Sun, 11 Aug 2024 11:30:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdAWs-0008L8-4V; Sun, 11 Aug 2024 11:30:46 -0400 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 1sdAWG-0008Bu-Be; Sun, 11 Aug 2024 11:30: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=slr4s/77aCzRVbJFlXzHx7Z+R52lzy4kadkrFfY33Lw=; b=BOQy6UD+InrZ g3AW0UN9fGaV8VUvql2RpM4II5UJa5OeJGGvGfTzizO78HLaQtEKNZi3/r65t2kei9Vyc9T3Lm6n7 vTtoYb5VPAM5cxfRYH+mYWDwR7tU7KUZy8adcxudBPnsa/TX/m+XQe2ocaUkJr8aZN54TxDAJfXsZ 4qOpKU2D72kw+t2ifwHAN50nCmmIZ+smCx9KyMSDIqfVt6Jl5k59BTSh3S/gcILL5j15gIdAv7Dp/ XetKcG8pb/T4jnMGwYxvf/z2AiX0Et1g0xVn4CEJHgP5BafQ2iiGs7RV4iXgoUHF1uqEF3NUFk77l 7bOntCwVKmt8eX3gCt6i8A==; Date: Sun, 11 Aug 2024 18:29:44 +0300 Message-Id: <86ikw7hyc7.fsf@gnu.org> From: Eli Zaretskii To: ZharMeny In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#72580: 29.4; Viper does not handle changing cursor colour well References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: info@protesilaos.com, 72580@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 72580 72579 thanks > Cc: "info@protesilaos.com" > Date: Sun, 11 Aug 2024 14:09:30 +0000 > From: ZharMeny via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > If you change the cursor colour with viper-mode enabled, it will use the > 'remembered' cursor colour from the previous theme, which makes cursor > practically invisible if switching between dark and light themes. > > Here's an `emacs -Q` reproduction: > > (load-theme 'modus-operandi) > (viper-mode) > (modus-themes-toggle) > > The (internal) variable `viper-vi-state-cursor-color` seems to be the > culprit, as it remembers the cursor color of the theme that is no longer > active after the toggle. > > This problem is not specific to modus-themes, any theme should work. This is the exact duplicate of bug#72579 that you filed just a few minutes ago. Merging.