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#51550: 29.0.50; Customize Group INS buttons sometimes don't have a left box line Date: Wed, 29 Dec 2021 16:56:52 +0200 Message-ID: <83o84zjw7f.fsf@gnu.org> References: <87ee80gezy.fsf.ref@yahoo.com> <87ee80gezy.fsf@yahoo.com> <83a6iolzjd.fsf@gnu.org> <87zgqnk74n.fsf@rub.de> <83ee7zll84.fsf@gnu.org> <87wnlrfhdk.fsf@yahoo.com> <831r3ylk6o.fsf@gnu.org> <87r1bxer97.fsf@yahoo.com> <83pmrhien9.fsf@gnu.org> <87mtkmz5ht.fsf@yahoo.com> <83k0foljiz.fsf@gnu.org> <87ilv8uu5p.fsf@yahoo.com> <837dbnlgbs.fsf@gnu.org> <87r19vsfx1.fsf@yahoo.com> <83v8z7jzw7.fsf@gnu.org> <87ilv7seht.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen.berman@gmx.net, stefan@marxist.se, 51550@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 15:58:15 2021 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 1n2aP9-0002x8-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 15:58:15 +0100 Original-Received: from localhost ([::1]:52276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2aP8-0005ZR-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 09:58:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2aOx-0005Yw-3Z for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 09:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2aOw-00016I-6i for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 09:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2aOw-0005Ia-2J for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 09:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51550 X-GNU-PR-Package: emacs Original-Received: via spool by 51550-submit@debbugs.gnu.org id=B51550.164078982220261 (code B ref 51550); Wed, 29 Dec 2021 14:58:02 +0000 Original-Received: (at 51550) by debbugs.gnu.org; 29 Dec 2021 14:57:02 +0000 Original-Received: from localhost ([127.0.0.1]:49909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2aNx-0005GY-Vq for submit@debbugs.gnu.org; Wed, 29 Dec 2021 09:57:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2aNs-0005G4-Oo for 51550@debbugs.gnu.org; Wed, 29 Dec 2021 09:57:00 -0500 Original-Received: from [2001:470:142:3::e] (port=41624 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2aNn-0000tu-6g; Wed, 29 Dec 2021 09:56:51 -0500 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=wsDKBzdqNuYjCK2boasnzMmnkslX+dpZ+DiXBfaS/RE=; b=Y9lHOhtOr1Ke /RYVMvbtgubbPhjKJVsF2GZ01FQNxjfESZKp8hVOdDlEjkVjNDZ5D1Y3WadMIQ7kYF1cO5L1hfKKR WZvJ23wDqfd2pQ71WXwCDx2WqUdW4sc7Gz/lgQyL9GNVbkm+Hk9yIn3y6DTuUFR6vUPawkByaJNxq S/moQzg1dzGS6/tF6KUPeRCQ6xyiLKkdk6zvYDgU+QQxSApEH6FrvMNhNTLQ7liAgafMv8USSsSwt XwOCBZk23Ecj6BGGraPOkrpfQj1k4BQWhpu06LyZAR+bZFf5DrRR/uPCJQ9xoLvl+aWcJr/dHLEMG D/k4gOT3tHaw3VTSYsCXTA==; Original-Received: from [87.69.77.57] (port=2031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2aNn-0003px-5w; Wed, 29 Dec 2021 09:56:51 -0500 In-Reply-To: <87ilv7seht.fsf@yahoo.com> (message from Po Lu on Wed, 29 Dec 2021 21:54:38 +0800) 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" Xref: news.gmane.io gmane.emacs.bugs:223338 Archived-At: > From: Po Lu > Cc: stefan@marxist.se, stephen.berman@gmx.net, 51550@debbugs.gnu.org > Date: Wed, 29 Dec 2021 21:54:38 +0800 > > Eli Zaretskii writes: > > > Why did you want to use a before-string? why not simply a single > > invisible character before the button? > > It has to be an overlay, because wid-insert might not be able to insert > such a character before the button. (In general, the display of > everything in a button except for text seems to be done entirely with > overlays -- I don't think the buffer is supposed to contain anything > other than the text of the button itself.) So make an overlay whose property is 'invisible' -- doesn't that work? What do you mean by "wid-insert might not be able to insert" -- isn't the text of the button inserted as well? then why not make the invisible character part of the inserted button text? > (with-current-buffer (get-buffer-create "*test*") > (insert #("foo\nfoo" 0 4 (face widget-field))) > (let ((overlay (make-overlay 5 8 nil t nil))) > (overlay-put overlay 'before-string (propertize " " 'invisible t)) > (overlay-put overlay 'face custom-button))) > > After this, I would have expected the second "foo" in *test* to begin > with a box line, but it doesn't. Will look into this soon.