diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-04-23 00:06:22 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-04-23 00:06:22 +0200 |
| commit | 569b9656d6a2c792b07d3980796c76b121c9737e (patch) | |
| tree | a17c8257dd413c7ba6a2c86c0c17fc930fb6496d /lisp/magit-section.el | |
| parent | fe7cd1e56b4cf220d1640647ca8e7d66e13de12a (diff) | |
Add kludge to verify that a recent transient is loaded
Diffstat (limited to 'lisp/magit-section.el')
| -rw-r--r-- | lisp/magit-section.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/magit-section.el b/lisp/magit-section.el index f9d7d8e..671bdc8 100644 --- a/lisp/magit-section.el +++ b/lisp/magit-section.el @@ -96,6 +96,14 @@ similar defect." (unless (fboundp 'seq-keep) (magit--display-core-upgrade-instructions 'seq "2.24")) +;; Likewise, we require a recent `transient'. +(when (and (featurep 'transient) + (not (fboundp 'transient--string-pixel-width))) + (unload-feature 'transient 'force)) +(require 'transient) +(unless (fboundp 'transient--string-pixel-width) + (magit--display-core-upgrade-instructions 'transient "0.13")) + (require 'cursor-sensor) (require 'format-spec) |
