aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-01-09 04:44:15 +0000
committerGlenn Morris2009-01-09 04:44:15 +0000
commit8989a9203f73473569ddf83e505a846609def407 (patch)
tree2dcc35b588e98388ef66ef39157e9d17290df217
parenta4d9b7bca3dc69efe89eecbd81ed96859f7cd818 (diff)
downloademacs-8989a9203f73473569ddf83e505a846609def407.tar.gz
emacs-8989a9203f73473569ddf83e505a846609def407.zip
Replace last-command-char with last-command-event.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/allout.el10
-rw-r--r--lisp/autoarg.el2
-rw-r--r--lisp/complete.el2
-rw-r--r--lisp/ediff-mult.el4
-rw-r--r--lisp/ediff-util.el26
-rw-r--r--lisp/electric.el2
-rw-r--r--lisp/hexl.el2
-rw-r--r--lisp/isearch.el7
-rw-r--r--lisp/isearchb.el13
-rw-r--r--lisp/kmacro.el2
-rw-r--r--lisp/minibuffer.el2
-rw-r--r--lisp/repeat.el12
-rw-r--r--lisp/simple.el10
-rw-r--r--lisp/skeleton.el4
-rw-r--r--lisp/terminal.el2
-rw-r--r--lisp/tmm.el2
-rw-r--r--lisp/wdired.el7
18 files changed, 60 insertions, 53 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cc70c82f9f4..6f6f5bebf3e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,10 @@
3 * subr.el (last-input-char, last-command-char): 3 * subr.el (last-input-char, last-command-char):
4 Move here from src/keyboard.c. 4 Move here from src/keyboard.c.
5 5
6 * allout.el, autoarg.el, complete.el, ediff-mult.el, ediff-util.el:
7 * electric.el, hexl.el, isearch.el, isearchb.el, kmacro.el:
8 * minibuffer.el, repeat.el, simple.el, skeleton.el, terminal.el, tmm.el:
9 * wdired.el:
6 * calc/calc-aent.el, calc/calc-ext.el, calc/calc-incom.el: 10 * calc/calc-aent.el, calc/calc-ext.el, calc/calc-incom.el:
7 * calc/calc-keypd.el, calc/calc-misc.el, calc/calc-prog.el: 11 * calc/calc-keypd.el, calc/calc-misc.el, calc/calc-prog.el:
8 * calc/calc-sel.el, calc/calc-store.el, calc/calc-stuff.el: 12 * calc/calc-sel.el, calc/calc-store.el, calc/calc-stuff.el:
diff --git a/lisp/allout.el b/lisp/allout.el
index 354ab84b9db..98f729c93a9 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -3392,13 +3392,13 @@ this-command accordingly.
3392 3392
3393Returns the qualifying command, if any, else nil." 3393Returns the qualifying command, if any, else nil."
3394 (interactive) 3394 (interactive)
3395 (let* ((key-string (if (numberp last-command-char) 3395 (let* ((key-string (if (numberp last-command-event)
3396 (char-to-string last-command-char))) 3396 (char-to-string last-command-event)))
3397 (key-num (cond ((numberp last-command-char) last-command-char) 3397 (key-num (cond ((numberp last-command-event) last-command-event)
3398 ;; for XEmacs character type: 3398 ;; for XEmacs character type:
3399 ((and (fboundp 'characterp) 3399 ((and (fboundp 'characterp)
3400 (apply 'characterp (list last-command-char))) 3400 (apply 'characterp (list last-command-event)))
3401 (apply 'char-to-int (list last-command-char))) 3401 (apply 'char-to-int (list last-command-event)))
3402 (t 0))) 3402 (t 0)))
3403 mapped-binding) 3403 mapped-binding)
3404 3404
diff --git a/lisp/autoarg.el b/lisp/autoarg.el
index 924fdd97ba1..13be30e1808 100644
--- a/lisp/autoarg.el
+++ b/lisp/autoarg.el
@@ -67,7 +67,7 @@
67(defun autoarg-kp-digit-argument (arg) 67(defun autoarg-kp-digit-argument (arg)
68 "Part of the numeric argument for the next command, like `digit-argument'." 68 "Part of the numeric argument for the next command, like `digit-argument'."
69 (interactive "P") 69 (interactive "P")
70 (let ((digit (cdr (assq last-command-char autoarg-kp-digits)))) 70 (let ((digit (cdr (assq last-command-event autoarg-kp-digits))))
71 (cond ((integerp arg) 71 (cond ((integerp arg)
72 (setq prefix-arg (+ (* arg 10) 72 (setq prefix-arg (+ (* arg 10)
73 (if (< arg 0) (- digit) digit)))) 73 (if (< arg 0) (- digit) digit))))
diff --git a/lisp/complete.el b/lisp/complete.el
index ecffb660a26..207b7f549d8 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -290,7 +290,7 @@ See `PC-complete' for details.
290This can be bound to other keys, like `-' and `.', if you wish." 290This can be bound to other keys, like `-' and `.', if you wish."
291 (interactive) 291 (interactive)
292 (if (eq (PC-was-meta-key) PC-meta-flag) 292 (if (eq (PC-was-meta-key) PC-meta-flag)
293 (if (eq last-command-char ? ) 293 (if (eq last-command-event ? )
294 (minibuffer-complete-word) 294 (minibuffer-complete-word)
295 (self-insert-command 1)) 295 (self-insert-command 1))
296 (self-insert-command 1) 296 (self-insert-command 1)
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el
index 41f3a157100..ebbfb1ce1c7 100644
--- a/lisp/ediff-mult.el
+++ b/lisp/ediff-mult.el
@@ -2344,10 +2344,10 @@ If this is a session registry buffer then just bury it."
2344This is used only for sessions that involve 2 or 3 files at the same time. 2344This is used only for sessions that involve 2 or 3 files at the same time.
2345ACTION is an optional argument that can be ?h, ?m, ?=, to mark for hiding, mark 2345ACTION is an optional argument that can be ?h, ?m, ?=, to mark for hiding, mark
2346for operation, or simply indicate which are equal files. If it is nil, then 2346for operation, or simply indicate which are equal files. If it is nil, then
2347`last-command-char' is used to decide which action to take." 2347`last-command-event' is used to decide which action to take."
2348 (interactive) 2348 (interactive)
2349 (if (null action) 2349 (if (null action)
2350 (setq action last-command-char)) 2350 (setq action last-command-event))
2351 (let ((list (cdr ediff-meta-list)) 2351 (let ((list (cdr ediff-meta-list))
2352 marked1 marked2 marked3 2352 marked1 marked2 marked3
2353 fileinfo1 fileinfo2 fileinfo3 elt) 2353 fileinfo1 fileinfo2 fileinfo3 elt)
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el
index 49a957e8bf1..4885ca472e2 100644
--- a/lisp/ediff-util.el
+++ b/lisp/ediff-util.el
@@ -1012,7 +1012,7 @@ of the current buffer."
1012 (interactive) 1012 (interactive)
1013 (ediff-barf-if-not-control-buffer) 1013 (ediff-barf-if-not-control-buffer)
1014 (let ((ctl-buf (if (null buf) (current-buffer))) 1014 (let ((ctl-buf (if (null buf) (current-buffer)))
1015 (buf-type (ediff-char-to-buftype last-command-char))) 1015 (buf-type (ediff-char-to-buftype last-command-event)))
1016 (or buf (ediff-recenter)) 1016 (or buf (ediff-recenter))
1017 (or buf 1017 (or buf
1018 (setq buf (ediff-get-buffer buf-type))) 1018 (setq buf (ediff-get-buffer buf-type)))
@@ -1514,7 +1514,7 @@ the one half of the height of window-A."
1514 (error ediff-KILLED-VITAL-BUFFER)) 1514 (error ediff-KILLED-VITAL-BUFFER))
1515 1515
1516 (ediff-operate-on-windows 1516 (ediff-operate-on-windows
1517 (if (memq last-command-char '(?v ?\C-v)) 1517 (if (memq last-command-event '(?v ?\C-v))
1518 'scroll-up 1518 'scroll-up
1519 'scroll-down) 1519 'scroll-down)
1520 ;; calculate argument to scroll-up/down 1520 ;; calculate argument to scroll-up/down
@@ -1562,7 +1562,7 @@ the width of the A/B/C windows."
1562 ;; interactively so that they set the window's min_hscroll. 1562 ;; interactively so that they set the window's min_hscroll.
1563 ;; Otherwise, automatic hscrolling will undo the effect of 1563 ;; Otherwise, automatic hscrolling will undo the effect of
1564 ;; hscrolling. 1564 ;; hscrolling.
1565 (if (= last-command-char ?<) 1565 (if (= last-command-event ?<)
1566 (lambda (arg) 1566 (lambda (arg)
1567 (let ((prefix-arg arg)) 1567 (let ((prefix-arg arg))
1568 (call-interactively 'scroll-left))) 1568 (call-interactively 'scroll-left)))
@@ -1826,7 +1826,7 @@ With a prefix argument, synchronize all files around the current point position
1826in the specified buffer." 1826in the specified buffer."
1827 (interactive "P") 1827 (interactive "P")
1828 (ediff-barf-if-not-control-buffer) 1828 (ediff-barf-if-not-control-buffer)
1829 (let* ((buf-type (ediff-char-to-buftype last-command-char)) 1829 (let* ((buf-type (ediff-char-to-buftype last-command-event))
1830 (buffer (ediff-get-buffer buf-type)) 1830 (buffer (ediff-get-buffer buf-type))
1831 (pt (ediff-with-current-buffer buffer (point))) 1831 (pt (ediff-with-current-buffer buffer (point)))
1832 (diff-no (ediff-diff-at-point buf-type nil (if arg 'after))) 1832 (diff-no (ediff-diff-at-point buf-type nil (if arg 'after)))
@@ -2162,13 +2162,13 @@ ARG is a prefix argument. If nil, copy the current difference region."
2162 "Restore ARGth diff from `ediff-killed-diffs-alist'. 2162 "Restore ARGth diff from `ediff-killed-diffs-alist'.
2163ARG is a prefix argument. If ARG is nil, restore the current-difference. 2163ARG is a prefix argument. If ARG is nil, restore the current-difference.
2164If the second optional argument, a character, is given, use it to 2164If the second optional argument, a character, is given, use it to
2165determine the target buffer instead of last-command-char" 2165determine the target buffer instead of last-command-event"
2166 (interactive "P") 2166 (interactive "P")
2167 (ediff-barf-if-not-control-buffer) 2167 (ediff-barf-if-not-control-buffer)
2168 (if (numberp arg) 2168 (if (numberp arg)
2169 (ediff-jump-to-difference arg)) 2169 (ediff-jump-to-difference arg))
2170 (ediff-pop-diff ediff-current-difference 2170 (ediff-pop-diff ediff-current-difference
2171 (ediff-char-to-buftype (or key last-command-char))) 2171 (ediff-char-to-buftype (or key last-command-event)))
2172 ;; recenter with rehighlighting, but no messages 2172 ;; recenter with rehighlighting, but no messages
2173 (let (ediff-verbose-p) 2173 (let (ediff-verbose-p)
2174 (ediff-recenter))) 2174 (ediff-recenter)))
@@ -2192,13 +2192,13 @@ a regular expression typed in by the user."
2192 (cond 2192 (cond
2193 ((or (and (eq ediff-skip-diff-region-function 2193 ((or (and (eq ediff-skip-diff-region-function
2194 ediff-focus-on-regexp-matches-function) 2194 ediff-focus-on-regexp-matches-function)
2195 (eq last-command-char ?f)) 2195 (eq last-command-event ?f))
2196 (and (eq ediff-skip-diff-region-function 2196 (and (eq ediff-skip-diff-region-function
2197 ediff-hide-regexp-matches-function) 2197 ediff-hide-regexp-matches-function)
2198 (eq last-command-char ?h))) 2198 (eq last-command-event ?h)))
2199 (message "Selective browsing by regexp turned off") 2199 (message "Selective browsing by regexp turned off")
2200 (setq ediff-skip-diff-region-function 'ediff-show-all-diffs)) 2200 (setq ediff-skip-diff-region-function 'ediff-show-all-diffs))
2201 ((eq last-command-char ?h) 2201 ((eq last-command-event ?h)
2202 (setq ediff-skip-diff-region-function ediff-hide-regexp-matches-function 2202 (setq ediff-skip-diff-region-function ediff-hide-regexp-matches-function
2203 regexp-A 2203 regexp-A
2204 (read-string 2204 (read-string
@@ -2236,7 +2236,7 @@ a regular expression typed in by the user."
2236 (or (string= regexp-B "") (setq ediff-regexp-hide-B regexp-B)) 2236 (or (string= regexp-B "") (setq ediff-regexp-hide-B regexp-B))
2237 (or (string= regexp-C "") (setq ediff-regexp-hide-C regexp-C))) 2237 (or (string= regexp-C "") (setq ediff-regexp-hide-C regexp-C)))
2238 2238
2239 ((eq last-command-char ?f) 2239 ((eq last-command-event ?f)
2240 (setq ediff-skip-diff-region-function 2240 (setq ediff-skip-diff-region-function
2241 ediff-focus-on-regexp-matches-function 2241 ediff-focus-on-regexp-matches-function
2242 regexp-A 2242 regexp-A
@@ -3302,10 +3302,10 @@ Without an argument, it saves customized diff argument, if available
3302 (ediff-barf-if-not-control-buffer) 3302 (ediff-barf-if-not-control-buffer)
3303 (ediff-compute-custom-diffs-maybe) 3303 (ediff-compute-custom-diffs-maybe)
3304 (ediff-with-current-buffer 3304 (ediff-with-current-buffer
3305 (cond ((memq last-command-char '(?a ?b ?c)) 3305 (cond ((memq last-command-event '(?a ?b ?c))
3306 (ediff-get-buffer 3306 (ediff-get-buffer
3307 (ediff-char-to-buftype last-command-char))) 3307 (ediff-char-to-buftype last-command-event)))
3308 ((eq last-command-char ?d) 3308 ((eq last-command-event ?d)
3309 (message "Saving diff output ...") 3309 (message "Saving diff output ...")
3310 (sit-for 1) ; let the user see the message 3310 (sit-for 1) ; let the user see the message
3311 (cond ((and arg (ediff-buffer-live-p ediff-diff-buffer)) 3311 (cond ((and arg (ediff-buffer-live-p ediff-diff-buffer))
diff --git a/lisp/electric.el b/lisp/electric.el
index ca6f3f921f3..498f1e4f138 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -65,7 +65,7 @@
65 (setq prompt-string nil) 65 (setq prompt-string nil)
66 (setq prompt-string "->"))) 66 (setq prompt-string "->")))
67 (setq cmd (read-key-sequence prompt-string)) 67 (setq cmd (read-key-sequence prompt-string))
68 (setq last-command-char (aref cmd (1- (length cmd))) 68 (setq last-command-event (aref cmd (1- (length cmd)))
69 this-command (key-binding cmd t) 69 this-command (key-binding cmd t)
70 cmd this-command) 70 cmd this-command)
71 ;; This makes universal-argument-other-key work. 71 ;; This makes universal-argument-other-key work.
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 6d63bccba65..2cdd449af38 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -835,7 +835,7 @@ Interactively, with a numeric argument, insert this character that many times.
835Non-ASCII characters are first encoded with `buffer-file-coding-system', 835Non-ASCII characters are first encoded with `buffer-file-coding-system',
836and their encoded form is inserted byte by byte." 836and their encoded form is inserted byte by byte."
837 (interactive "p") 837 (interactive "p")
838 (hexl-insert-multibyte-char last-command-char arg)) 838 (hexl-insert-multibyte-char last-command-event arg))
839 839
840(defun hexl-insert-char (ch num) 840(defun hexl-insert-char (ch num)
841 "Insert the character CH NUM times in a hexl buffer. 841 "Insert the character CH NUM times in a hexl buffer.
diff --git a/lisp/isearch.el b/lisp/isearch.el
index bed3a7d8de8..9199039ec81 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1,7 +1,8 @@
1;;; isearch.el --- incremental search minor mode 1;;; isearch.el --- incremental search minor mode
2 2
3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 3;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000,
4;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5;; Free Software Foundation, Inc.
5 6
6;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> 7;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu>
7;; Maintainer: FSF 8;; Maintainer: FSF
@@ -954,7 +955,7 @@ REGEXP if non-nil says use the regexp search ring."
954;; ;; First terminate isearch-mode. 955;; ;; First terminate isearch-mode.
955;; (isearch-done) 956;; (isearch-done)
956;; (isearch-clean-overlays) 957;; (isearch-clean-overlays)
957;; (handle-switch-frame (car (cdr last-command-char)))) 958;; (handle-switch-frame (car (cdr last-command-event))))
958 959
959 960
960;; The search status structure and stack. 961;; The search status structure and stack.
@@ -1984,7 +1985,7 @@ Isearch mode."
1984(defun isearch-printing-char () 1985(defun isearch-printing-char ()
1985 "Add this ordinary printing character to the search string and search." 1986 "Add this ordinary printing character to the search string and search."
1986 (interactive) 1987 (interactive)
1987 (let ((char last-command-char)) 1988 (let ((char last-command-event))
1988 (if (= char ?\S-\ ) 1989 (if (= char ?\S-\ )
1989 (setq char ?\s)) 1990 (setq char ?\s))
1990 (if current-input-method 1991 (if current-input-method
diff --git a/lisp/isearchb.el b/lisp/isearchb.el
index 496bcf92914..d9a14eaefa2 100644
--- a/lisp/isearchb.el
+++ b/lisp/isearchb.el
@@ -1,6 +1,7 @@
1;;; isearchb --- a marriage between iswitchb and isearch 1;;; isearchb --- a marriage between iswitchb and isearch
2 2
3;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 3;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
4;; Free Software Foundation, Inc.
4 5
5;; Author: John Wiegley <johnw@gnu.org> 6;; Author: John Wiegley <johnw@gnu.org>
6;; Maintainer: FSF 7;; Maintainer: FSF
@@ -136,10 +137,10 @@ Its purpose is to pass different call arguments to
136 (unless iswitchb-text 137 (unless iswitchb-text
137 (setq iswitchb-text "") 138 (setq iswitchb-text "")
138 (iswitchb-make-buflist nil)) 139 (iswitchb-make-buflist nil))
139 (if last-command-char 140 (if last-command-event
140 (setq iswitchb-rescan t 141 (setq iswitchb-rescan t
141 iswitchb-text (concat iswitchb-text 142 iswitchb-text (concat iswitchb-text
142 (char-to-string last-command-char)))) 143 (char-to-string last-command-event))))
143 (iswitchb-set-matches) 144 (iswitchb-set-matches)
144 (let* ((match (car iswitchb-matches)) 145 (let* ((match (car iswitchb-matches))
145 (buf (and match (get-buffer match)))) 146 (buf (and match (get-buffer match))))
@@ -176,17 +177,17 @@ Its purpose is to pass different call arguments to
176 (substring iswitchb-text 0 (1- (length iswitchb-text)))) 177 (substring iswitchb-text 0 (1- (length iswitchb-text))))
177 (if (= 0 (length iswitchb-text)) 178 (if (= 0 (length iswitchb-text))
178 (isearchb-stop t t) 179 (isearchb-stop t t)
179 (setq last-command-char nil) 180 (setq last-command-event nil)
180 (setq this-command 'isearchb))) 181 (setq this-command 'isearchb)))
181 ((or (equal keys "\C-i") (equal keys [tab])) 182 ((or (equal keys "\C-i") (equal keys [tab]))
182 (setq this-command 'isearchb-iswitchb)) 183 (setq this-command 'isearchb-iswitchb))
183 ((equal keys "\C-s") 184 ((equal keys "\C-s")
184 (iswitchb-next-match) 185 (iswitchb-next-match)
185 (setq last-command-char nil) 186 (setq last-command-event nil)
186 (setq this-command 'isearchb)) 187 (setq this-command 'isearchb))
187 ((equal keys "\C-r") 188 ((equal keys "\C-r")
188 (iswitchb-prev-match) 189 (iswitchb-prev-match)
189 (setq last-command-char nil) 190 (setq last-command-event nil)
190 (setq this-command 'isearchb)) 191 (setq this-command 'isearchb))
191 ((equal keys "\C-g") 192 ((equal keys "\C-g")
192 (ding) 193 (ding)
diff --git a/lisp/kmacro.el b/lisp/kmacro.el
index eab099fa035..d06e3c02e15 100644
--- a/lisp/kmacro.el
+++ b/lisp/kmacro.el
@@ -1196,7 +1196,7 @@ following additional answers: `insert', `insert-1', `replace', `replace-1',
1196 (setq this-command 'ignore) 1196 (setq this-command 'ignore)
1197 (setq this-command cmd) 1197 (setq this-command cmd)
1198 (if (memq this-command '(self-insert-command digit-argument)) 1198 (if (memq this-command '(self-insert-command digit-argument))
1199 (setq last-command-char (aref keys (1- (length keys))))) 1199 (setq last-command-event (aref keys (1- (length keys)))))
1200 (if keys 1200 (if keys
1201 (setq kmacro-step-edit-new-macro (vconcat kmacro-step-edit-new-macro keys)))) 1201 (setq kmacro-step-edit-new-macro (vconcat kmacro-step-edit-new-macro keys))))
1202 (setq kmacro-step-edit-key-index next-index))) 1202 (setq kmacro-step-edit-key-index next-index)))
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 364ee3d909f..fc42905c3df 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -905,7 +905,7 @@ the completions buffer."
905(defun self-insert-and-exit () 905(defun self-insert-and-exit ()
906 "Terminate minibuffer input." 906 "Terminate minibuffer input."
907 (interactive) 907 (interactive)
908 (if (characterp last-command-char) 908 (if (characterp last-command-event)
909 (call-interactively 'self-insert-command) 909 (call-interactively 'self-insert-command)
910 (ding)) 910 (ding))
911 (exit-minibuffer)) 911 (exit-minibuffer))
diff --git a/lisp/repeat.el b/lisp/repeat.el
index b65188078a4..4a4b519bf4f 100644
--- a/lisp/repeat.el
+++ b/lisp/repeat.el
@@ -100,9 +100,9 @@
100 :type '(repeat function)) 100 :type '(repeat function))
101 101
102;; If the last command was self-insert-command, the char to be inserted was 102;; If the last command was self-insert-command, the char to be inserted was
103;; obtained by that command from last-command-char, which has now been 103;; obtained by that command from last-command-event, which has now been
104;; clobbered by the command sequence that invoked `repeat'. We could get it 104;; clobbered by the command sequence that invoked `repeat'. We could get it
105;; from (recent-keys) & set last-command-char to that, "unclobbering" it, but 105;; from (recent-keys) & set last-command-event to that, "unclobbering" it, but
106;; this has the disadvantage that if the user types a sequence of different 106;; this has the disadvantage that if the user types a sequence of different
107;; chars then invokes repeat, only the final char will be inserted. In vi, 107;; chars then invokes repeat, only the final char will be inserted. In vi,
108;; the dot command can reinsert the entire most-recently-inserted sequence. 108;; the dot command can reinsert the entire most-recently-inserted sequence.
@@ -247,14 +247,14 @@ recently executed command not bound to an input event\"."
247 (setq repeat-arg last-prefix-arg)) 247 (setq repeat-arg last-prefix-arg))
248 ;; Now determine whether to loop on repeated taps of the final character 248 ;; Now determine whether to loop on repeated taps of the final character
249 ;; of the key sequence that invoked repeat. The Emacs global 249 ;; of the key sequence that invoked repeat. The Emacs global
250 ;; last-command-char contains the final character now, but may not still 250 ;; last-command-event contains the final character now, but may not still
251 ;; contain it after the previous command is repeated, so the character 251 ;; contain it after the previous command is repeated, so the character
252 ;; needs to be saved. 252 ;; needs to be saved.
253 (let ((repeat-repeat-char 253 (let ((repeat-repeat-char
254 (if (eq repeat-on-final-keystroke t) 254 (if (eq repeat-on-final-keystroke t)
255 last-command-char 255 last-command-event
256 ;; allow only specified final keystrokes 256 ;; allow only specified final keystrokes
257 (car (memq last-command-char 257 (car (memq last-command-event
258 (listify-key-sequence 258 (listify-key-sequence
259 repeat-on-final-keystroke)))))) 259 repeat-on-final-keystroke))))))
260 (if (memq last-repeatable-command '(exit-minibuffer 260 (if (memq last-repeatable-command '(exit-minibuffer
@@ -344,7 +344,7 @@ recently executed command not bound to an input event\"."
344(defun repeat-self-insert (string) 344(defun repeat-self-insert (string)
345 (let ((i 0)) 345 (let ((i 0))
346 (while (< i (length string)) 346 (while (< i (length string))
347 (let ((last-command-char (aref string i))) 347 (let ((last-command-event (aref string i)))
348 (self-insert-command 1)) 348 (self-insert-command 1))
349 (setq i (1+ i))))) 349 (setq i (1+ i)))))
350 350
diff --git a/lisp/simple.el b/lisp/simple.el
index edce7c8ddf7..a9f961acce9 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -463,8 +463,8 @@ than the value of `fill-column' and ARG is nil."
463 (beforepos (point))) 463 (beforepos (point)))
464 (if flag (backward-char 1)) 464 (if flag (backward-char 1))
465 ;; Call self-insert so that auto-fill, abbrev expansion etc. happens. 465 ;; Call self-insert so that auto-fill, abbrev expansion etc. happens.
466 ;; Set last-command-char to tell self-insert what to insert. 466 ;; Set last-command-event to tell self-insert what to insert.
467 (let ((last-command-char ?\n) 467 (let ((last-command-event ?\n)
468 ;; Don't auto-fill if we have a numeric argument. 468 ;; Don't auto-fill if we have a numeric argument.
469 ;; Also not if flag is true (it would fill wrong line); 469 ;; Also not if flag is true (it would fill wrong line);
470 ;; there is no need to since we're at BOL. 470 ;; there is no need to since we're at BOL.
@@ -2596,9 +2596,9 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]."
2596 "Part of the numeric argument for the next command. 2596 "Part of the numeric argument for the next command.
2597\\[universal-argument] following digits or minus sign ends the argument." 2597\\[universal-argument] following digits or minus sign ends the argument."
2598 (interactive "P") 2598 (interactive "P")
2599 (let* ((char (if (integerp last-command-char) 2599 (let* ((char (if (integerp last-command-event)
2600 last-command-char 2600 last-command-event
2601 (get last-command-char 'ascii-character))) 2601 (get last-command-event 'ascii-character)))
2602 (digit (- (logand char ?\177) ?0))) 2602 (digit (- (logand char ?\177) ?0)))
2603 (cond ((integerp arg) 2603 (cond ((integerp arg)
2604 (setq prefix-arg (+ (* arg 10) 2604 (setq prefix-arg (+ (* arg 10)
diff --git a/lisp/skeleton.el b/lisp/skeleton.el
index c816888912f..c7d9b0e6aad 100644
--- a/lisp/skeleton.el
+++ b/lisp/skeleton.el
@@ -470,7 +470,7 @@ This allows for context-sensitive checking whether pairing is appropriate.")
470 470
471 471
472(defvar skeleton-pair-alist () 472(defvar skeleton-pair-alist ()
473 "An override alist of pairing partners matched against `last-command-char'. 473 "An override alist of pairing partners matched against `last-command-event'.
474Each alist element, which looks like (ELEMENT ...), is passed to 474Each alist element, which looks like (ELEMENT ...), is passed to
475`skeleton-insert' with no interactor. Variable `str' does nothing. 475`skeleton-insert' with no interactor. Variable `str' does nothing.
476 476
@@ -504,7 +504,7 @@ symmetrical ones, and the same character twice for the others."
504 (or (eq last-command 'mouse-drag-region) 504 (or (eq last-command 'mouse-drag-region)
505 (and transient-mark-mode mark-active)))) 505 (and transient-mark-mode mark-active))))
506 (skeleton-end-hook) 506 (skeleton-end-hook)
507 (char last-command-char) 507 (char last-command-event)
508 (skeleton (or (assq char skeleton-pair-alist) 508 (skeleton (or (assq char skeleton-pair-alist)
509 (assq char skeleton-pair-default-alist) 509 (assq char skeleton-pair-default-alist)
510 `(,char _ ,char)))) 510 `(,char _ ,char))))
diff --git a/lisp/terminal.el b/lisp/terminal.el
index 8b550c022a5..d79ea1a47ef 100644
--- a/lisp/terminal.el
+++ b/lisp/terminal.el
@@ -225,7 +225,7 @@ performance."
225 ;; you hit esc key... 225 ;; you hit esc key...
226 ((and (stringp s) 226 ((and (stringp s)
227 (string= s (make-string 1 terminal-escape-char))) 227 (string= s (make-string 1 terminal-escape-char)))
228 (setq last-command-char terminal-escape-char) 228 (setq last-command-event terminal-escape-char)
229 (let ((terminal-escape-char -259)) 229 (let ((terminal-escape-char -259))
230 (te-pass-through))) 230 (te-pass-through)))
231 231
diff --git a/lisp/tmm.el b/lisp/tmm.el
index 3d8315cb1ea..7058f54ef8e 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -402,7 +402,7 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'."
402(defun tmm-shortcut () 402(defun tmm-shortcut ()
403 "Choose the shortcut that the user typed." 403 "Choose the shortcut that the user typed."
404 (interactive) 404 (interactive)
405 (let ((c last-command-char) s) 405 (let ((c last-command-event) s)
406 (if (symbolp tmm-shortcut-style) 406 (if (symbolp tmm-shortcut-style)
407 (setq c (funcall tmm-shortcut-style c))) 407 (setq c (funcall tmm-shortcut-style c)))
408 (if (memq c tmm-short-cuts) 408 (if (memq c tmm-short-cuts)
diff --git a/lisp/wdired.el b/lisp/wdired.el
index e0d8c801d07..11b2d9f617d 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -1,6 +1,7 @@
1;;; wdired.el --- Rename files editing their names in dired buffers 1;;; wdired.el --- Rename files editing their names in dired buffers
2 2
3;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 3;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
4;; Free Software Foundation, Inc.
4 5
5;; Filename: wdired.el 6;; Filename: wdired.el
6;; Author: Juan León Lahoz García <juanleon1@gmail.com> 7;; Author: Juan León Lahoz García <juanleon1@gmail.com>
@@ -741,9 +742,9 @@ Like original function but it skips read-only words."
741(defun wdired-set-bit () 742(defun wdired-set-bit ()
742 "Set a permission bit character." 743 "Set a permission bit character."
743 (interactive) 744 (interactive)
744 (if (wdired-perm-allowed-in-pos last-command-char 745 (if (wdired-perm-allowed-in-pos last-command-event
745 (- (current-column) wdired-col-perm)) 746 (- (current-column) wdired-col-perm))
746 (let ((new-bit (char-to-string last-command-char)) 747 (let ((new-bit (char-to-string last-command-event))
747 (inhibit-read-only t) 748 (inhibit-read-only t)
748 (pos-prop (- (point) (- (current-column) wdired-col-perm)))) 749 (pos-prop (- (point) (- (current-column) wdired-col-perm))))
749 (put-text-property 0 1 'keymap wdired-perm-mode-map new-bit) 750 (put-text-property 0 1 'keymap wdired-perm-mode-map new-bit)