]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove extraneous defvars from edmacro.el
authorStefan Kangas <stefan@marxist.se>
Mon, 1 Aug 2022 20:29:53 +0000 (22:29 +0200)
committerStefan Kangas <stefan@marxist.se>
Tue, 2 Aug 2022 08:21:22 +0000 (10:21 +0200)
* lisp/edmacro.el (edmacro-fix-menu-commands): Remove extraneous
defvars; they are already declared above.

lisp/edmacro.el

index bdc50c5885aa6f0627d0bb00852428eaecdee458..efffab9b30bce073cd6070759658ecc9783efee5 100644 (file)
@@ -251,6 +251,7 @@ If VERBOSE is `1', put everything on one line.  If VERBOSE is omitted
 or nil, use a compact 80-column format."
   (and macro (symbolp macro) (setq macro (symbol-function macro)))
   (edmacro-format-keys (or macro last-kbd-macro) verbose))
+
 \f
 ;;; Commands for *Edit Macro* buffer.
 
@@ -446,6 +447,7 @@ doubt, use whitespace."
   (interactive)
   (error "This mode can be enabled only by `edit-kbd-macro'"))
 (put 'edmacro-mode 'mode-class 'special)
+
 \f
 ;;; Formatting a keyboard macro as human-readable text.
 
@@ -637,12 +639,8 @@ This function assumes that the events can be stored in a string."
 (defun edmacro-fix-menu-commands (macro &optional noerror)
   (if (vectorp macro)
       (let (result)
-        ;; Not preloaded in without-x builds.
+        ;; Not preloaded in a --without-x build.
         (require 'mwheel)
-        (defvar mouse-wheel-down-event)
-        (defvar mouse-wheel-left-event)
-        (defvar mouse-wheel-right-event)
-        (defvar mouse-wheel-up-event)
        ;; Make a list of the elements.
        (setq macro (append macro nil))
        (dolist (ev macro)
@@ -669,6 +667,7 @@ This function assumes that the events can be stored in a string."
        ;; Reverse them again and make them back into a vector.
        (vconcat (nreverse result)))
     macro))
+
 \f
 ;;; Parsing a human-readable keyboard macro.