aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-01 04:22:00 +0000
committerRichard M. Stallman1994-11-01 04:22:00 +0000
commit72dddf8ba825cab138a717779c1fdc2ddab5a55e (patch)
treed17dcc9c3fc1ce34b864485308c6f80649a129d5
parentdbc6c26a56b5207d1841ab0aade7b9411d413371 (diff)
downloademacs-72dddf8ba825cab138a717779c1fdc2ddab5a55e.tar.gz
emacs-72dddf8ba825cab138a717779c1fdc2ddab5a55e.zip
(blink-matching-delay): New variable.
-rw-r--r--lisp/simple.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 897a5c706fa..c4426c5ea1c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2392,6 +2392,9 @@ in the mode line."
2392(defconst blink-matching-paren-distance 12000 2392(defconst blink-matching-paren-distance 12000
2393 "*If non-nil, is maximum distance to search for matching open-paren.") 2393 "*If non-nil, is maximum distance to search for matching open-paren.")
2394 2394
2395(defconst blink-matching-delay 1
2396 "*The number of seconds that `blink-matching-open' will delay at a match.")
2397
2395(defun blink-matching-open () 2398(defun blink-matching-open ()
2396 "Move cursor momentarily to the beginning of the sexp before point." 2399 "Move cursor momentarily to the beginning of the sexp before point."
2397 (interactive) 2400 (interactive)
@@ -2425,7 +2428,7 @@ in the mode line."
2425 (progn 2428 (progn
2426 (goto-char blinkpos) 2429 (goto-char blinkpos)
2427 (if (pos-visible-in-window-p) 2430 (if (pos-visible-in-window-p)
2428 (sit-for 1) 2431 (sit-for blink-matching-delay)
2429 (goto-char blinkpos) 2432 (goto-char blinkpos)
2430 (message 2433 (message
2431 "Matches %s" 2434 "Matches %s"