I use the emacs-slack package with a Slack team that uses a large number of emoji. I've actually managed to throw a low-level REG_ESIZE error from regex-emacs.c because the compiled regular expression is too big for emacs.
For example, here's the backtrace for (emojify-string "❄"):
I see that this package already uses regexp-opt, that's good. I've created a kludge where I take only the first 2000 user emoji in emojify-set-emoji-data.
I use the
emacs-slack
package with a Slack team that uses a large number of emoji. I've actually managed to throw a low-levelREG_ESIZE
error fromregex-emacs.c
because the compiled regular expression is too big for emacs.For example, here's the backtrace for
(emojify-string "❄")
:Is there any way I can limit the number of emoji, compile down the regex, or increase the allocated regex space?