From 7592c3a6e0d9dc50d818bd0499b8a074b265f666 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 2 Jan 2024 19:10:33 +0200 Subject: [PATCH] ; Fix compilation errors in completion-preview.el * lisp/completion-preview.el (mouse-wheel-up-event) (mouse-wheel-up-alternate-event, mouse-wheel-down-event) (mouse-wheel-down-alternate-event): Defvar, to avoid warnings and errors in builds --without-x. (Bug#68213) --- lisp/completion-preview.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/completion-preview.el b/lisp/completion-preview.el index da4afb8f66a..baadb4714b1 100644 --- a/lisp/completion-preview.el +++ b/lisp/completion-preview.el @@ -128,6 +128,10 @@ If this option is nil, these commands do not display any message." ;; "M-p" #'completion-preview-prev-candidate ) +(defvar mouse-wheel-up-event) +(defvar mouse-wheel-up-alternate-event) +(defvar mouse-wheel-down-event) +(defvar mouse-wheel-down-alternate-event) (defvar-keymap completion-preview--mouse-map :doc "Keymap for mouse clicks on the completion preview." "" #'completion-preview-insert -- 2.39.5