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#69941: 30.0.50; Faulty fontification of radio button widgets Date: Sat, 25 May 2024 10:51:08 +0300 Message-ID: <86zfsez5w3.fsf@gnu.org> References: <87h6gynx49.fsf@rub.de> <87o79c8n60.fsf@gmx.net> <87zfst4zuh.fsf@rub.de> <87v83h4y31.fsf@rub.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69941@debbugs.gnu.org, stephen.berman@gmx.net To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 09:52:00 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 1sAmC7-0008gT-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 09:52:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAmC4-0008QS-Nn; Sat, 25 May 2024 03:51:56 -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 1sAmC3-0008Px-7z for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:51: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 1sAmC2-0008Tt-Vl for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:51:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAmCA-0006yu-Av for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:52: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, 25 May 2024 07:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69941 X-GNU-PR-Package: emacs Original-Received: via spool by 69941-submit@debbugs.gnu.org id=B69941.171662348526826 (code B ref 69941); Sat, 25 May 2024 07:52:02 +0000 Original-Received: (at 69941) by debbugs.gnu.org; 25 May 2024 07:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:41892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmBZ-0006yc-7q for submit@debbugs.gnu.org; Sat, 25 May 2024 03:51:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAmBX-0006yW-0E for 69941@debbugs.gnu.org; Sat, 25 May 2024 03:51:23 -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 1sAmBK-0008KW-5I; Sat, 25 May 2024 03:51:10 -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=NkfqiGcGkxv/vxt3/7uBvr7tSexDDYxgX5FMkMbT1mI=; b=cxgKQYIJlyj3 N4GRulUZayzEUDrX214Oj2wP7kXmNzownjWWVCGLXs2r5xSBYC0J36p6P7xFcBu7VDlFar4z11zkI LWBujaXf6ADis2ouRCNcPFHSIplrmHVEOf3yu/tdkQI4y0Sh0H98ToW/7wWv8iIHbHZ1K+XOcEGTA 3TzLGaeeMll0a4QOH9GrAE3pTSO3vbpydnU+H2bnknl7qaD2ijEJ0DNc8qivod2OKfYG6SdB5H5rs bLvFhwgnA+GM8fW5PAGtZ4Cy9X9oN0jtEegFMErikYGAf4s+DWU/kVltgAaKvGx8RX4TqVjD8ju6m xAt985fZ7nAnCb9lLSj09g==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:285832 Archived-At: Ping! Any further comments about this, or changes to install? > Cc: 69941@debbugs.gnu.org > Date: Mon, 13 May 2024 10:19:43 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > >> Or maybe `widget-*-add-item` should temporarily change the insertion > >> type of the from/to markers? > > What do you mean by "temporarily"? > > I think you underestimated the meaning of: > > I'm really not familiar with the widget code > > I put "really" before the "not", because I know very little about > that code. > > > Maybe it could be left up to the deactivation code to ensure that the > > radio-button-choice widget's :from and the :from of its first child > > coincide when deactivation (and accompanying fontification) occurs, and > > then reset the previous values afterwards. > > I suspect thinking in terms of "activation/deactivation" will not > be helpful. We should look at the code which does the insertion of text > (which presumably happens, among other things, upon deactivation). > > > Though that seems pretty ad hoc... > > If needed, we might be able to make it less ad-hoc by defining > a function for the purpose of (re)inserting text inside an > existing widget. > > > (and would resetting the :from affect the fontification?) > > It'd be up to that new function to make sure things work as they should. > > > Stefan > > > > >