diff options
| author | Juanma Barranquero | 2013-09-23 04:58:02 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-09-23 04:58:02 +0200 |
| commit | 57b16162ceacfd46efd784f0693b210b85d82762 (patch) | |
| tree | 599316aabde91e1eeb754905c9b95e7db71b1e2c | |
| parent | a84683fdd5dcb629a59807e78c413e21f21a186d (diff) | |
| download | emacs-57b16162ceacfd46efd784f0693b210b85d82762.tar.gz emacs-57b16162ceacfd46efd784f0693b210b85d82762.zip | |
Remove references to universal-argument-num-events.
* lisp/autoarg.el (autoarg-kp-digit-argument):
* lisp/electric.el (Electric-command-loop):
* lisp/kmacro.el (kmacro-step-edit-insert):
Do not set universal-argument-num-events.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/autoarg.el | 1 | ||||
| -rw-r--r-- | lisp/electric.el | 2 | ||||
| -rw-r--r-- | lisp/kmacro.el | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0cc066b010e..f5cdbcbb9b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-09-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * autoarg.el (autoarg-kp-digit-argument): | ||
| 4 | * electric.el (Electric-command-loop): | ||
| 5 | * kmacro.el (kmacro-step-edit-insert): | ||
| 6 | Do not set universal-argument-num-events. | ||
| 7 | |||
| 1 | 2013-09-22 Leo Liu <sdl.web@gmail.com> | 8 | 2013-09-22 Leo Liu <sdl.web@gmail.com> |
| 2 | 9 | ||
| 3 | * files.el (interpreter-mode-alist): Add octave. | 10 | * files.el (interpreter-mode-alist): Add octave. |
diff --git a/lisp/autoarg.el b/lisp/autoarg.el index 6878995454a..7501f09c773 100644 --- a/lisp/autoarg.el +++ b/lisp/autoarg.el | |||
| @@ -75,7 +75,6 @@ | |||
| 75 | (setq prefix-arg (if (zerop digit) '- (- digit)))) | 75 | (setq prefix-arg (if (zerop digit) '- (- digit)))) |
| 76 | (t | 76 | (t |
| 77 | (setq prefix-arg digit)))) | 77 | (setq prefix-arg digit)))) |
| 78 | (setq universal-argument-num-events (length (this-command-keys))) | ||
| 79 | (setq overriding-terminal-local-map universal-argument-map)) | 78 | (setq overriding-terminal-local-map universal-argument-map)) |
| 80 | 79 | ||
| 81 | (defvar autoarg-kp-mode-map | 80 | (defvar autoarg-kp-mode-map |
diff --git a/lisp/electric.el b/lisp/electric.el index 351468fd75d..36ec4a00b88 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -78,8 +78,6 @@ | |||
| 78 | (setq last-command-event (aref cmd (1- (length cmd))) | 78 | (setq last-command-event (aref cmd (1- (length cmd))) |
| 79 | this-command (key-binding cmd t) | 79 | this-command (key-binding cmd t) |
| 80 | cmd this-command) | 80 | cmd this-command) |
| 81 | ;; This makes universal-argument-other-key work. | ||
| 82 | (setq universal-argument-num-events 0) | ||
| 83 | (if (or (prog1 quit-flag (setq quit-flag nil)) | 81 | (if (or (prog1 quit-flag (setq quit-flag nil)) |
| 84 | (eq last-input-event ?\C-g)) | 82 | (eq last-input-event ?\C-g)) |
| 85 | (progn (setq unread-command-events nil | 83 | (progn (setq unread-command-events nil |
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index d6de2feb3fc..d20b54eba35 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -1194,12 +1194,10 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1194 | (setq cmd 'ignore) | 1194 | (setq cmd 'ignore) |
| 1195 | nil) | 1195 | nil) |
| 1196 | ((memq cmd kmacro-step-edit-prefix-commands) | 1196 | ((memq cmd kmacro-step-edit-prefix-commands) |
| 1197 | (setq universal-argument-num-events 0) | ||
| 1198 | (reset-this-command-lengths) | 1197 | (reset-this-command-lengths) |
| 1199 | nil) | 1198 | nil) |
| 1200 | ((eq cmd 'universal-argument-other-key) | 1199 | ((eq cmd 'universal-argument-other-key) |
| 1201 | (setq kmacro-step-edit-action t) | 1200 | (setq kmacro-step-edit-action t) |
| 1202 | (setq universal-argument-num-events 0) | ||
| 1203 | (reset-this-command-lengths) | 1201 | (reset-this-command-lengths) |
| 1204 | (if (numberp kmacro-step-edit-inserting) | 1202 | (if (numberp kmacro-step-edit-inserting) |
| 1205 | (setq kmacro-step-edit-inserting nil)) | 1203 | (setq kmacro-step-edit-inserting nil)) |
| @@ -1214,7 +1212,6 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 1214 | (setq kmacro-step-edit-prefix-index nil) | 1212 | (setq kmacro-step-edit-prefix-index nil) |
| 1215 | (reset-this-command-lengths) | 1213 | (reset-this-command-lengths) |
| 1216 | (setq overriding-terminal-local-map nil) | 1214 | (setq overriding-terminal-local-map nil) |
| 1217 | (setq universal-argument-num-events nil) | ||
| 1218 | (setq next-index kmacro-step-edit-key-index) | 1215 | (setq next-index kmacro-step-edit-key-index) |
| 1219 | t) | 1216 | t) |
| 1220 | (t nil)) | 1217 | (t nil)) |