From: Eli Zaretskii Date: Sat, 3 Mar 2018 10:41:31 +0000 (+0200) Subject: Avoid errors in flymake in builds --without-x X-Git-Tag: emacs-26.1-rc1~130 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e385599457;p=emacs.git Avoid errors in flymake in builds --without-x * lisp/progmodes/flymake.el: Require 'mwheel'. (Bug#28732) --- 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))