emacs-devel
[Top][All Lists]
Advanced

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

RE: [External] : Re: Faces for strong, emph and friends in Info?


From: Drew Adams
Subject: RE: [External] : Re: Faces for strong, emph and friends in Info?
Date: Mon, 8 Apr 2024 19:32:46 +0000

> > +      (while (re-search-forward "\\([*_]\\)\\([^*_\n]+\\)\\([*_]\\)"
> nil t)
> 
> This is too fragile, I think.  It matches stuff like "*Note foo_",
> which can happen in cross-references, for example.  Also, what if
> @emph or @strong spans a newline?

See my mail about this.
___

I think it's good to let users decide
how tight/loose they want matching to
be - user option(s) for the regexp(s).
___

IMO, _..._ and *...* should be handled
separately.

Definitely don't let _...* and *..._ be
taken as emphasis of any kind.

And maybe you need to decide whether you
intend to allow combining the two: *_..._*
or _*...*_.  (Does texinfo allow/produce
such combinations?)



reply via email to

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