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: Ted Zlatanov
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 20:32:11 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Mon, 22 Jun 2020 16:00:35 -0400 Stefan Monnier <monnier@iro.umontreal.ca> 
wrote: 

>> +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)

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

Got it, fixed.

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

Got it, adjusted docs and code. Both of the above are in a single commit
on my branch now.

Ted



reply via email to

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