aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJonas Bernoulli2023-02-01 20:25:16 +0100
committerJonas Bernoulli2023-02-14 20:42:48 +0100
commitaf94369f90a5d3ad44dcc80d205665ccb2d41995 (patch)
treefc214ed18e73cd627b057588c62b558c6e1de72c /java
parent82133dea0d021eb2e395d9265f0cfe58822f2c57 (diff)
downloademacs-af94369f90a5d3ad44dcc80d205665ccb2d41995.tar.gz
emacs-af94369f90a5d3ad44dcc80d205665ccb2d41995.zip
Rewrite emoji's usage of transient
* lisp/international/emoji.el: (emoji--done-derived): Remove variable. (emoji-insert, emoji-recent, emoji-search, emoji-list-select): Define using 'transient-define-prefix'. Use a base suffix group whose value is calculated dynamically. (emoji--setup-prefix, emoji--setup-suffixes, emoji-group-description): New functions used to dynamically calculate suffixes. (emoji--narrow): New suffix class, used to pass state to recursive, narrowed invocations of the prefix command the user initially invoked. (emoji-insert-glyph): New suffix command that is used for all glyphs that have no derivations. Previously a separate command was define for each glyph. (emoji--fontify-glyph): Replace 'inhibit-derived' argument with 'done-derived' argument. (emoji--define-transient): Remove function. (emoji--layout): New function, replacing 'emoji--define-transient'. Return the suffixes in 'define-transient-prefix' format. Unlike the replaced function, do not define any new commands, instead use either the current prefix command or 'emoji-insert-glyph'. (emoji--recent-transient): Remove function. (emoji--char-sequence): New function. (emoji--add-recent): Remove all text properties from glyph. (emoji--choose-emoji): Remove function.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions