]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid byte-compilation warnings in edmacro.el
authorEli Zaretskii <eliz@gnu.org>
Sat, 20 Nov 2021 11:00:42 +0000 (13:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Nov 2021 11:00:42 +0000 (13:00 +0200)
* lisp/edmacro.el (mouse-wheel-down-event, mouse-wheel-up-event)
(mouse-wheel-right-event, mouse-wheel-left-event): Defvar them, to
avoid compilation warnings in --without-x builds.

lisp/edmacro.el

index e90b3a006efb43fda1250a281ea8dd66b4238151..42c164a08816d9dabf8101822e989c92f013caa3 100644 (file)
@@ -601,6 +601,12 @@ This function assumes that the events can be stored in a string."
              (setf (aref seq i) (logand (aref seq i) 127))))
   seq)
 
+;; These are needed in a --without-x build.
+(defvar mouse-wheel-down-event)
+(defvar mouse-wheel-up-event)
+(defvar mouse-wheel-right-event)
+(defvar mouse-wheel-left-event)
+
 (defun edmacro-fix-menu-commands (macro &optional noerror)
   (if (vectorp macro)
       (let (result)