GNU bug report logs - #65884
29.1; prettify-symbols-unprettify-at-point documentation

Previous Next

Package: emacs;

Reported by: Peter Mao <peter.mao <at> gmail.com>

Date: Tue, 12 Sep 2023 04:21:02 UTC

Severity: normal

Found in version 29.1

Fixed in version 29.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65884 in the body.
You can then email your comments to 65884 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65884; Package emacs. (Tue, 12 Sep 2023 04:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Mao <peter.mao <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 12 Sep 2023 04:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Mao <peter.mao <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.1; prettify-symbols-unprettify-at-point documentation
Date: Mon, 11 Sep 2023 21:20:25 -0700
[Message part 1 (text/plain, inline)]
I just learned about prettify-symbols mode and
prettify-symbols-unprettify-at-point from Tony Zorman's recent blog post,
so I tried it out, unsuccessfully at first...

Recipe from emacs -Q:

In the *scratch* buffer:
M-x prettify-symbols-mode
(setq prettify-symbols-unprettify-at-point t)
C-x C-e ;; to evaluate the setq
lambda  ;; the symbol λ appears
C-b

At this point, I'm expecting the symbol λ to deprettify back to
"lambda", but it does not.

Looking in the code in prog-mode.el, I see that the unprettification
needs to be set **before** the minor mode is activated in the buffer.
Perhaps this should be pointed out in the documentation?
[Message part 2 (text/html, inline)]

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Wed, 13 Sep 2023 20:47:02 GMT) Full text and rfc822 format available.

Notification sent to Peter Mao <peter.mao <at> gmail.com>:
bug acknowledged by developer. (Wed, 13 Sep 2023 20:47:02 GMT) Full text and rfc822 format available.

Message #10 received at 65884-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Peter Mao <peter.mao <at> gmail.com>
Cc: 65884-done <at> debbugs.gnu.org
Subject: Re: bug#65884: 29.1;
 prettify-symbols-unprettify-at-point documentation
Date: Wed, 13 Sep 2023 13:45:47 -0700
Version: 29.2

Peter Mao <peter.mao <at> gmail.com> writes:

> I just learned about prettify-symbols mode and prettify-symbols-unprettify-at-point from Tony Zorman's recent blog post, so I tried it out, unsuccessfully
> at first...
>
> Recipe from emacs -Q:
>
> In the *scratch* buffer:
> M-x prettify-symbols-mode
> (setq prettify-symbols-unprettify-at-point t)
> C-x C-e ;; to evaluate the setq
> lambda  ;; the symbol λ appears
> C-b
>
> At this point, I'm expecting the symbol λ to deprettify back to
> "lambda", but it does not.
>
> Looking in the code in prog-mode.el, I see that the unprettification
> needs to be set **before** the minor mode is activated in the buffer.
> Perhaps this should be pointed out in the documentation?

Thanks, I've now documented this on emacs-29.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65884; Package emacs. (Thu, 14 Sep 2023 05:48:02 GMT) Full text and rfc822 format available.

Message #13 received at 65884 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: peter.mao <at> gmail.com, 65884 <at> debbugs.gnu.org
Subject: Re: bug#65884: 29.1;
 prettify-symbols-unprettify-at-point documentation
Date: Thu, 14 Sep 2023 08:46:57 +0300
> Resent-To: bug-gnu-emacs <at> gnu.org
> Cc: 65884-done <at> debbugs.gnu.org
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Wed, 13 Sep 2023 13:45:47 -0700
> 
> Version: 29.2
> 
> Peter Mao <peter.mao <at> gmail.com> writes:
> 
> > I just learned about prettify-symbols mode and prettify-symbols-unprettify-at-point from Tony Zorman's recent blog post, so I tried it out, unsuccessfully
> > at first...
> >
> > Recipe from emacs -Q:
> >
> > In the *scratch* buffer:
> > M-x prettify-symbols-mode
> > (setq prettify-symbols-unprettify-at-point t)
> > C-x C-e ;; to evaluate the setq
> > lambda  ;; the symbol λ appears
> > C-b
> >
> > At this point, I'm expecting the symbol λ to deprettify back to
> > "lambda", but it does not.
> >
> > Looking in the code in prog-mode.el, I see that the unprettification
> > needs to be set **before** the minor mode is activated in the buffer.
> > Perhaps this should be pointed out in the documentation?
> 
> Thanks, I've now documented this on emacs-29.

Did you forget to push?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65884; Package emacs. (Thu, 14 Sep 2023 06:05:01 GMT) Full text and rfc822 format available.

Message #16 received at 65884 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: peter.mao <at> gmail.com, 65884 <at> debbugs.gnu.org
Subject: Re: bug#65884: 29.1;
 prettify-symbols-unprettify-at-point documentation
Date: Wed, 13 Sep 2023 23:04:17 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> Did you forget to push?

Yes, sorry.  See commit 01e8a0c6cbf.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Oct 2023 11:24:29 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.