bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#51659: 29.0.50; emoji.el: incorrect description for some emojis in e


From: Eli Zaretskii
Subject: bug#51659: 29.0.50; emoji.el: incorrect description for some emojis in emoji-list
Date: Sun, 07 Nov 2021 17:30:42 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: simon@polaris64.net,  51659@debbugs.gnu.org
> Date: Sun, 07 Nov 2021 16:20:17 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> It seems the correct incantation is:
> >> 
> >> (find-composition (point) (1+ (point)))
> >
> > Correct incantation for doing what?
> 
> For determining if the thing at (point) has a composition.

Then I think it's safer to narrow the buffer so it starts at point
(temporarily, for the duration of the find-composition call).  Then
your original code should work.

The way you do it the function can surprise you (because of lookback
and because LIMIT limits only where the _first_ character of the
composition may start.





reply via email to

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