emacs: fix transient void-variable on pgtk builds

The pgtk Emacs build lacks HAVE_TEXT_CONVERSION so
overriding-text-conversion-style is void, but transient's .elc
compiled on X11 has static-if expanded to reference it directly.
Define the variable before transient loads when it's missing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 13:24:43 -08:00
committed by Kat Huang
parent dece70564d
commit 04f92f632d

View File

@@ -84,6 +84,11 @@
(elpaca-wait) (elpaca-wait)
;; Install transient early to prevent built-in version from loading ;; Install transient early to prevent built-in version from loading
;; Workaround: overriding-text-conversion-style is void on pgtk builds (no
;; HAVE_TEXT_CONVERSION) but transient's .elc compiled on X11 has static-if
;; expanded to reference it directly
(unless (boundp 'overriding-text-conversion-style)
(defvar overriding-text-conversion-style nil))
(use-package transient (use-package transient
:ensure (:host github :repo "magit/transient" :wait t) :ensure (:host github :repo "magit/transient" :wait t)
:demand t) :demand t)