X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/6b8d1c7243b68623aac3eba9414898b8aaf590f8..3ff786247389f0eb280defb0389d690ee3610bf8:/lisp/kmacro.el diff --git a/lisp/kmacro.el b/lisp/kmacro.el index a738bb5e00..c2bedf3533 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el @@ -1,7 +1,7 @@ ;;; kmacro.el --- enhanced keyboard macros -;; Copyright (C) 2002, 2003, 2004, 2005, 2006, -;; 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +;; Free Software Foundation, Inc. ;; Author: Kim F. Storm ;; Keywords: keyboard convenience @@ -253,8 +253,9 @@ macro to be executed before appending to it." (defun kmacro-insert-counter (arg) - "Insert macro counter and increment with ARG or 1 if missing. -With \\[universal-argument], insert previous `kmacro-counter' (but do not modify counter)." + "Insert macro counter, then increment it by ARG. +Interactively, ARG defaults to 1. With \\[universal-argument], insert +previous `kmacro-counter', and do not modify counter." (interactive "P") (if kmacro-initial-counter-value (setq kmacro-counter kmacro-initial-counter-value @@ -1195,7 +1196,7 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', (setq this-command 'ignore) (setq this-command cmd) (if (memq this-command '(self-insert-command digit-argument)) - (setq last-command-char (aref keys (1- (length keys))))) + (setq last-command-event (aref keys (1- (length keys))))) (if keys (setq kmacro-step-edit-new-macro (vconcat kmacro-step-edit-new-macro keys)))) (setq kmacro-step-edit-key-index next-index)))