diff options
| author | Eli Zaretskii | 2005-04-16 15:28:10 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-04-16 15:28:10 +0000 |
| commit | ccb9871da323d805da12934a4be39442ae0852c6 (patch) | |
| tree | c6e8eb15f9a20f9611a2e592d2ce95afb42e93c4 | |
| parent | 3d70f2795c497ee64a5295a9368b601667586b6f (diff) | |
| download | emacs-ccb9871da323d805da12934a4be39442ae0852c6.tar.gz emacs-ccb9871da323d805da12934a4be39442ae0852c6.zip | |
(repeat): Invoke pre-command-hook and post-command-hook.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/repeat.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b8c35544cc8..3d2e37b25d7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-04-16 Matt Hodges <MPHodges@member.fsf.org> (tiny change) | ||
| 2 | |||
| 3 | * repeat.el (repeat): Invoke pre-command-hook and | ||
| 4 | post-command-hook. | ||
| 5 | |||
| 1 | 2005-04-16 Chong Yidong <cyd@stupidchicken.com> | 6 | 2005-04-16 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * filesets.el (filesets-add-buffer): If user supplies a name of a | 8 | * filesets.el (filesets-add-buffer): If user supplies a name of a |
diff --git a/lisp/repeat.el b/lisp/repeat.el index aa73c869675..5f0811d355c 100644 --- a/lisp/repeat.el +++ b/lisp/repeat.el | |||
| @@ -284,7 +284,9 @@ can be modified by the global variable `repeat-on-final-keystroke'." | |||
| 284 | ;; does not alter it. | 284 | ;; does not alter it. |
| 285 | (let ((real-last-command real-last-command)) | 285 | (let ((real-last-command real-last-command)) |
| 286 | (execute-kbd-macro real-last-command)) | 286 | (execute-kbd-macro real-last-command)) |
| 287 | (call-interactively real-last-command))))) | 287 | (run-hooks 'pre-command-hook) |
| 288 | (call-interactively real-last-command) | ||
| 289 | (run-hooks 'post-command-hook))))) | ||
| 288 | (when repeat-repeat-char | 290 | (when repeat-repeat-char |
| 289 | ;; A simple recursion here gets into trouble with max-lisp-eval-depth | 291 | ;; A simple recursion here gets into trouble with max-lisp-eval-depth |
| 290 | ;; on long sequences of repetitions of a command like `forward-word' | 292 | ;; on long sequences of repetitions of a command like `forward-word' |