diff options
| author | Stefan Monnier | 2012-10-23 12:57:31 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-23 12:57:31 -0400 |
| commit | d20d69c098377609caaafafbe98dc118ff8a6e77 (patch) | |
| tree | 132d43f7573b19f9d2c04ad3b1a91038eab0d977 /lisp | |
| parent | 7108f8e38a73bafbea34eafd385aba243fe56a37 (diff) | |
| download | emacs-d20d69c098377609caaafafbe98dc118ff8a6e77.tar.gz emacs-d20d69c098377609caaafafbe98dc118ff8a6e77.zip | |
* lisp/repeat.el (repeat): Set real-this-command.
Fixes: debbugs:12232
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/repeat.el | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 16c4983d385..593b2a935b7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * repeat.el (repeat): Set real-this-command (bug#12232). | ||
| 4 | |||
| 3 | * htmlfontify.el (hfy-post-html-hook): | 5 | * htmlfontify.el (hfy-post-html-hook): |
| 4 | * filesets.el (filesets-cache-fill-content-hook): | 6 | * filesets.el (filesets-cache-fill-content-hook): |
| 5 | * arc-mode.el (archive-extract-hook): | 7 | * arc-mode.el (archive-extract-hook): |
diff --git a/lisp/repeat.el b/lisp/repeat.el index e38442a434b..a6c803ae773 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el | |||
| @@ -289,6 +289,10 @@ recently executed command not bound to an input event\"." | |||
| 289 | (interactive) | 289 | (interactive) |
| 290 | (let ((repeat-message-function fun)) | 290 | (let ((repeat-message-function fun)) |
| 291 | (setq this-command 'repeat) | 291 | (setq this-command 'repeat) |
| 292 | ;; Beware: messing with `real-this-command' is *bad*, but we | ||
| 293 | ;; need it so `last-repeatable-command' can be recognized | ||
| 294 | ;; later (bug#12232). | ||
| 295 | (setq real-this-command 'repeat) | ||
| 292 | (call-interactively 'repeat)))))) | 296 | (call-interactively 'repeat)))))) |
| 293 | map))))) | 297 | map))))) |
| 294 | 298 | ||