]> git.eshelyaron.com Git - emacs.git/commitdiff
Use post-command-idle-hook.
authorRichard M. Stallman <rms@gnu.org>
Mon, 21 Aug 1995 22:00:21 +0000 (22:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 21 Aug 1995 22:00:21 +0000 (22:00 +0000)
(show-paren-command-hook): No need to test for idleness.

lisp/paren.el

index 656c4df5c5cd5318552a55b8fbf454d3ac0bd9b3..60a65a5469d9991c3eb2dcf243f0e1a64a17c508 100644 (file)
@@ -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)) ?\))
 (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)