emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scratch/tzz/auth-source-reveal-mode f16a4c8 2/3: Support regular exp


From: Stefan Monnier
Subject: Re: scratch/tzz/auth-source-reveal-mode f16a4c8 2/3: Support regular expressions and API for prettify-symbols-mode
Date: Mon, 22 Jun 2020 16:00:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> +For example: \"abc[123]\" matching \"abc1\", \"abc2\", or
> +\"abc3\" could be mapped to the Unicode WORLD MAP. Note again the
> +IDENTIFIER is an arbitrary Lisp symbol.
> + (my-worldmap \"abc[123]\" 128506)

I think using ?\U0001f5fa might be "natural" for a unicode char.

More importantly, I think we should accommodate cases where the regexp
needs to match some of the context, i.e. where only some submatch needs
to be prettified.
E.g. we could say that the text affected is either submatch 1 or
submatch 0 (where submatch 0 is used if there's (match-end 1) is nil).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]