]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix errors in kmacro.el post-command-hook
authorEli Zaretskii <eliz@gnu.org>
Mon, 16 Oct 2017 16:36:06 +0000 (19:36 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 16 Oct 2017 16:36:06 +0000 (19:36 +0300)
* lisp/kmacro.el (kmacro-step-edit-active): Initialize to nil to
avoid 'void-variable' errors.  (Bug#28818)
* test/lisp/kmacro-tests.el
(kmacro-tests-step-edit-cleans-up-hook): Now succeeds.  (Bug#18708)

lisp/kmacro.el
test/lisp/kmacro-tests.el

index 582a58eda1c6736c1da1efb9e8ae8aef3bccc8c4..4abc571db44ce9f7e45d3df596e385f47cfa9d1b 100644 (file)
@@ -937,7 +937,7 @@ without repeating the prefix."
 
 ;;; 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
index 9f3eeafe486dbce4edd4f04f69a21a595cc0bbca..690d5029231153caa7f568227872d37fa287de21 100644 (file)
@@ -818,7 +818,6 @@ This is a regression for item 7 in Bug#24991."
 
 (kmacro-tests-deftest kmacro-tests-step-edit-cleans-up-hook ()
   "Step-editing properly cleans up `post-command-hook.' (Bug #18708)"
-  (:expected-result :failed)
   (let (post-command-hook)
     (setq-local post-command-hook '(t))
     (kmacro-tests-run-step-edit "x"