From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 21:54:38 +0800 Message-ID: <87ilv7seht.fsf@yahoo.com> 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> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19964"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: stephen.berman@gmx.net, stefan@marxist.se, 51550@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 14:55:13 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 1n2ZQ7-00051O-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 14:55:11 +0100 Original-Received: from localhost ([::1]:45816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2ZQ6-0003sz-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 08:55:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2ZPy-0003sd-Ej for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 08:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2ZPy-0008Nn-60 for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 08:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2ZPy-00032f-39 for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 13:55: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.164078609811677 (code B ref 51550); Wed, 29 Dec 2021 13:55:02 +0000 Original-Received: (at 51550) by debbugs.gnu.org; 29 Dec 2021 13:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:48267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2ZPu-00032G-DD for submit@debbugs.gnu.org; Wed, 29 Dec 2021 08:54:58 -0500 Original-Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]:41097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2ZPs-000321-OY for 51550@debbugs.gnu.org; Wed, 29 Dec 2021 08:54:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640786091; bh=tTQ4nnHU1jcn+PdrqH/q1RjGTCR+KYnbYNczIz/0oM8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZSNrIirANqEG0OTqiG+BOvBtVbisU0G74qmAaWb0wsbn6R8KyA1jhDiM3gZBSQUsjL9E59XEo9Lpdw8N8bQbumn85+LRb+RJQs1BwAkaSHYVWmiD2NACd/b2v38zfxH43xOQ007JwvFpod3ZfJ4itByoSmJdn6ojAMonKFEmsUMmzdwHJEbkrJWH+yiNuTtW9IZXio75sNzMSUSHEodRSfSZWL4IOm3BMRdqWhTsjtTDHpnho47NwKbd3uPXVn4QV1INPiO7VoyCy/RYCyhS/0NFthmDRPPK7fyoVlTqN+9AhJHvXvwfic7y5xh0rNlWYZyX+qftv1iukqW+/Ex46w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640786091; bh=jmi6FuJoBWyXkHdsXISor+MFr4CBNoufPORPrifG2Yb=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=PpQAEPMFDhnMvquIFtmlmdMMtFwCIY7swRVo5ykwQ9kW7/zMhqH9Sb1OZmQl4SY0MdMEXvCDGsHmzfApZ44bWMrG+BjQS/LIWOrOtL8b6+WeDvvM1LUYe6TQ32TqvY7L9PhWSFpSah2HV5UVXJRCwWZ6NyZ/U/EBgXRq/WxhWsC8bVzQlP9mJBRCEKjKj56wA2N93yHv2rK+he0Gw+nuBvn4eHeAmWjaL0nVmCogypZ94uCjYw0562H24CMiSrS95/dH+3ZuR8M1I3ECXEyWhuxgpDvwDPRWI5N7NfAIztD0eB1ru/xgPCC0eGaf/V+4We2JsZ7LQ+0HbCcP6AmOew== X-YMail-OSG: 3esz6RYVM1mvTCmoev5.GQGaw70b2BMDiLqzRG2IE20uMnaBPrKA2d22pkWb425 e0ku.DkCD86V8DmNbeeUTjmJcdoBcjkxnDtwhUvhGP7nPMwuD.zOgi88oMoe8u_VxG.oDA._yRhi sKQ67NeRIUeJASMgpmLMWQqI2Nvrfep22suO3nWzFoG6VMUdtM.c8OqHUbWhviZmcJmGGse_qzIJ eEsfnXaNgjo5BfJMaO4xle0i8TDAD9KcER5Kj1oli4agDI7q5xKcMi_AeZ9VMUkt05Jm8XhnENta zhe8JRdLlDNXL4ZVSQikrBFEXomGaJiCLuHaJYNCJbD2fLnBC3krR2Dbe94jfmGM6PDg5dY.ptjh lqH1q1O2cuvsjIleI5AxQLMatn2.aOzKNWSKIGaaJH2ycpG9FT02x275VxFUUuCui6m_TOVTqdF_ i6QBI1xhldT7D.6Gifc5gwj8v7IsfvDRp0jSM2fPUNSOK_ohk9SRsKODu.CGY1mTNa2aefpP1mz9 8kFin05D_IxhygEIYq9HR16mQJfaFD2NN21R2cf.xm8ToD3TdscldeJ3Xcj99QPnsHML06yiuldF a6yihZYdBJ3I7iQ43YhQs0xUZPMgPCi5aZSfm.ZoatIPVbz2fn.lyIsxBr36DmdUtTKUUNnQLVLH i0ie9vedSb7JCUhvlZaDvvPqUQIeXpvvcEYhH.U_819h6WTzV878ekcTFl5DTu0G2qCS.yJ4SXae u_Z.BLn_T4.Zr94suv0CG3neLY0aUHVljlh9m0hpEMES.i72q5Qf9RTaX3g9HQuFsJvd9Fm3ETp0 XOkFLCvuP3h7SeZ6IEPX1julm3wF3AYMwqr.Kd3QC7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 29 Dec 2021 13:54:51 +0000 Original-Received: by kubenode518.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID c8b49c0f892997ea3332ff091405303b; Wed, 29 Dec 2021 13:54:43 +0000 (UTC) In-Reply-To: <83v8z7jzw7.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 29 Dec 2021 15:37:12 +0200") X-Mailer: WebService/1.1.19498 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:223331 Archived-At: 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.) > It sounds like an unnecessary complication to me, since before-strings > and after-strings are inherently tricky, even when they aren't > invisible. > But if you want me to look into this, you know what to do: show me a > short Lisp recipe which I could investigate. I hope this helps: (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. Thanks in advance.