Skip to content

Commit 144811a

Browse files
larstveibbatsov
authored andcommitted
[Fix #3725] Use defvaralias for x-gtk-use-system-tooltips on emacs29
1 parent cd4c118 commit 144811a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cider-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,12 @@ property."
10621062

10631063

10641064
;;; Minor-mode definition
1065-
(defvar x-gtk-use-system-tooltips)
1065+
1066+
(if (and (> emacs-major-version 28)
1067+
(not (boundp 'x-gtk-use-system-tooltips)))
1068+
;; The x-gtk prefix has been dropped in Emacs 29
1069+
(defvaralias 'x-gtk-use-system-tooltips 'use-system-tooltips)
1070+
(defvar x-gtk-use-system-tooltips))
10661071

10671072
;;;###autoload
10681073
(define-minor-mode cider-mode

0 commit comments

Comments
 (0)