* lisp/repeat.el (repeat): Set real-this-command.

Fixes: debbugs:12232
This commit is contained in:
Stefan Monnier 2012-10-23 12:57:31 -04:00
parent 7108f8e38a
commit d20d69c098
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
* repeat.el (repeat): Set real-this-command (bug#12232).
* htmlfontify.el (hfy-post-html-hook):
* filesets.el (filesets-cache-fill-content-hook):
* arc-mode.el (archive-extract-hook):

View file

@ -289,6 +289,10 @@ recently executed command not bound to an input event\"."
(interactive)
(let ((repeat-message-function fun))
(setq this-command 'repeat)
;; Beware: messing with `real-this-command' is *bad*, but we
;; need it so `last-repeatable-command' can be recognized
;; later (bug#12232).
(setq real-this-command 'repeat)
(call-interactively 'repeat))))))
map)))))