From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Newsgroups: gmane.emacs.bugs Subject: bug#40687: Missing right border on composed text used in 'display property Date: Fri, 17 Apr 2020 17:11:41 -0400 Message-ID: <38186fd8-f181-4299-660b-252f7f8c1e23@gmail.com> References: <25b96bf7-a166-9d82-351d-1cfea7cec4f2@gmail.com> <875zdxvolv.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115645"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: 40687@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 17 23:12:18 2020 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 1jPYHa-000Tzs-99 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 23:12:18 +0200 Original-Received: from localhost ([::1]:52010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPYHZ-0007YP-Bc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 17:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37643) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPYHN-0007YD-V9 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 17:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPYHM-0007Ic-0L for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 17:12:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58485) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPYHK-0007HG-DR for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 17:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPYHK-0000Uj-8I for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Apr 2020 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40687 X-GNU-PR-Package: emacs Original-Received: via spool by 40687-submit@debbugs.gnu.org id=B40687.15871579111879 (code B ref 40687); Fri, 17 Apr 2020 21:12:02 +0000 Original-Received: (at 40687) by debbugs.gnu.org; 17 Apr 2020 21:11:51 +0000 Original-Received: from localhost ([127.0.0.1]:41797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPYH8-0000UF-Qw for submit@debbugs.gnu.org; Fri, 17 Apr 2020 17:11:51 -0400 Original-Received: from mail-qk1-f173.google.com ([209.85.222.173]:36293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPYH6-0000U2-Rj for 40687@debbugs.gnu.org; Fri, 17 Apr 2020 17:11:49 -0400 Original-Received: by mail-qk1-f173.google.com with SMTP id l25so4030187qkk.3 for <40687@debbugs.gnu.org>; Fri, 17 Apr 2020 14:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Qr4aKE8kx5EQW5FUokjwP+xsNGmY5zj4Wv2fXjyFl7o=; b=uy+fWXldwqkAKKkU6twUR5/Ptdfhsw5w5UiKBmumW30u7e4lIX8rncv3CaqapRHTEh sVqLVsqnvwGdqM+n141PAt3U1/MTaXXYVs7pftL8i+bV3gnQsO/wp5Y+1EtW2MG3hZKH 5yYfimNdzpSGDRqM6540TMcZ51AXMrhDRmvX0GQR8CML3aLlwpz4zX5zCIpM3KMMdGLM JXOV2ije3zl7D0HY9Oez25iTribaWSRddlmrvlmCQquGAON3AKjQM4o8cw5Oxln85K/B 1v1OhSPvhnx9JyHWjSSHSM6kp9JKKijKGhJe9tcqgbWydQaDkz/CxuggJC1tWV5/Cjja g9YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Qr4aKE8kx5EQW5FUokjwP+xsNGmY5zj4Wv2fXjyFl7o=; b=q0v8IHwP+Ki+pnVvfblF7fzKVSvC5h2AbtgKTp7vwHbW0H8hygX2kXu9bPfJsTlLE5 fL1MTEAB2wdZihH42O78qIH0ksBD+obagocIpoI1zxDhJfYV3cYaxggqg9y+lvgRyAOj MhM2Su7FWSyrukjncgtT6TWy5MS/foP+wAm5UBaRcRIKkdZC+9eUSrlUjJ885rCZ9bo3 Q3nDYIcaCORX6k+EDmSazVza5GBIq2BVBwPNyqwWPzYA+it4Pji762sJ7QONBPvZC2ks gGol+QkLaqEjqNjPUbL8kM5CmdFr4Do49P85+pvSjcaPTWYVDi7lDL5g41HQPd9cGbz1 Gu5w== X-Gm-Message-State: AGi0PuYNw895DhuV0PUbuc7eipnu6YC1tsYyjW8w+2RWsd6zGzdBWI3S f/QElI+tfQil19xMZy7je8oYE2X4 X-Google-Smtp-Source: APiQypJP1hLyFktXwyC2ABcmeb3zs1f/42vAp3+6FBjiMGLY07jNGg6V+RXvSdrSajwaP1hhm00s0g== X-Received: by 2002:a37:a407:: with SMTP id n7mr5430463qke.235.1587157903191; Fri, 17 Apr 2020 14:11:43 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:da2:5c19:86dd:363e? ([2601:184:4180:66e7:da2:5c19:86dd:363e]) by smtp.googlemail.com with ESMTPSA id o187sm17747459qkb.40.2020.04.17.14.11.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 14:11:42 -0700 (PDT) In-Reply-To: <875zdxvolv.fsf@gmx.net> Content-Language: en-GB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:178541 Archived-At: On 17/04/2020 16.33, Stephen Berman wrote: > On Fri, 17 Apr 2020 15:44:36 -0400 Clément Pit-Claudel wrote: > >> Hi all, >> >> With the following sample code, I observe the results shown in the attached image. The first two "ab" have a border, but the last one only has three-quarters of its border: the right side is missing. >> >> (defface my-button >> '((t :box(:line-width -4 :style released-button) >> :background"lightgrey":foreground"black")) >> "Button face") >> >> (with-current-buffer (get-buffer-create "button") >> (insert "\n") >> (insert (propertize "ab" 'face 'my-button)) >> (insert " ") >> (insert (propertize (compose-chars ?a '(Br . Bl) ?b) 'face 'my-button)) >> (insert " ") >> (insert (propertize "ab" 'display (compose-chars ?a '(Br . Bl) ?b) 'face 'my-button)) >> (insert " ") >> (pop-to-buffer-same-window (current-buffer))) > > I see the same thing, but I noticed that when you add a space to > composed characters of the display property, ie.: > (compose-chars ?a '(Br . Bl) ?b ? ) > then right side border appears. IIUC, this space is read as the number 32 and considered as the encoded version of the rule (tr . br). Indeed, this gives the same result: (insert (propertize "ab" 'display (compose-chars ?a '(Bc . Bc) ?b '(tr . br)) 'face 'my-button)) But is that even a valid composition rule?It seems to break with non-trivial composition, like the following: (insert (propertize "ab" 'display (compose-chars ?a '(Bc . Bc) ?b ? ) 'face 'my-button)) (instead of being stacked, a and b are side by side)