diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-08-21 22:00:21 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-08-21 22:00:21 +0000 |
commit | bc4d7e7bcc5dd77418efe585e3c9214aab416cd0 (patch) | |
tree | a0bb98770bf66d78860d79e51afc1e3a2e7dea03 /lisp/paren.el | |
parent | c78dd1bb5c7c08561e909e7dad84e9b5912ad52c (diff) | |
download | emacs-bc4d7e7bcc5dd77418efe585e3c9214aab416cd0.tar.gz |
Use post-command-idle-hook.
(show-paren-command-hook): No need to test for idleness.
Diffstat (limited to 'lisp/paren.el')
-rw-r--r-- | lisp/paren.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index 656c4df5c5c..60a65a5469d 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -45,9 +45,7 @@ ;; Do nothing if no window system to display results with. ;; Do nothing if executing keyboard macro. ;; Do nothing if input is pending. - (if (and window-system (not executing-kbd-macro) - (not unread-command-events) - (sit-for 0 100)) + (if window-system (let (pos dir mismatch (oldpos (point)) (face show-paren-face)) (cond ((eq (char-syntax (preceding-char)) ?\)) @@ -131,14 +129,14 @@ (if window-system (progn (setq blink-paren-function nil) - (add-hook 'post-command-hook 'show-paren-command-hook))) + (add-hook 'post-command-idle-hook 'show-paren-command-hook))) ;;; This is in case paren.el is preloaded. (add-hook 'window-setup-hook (function (lambda () (if window-system (progn (setq blink-paren-function nil) - (add-hook 'post-command-hook + (add-hook 'post-command-idle-hook 'show-paren-command-hook)))))) (provide 'paren) |