all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Mao <peter.mao@gmail.com>
To: 65884@debbugs.gnu.org
Subject: bug#65884: 29.1; prettify-symbols-unprettify-at-point documentation
Date: Mon, 11 Sep 2023 21:20:25 -0700	[thread overview]
Message-ID: <CAEK3s1OiEDq_TN_tqyw86UD9EKS9-XJRG7Cex2hx4YOfrQ3wqA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 795 bytes --]

             reply	other threads:[~2023-09-12  4:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12  4:20 Peter Mao [this message]
2023-09-13 20:45 ` bug#65884: 29.1; prettify-symbols-unprettify-at-point documentation Stefan Kangas
2023-09-14  5:46   ` Eli Zaretskii
2023-09-14  6:04     ` Stefan Kangas

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=CAEK3s1OiEDq_TN_tqyw86UD9EKS9-XJRG7Cex2hx4YOfrQ3wqA@mail.gmail.com \
    --to=peter.mao@gmail.com \
    --cc=65884@debbugs.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.