bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28818: kmacro stepping: void-variable kmacro-step-edit-active


From: Eli Zaretskii
Subject: bug#28818: kmacro stepping: void-variable kmacro-step-edit-active
Date: Fri, 13 Oct 2017 22:07:34 +0300

> Date: Fri, 13 Oct 2017 20:36:16 +0200
> From: charles@aurox.ch (Charles A. Roelli)
> 
> From the pretest 26.0.90:
> 
> C-x b RET                     > switch to *scratch*
> F3 abc F4                     > define a simple kmacro
> C-x C-k SPC                   > edit it
> SPC SPC SPC                   > run through it
> 
> Error in post-command-hook (kmacro-step-edit-post-command):
> (void-variable kmacro-step-edit-active)

Does the below fix this?

diff --git a/lisp/kmacro.el b/lisp/kmacro.el
index 582a58e..4abc571 100644
--- a/lisp/kmacro.el
+++ b/lisp/kmacro.el
@@ -937,7 +937,7 @@ kmacro-edit-lossage
 
 ;;; Single-step editing of keyboard macros
 
-(defvar kmacro-step-edit-active)        ;; step-editing active
+(defvar kmacro-step-edit-active nil)    ;; step-editing active
 (defvar kmacro-step-edit-new-macro)     ;; storage for new macro
 (defvar kmacro-step-edit-inserting)     ;; inserting into macro
 (defvar kmacro-step-edit-appending)     ;; append to end of macro





reply via email to

[Prev in Thread] Current Thread [Next in Thread]