From e385599457497d0ad1a103363eec73e09058c24a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 3 Mar 2018 12:41:31 +0200 Subject: [PATCH] Avoid errors in flymake in builds --without-x * lisp/progmodes/flymake.el: Require 'mwheel'. (Bug#28732) --- lisp/progmodes/flymake.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 58bad8f366e..40eacdd1888 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -48,6 +48,10 @@ (require 'thingatpt) ; end-of-thing (require 'warnings) ; warning-numeric-level, display-warning (require 'compile) ; for some faces +;; We need the next require to avoid compiler warnings and run-time +;; errors about mouse-wheel-up/down-event in builds --without-x, where +;; mwheel is not preloaded. +(require 'mwheel) ;; when-let*, if-let*, hash-table-keys, hash-table-values: (eval-when-compile (require 'subr-x)) -- 2.39.5