Discussion:
message-smileys boundaries
Garreau\, Alexandre
2018-10-14 23:35:17 UTC
Permalink
Hi,

I’ve loved to see message-smileys in effect and how it allows me to keep
show-paren working when I’m writing texts with smileys (I didn’t think
it would be that simple and straightforward), however, I think it would
be interesting to make them regexps, or to put \\< and \\> somewhere
because currently, if I define the smiley “x)”, it means if the last
word in a parenthesis end with “x”, the parenthesis is not matched,
while if I use “ x)”, and the smiley “x)” is at the beginning of a line,
the smiley is not matched…

Are there other solutions?
Marcin Borkowski
2018-10-20 08:03:20 UTC
Permalink
Post by Garreau\, Alexandre
Hi,
I’ve loved to see message-smileys in effect and how it allows me to keep
show-paren working when I’m writing texts with smileys (I didn’t think
it would be that simple and straightforward), however, I think it would
be interesting to make them regexps, or to put \\< and \\> somewhere
because currently, if I define the smiley “x)”, it means if the last
word in a parenthesis end with “x”, the parenthesis is not matched,
while if I use “ x)”, and the smiley “x)” is at the beginning of a line,
the smiley is not matched…
Are there other solutions?
Would that be useful?

http://mbork.pl/2015-10-17_xkcd-541_mode

Best,
--
Marcin Borkowski
http://mbork.pl
t***@tuxteam.de
2018-10-20 08:38:45 UTC
Permalink
Post by Marcin Borkowski
Hi,
I’ve loved to see message-smileys [...]
Are there other solutions?
Would that be useful?
http://mbork.pl/2015-10-17_xkcd-541_mode
I must admit that I've just cheated myself around the problem,
just ignoring the occasional irritation; most probably this is
what I'm going to do in the future too. Nevertheless... I enjoyed
your mode (and the corresponding xkcd) enormously.

Thanks for the good laugh :-D

Cheers
-- t
Garreau\, Alexandre
2018-10-21 02:53:02 UTC
Permalink
Post by Marcin Borkowski
Post by Garreau\, Alexandre
Hi,
I’ve loved to see message-smileys in effect and how it allows me to keep
show-paren working when I’m writing texts with smileys (I didn’t think
it would be that simple and straightforward), however, I think it would
be interesting to make them regexps, or to put \\< and \\> somewhere
because currently, if I define the smiley “x)”, it means if the last
word in a parenthesis end with “x”, the parenthesis is not matched,
while if I use “ x)”, and the smiley “x)” is at the beginning of a line,
the smiley is not matched…
Are there other solutions?
Would that be useful?
http://mbork.pl/2015-10-17_xkcd-541_mode
Maybe, afaik it is through matching and fontification too that
message-smileys work right? so if what you were trying to say is
tweaking the current implementation so to support, too, one unique
regexp (btw his regexp suffer from just the same problem with the letter
“B”), maybe made with regexp-opt or rx, I’ll try when I have more time,
but not now then.

Loading...