]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug #17615 with C-g during macro definition.
authorEli Zaretskii <eliz@gnu.org>
Sun, 1 Jun 2014 15:19:14 +0000 (18:19 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 1 Jun 2014 15:19:14 +0000 (18:19 +0300)
 lisp/simple.el (keyboard-quit): Force update of mode lines, to remove
 the "Def" indicator, if we were defining a macro.

lisp/ChangeLog
lisp/simple.el

index 08990e03e7aec0e81210a74c17f18266179c7185..8e3810f907b857189a04776acf484a146028f897 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * simple.el (keyboard-quit): Force update of mode lines, to remove
+       the "Def" indicator, if we were defining a macro.  (Bug#17615)
+
 2014-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * minibuffer.el (minibuffer-force-complete-and-exit):
index 7bcd6cf7e719e986bc5aec2422018baf2cb46432..4cc6e56aef81515d63a233aa125f0b91569c9f0c 100644 (file)
@@ -6598,6 +6598,10 @@ At top-level, as an editor command, this simply beeps."
     (deactivate-mark))
   (if (fboundp 'kmacro-keyboard-quit)
       (kmacro-keyboard-quit))
+  ;; Force the next redisplay cycle to remove the "Def" indicator from
+  ;; all the mode lines.
+  (if defining-kbd-macro
+      (force-mode-line-update t))
   (setq defining-kbd-macro nil)
   (let ((debug-on-quit nil))
     (signal 'quit nil)))