all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Clément Pit-Claudel" <cpitclaudel@gmail.com>, 40687@debbugs.gnu.org
Subject: bug#40687: Missing right border on composed text used in 'display property
Date: Thu, 23 Apr 2020 22:07:21 +0200	[thread overview]
Message-ID: <87h7xarmo6.fsf@gmx.net> (raw)
In-Reply-To: <83d07ycifa.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 Apr 2020 18:48:09 +0300")

On Thu, 23 Apr 2020 18:48:09 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Clément Pit-Claudel <cpitclaudel@gmail.com>
>> Date: Fri, 17 Apr 2020 15:44:36 -0400
>> 
>> 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)))
>
> Thanks, should be fixed now.
>
> FTR, a recipe to test more fully display of composed text with a :box
> face is below.  I found quite a few problems with this, especially
> when the text in the boxed face ends with a composed character.  They
> should be fixed now on the master branch.  I tested this fully only on
> MS-Windows; could someone please use the recipe below to verify the
> display looks correctly also on X and on NS?

I'm on GNU/Linux and confirm that with your patch all the buttons
produced by your recipe display correctly, i.e., with the right border.

Steve Berman





  reply	other threads:[~2020-04-23 20:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-17 19:44 bug#40687: Missing right border on composed text used in 'display property Clément Pit-Claudel
2020-04-17 20:33 ` Stephen Berman
2020-04-17 21:11   ` Clément Pit-Claudel
2020-04-23 15:49   ` Eli Zaretskii
2020-04-23 15:48 ` Eli Zaretskii
2020-04-23 20:07   ` Stephen Berman [this message]
2020-04-23 20:25     ` Clément Pit-Claudel
2020-04-24  6:43       ` Eli Zaretskii
2020-04-24  6:33     ` Eli Zaretskii
2020-04-24 12:10   ` Robert Pluim
2020-04-24 12:26     ` Eli Zaretskii
2020-04-24 14:01       ` Clément Pit-Claudel
2020-04-24 14:06         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7xarmo6.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=40687@debbugs.gnu.org \
    --cc=cpitclaudel@gmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.