aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2009-01-14 23:10:10 +0000
committerJuri Linkov2009-01-14 23:10:10 +0000
commit28e271f0369f3848fc64b286a48b1899dbcdfcc8 (patch)
tree239e3cca61b149bc30c2b95099f5566a58b76875
parent744059aeec2958bd6ae18526e218cb06401da2e6 (diff)
downloademacs-28e271f0369f3848fc64b286a48b1899dbcdfcc8.tar.gz
emacs-28e271f0369f3848fc64b286a48b1899dbcdfcc8.zip
(blink-matching-open): Use `minibuffer-message' to
display messages in the minibuffer.
-rw-r--r--lisp/simple.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index a9f961acce9..3b66fd1b912 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5229,13 +5229,17 @@ it skips the contents of comments that end before point."
5229 ;; a matching-char info, in which case the two CDRs 5229 ;; a matching-char info, in which case the two CDRs
5230 ;; should match. 5230 ;; should match.
5231 (eq matching-paren (cdr (syntax-after (1- oldpos)))))) 5231 (eq matching-paren (cdr (syntax-after (1- oldpos))))))
5232 (message "Mismatched parentheses")) 5232 (if (minibufferp)
5233 (minibuffer-message " [Mismatched parentheses]")
5234 (message "Mismatched parentheses")))
5233 ((not blinkpos) 5235 ((not blinkpos)
5234 (or blink-matching-paren-distance 5236 (or blink-matching-paren-distance
5235 ;; Don't complain when `$' with no blinkpos, because it 5237 ;; Don't complain when `$' with no blinkpos, because it
5236 ;; could just be the first one typed in the buffer. 5238 ;; could just be the first one typed in the buffer.
5237 atdollar 5239 atdollar
5238 (message "Unmatched parenthesis"))) 5240 (if (minibufferp)
5241 (minibuffer-message " [Unmatched parenthesis]")
5242 (message "Unmatched parenthesis"))))
5239 ((pos-visible-in-window-p blinkpos) 5243 ((pos-visible-in-window-p blinkpos)
5240 ;; Matching open within window, temporarily move to blinkpos but only 5244 ;; Matching open within window, temporarily move to blinkpos but only
5241 ;; if `blink-matching-paren-on-screen' is non-nil. 5245 ;; if `blink-matching-paren-on-screen' is non-nil.