From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69941: 30.0.50; Faulty fontification of radio button widgets Date: Mon, 13 May 2024 10:19:43 -0400 Message-ID: References: <87h6gynx49.fsf@rub.de> <87o79c8n60.fsf@gmx.net> <87zfst4zuh.fsf@rub.de> <87v83h4y31.fsf@rub.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22669"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69941@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 13 16:20:28 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 1s6WXT-0005ZL-NT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 May 2024 16:20:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6WX7-0005lB-Lx; Mon, 13 May 2024 10:20: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 1s6WX5-0005et-Ai for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 10:20: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 1s6WX3-0000QU-MR for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 10:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6WX4-0004wi-5D for bug-gnu-emacs@gnu.org; Mon, 13 May 2024 10:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2024 14:20: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.171560999519002 (code B ref 69941); Mon, 13 May 2024 14:20:02 +0000 Original-Received: (at 69941) by debbugs.gnu.org; 13 May 2024 14:19:55 +0000 Original-Received: from localhost ([127.0.0.1]:33009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6WWx-0004wQ-HM for submit@debbugs.gnu.org; Mon, 13 May 2024 10:19:55 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6WWv-0004wG-Df for 69941@debbugs.gnu.org; Mon, 13 May 2024 10:19:54 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2BDF1100061; Mon, 13 May 2024 10:19:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1715609985; bh=EiCn0uBIvI8E2yKXzR+5Hc1N/tBmBlEU4+JNNnXzKTs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KWQV0NtzVPcxx4ODtR22ulc8m6a1fyu/R0r1i/g2i3Xze4Xtebo9pI266TZIHkq0F 9wOuDznyUV4mIQcYYIMdlrCVTwk57x/LNFEbtRM6oDoK4mTFCIRq/UZwpsmAu+A4qV oq9NR8tvAVC95aCUABzdmtM6GhFnASV7h+CaQe4hgTmKD87H4dVUTZsBY2+hxWxSyY kyxkZk3girG/wb0LrRC5pdh+1C4M1aYniRWshJNCY0EW2rxelG6t1vMkOW/tayxNYd oEnwgY3MNvaUEI6SO3OSA9WZnKC9LLgUJrUl9p4Y57ty9OW7rL54Z3uy0aAvOzqru3 a3EJ+L3Eiz2Hw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 136EF100035; Mon, 13 May 2024 10:19:45 -0400 (EDT) Original-Received: from pastel (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AA3C3120646; Mon, 13 May 2024 10:19:44 -0400 (EDT) In-Reply-To: <87v83h4y31.fsf@rub.de> (Stephen Berman's message of "Mon, 13 May 2024 15:53:54 +0200") 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:284975 Archived-At: >> 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