all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [prettify-symbols-mode] Two consecutive matches don't work?
@ 2022-05-18  9:32 Joost
  2022-05-18 10:07 ` Robert Pluim
  2022-05-18 11:56 ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Joost @ 2022-05-18  9:32 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm dealing with some `.xml` files that contain data which uses the sequence `<<!` as some sort of operator. Because it's XML, the LESS-THAN sign needs to be encoded as `&lt;`, yielding `&lt;&lt;!`.

So I thought this would be the ideal use case for `prettify-symbols-mode`. I added `("&lt;" . ?<)` to `prettify-symbols-alist` and activated the mode.

Unfortunately, only the first `&lt;` in each sequence is prettified. This seems to be due to the fact that the second `&lt;` is followed by the exclamation mark: if I insert a space in between, prettification works.

Is there any way to remedy this?

TIA

-- 
Joost Kremers
Life has its moments



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

end of thread, other threads:[~2022-05-19 19:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-18  9:32 [prettify-symbols-mode] Two consecutive matches don't work? Joost
2022-05-18 10:07 ` Robert Pluim
2022-05-18 10:54   ` Tassilo Horn
2022-05-19 17:46     ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-05-19 19:09       ` Tassilo Horn
2022-05-18 11:56 ` Eli Zaretskii
2022-05-18 12:28   ` Robert Pluim
2022-05-18 20:01     ` Joost Kremers

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.