unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Raphael 'kena' Poss <knz@thaumogen.net>
Cc: 39390@debbugs.gnu.org
Subject: bug#39390: 28.0.50; prettify-symbols-mode confuses display when start/end faces are different
Date: Sun, 16 Feb 2020 19:46:47 +0200	[thread overview]
Message-ID: <83o8tymnlk.fsf@gnu.org> (raw)
In-Reply-To: <a2888c08-f6fd-d416-1318-eb8fcb788ea0@thaumogen.net> (message from Raphael 'kena' Poss on Tue, 4 Feb 2020 23:07:07 +0100)

> Cc: 39390@debbugs.gnu.org
> From: Raphael 'kena' Poss <knz@thaumogen.net>
> Date: Tue, 4 Feb 2020 23:07:07 +0100
> 
> On 03-02-2020 16:50, Eli Zaretskii wrote:
> > Would it be possible for you to prepare a reproducing recipe, starting
> > from "emacs -Q", and loading the minimum number of packages/features
> > required to show the problem?
> 
> Absolutely, there is not even a single package needed. The following
> test file is sufficient to reproduce (run emacs -Q without argument then
> copy/paste the entire text into the buffer before starting evaluation):

Sorry for the delay, I finally got to looking into this.

> ;; 1) evaluate the following:
> (setq prettify-symbols-unprettify-at-point t)
> (prettify-symbols-mode 1)
> ;; 2) observe: the substitution produces (setq abc (λ () t)) as
> ;;    expected.
> ;; 3) observe: moving the cursor in and out of the lambda signal
> ;;    expands the substitutions and back again.  (so far so good)
> (setq abc (lambda () t))

OK, I see that, too.

> ;; 3) evaluate the following:
> (push '("setq abc" . "@@") prettify-symbols-alist)
> (prettify-symbols-mode 0)
> (prettify-symbols-mode 1)
> ;; 4) observe immediately: the substitution has produced (@@ (λ () t))
> ;;    as expected.

Here' I see (@@ (λ () t)) instead (only one @).

> ;; 5) move the cursor into the line containing lambda, then around the
> ;;    substituted keyword then up and/or down.
> ;; 6) observe:
> ;;    - the opening parenthesis between "@@" and "λ" is
> ;;      non-deterministically rendered
> ;;    - the second "@" is improperly cleaned up when moving the cursor
> ;;      "into" the substitution

And I don't see any of these problems.  Not sure if this is related to
the fact that only one @ is displayed on my system, not 2.

I tested this in today's master branch; could it be that your build is
too old?





  reply	other threads:[~2020-02-16 17:46 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-02 14:45 bug#39390: 28.0.50; prettify-symbols-mode confuses display when start/end faces are different Raphael 'kena' Poss
2020-02-02 17:18 ` Eli Zaretskii
2020-02-02 17:56   ` Raphael 'kena' Poss
2020-02-02 18:03     ` Eli Zaretskii
2020-02-02 18:28       ` Raphael 'kena' Poss
2020-02-02 19:20         ` Eli Zaretskii
2020-02-02 20:00           ` Raphael 'kena' Poss
2020-02-02 20:09             ` Eli Zaretskii
2020-02-02 20:26               ` Raphael 'kena' Poss
2020-02-03 15:50                 ` Eli Zaretskii
2020-02-04 22:07                   ` Raphael 'kena' Poss
2020-02-16 17:46                     ` Eli Zaretskii [this message]
2020-02-16 18:37                       ` Raphael 'kena' Poss
2020-02-16 19:29                         ` Eli Zaretskii
2020-02-16 19:34                           ` Eli Zaretskii
2020-02-16 19:40                             ` Raphael 'kena' Poss
2020-02-16 20:23                               ` Eli Zaretskii
2020-02-17  2:47                                 ` Raphael 'kena' Poss
2020-02-17 11:17                                   ` Tassilo Horn
2020-02-17 12:35                                     ` Raphael 'kena' Poss
2020-02-17 15:59                                       ` Tassilo Horn
2020-02-17 16:06                                         ` Raphael 'kena' Poss
2020-02-17 17:30                                         ` Eli Zaretskii
2020-02-17 18:37                                           ` Raphael 'kena' Poss
2020-02-17 19:24                                             ` Eli Zaretskii
2020-02-17 19:28                                               ` Raphael 'kena' Poss
2020-02-17 20:14                                                 ` Eli Zaretskii
2020-02-17 17:11                                     ` Eli Zaretskii
2020-02-17 17:13                                   ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83o8tymnlk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=39390@debbugs.gnu.org \
    --cc=knz@thaumogen.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).