diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-04-15 22:15:18 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-04-15 22:15:18 +0200 |
| commit | 2e78a937413a33ac7fea0420041a1e55110f8002 (patch) | |
| tree | f2f7e6a5c003b5a8f31301f143e67b4061e3f7c0 | |
| parent | 79ed918afe0ea185829f9f6e68c8666c1ef31a60 (diff) | |
Restore compatibility with emoji.el from Emacs 29.4
Closes #417
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rw-r--r-- | lisp/transient.el | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -79,6 +79,9 @@ not (primarily) concern accessibility. inconsistent state, because we did not protect all the places where that could result in an error. 8b142031, #429 +- Restored compatibility with the ~emoji.el~ that ships with Emacs + 29.4. #417 + * v0.12.0 2026-01-01 - Fixed a regression when using the ~transient-value-preset~ class, diff --git a/lisp/transient.el b/lisp/transient.el index c5393a8..25bc8f1 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -1652,7 +1652,12 @@ symbol property.") (transient--set-layout prefix (named-let upgrade ((spec layout)) - (cond ((vectorp spec) + (cond ((and (vectorp spec) + (length= spec 3)) + ;; This format is used by emoji.el from Emacs <= 29.4. + (pcase-let ((`[,class ,args ,children] spec)) + (vector class args (mapcar #'upgrade children)))) + ((vectorp spec) (pcase-let ((`[,level ,class ,args ,children] spec)) (when level (setq args (plist-put args :level level))) |
