diff options
| author | Glenn Morris | 2009-01-09 04:23:38 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-09 04:23:38 +0000 |
| commit | 1ba983e8d9da561ccbdf15fb1544895fad40cce8 (patch) | |
| tree | 88210d37a85f0ef4a8d3341074b185c9d0187dad | |
| parent | e93c003eb15f85f744a39c28a8fb43b8c6da9904 (diff) | |
| download | emacs-1ba983e8d9da561ccbdf15fb1544895fad40cce8.tar.gz emacs-1ba983e8d9da561ccbdf15fb1544895fad40cce8.zip | |
Replace last-command-char with last-command-event.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/eshell/em-smart.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/esh-mode.el | 10 | ||||
| -rw-r--r-- | lisp/play/mpuz.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/antlr-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/cc-align.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cc-cmds.el | 30 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 38 | ||||
| -rw-r--r-- | lisp/progmodes/f90.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/fortran.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/icon.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/idlwave.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/octave-mod.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/pascal.el | 11 | ||||
| -rw-r--r-- | lisp/progmodes/perl-mode.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/prolog.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/simula.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/tcl.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/vera-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/verilog-mode.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/xscheme.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 8 | ||||
| -rw-r--r-- | lisp/textmodes/table.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/two-column.el | 6 |
27 files changed, 102 insertions, 91 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8bf962d368f..e366159fbc9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -7,6 +7,16 @@ | |||
| 7 | * calc/calc-keypd.el, calc/calc-misc.el, calc/calc-prog.el: | 7 | * 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: | 8 | * calc/calc-sel.el, calc/calc-store.el, calc/calc-stuff.el: |
| 9 | * calc/calc-units.el, calc/calc-yank.el, calc/calc.el: | 9 | * calc/calc-units.el, calc/calc-yank.el, calc/calc.el: |
| 10 | * eshell/em-smart.el, eshell/esh-mode.el: | ||
| 11 | * play/mpuz.el: | ||
| 12 | * progmodes/ada-mode.el, progmodes/antlr-mode.el, progmodes/cc-align.el: | ||
| 13 | * progmodes/cc-cmds.el, progmodes/cperl-mode.el, progmodes/f90.el: | ||
| 14 | * progmodes/fortran.el, progmodes/icon.el, progmodes/idlwave.el: | ||
| 15 | * progmodes/octave-mod.el, progmodes/pascal.el, progmodes/perl-mode.el: | ||
| 16 | * progmodes/prolog.el, progmodes/sh-script.el, progmodes/simula.el: | ||
| 17 | * progmodes/tcl.el, progmodes/vera-mode.el, progmodes/verilog-mode.el: | ||
| 18 | * progmodes/vhdl-mode.el, progmodes/xscheme.el: | ||
| 19 | * textmodes/sgml-mode.el, textmodes/table.el, textmodes/two-column.el: | ||
| 10 | Replace last-command-char with last-command-event. | 20 | Replace last-command-char with last-command-event. |
| 11 | 21 | ||
| 12 | 2009-01-09 Dave Love <fx@gnu.org> | 22 | 2009-01-09 Dave Love <fx@gnu.org> |
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el index 1396cce33fe..43de7ff760c 100644 --- a/lisp/eshell/em-smart.el +++ b/lisp/eshell/em-smart.el | |||
| @@ -291,7 +291,7 @@ and the end of the buffer are still visible." | |||
| 291 | (setq clear t) | 291 | (setq clear t) |
| 292 | (cond | 292 | (cond |
| 293 | ((eq this-command 'self-insert-command) | 293 | ((eq this-command 'self-insert-command) |
| 294 | (if (eq last-command-char ? ) | 294 | (if (eq last-command-event ? ) |
| 295 | (if (and eshell-smart-space-goes-to-end | 295 | (if (and eshell-smart-space-goes-to-end |
| 296 | eshell-current-command) | 296 | eshell-current-command) |
| 297 | (if (not (pos-visible-in-window-p (point-max))) | 297 | (if (not (pos-visible-in-window-p (point-max))) |
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index a929916f232..9cd7c1b0477 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; esh-mode.el --- user interface | 1 | ;;; esh-mode.el --- user interface |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2008, 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: John Wiegley <johnw@gnu.org> | 6 | ;; Author: John Wiegley <johnw@gnu.org> |
| 7 | 7 | ||
| @@ -484,9 +484,9 @@ This is used by `eshell-watch-for-password-prompt'." | |||
| 484 | (interactive "i") | 484 | (interactive "i") |
| 485 | (process-send-string | 485 | (process-send-string |
| 486 | (eshell-interactive-process) | 486 | (eshell-interactive-process) |
| 487 | (char-to-string (if (symbolp last-command-char) | 487 | (char-to-string (if (symbolp last-command-event) |
| 488 | (get last-command-char 'ascii-character) | 488 | (get last-command-event 'ascii-character) |
| 489 | last-command-char)))) | 489 | last-command-event)))) |
| 490 | 490 | ||
| 491 | (defun eshell-intercept-commands () | 491 | (defun eshell-intercept-commands () |
| 492 | (when (and (eshell-interactive-process) | 492 | (when (and (eshell-interactive-process) |
diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el index 5c03e7a09d2..5725bc1d825 100644 --- a/lisp/play/mpuz.el +++ b/lisp/play/mpuz.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; mpuz.el --- multiplication puzzle for GNU Emacs | 1 | ;;; mpuz.el --- multiplication puzzle for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1990, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Philippe Schnoebelen <phs@lsv.ens-cachan.fr> | 6 | ;; Author: Philippe Schnoebelen <phs@lsv.ens-cachan.fr> |
| 7 | ;; Overhauled: Daniel Pfeiffer <occitan@esperanto.org> | 7 | ;; Overhauled: Daniel Pfeiffer <occitan@esperanto.org> |
| @@ -424,7 +424,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 424 | (interactive) | 424 | (interactive) |
| 425 | (if mpuz-in-progress | 425 | (if mpuz-in-progress |
| 426 | (let (letter-char digit digit-char message) | 426 | (let (letter-char digit digit-char message) |
| 427 | (setq letter-char (upcase last-command-char) | 427 | (setq letter-char (upcase last-command-event) |
| 428 | digit (mpuz-to-digit (- letter-char ?A))) | 428 | digit (mpuz-to-digit (- letter-char ?A))) |
| 429 | (cond ((mpuz-digit-solved-p digit) | 429 | (cond ((mpuz-digit-solved-p digit) |
| 430 | (message "%c already solved." letter-char) | 430 | (message "%c already solved." letter-char) |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index af1430a90ba..5750fd9da2b 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -1628,7 +1628,7 @@ ARG is the prefix the user entered with \\[universal-argument]." | |||
| 1628 | (interactive "P") | 1628 | (interactive "P") |
| 1629 | 1629 | ||
| 1630 | (if ada-auto-case | 1630 | (if ada-auto-case |
| 1631 | (let ((lastk last-command-char) | 1631 | (let ((lastk last-command-event) |
| 1632 | (previous-syntax-table (syntax-table))) | 1632 | (previous-syntax-table (syntax-table))) |
| 1633 | 1633 | ||
| 1634 | (unwind-protect | 1634 | (unwind-protect |
| @@ -1662,9 +1662,9 @@ ARG is the prefix the user entered with \\[universal-argument]." | |||
| 1662 | 1662 | ||
| 1663 | ;; Else, no auto-casing | 1663 | ;; Else, no auto-casing |
| 1664 | (cond | 1664 | (cond |
| 1665 | ((eq last-command-char ?\n) | 1665 | ((eq last-command-event ?\n) |
| 1666 | (funcall ada-lfd-binding)) | 1666 | (funcall ada-lfd-binding)) |
| 1667 | ((eq last-command-char ?\r) | 1667 | ((eq last-command-event ?\r) |
| 1668 | (funcall ada-ret-binding)) | 1668 | (funcall ada-ret-binding)) |
| 1669 | (t | 1669 | (t |
| 1670 | (self-insert-command (prefix-numeric-value arg)))) | 1670 | (self-insert-command (prefix-numeric-value arg)))) |
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el index 01a07650283..375afe8ca2b 100644 --- a/lisp/progmodes/antlr-mode.el +++ b/lisp/progmodes/antlr-mode.el | |||
| @@ -2512,7 +2512,7 @@ ANTLR's syntax and influences the auto indentation, see | |||
| 2512 | (let ((context (antlr-syntactic-context))) | 2512 | (let ((context (antlr-syntactic-context))) |
| 2513 | (not (and (numberp context) | 2513 | (not (and (numberp context) |
| 2514 | (or (zerop context) | 2514 | (or (zerop context) |
| 2515 | (memq last-command-char '(?\{ ?\})))))))) | 2515 | (memq last-command-event '(?\{ ?\})))))))) |
| 2516 | (self-insert-command (prefix-numeric-value arg)) | 2516 | (self-insert-command (prefix-numeric-value arg)) |
| 2517 | (self-insert-command (prefix-numeric-value arg)) | 2517 | (self-insert-command (prefix-numeric-value arg)) |
| 2518 | (antlr-indent-line))) | 2518 | (antlr-indent-line))) |
diff --git a/lisp/progmodes/cc-align.el b/lisp/progmodes/cc-align.el index c8d23d6d91d..df0f9883877 100644 --- a/lisp/progmodes/cc-align.el +++ b/lisp/progmodes/cc-align.el | |||
| @@ -1245,7 +1245,7 @@ newline is added. In either case, checking is stopped. This supports | |||
| 1245 | exactly the old newline insertion behavior." | 1245 | exactly the old newline insertion behavior." |
| 1246 | ;; newline only after semicolon, but only if that semicolon is not | 1246 | ;; newline only after semicolon, but only if that semicolon is not |
| 1247 | ;; inside a parenthesis list (e.g. a for loop statement) | 1247 | ;; inside a parenthesis list (e.g. a for loop statement) |
| 1248 | (if (not (eq last-command-char ?\;)) | 1248 | (if (not (eq last-command-event ?\;)) |
| 1249 | nil ; continue checking | 1249 | nil ; continue checking |
| 1250 | (if (condition-case nil | 1250 | (if (condition-case nil |
| 1251 | (save-excursion | 1251 | (save-excursion |
| @@ -1262,7 +1262,7 @@ If a comma was inserted, no determination is made. If a semicolon was | |||
| 1262 | inserted, and the following line is not blank, no newline is inserted. | 1262 | inserted, and the following line is not blank, no newline is inserted. |
| 1263 | Otherwise, no determination is made." | 1263 | Otherwise, no determination is made." |
| 1264 | (save-excursion | 1264 | (save-excursion |
| 1265 | (if (and (= last-command-char ?\;) | 1265 | (if (and (= last-command-event ?\;) |
| 1266 | ;;(/= (point-max) | 1266 | ;;(/= (point-max) |
| 1267 | ;; (save-excursion (skip-syntax-forward " ") (point)) | 1267 | ;; (save-excursion (skip-syntax-forward " ") (point)) |
| 1268 | (zerop (forward-line 1)) | 1268 | (zerop (forward-line 1)) |
| @@ -1282,7 +1282,7 @@ For other semicolon contexts, no determination is made." | |||
| 1282 | (if (c-safe (up-list -1) t) | 1282 | (if (c-safe (up-list -1) t) |
| 1283 | (c-point 'bol) | 1283 | (c-point 'bol) |
| 1284 | -1)))) | 1284 | -1)))) |
| 1285 | (if (and (eq last-command-char ?\;) | 1285 | (if (and (eq last-command-event ?\;) |
| 1286 | (eq (car (car syntax)) 'inclass) | 1286 | (eq (car (car syntax)) 'inclass) |
| 1287 | (eq (car (car (cdr syntax))) 'topmost-intro) | 1287 | (eq (car (car (cdr syntax))) 'topmost-intro) |
| 1288 | (= (c-point 'bol) bol)) | 1288 | (= (c-point 'bol) bol)) |
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 2ee773da721..0bfc2e5b16c 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el | |||
| @@ -476,7 +476,7 @@ inside a literal or a macro, nothing special happens." | |||
| 476 | (bolp (bolp))) | 476 | (bolp (bolp))) |
| 477 | (beginning-of-line) | 477 | (beginning-of-line) |
| 478 | (delete-horizontal-space) | 478 | (delete-horizontal-space) |
| 479 | (insert last-command-char) | 479 | (insert last-command-event) |
| 480 | (and (not bolp) | 480 | (and (not bolp) |
| 481 | (goto-char (- (point-max) pos))) | 481 | (goto-char (- (point-max) pos))) |
| 482 | ))) | 482 | ))) |
| @@ -735,7 +735,7 @@ settings of `c-cleanup-list' are done." | |||
| 735 | ;; `}': clean up empty defun braces | 735 | ;; `}': clean up empty defun braces |
| 736 | (when (c-save-buffer-state () | 736 | (when (c-save-buffer-state () |
| 737 | (and (memq 'empty-defun-braces c-cleanup-list) | 737 | (and (memq 'empty-defun-braces c-cleanup-list) |
| 738 | (eq last-command-char ?\}) | 738 | (eq last-command-event ?\}) |
| 739 | (c-intersect-lists '(defun-close class-close inline-close) | 739 | (c-intersect-lists '(defun-close class-close inline-close) |
| 740 | syntax) | 740 | syntax) |
| 741 | (progn | 741 | (progn |
| @@ -751,14 +751,14 @@ settings of `c-cleanup-list' are done." | |||
| 751 | ;; `}': compact to a one-liner defun? | 751 | ;; `}': compact to a one-liner defun? |
| 752 | (save-match-data | 752 | (save-match-data |
| 753 | (when | 753 | (when |
| 754 | (and (eq last-command-char ?\}) | 754 | (and (eq last-command-event ?\}) |
| 755 | (memq 'one-liner-defun c-cleanup-list) | 755 | (memq 'one-liner-defun c-cleanup-list) |
| 756 | (c-intersect-lists '(defun-close) syntax) | 756 | (c-intersect-lists '(defun-close) syntax) |
| 757 | (c-try-one-liner)) | 757 | (c-try-one-liner)) |
| 758 | (setq here (- (point-max) pos)))) | 758 | (setq here (- (point-max) pos)))) |
| 759 | 759 | ||
| 760 | ;; `{': clean up brace-else-brace and brace-elseif-brace | 760 | ;; `{': clean up brace-else-brace and brace-elseif-brace |
| 761 | (when (eq last-command-char ?\{) | 761 | (when (eq last-command-event ?\{) |
| 762 | (cond | 762 | (cond |
| 763 | ((and (memq 'brace-else-brace c-cleanup-list) | 763 | ((and (memq 'brace-else-brace c-cleanup-list) |
| 764 | (re-search-backward | 764 | (re-search-backward |
| @@ -812,7 +812,7 @@ settings of `c-cleanup-list' are done." | |||
| 812 | )))) | 812 | )))) |
| 813 | 813 | ||
| 814 | ;; blink the paren | 814 | ;; blink the paren |
| 815 | (and (eq last-command-char ?\}) | 815 | (and (eq last-command-event ?\}) |
| 816 | (not executing-kbd-macro) | 816 | (not executing-kbd-macro) |
| 817 | old-blink-paren | 817 | old-blink-paren |
| 818 | (save-excursion | 818 | (save-excursion |
| @@ -849,7 +849,7 @@ is inhibited." | |||
| 849 | (when (and (not arg) | 849 | (when (and (not arg) |
| 850 | (eq literal 'c) | 850 | (eq literal 'c) |
| 851 | (memq 'comment-close-slash c-cleanup-list) | 851 | (memq 'comment-close-slash c-cleanup-list) |
| 852 | (eq last-command-char ?/) | 852 | (eq last-command-event ?/) |
| 853 | (looking-at (concat "[ \t]*\\(" | 853 | (looking-at (concat "[ \t]*\\(" |
| 854 | (regexp-quote comment-end) "\\)?$")) | 854 | (regexp-quote comment-end) "\\)?$")) |
| 855 | ; (eq c-block-comment-ender "*/") ; C-style comments ALWAYS end in */ | 855 | ; (eq c-block-comment-ender "*/") ; C-style comments ALWAYS end in */ |
| @@ -865,7 +865,7 @@ is inhibited." | |||
| 865 | (setq indentp (and (not arg) | 865 | (setq indentp (and (not arg) |
| 866 | c-syntactic-indentation | 866 | c-syntactic-indentation |
| 867 | c-electric-flag | 867 | c-electric-flag |
| 868 | (eq last-command-char ?/) | 868 | (eq last-command-event ?/) |
| 869 | (eq (char-before) (if literal ?* ?/)))) | 869 | (eq (char-before) (if literal ?* ?/)))) |
| 870 | (self-insert-command (prefix-numeric-value arg)) | 870 | (self-insert-command (prefix-numeric-value arg)) |
| 871 | (if indentp | 871 | (if indentp |
| @@ -939,10 +939,10 @@ settings of `c-cleanup-list'." | |||
| 939 | (let ((pos (- (point-max) (point)))) | 939 | (let ((pos (- (point-max) (point)))) |
| 940 | (if (c-save-buffer-state () | 940 | (if (c-save-buffer-state () |
| 941 | (and (or (and | 941 | (and (or (and |
| 942 | (eq last-command-char ?,) | 942 | (eq last-command-event ?,) |
| 943 | (memq 'list-close-comma c-cleanup-list)) | 943 | (memq 'list-close-comma c-cleanup-list)) |
| 944 | (and | 944 | (and |
| 945 | (eq last-command-char ?\;) | 945 | (eq last-command-event ?\;) |
| 946 | (memq 'defun-close-semi c-cleanup-list))) | 946 | (memq 'defun-close-semi c-cleanup-list))) |
| 947 | (progn | 947 | (progn |
| 948 | (forward-char -1) | 948 | (forward-char -1) |
| @@ -1097,7 +1097,7 @@ numeric argument is supplied, or the point is inside a literal." | |||
| 1097 | <-pos) | 1097 | <-pos) |
| 1098 | 1098 | ||
| 1099 | (when c-recognize-<>-arglists | 1099 | (when c-recognize-<>-arglists |
| 1100 | (if (eq last-command-char ?<) | 1100 | (if (eq last-command-event ?<) |
| 1101 | (when (and (progn | 1101 | (when (and (progn |
| 1102 | (backward-char) | 1102 | (backward-char) |
| 1103 | (= (point) | 1103 | (= (point) |
| @@ -1220,7 +1220,7 @@ newline cleanups are done if appropriate; see the variable `c-cleanup-list'." | |||
| 1220 | ;; clean up brace-elseif-brace | 1220 | ;; clean up brace-elseif-brace |
| 1221 | (when | 1221 | (when |
| 1222 | (and (memq 'brace-elseif-brace c-cleanup-list) | 1222 | (and (memq 'brace-elseif-brace c-cleanup-list) |
| 1223 | (eq last-command-char ?\() | 1223 | (eq last-command-event ?\() |
| 1224 | (re-search-backward | 1224 | (re-search-backward |
| 1225 | (concat "}" | 1225 | (concat "}" |
| 1226 | "\\([ \t\n]\\|\\\\\n\\)*" | 1226 | "\\([ \t\n]\\|\\\\\n\\)*" |
| @@ -1238,7 +1238,7 @@ newline cleanups are done if appropriate; see the variable `c-cleanup-list'." | |||
| 1238 | ;; clean up brace-catch-brace | 1238 | ;; clean up brace-catch-brace |
| 1239 | (when | 1239 | (when |
| 1240 | (and (memq 'brace-catch-brace c-cleanup-list) | 1240 | (and (memq 'brace-catch-brace c-cleanup-list) |
| 1241 | (eq last-command-char ?\() | 1241 | (eq last-command-event ?\() |
| 1242 | (re-search-backward | 1242 | (re-search-backward |
| 1243 | (concat "}" | 1243 | (concat "}" |
| 1244 | "\\([ \t\n]\\|\\\\\n\\)*" | 1244 | "\\([ \t\n]\\|\\\\\n\\)*" |
| @@ -1259,7 +1259,7 @@ newline cleanups are done if appropriate; see the variable `c-cleanup-list'." | |||
| 1259 | 1259 | ||
| 1260 | ;; space-before-funcall clean-up? | 1260 | ;; space-before-funcall clean-up? |
| 1261 | ((and (memq 'space-before-funcall c-cleanup-list) | 1261 | ((and (memq 'space-before-funcall c-cleanup-list) |
| 1262 | (eq last-command-char ?\() | 1262 | (eq last-command-event ?\() |
| 1263 | (save-excursion | 1263 | (save-excursion |
| 1264 | (backward-char) | 1264 | (backward-char) |
| 1265 | (skip-chars-backward " \t") | 1265 | (skip-chars-backward " \t") |
| @@ -1277,7 +1277,7 @@ newline cleanups are done if appropriate; see the variable `c-cleanup-list'." | |||
| 1277 | ;; compact-empty-funcall clean-up? | 1277 | ;; compact-empty-funcall clean-up? |
| 1278 | ((c-save-buffer-state () | 1278 | ((c-save-buffer-state () |
| 1279 | (and (memq 'compact-empty-funcall c-cleanup-list) | 1279 | (and (memq 'compact-empty-funcall c-cleanup-list) |
| 1280 | (eq last-command-char ?\)) | 1280 | (eq last-command-event ?\)) |
| 1281 | (save-excursion | 1281 | (save-excursion |
| 1282 | (c-safe (backward-char 2)) | 1282 | (c-safe (backward-char 2)) |
| 1283 | (when (looking-at "()") | 1283 | (when (looking-at "()") |
| @@ -1306,7 +1306,7 @@ keyword on the line, the keyword is not inserted inside a literal, and | |||
| 1306 | (when (c-save-buffer-state () | 1306 | (when (c-save-buffer-state () |
| 1307 | (and c-electric-flag | 1307 | (and c-electric-flag |
| 1308 | c-syntactic-indentation | 1308 | c-syntactic-indentation |
| 1309 | (not (eq last-command-char ?_)) | 1309 | (not (eq last-command-event ?_)) |
| 1310 | (= (save-excursion | 1310 | (= (save-excursion |
| 1311 | (skip-syntax-backward "w") | 1311 | (skip-syntax-backward "w") |
| 1312 | (point)) | 1312 | (point)) |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index ddc5907b0ee..734e0ebef30 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -2037,11 +2037,11 @@ char is \"{\", insert extra newline before only if | |||
| 2037 | (save-excursion | 2037 | (save-excursion |
| 2038 | (setq insertpos (point-marker)) | 2038 | (setq insertpos (point-marker)) |
| 2039 | (goto-char other-end) | 2039 | (goto-char other-end) |
| 2040 | (setq last-command-char ?\{) | 2040 | (setq last-command-event ?\{) |
| 2041 | (cperl-electric-lbrace arg insertpos)) | 2041 | (cperl-electric-lbrace arg insertpos)) |
| 2042 | (forward-char 1)) | 2042 | (forward-char 1)) |
| 2043 | ;; Check whether we close something "usual" with `}' | 2043 | ;; Check whether we close something "usual" with `}' |
| 2044 | (if (and (eq last-command-char ?\}) | 2044 | (if (and (eq last-command-event ?\}) |
| 2045 | (not | 2045 | (not |
| 2046 | (condition-case nil | 2046 | (condition-case nil |
| 2047 | (save-excursion | 2047 | (save-excursion |
| @@ -2059,7 +2059,7 @@ char is \"{\", insert extra newline before only if | |||
| 2059 | (save-excursion | 2059 | (save-excursion |
| 2060 | (skip-chars-backward " \t") | 2060 | (skip-chars-backward " \t") |
| 2061 | (bolp))) | 2061 | (bolp))) |
| 2062 | (and (eq last-command-char ?\{) ; Do not insert newline | 2062 | (and (eq last-command-event ?\{) ; Do not insert newline |
| 2063 | ;; if after ")" and `cperl-extra-newline-before-brace' | 2063 | ;; if after ")" and `cperl-extra-newline-before-brace' |
| 2064 | ;; is nil, do not insert extra newline. | 2064 | ;; is nil, do not insert extra newline. |
| 2065 | (not cperl-extra-newline-before-brace) | 2065 | (not cperl-extra-newline-before-brace) |
| @@ -2080,7 +2080,7 @@ char is \"{\", insert extra newline before only if | |||
| 2080 | (save-excursion | 2080 | (save-excursion |
| 2081 | (if insertpos (progn (goto-char insertpos) | 2081 | (if insertpos (progn (goto-char insertpos) |
| 2082 | (search-forward (make-string | 2082 | (search-forward (make-string |
| 2083 | 1 last-command-char)) | 2083 | 1 last-command-event)) |
| 2084 | (setq insertpos (1- (point))))) | 2084 | (setq insertpos (1- (point))))) |
| 2085 | (delete-char -1)))) | 2085 | (delete-char -1)))) |
| 2086 | (if insertpos | 2086 | (if insertpos |
| @@ -2119,12 +2119,12 @@ char is \"{\", insert extra newline before only if | |||
| 2119 | (setq cperl-auto-newline nil)) | 2119 | (setq cperl-auto-newline nil)) |
| 2120 | (cperl-electric-brace arg) | 2120 | (cperl-electric-brace arg) |
| 2121 | (and (cperl-val 'cperl-electric-parens) | 2121 | (and (cperl-val 'cperl-electric-parens) |
| 2122 | (eq last-command-char ?{) | 2122 | (eq last-command-event ?{) |
| 2123 | (memq last-command-char | 2123 | (memq last-command-event |
| 2124 | (append cperl-electric-parens-string nil)) | 2124 | (append cperl-electric-parens-string nil)) |
| 2125 | (or (if other-end (goto-char (marker-position other-end))) | 2125 | (or (if other-end (goto-char (marker-position other-end))) |
| 2126 | t) | 2126 | t) |
| 2127 | (setq last-command-char ?} pos (point)) | 2127 | (setq last-command-event ?} pos (point)) |
| 2128 | (progn (cperl-electric-brace arg t) | 2128 | (progn (cperl-electric-brace arg t) |
| 2129 | (goto-char pos))))) | 2129 | (goto-char pos))))) |
| 2130 | 2130 | ||
| @@ -2141,11 +2141,11 @@ See `cperl-electric-parens'." | |||
| 2141 | (point-marker)) | 2141 | (point-marker)) |
| 2142 | nil))) | 2142 | nil))) |
| 2143 | (if (and (cperl-val 'cperl-electric-parens) | 2143 | (if (and (cperl-val 'cperl-electric-parens) |
| 2144 | (memq last-command-char | 2144 | (memq last-command-event |
| 2145 | (append cperl-electric-parens-string nil)) | 2145 | (append cperl-electric-parens-string nil)) |
| 2146 | (>= (save-excursion (cperl-to-comment-or-eol) (point)) (point)) | 2146 | (>= (save-excursion (cperl-to-comment-or-eol) (point)) (point)) |
| 2147 | ;;(not (save-excursion (search-backward "#" beg t))) | 2147 | ;;(not (save-excursion (search-backward "#" beg t))) |
| 2148 | (if (eq last-command-char ?<) | 2148 | (if (eq last-command-event ?<) |
| 2149 | (progn | 2149 | (progn |
| 2150 | (and abbrev-mode ; later it is too late, may be after `for' | 2150 | (and abbrev-mode ; later it is too late, may be after `for' |
| 2151 | (expand-abbrev)) | 2151 | (expand-abbrev)) |
| @@ -2156,7 +2156,7 @@ See `cperl-electric-parens'." | |||
| 2156 | (if other-end (goto-char (marker-position other-end))) | 2156 | (if other-end (goto-char (marker-position other-end))) |
| 2157 | (insert (make-string | 2157 | (insert (make-string |
| 2158 | (prefix-numeric-value arg) | 2158 | (prefix-numeric-value arg) |
| 2159 | (cdr (assoc last-command-char '((?{ .?}) | 2159 | (cdr (assoc last-command-event '((?{ .?}) |
| 2160 | (?[ . ?]) | 2160 | (?[ . ?]) |
| 2161 | (?( . ?)) | 2161 | (?( . ?)) |
| 2162 | (?< . ?>)))))) | 2162 | (?< . ?>)))))) |
| @@ -2171,7 +2171,7 @@ Affected by `cperl-electric-parens'." | |||
| 2171 | (let ((beg (save-excursion (beginning-of-line) (point))) | 2171 | (let ((beg (save-excursion (beginning-of-line) (point))) |
| 2172 | (other-end (if (and cperl-electric-parens-mark | 2172 | (other-end (if (and cperl-electric-parens-mark |
| 2173 | (cperl-val 'cperl-electric-parens) | 2173 | (cperl-val 'cperl-electric-parens) |
| 2174 | (memq last-command-char | 2174 | (memq last-command-event |
| 2175 | (append cperl-electric-parens-string nil)) | 2175 | (append cperl-electric-parens-string nil)) |
| 2176 | (cperl-mark-active) | 2176 | (cperl-mark-active) |
| 2177 | (< (mark) (point))) | 2177 | (< (mark) (point))) |
| @@ -2180,7 +2180,7 @@ Affected by `cperl-electric-parens'." | |||
| 2180 | p) | 2180 | p) |
| 2181 | (if (and other-end | 2181 | (if (and other-end |
| 2182 | (cperl-val 'cperl-electric-parens) | 2182 | (cperl-val 'cperl-electric-parens) |
| 2183 | (memq last-command-char '( ?\) ?\] ?\} ?\> )) | 2183 | (memq last-command-event '( ?\) ?\] ?\} ?\> )) |
| 2184 | (>= (save-excursion (cperl-to-comment-or-eol) (point)) (point)) | 2184 | (>= (save-excursion (cperl-to-comment-or-eol) (point)) (point)) |
| 2185 | ;;(not (save-excursion (search-backward "#" beg t))) | 2185 | ;;(not (save-excursion (search-backward "#" beg t))) |
| 2186 | ) | 2186 | ) |
| @@ -2190,7 +2190,7 @@ Affected by `cperl-electric-parens'." | |||
| 2190 | (if other-end (goto-char other-end)) | 2190 | (if other-end (goto-char other-end)) |
| 2191 | (insert (make-string | 2191 | (insert (make-string |
| 2192 | (prefix-numeric-value arg) | 2192 | (prefix-numeric-value arg) |
| 2193 | (cdr (assoc last-command-char '((?\} . ?\{) | 2193 | (cdr (assoc last-command-event '((?\} . ?\{) |
| 2194 | (?\] . ?\[) | 2194 | (?\] . ?\[) |
| 2195 | (?\) . ?\() | 2195 | (?\) . ?\() |
| 2196 | (?\> . ?\<)))))) | 2196 | (?\> . ?\<)))))) |
| @@ -2202,9 +2202,9 @@ Affected by `cperl-electric-parens'." | |||
| 2202 | Help message may be switched off by setting `cperl-message-electric-keyword' | 2202 | Help message may be switched off by setting `cperl-message-electric-keyword' |
| 2203 | to nil." | 2203 | to nil." |
| 2204 | (let ((beg (save-excursion (beginning-of-line) (point))) | 2204 | (let ((beg (save-excursion (beginning-of-line) (point))) |
| 2205 | (dollar (and (eq last-command-char ?$) | 2205 | (dollar (and (eq last-command-event ?$) |
| 2206 | (eq this-command 'self-insert-command))) | 2206 | (eq this-command 'self-insert-command))) |
| 2207 | (delete (and (memq last-command-char '(?\s ?\n ?\t ?\f)) | 2207 | (delete (and (memq last-command-event '(?\s ?\n ?\t ?\f)) |
| 2208 | (memq this-command '(self-insert-command newline)))) | 2208 | (memq this-command '(self-insert-command newline)))) |
| 2209 | my do) | 2209 | my do) |
| 2210 | (and (save-excursion | 2210 | (and (save-excursion |
| @@ -2258,7 +2258,7 @@ to nil." | |||
| 2258 | (forward-char 1) | 2258 | (forward-char 1) |
| 2259 | (delete-char 1))) | 2259 | (delete-char 1))) |
| 2260 | (search-backward ")") | 2260 | (search-backward ")") |
| 2261 | (if (eq last-command-char ?\() | 2261 | (if (eq last-command-event ?\() |
| 2262 | (progn ; Avoid "if (())" | 2262 | (progn ; Avoid "if (())" |
| 2263 | (delete-backward-char 1) | 2263 | (delete-backward-char 1) |
| 2264 | (delete-backward-char -1)))) | 2264 | (delete-backward-char -1)))) |
| @@ -2279,7 +2279,7 @@ to nil." | |||
| 2279 | 2279 | ||
| 2280 | (defun cperl-electric-pod () | 2280 | (defun cperl-electric-pod () |
| 2281 | "Insert a POD chunk appropriate after a =POD directive." | 2281 | "Insert a POD chunk appropriate after a =POD directive." |
| 2282 | (let ((delete (and (memq last-command-char '(?\s ?\n ?\t ?\f)) | 2282 | (let ((delete (and (memq last-command-event '(?\s ?\n ?\t ?\f)) |
| 2283 | (memq this-command '(self-insert-command newline)))) | 2283 | (memq this-command '(self-insert-command newline)))) |
| 2284 | head1 notlast name p really-delete over) | 2284 | head1 notlast name p really-delete over) |
| 2285 | (and (save-excursion | 2285 | (and (save-excursion |
| @@ -2499,7 +2499,7 @@ If in POD, insert appropriate lines." | |||
| 2499 | (interactive "P") | 2499 | (interactive "P") |
| 2500 | (let ((end (point)) | 2500 | (let ((end (point)) |
| 2501 | (auto (and cperl-auto-newline | 2501 | (auto (and cperl-auto-newline |
| 2502 | (or (not (eq last-command-char ?:)) | 2502 | (or (not (eq last-command-event ?:)) |
| 2503 | cperl-auto-newline-after-colon))) | 2503 | cperl-auto-newline-after-colon))) |
| 2504 | insertpos) | 2504 | insertpos) |
| 2505 | (if (and ;;(not arg) | 2505 | (if (and ;;(not arg) |
| @@ -2513,7 +2513,7 @@ If in POD, insert appropriate lines." | |||
| 2513 | ;; Colon is special only after a label | 2513 | ;; Colon is special only after a label |
| 2514 | ;; So quickly rule out most other uses of colon | 2514 | ;; So quickly rule out most other uses of colon |
| 2515 | ;; and do no indentation for them. | 2515 | ;; and do no indentation for them. |
| 2516 | (and (eq last-command-char ?:) | 2516 | (and (eq last-command-event ?:) |
| 2517 | (save-excursion | 2517 | (save-excursion |
| 2518 | (forward-word 1) | 2518 | (forward-word 1) |
| 2519 | (skip-chars-forward " \t") | 2519 | (skip-chars-forward " \t") |
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index bed6bb8a06b..9048b7b490c 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -2093,7 +2093,7 @@ Leave point at the end of line." | |||
| 2093 | "Typing `\\[help-command] or `? lists all the F90 abbrevs. | 2093 | "Typing `\\[help-command] or `? lists all the F90 abbrevs. |
| 2094 | Any other key combination is executed normally." | 2094 | Any other key combination is executed normally." |
| 2095 | (interactive "*") | 2095 | (interactive "*") |
| 2096 | (insert last-command-char) | 2096 | (insert last-command-event) |
| 2097 | (let (char event) | 2097 | (let (char event) |
| 2098 | (if (fboundp 'next-command-event) ; XEmacs | 2098 | (if (fboundp 'next-command-event) ; XEmacs |
| 2099 | (setq event (next-command-event) | 2099 | (setq event (next-command-event) |
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el index 4517eb57a7b..d729462731c 100644 --- a/lisp/progmodes/fortran.el +++ b/lisp/progmodes/fortran.el | |||
| @@ -1006,7 +1006,7 @@ With non-nil ARG, uncomments the region." | |||
| 1006 | "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs. | 1006 | "Typing ;\\[help-command] or ;? lists all the Fortran abbrevs. |
| 1007 | Any other key combination is executed normally." | 1007 | Any other key combination is executed normally." |
| 1008 | (interactive "*") | 1008 | (interactive "*") |
| 1009 | (insert last-command-char) | 1009 | (insert last-command-event) |
| 1010 | (let* ((event (if (fboundp 'next-command-event) ; XEmacs | 1010 | (let* ((event (if (fboundp 'next-command-event) ; XEmacs |
| 1011 | (next-command-event) | 1011 | (next-command-event) |
| 1012 | (read-event))) | 1012 | (read-event))) |
| @@ -1167,7 +1167,7 @@ Auto-indent does not happen if a numeric ARG is used." | |||
| 1167 | (looking-at "[0-9]")) ; within a line number | 1167 | (looking-at "[0-9]")) ; within a line number |
| 1168 | (self-insert-command (prefix-numeric-value arg)) | 1168 | (self-insert-command (prefix-numeric-value arg)) |
| 1169 | (skip-chars-backward " \t") | 1169 | (skip-chars-backward " \t") |
| 1170 | (insert last-command-char) | 1170 | (insert last-command-event) |
| 1171 | (fortran-indent-line)))) | 1171 | (fortran-indent-line)))) |
| 1172 | 1172 | ||
| 1173 | 1173 | ||
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 727219161de..e3636f49c06 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el | |||
| @@ -225,7 +225,7 @@ with no args, if that value is non-nil." | |||
| 225 | (progn (icon-indent-line) (newline) t) | 225 | (progn (icon-indent-line) (newline) t) |
| 226 | nil))) | 226 | nil))) |
| 227 | (progn | 227 | (progn |
| 228 | (insert last-command-char) | 228 | (insert last-command-event) |
| 229 | (icon-indent-line) | 229 | (icon-indent-line) |
| 230 | (if icon-auto-newline | 230 | (if icon-auto-newline |
| 231 | (progn | 231 | (progn |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index ca0ba3137bf..b9ee458d2e0 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;; idlwave.el --- IDL editing mode for GNU Emacs | 1 | ;; idlwave.el --- IDL editing mode for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 3 | ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2008, 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Authors: J.D. Smith <jdsmith@as.arizona.edu> | 6 | ;; Authors: J.D. Smith <jdsmith@as.arizona.edu> |
| 7 | ;; Carsten Dominik <dominik@science.uva.nl> | 7 | ;; Carsten Dominik <dominik@science.uva.nl> |
| @@ -2119,7 +2119,7 @@ Returns point if comment found and nil otherwise." | |||
| 2119 | "Insert quote and show matching quote if this is end of a string." | 2119 | "Insert quote and show matching quote if this is end of a string." |
| 2120 | (interactive) | 2120 | (interactive) |
| 2121 | (let ((bq (idlwave-in-quote)) | 2121 | (let ((bq (idlwave-in-quote)) |
| 2122 | (inq last-command-char)) | 2122 | (inq last-command-event)) |
| 2123 | (if (and bq (not (idlwave-in-comment))) | 2123 | (if (and bq (not (idlwave-in-comment))) |
| 2124 | (let ((delim (char-after bq))) | 2124 | (let ((delim (char-after bq))) |
| 2125 | (insert inq) | 2125 | (insert inq) |
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index b61eb3516f8..6f5a69f890a 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el | |||
| @@ -1312,7 +1312,7 @@ Insert a newline if `octave-auto-newline' is non-nil." | |||
| 1312 | Maybe expand abbrevs and blink matching block open keywords. | 1312 | Maybe expand abbrevs and blink matching block open keywords. |
| 1313 | Reindent the line of `octave-auto-indent' is non-nil." | 1313 | Reindent the line of `octave-auto-indent' is non-nil." |
| 1314 | (interactive) | 1314 | (interactive) |
| 1315 | (setq last-command-char ? ) | 1315 | (setq last-command-event ? ) |
| 1316 | (if (and octave-auto-indent | 1316 | (if (and octave-auto-indent |
| 1317 | (not (octave-not-in-string-or-comment-p))) | 1317 | (not (octave-not-in-string-or-comment-p))) |
| 1318 | (progn | 1318 | (progn |
| @@ -1338,7 +1338,7 @@ Note that all Octave mode abbrevs start with a grave accent." | |||
| 1338 | (if (not abbrev-mode) | 1338 | (if (not abbrev-mode) |
| 1339 | (self-insert-command 1) | 1339 | (self-insert-command 1) |
| 1340 | (let (c) | 1340 | (let (c) |
| 1341 | (insert last-command-char) | 1341 | (insert last-command-event) |
| 1342 | (if (if (featurep 'xemacs) | 1342 | (if (if (featurep 'xemacs) |
| 1343 | (or (eq (event-to-character (setq c (next-event))) ??) | 1343 | (or (eq (event-to-character (setq c (next-event))) ??) |
| 1344 | (eq (event-to-character c) help-char)) | 1344 | (eq (event-to-character c) help-char)) |
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index 2c35209639c..eefdfc7cccd 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; pascal.el --- major mode for editing pascal source in Emacs | 1 | ;;; pascal.el --- major mode for editing pascal source in Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
| 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: Espen Skoglund <esk@gnu.org> | 7 | ;; Author: Espen Skoglund <esk@gnu.org> |
| 7 | ;; Keywords: languages | 8 | ;; Keywords: languages |
| @@ -429,7 +430,7 @@ no args, if that value is non-nil." | |||
| 429 | (defun electric-pascal-semi-or-dot () | 430 | (defun electric-pascal-semi-or-dot () |
| 430 | "Insert `;' or `.' character and reindent the line." | 431 | "Insert `;' or `.' character and reindent the line." |
| 431 | (interactive) | 432 | (interactive) |
| 432 | (insert last-command-char) | 433 | (insert last-command-event) |
| 433 | (save-excursion | 434 | (save-excursion |
| 434 | (beginning-of-line) | 435 | (beginning-of-line) |
| 435 | (pascal-indent-line)) | 436 | (pascal-indent-line)) |
| @@ -439,7 +440,7 @@ no args, if that value is non-nil." | |||
| 439 | (defun electric-pascal-colon () | 440 | (defun electric-pascal-colon () |
| 440 | "Insert `:' and do all indentions except line indent on this line." | 441 | "Insert `:' and do all indentions except line indent on this line." |
| 441 | (interactive) | 442 | (interactive) |
| 442 | (insert last-command-char) | 443 | (insert last-command-event) |
| 443 | ;; Do nothing if within string. | 444 | ;; Do nothing if within string. |
| 444 | (if (pascal-within-string) | 445 | (if (pascal-within-string) |
| 445 | () | 446 | () |
| @@ -452,7 +453,7 @@ no args, if that value is non-nil." | |||
| 452 | (defun electric-pascal-equal () | 453 | (defun electric-pascal-equal () |
| 453 | "Insert `=', and do indention if within type declaration." | 454 | "Insert `=', and do indention if within type declaration." |
| 454 | (interactive) | 455 | (interactive) |
| 455 | (insert last-command-char) | 456 | (insert last-command-event) |
| 456 | (if (eq (car (pascal-calculate-indent)) 'declaration) | 457 | (if (eq (car (pascal-calculate-indent)) 'declaration) |
| 457 | (let ((pascal-tab-always-indent nil)) | 458 | (let ((pascal-tab-always-indent nil)) |
| 458 | (pascal-indent-command)))) | 459 | (pascal-indent-command)))) |
| @@ -460,7 +461,7 @@ no args, if that value is non-nil." | |||
| 460 | (defun electric-pascal-hash () | 461 | (defun electric-pascal-hash () |
| 461 | "Insert `#', and indent to column 0 if this is a CPP directive." | 462 | "Insert `#', and indent to column 0 if this is a CPP directive." |
| 462 | (interactive) | 463 | (interactive) |
| 463 | (insert last-command-char) | 464 | (insert last-command-event) |
| 464 | (if (save-excursion (beginning-of-line) (looking-at "^[ \t]*#")) | 465 | (if (save-excursion (beginning-of-line) (looking-at "^[ \t]*#")) |
| 465 | (save-excursion (beginning-of-line) | 466 | (save-excursion (beginning-of-line) |
| 466 | (delete-horizontal-space)))) | 467 | (delete-horizontal-space)))) |
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index b9275be67df..25950cd0aab 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; perl-mode.el --- Perl code editing commands for GNU Emacs | 1 | ;;; perl-mode.el --- Perl code editing commands for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 3 | ;; Copyright (C) 1990, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2008, 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: William F. Mann | 6 | ;; Author: William F. Mann |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -606,14 +606,14 @@ If at end-of-line, and not in a comment or a quote, correct the's indentation." | |||
| 606 | (and (not ; eliminate comments quickly | 606 | (and (not ; eliminate comments quickly |
| 607 | (and comment-start-skip | 607 | (and comment-start-skip |
| 608 | (re-search-forward comment-start-skip insertpos t)) ) | 608 | (re-search-forward comment-start-skip insertpos t)) ) |
| 609 | (or (/= last-command-char ?:) | 609 | (or (/= last-command-event ?:) |
| 610 | ;; Colon is special only after a label .... | 610 | ;; Colon is special only after a label .... |
| 611 | (looking-at "\\s-*\\(\\w\\|\\s_\\)+$")) | 611 | (looking-at "\\s-*\\(\\w\\|\\s_\\)+$")) |
| 612 | (let ((pps (parse-partial-sexp | 612 | (let ((pps (parse-partial-sexp |
| 613 | (perl-beginning-of-function) insertpos))) | 613 | (perl-beginning-of-function) insertpos))) |
| 614 | (not (or (nth 3 pps) (nth 4 pps) (nth 5 pps)))))) | 614 | (not (or (nth 3 pps) (nth 4 pps) (nth 5 pps)))))) |
| 615 | (progn ; must insert, indent, delete | 615 | (progn ; must insert, indent, delete |
| 616 | (insert-char last-command-char 1) | 616 | (insert-char last-command-event 1) |
| 617 | (perl-indent-line) | 617 | (perl-indent-line) |
| 618 | (delete-char -1)))) | 618 | (delete-char -1)))) |
| 619 | (self-insert-command (prefix-numeric-value arg))) | 619 | (self-insert-command (prefix-numeric-value arg))) |
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index a5c97b02984..b62255fbf91 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; prolog.el --- major mode for editing and running Prolog under Emacs | 1 | ;;; prolog.el --- major mode for editing and running Prolog under Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1986, 1987, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 3 | ;; Copyright (C) 1986, 1987, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2008, 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> | 6 | ;; Author: Masanobu UMEDA <umerin@mse.kyutech.ac.jp> |
| 7 | ;; Keywords: languages | 7 | ;; Keywords: languages |
| @@ -357,7 +357,7 @@ With prefix argument \\[universal-prefix], prompt for the program to use." | |||
| 357 | (save-excursion | 357 | (save-excursion |
| 358 | (goto-char (- pmark 3)) | 358 | (goto-char (- pmark 3)) |
| 359 | (looking-at " \\? "))) | 359 | (looking-at " \\? "))) |
| 360 | (comint-send-string proc (string last-command-char)) | 360 | (comint-send-string proc (string last-command-event)) |
| 361 | (call-interactively 'self-insert-command)))) | 361 | (call-interactively 'self-insert-command)))) |
| 362 | 362 | ||
| 363 | (defun prolog-consult-region (compile beg end) | 363 | (defun prolog-consult-region (compile beg end) |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 3dc4b6a3cd1..be0697675b0 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -3747,7 +3747,7 @@ The document is bounded by `sh-here-document-word'." | |||
| 3747 | (interactive "*P") | 3747 | (interactive "*P") |
| 3748 | (self-insert-command (prefix-numeric-value arg)) | 3748 | (self-insert-command (prefix-numeric-value arg)) |
| 3749 | (or arg | 3749 | (or arg |
| 3750 | (not (eq (char-after (- (point) 2)) last-command-char)) | 3750 | (not (eq (char-after (- (point) 2)) last-command-event)) |
| 3751 | (save-excursion | 3751 | (save-excursion |
| 3752 | (backward-char 2) | 3752 | (backward-char 2) |
| 3753 | (sh-quoted-p)) | 3753 | (sh-quoted-p)) |
diff --git a/lisp/progmodes/simula.el b/lisp/progmodes/simula.el index e3b0d065b18..a3cac01680f 100644 --- a/lisp/progmodes/simula.el +++ b/lisp/progmodes/simula.el | |||
| @@ -1197,7 +1197,7 @@ If COUNT is negative, move backward instead." | |||
| 1197 | ;; to have the line inserted after the begin-end match. | 1197 | ;; to have the line inserted after the begin-end match. |
| 1198 | (if show-char | 1198 | (if show-char |
| 1199 | (progn | 1199 | (progn |
| 1200 | (insert-char last-command-char 1) | 1200 | (insert-char last-command-event 1) |
| 1201 | (sit-for 0) | 1201 | (sit-for 0) |
| 1202 | (backward-char 1))) | 1202 | (backward-char 1))) |
| 1203 | (if (let ((where (simula-context)) | 1203 | (if (let ((where (simula-context)) |
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index 2484146abc3..8760df78ddf 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el | |||
| @@ -634,7 +634,7 @@ Commands: | |||
| 634 | ;; Indent line first; this looks better if parens blink. | 634 | ;; Indent line first; this looks better if parens blink. |
| 635 | (tcl-indent-line) | 635 | (tcl-indent-line) |
| 636 | (self-insert-command arg) | 636 | (self-insert-command arg) |
| 637 | (if (and tcl-auto-newline (= last-command-char ?\;)) | 637 | (if (and tcl-auto-newline (= last-command-event ?\;)) |
| 638 | (progn | 638 | (progn |
| 639 | (newline) | 639 | (newline) |
| 640 | (tcl-indent-line)))) | 640 | (tcl-indent-line)))) |
| @@ -658,7 +658,7 @@ Commands: | |||
| 658 | ;; In auto-newline case, must insert a newline after each | 658 | ;; In auto-newline case, must insert a newline after each |
| 659 | ;; brace. So an explicit loop is needed. | 659 | ;; brace. So an explicit loop is needed. |
| 660 | (while (> arg 0) | 660 | (while (> arg 0) |
| 661 | (insert last-command-char) | 661 | (insert last-command-event) |
| 662 | (tcl-indent-line) | 662 | (tcl-indent-line) |
| 663 | (newline) | 663 | (newline) |
| 664 | (setq arg (1- arg)))) | 664 | (setq arg (1- arg)))) |
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el index 4ed0688940c..5340112d2c7 100644 --- a/lisp/progmodes/vera-mode.el +++ b/lisp/progmodes/vera-mode.el | |||
| @@ -1340,7 +1340,7 @@ If `vera-intelligent-tab' is nil, always indent line." | |||
| 1340 | (interactive "*P") | 1340 | (interactive "*P") |
| 1341 | (let* ((ch (char-before)) | 1341 | (let* ((ch (char-before)) |
| 1342 | (indentp (and (not arg) | 1342 | (indentp (and (not arg) |
| 1343 | (eq last-command-char ?/) | 1343 | (eq last-command-event ?/) |
| 1344 | (or (and (eq ch ?/) | 1344 | (or (and (eq ch ?/) |
| 1345 | (not (vera-in-literal))) | 1345 | (not (vera-in-literal))) |
| 1346 | (and (eq ch ?*) | 1346 | (and (eq ch ?*) |
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 37aa224f151..8670d66864f 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -2661,7 +2661,7 @@ With optional ARG, remove existing end of line comments." | |||
| 2661 | (defun electric-verilog-semi () | 2661 | (defun electric-verilog-semi () |
| 2662 | "Insert `;' character and reindent the line." | 2662 | "Insert `;' character and reindent the line." |
| 2663 | (interactive) | 2663 | (interactive) |
| 2664 | (insert last-command-char) | 2664 | (insert last-command-event) |
| 2665 | 2665 | ||
| 2666 | (if (or (verilog-in-comment-or-string-p) | 2666 | (if (or (verilog-in-comment-or-string-p) |
| 2667 | (verilog-in-escaped-name-p)) | 2667 | (verilog-in-escaped-name-p)) |
| @@ -2686,7 +2686,7 @@ With optional ARG, remove existing end of line comments." | |||
| 2686 | (defun electric-verilog-colon () | 2686 | (defun electric-verilog-colon () |
| 2687 | "Insert `:' and do all indentations except line indent on this line." | 2687 | "Insert `:' and do all indentations except line indent on this line." |
| 2688 | (interactive) | 2688 | (interactive) |
| 2689 | (insert last-command-char) | 2689 | (insert last-command-event) |
| 2690 | ;; Do nothing if within string. | 2690 | ;; Do nothing if within string. |
| 2691 | (if (or | 2691 | (if (or |
| 2692 | (verilog-within-string) | 2692 | (verilog-within-string) |
| @@ -2705,7 +2705,7 @@ With optional ARG, remove existing end of line comments." | |||
| 2705 | ;;(defun electric-verilog-equal () | 2705 | ;;(defun electric-verilog-equal () |
| 2706 | ;; "Insert `=', and do indentation if within block." | 2706 | ;; "Insert `=', and do indentation if within block." |
| 2707 | ;; (interactive) | 2707 | ;; (interactive) |
| 2708 | ;; (insert last-command-char) | 2708 | ;; (insert last-command-event) |
| 2709 | ;; Could auto line up expressions, but not yet | 2709 | ;; Could auto line up expressions, but not yet |
| 2710 | ;; (if (eq (car (verilog-calculate-indent)) 'block) | 2710 | ;; (if (eq (car (verilog-calculate-indent)) 'block) |
| 2711 | ;; (let ((verilog-tab-always-indent nil)) | 2711 | ;; (let ((verilog-tab-always-indent nil)) |
| @@ -2715,7 +2715,7 @@ With optional ARG, remove existing end of line comments." | |||
| 2715 | (defun electric-verilog-tick () | 2715 | (defun electric-verilog-tick () |
| 2716 | "Insert back-tick, and indent to column 0 if this is a CPP directive." | 2716 | "Insert back-tick, and indent to column 0 if this is a CPP directive." |
| 2717 | (interactive) | 2717 | (interactive) |
| 2718 | (insert last-command-char) | 2718 | (insert last-command-event) |
| 2719 | (save-excursion | 2719 | (save-excursion |
| 2720 | (if (progn | 2720 | (if (progn |
| 2721 | (beginning-of-line) | 2721 | (beginning-of-line) |
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index a44d8ba21eb..c44d4c82114 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -10612,7 +10612,7 @@ but not if inside a comment or quote." | |||
| 10612 | (backward-word 1) | 10612 | (backward-word 1) |
| 10613 | (vhdl-case-word 1) | 10613 | (vhdl-case-word 1) |
| 10614 | (delete-char 1)) | 10614 | (delete-char 1)) |
| 10615 | (let ((invoke-char last-command-char) | 10615 | (let ((invoke-char last-command-event) |
| 10616 | (abbrev-mode -1) | 10616 | (abbrev-mode -1) |
| 10617 | (vhdl-template-invoked-by-hook t)) | 10617 | (vhdl-template-invoked-by-hook t)) |
| 10618 | (let ((caught (catch 'abort | 10618 | (let ((caught (catch 'abort |
diff --git a/lisp/progmodes/xscheme.el b/lisp/progmodes/xscheme.el index ebec93d457d..56c4aaaa5da 100644 --- a/lisp/progmodes/xscheme.el +++ b/lisp/progmodes/xscheme.el | |||
| @@ -515,7 +515,7 @@ Commands: | |||
| 515 | (defun scheme-debugger-self-insert () | 515 | (defun scheme-debugger-self-insert () |
| 516 | "Transmit this character to the Scheme process." | 516 | "Transmit this character to the Scheme process." |
| 517 | (interactive) | 517 | (interactive) |
| 518 | (xscheme-send-char last-command-char)) | 518 | (xscheme-send-char last-command-event)) |
| 519 | 519 | ||
| 520 | (defun xscheme-enter-debugger-mode (prompt-string) | 520 | (defun xscheme-enter-debugger-mode (prompt-string) |
| 521 | (save-excursion | 521 | (save-excursion |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 9322f4fe61e..68a33e06896 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -595,16 +595,16 @@ Uses `sgml-char-names'." | |||
| 595 | (defun sgml-name-self () | 595 | (defun sgml-name-self () |
| 596 | "Insert a symbolic character name according to `sgml-char-names'." | 596 | "Insert a symbolic character name according to `sgml-char-names'." |
| 597 | (interactive "*") | 597 | (interactive "*") |
| 598 | (sgml-name-char last-command-char)) | 598 | (sgml-name-char last-command-event)) |
| 599 | 599 | ||
| 600 | (defun sgml-maybe-name-self () | 600 | (defun sgml-maybe-name-self () |
| 601 | "Insert a symbolic character name according to `sgml-char-names'." | 601 | "Insert a symbolic character name according to `sgml-char-names'." |
| 602 | (interactive "*") | 602 | (interactive "*") |
| 603 | (if sgml-name-8bit-mode | 603 | (if sgml-name-8bit-mode |
| 604 | (let ((mc last-command-char)) | 604 | (let ((mc last-command-event)) |
| 605 | (if (< mc 256) | 605 | (if (< mc 256) |
| 606 | (setq mc (unibyte-char-to-multibyte mc))) | 606 | (setq mc (unibyte-char-to-multibyte mc))) |
| 607 | (or mc (setq mc last-command-char)) | 607 | (or mc (setq mc last-command-event)) |
| 608 | (sgml-name-char mc)) | 608 | (sgml-name-char mc)) |
| 609 | (self-insert-command 1))) | 609 | (self-insert-command 1))) |
| 610 | 610 | ||
| @@ -714,7 +714,7 @@ With prefix argument, only self insert." | |||
| 714 | (eq (aref tag 0) ?/)) | 714 | (eq (aref tag 0) ?/)) |
| 715 | (self-insert-command (prefix-numeric-value arg)) | 715 | (self-insert-command (prefix-numeric-value arg)) |
| 716 | (sgml-attributes tag) | 716 | (sgml-attributes tag) |
| 717 | (setq last-command-char ?\s) | 717 | (setq last-command-event ?\s) |
| 718 | (or (> (point) point) | 718 | (or (> (point) point) |
| 719 | (self-insert-command 1))))) | 719 | (self-insert-command 1))))) |
| 720 | 720 | ||
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 45c8cb2999d..fbfdf573640 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Keywords: wp, convenience | 6 | ;; Keywords: wp, convenience |
| 7 | ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com> | 7 | ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com> |
| 8 | ;; Created: Sat Jul 08 2000 13:28:45 (PST) | 8 | ;; Created: Sat Jul 08 2000 13:28:45 (PST) |
| 9 | ;; Revised: Wed Jan 03 2007 13:23:46 (PST) | 9 | ;; Revised: Thu Jan 08 2009 20:17:04 (PST) |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -3943,7 +3943,7 @@ converts a table into plain text without frames. It is a companion to | |||
| 3943 | (defun *table--cell-self-insert-command () | 3943 | (defun *table--cell-self-insert-command () |
| 3944 | "Table cell version of `self-insert-command'." | 3944 | "Table cell version of `self-insert-command'." |
| 3945 | (interactive "*") | 3945 | (interactive "*") |
| 3946 | (let ((char (table--unibyte-char-to-multibyte last-command-char))) | 3946 | (let ((char (table--unibyte-char-to-multibyte last-command-event))) |
| 3947 | (if (eq buffer-undo-list t) nil | 3947 | (if (eq buffer-undo-list t) nil |
| 3948 | (if (not (eq last-command this-command)) | 3948 | (if (not (eq last-command this-command)) |
| 3949 | (setq table-cell-self-insert-command-count 0) | 3949 | (setq table-cell-self-insert-command-count 0) |
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index 0e95284b27d..8cbe801fc40 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el | |||
| @@ -580,10 +580,10 @@ on, this also realigns the two buffers." | |||
| 580 | ;; catch a mouse scroll on non-selected scrollbar | 580 | ;; catch a mouse scroll on non-selected scrollbar |
| 581 | (select-window | 581 | (select-window |
| 582 | (prog1 (selected-window) | 582 | (prog1 (selected-window) |
| 583 | (and (consp last-command-char) | 583 | (and (consp last-command-event) |
| 584 | (not (eq (selected-window) | 584 | (not (eq (selected-window) |
| 585 | (car (car (cdr last-command-char))))) | 585 | (car (car (cdr last-command-event))))) |
| 586 | (select-window (car (car (cdr last-command-char))))) | 586 | (select-window (car (car (cdr last-command-event))))) |
| 587 | ;; In some cases scrolling causes an error, but post-command-hook | 587 | ;; In some cases scrolling causes an error, but post-command-hook |
| 588 | ;; shouldn't, and should always stay in the original window | 588 | ;; shouldn't, and should always stay in the original window |
| 589 | (condition-case () | 589 | (condition-case () |