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 | |
| parent | fe7cd1e56b4cf220d1640647ca8e7d66e13de12a (diff) | |
Add kludge to verify that a recent transient is loaded
| -rw-r--r-- | lisp/magit-section.el | 8 | ||||
| -rw-r--r-- | lisp/magit.el | 2 |
2 files changed, 9 insertions, 1 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) diff --git a/lisp/magit.el b/lisp/magit.el index 2c35cfb..74527c6 100644 --- a/lisp/magit.el +++ b/lisp/magit.el @@ -25,7 +25,7 @@ ;; (llama "1.0") ;; (magit-section "4.5") ;; (seq "2.24") -;; (transient "0.12") +;; (transient "0.13") ;; (with-editor "3.4")) ;; SPDX-License-Identifier: GPL-3.0-or-later |
