From 144811a819b469cd797c88ec1f24119cfa8454af Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 20 Jul 2024 15:17:47 +0200 Subject: [PATCH] [Fix #3725] Use defvaralias for x-gtk-use-system-tooltips on emacs29 --- cider-mode.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cider-mode.el b/cider-mode.el index ceea16a42..88278276c 100644 --- a/cider-mode.el +++ b/cider-mode.el @@ -1062,7 +1062,12 @@ property." ;;; Minor-mode definition -(defvar x-gtk-use-system-tooltips) + +(if (and (> emacs-major-version 28) + (not (boundp 'x-gtk-use-system-tooltips))) + ;; The x-gtk prefix has been dropped in Emacs 29 + (defvaralias 'x-gtk-use-system-tooltips 'use-system-tooltips) + (defvar x-gtk-use-system-tooltips)) ;;;###autoload (define-minor-mode cider-mode