Skip to content

Commit

Permalink
[Fix #3725] Use defvaralias for x-gtk-use-system-tooltips on emacs29
Browse files Browse the repository at this point in the history
  • Loading branch information
larstvei committed Jul 20, 2024
1 parent c698e14 commit 87d1c71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cider-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 Emacs 29
(defvaralias 'x-gtk-use-system-tooltips 'use-system-tooltips)
(defvar x-gtk-use-system-tooltips))

;;;###autoload
(define-minor-mode cider-mode
Expand Down

0 comments on commit 87d1c71

Please sign in to comment.