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 Aug 15, 2024
1 parent c698e14 commit 6bd9ecf
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 in 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 6bd9ecf

Please sign in to comment.