all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#65884: 29.1; prettify-symbols-unprettify-at-point documentation
@ 2023-09-12  4:20 Peter Mao
  2023-09-13 20:45 ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Mao @ 2023-09-12  4:20 UTC (permalink / raw)
  To: 65884

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-14  6:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12  4:20 bug#65884: 29.1; prettify-symbols-unprettify-at-point documentation Peter Mao
2023-09-13 20:45 ` Stefan Kangas
2023-09-14  5:46   ` Eli Zaretskii
2023-09-14  6:04     ` Stefan Kangas

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.