From 04f92f632de413a57c550b543cc2e131851dc5ce Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 7 Feb 2026 13:24:43 -0800 Subject: [PATCH] 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 --- dotfiles/emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 2fb293f2..c05817f3 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -84,6 +84,11 @@ (elpaca-wait) ;; 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 :ensure (:host github :repo "magit/transient" :wait t) :demand t)