diff options
| author | Chong Yidong | 2011-07-13 12:15:07 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-07-13 12:15:07 -0400 |
| commit | 5fc4038e207dc31e10a6d58d9294617fcda054bf (patch) | |
| tree | 11854982bd9505b5ba01999bd6b825d2e7f155c8 | |
| parent | bf6012e5b1ec29b02dbb2f6b000471ca418055dc (diff) | |
| download | emacs-5fc4038e207dc31e10a6d58d9294617fcda054bf.tar.gz emacs-5fc4038e207dc31e10a6d58d9294617fcda054bf.zip | |
* simple.el (blink-matching-open): Make error message from last change less verbose.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 22 |
2 files changed, 14 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2bc706f8a61..3dccc44375a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-07-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (blink-matching-open): Make the error message from the | ||
| 4 | last change less verbose. | ||
| 5 | |||
| 1 | 2011-07-13 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2011-07-13 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * font-lock.el (font-lock-comment-face): Use the high contrast | 8 | * font-lock.el (font-lock-comment-face): Use the high contrast |
diff --git a/lisp/simple.el b/lisp/simple.el index 383f66a5a13..0f301dae505 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5487,19 +5487,15 @@ The function should return non-nil if the two tokens do not match.") | |||
| 5487 | (when (and (not (bobp)) | 5487 | (when (and (not (bobp)) |
| 5488 | blink-matching-paren) | 5488 | blink-matching-paren) |
| 5489 | (let* ((oldpos (point)) | 5489 | (let* ((oldpos (point)) |
| 5490 | (limit-message "") | ||
| 5491 | (message-log-max nil) ; Don't log messages about paren matching. | 5490 | (message-log-max nil) ; Don't log messages about paren matching. |
| 5492 | (blinkpos | 5491 | (blinkpos |
| 5493 | (save-excursion | 5492 | (save-excursion |
| 5494 | (save-restriction | 5493 | (save-restriction |
| 5495 | (when blink-matching-paren-distance | 5494 | (if blink-matching-paren-distance |
| 5496 | (let ((start (- (point) blink-matching-paren-distance))) | 5495 | (narrow-to-region |
| 5497 | (when (> start (minibuffer-prompt-end)) | 5496 | (max (minibuffer-prompt-end) ;(point-min) unless minibuf. |
| 5498 | (setq limit-message " within the limit")) | 5497 | (- (point) blink-matching-paren-distance)) |
| 5499 | (narrow-to-region | 5498 | oldpos)) |
| 5500 | (max (minibuffer-prompt-end) ;(point-min) unless minibuf. | ||
| 5501 | start) | ||
| 5502 | oldpos))) | ||
| 5503 | (let ((parse-sexp-ignore-comments | 5499 | (let ((parse-sexp-ignore-comments |
| 5504 | (and parse-sexp-ignore-comments | 5500 | (and parse-sexp-ignore-comments |
| 5505 | (not blink-matching-paren-dont-ignore-comments)))) | 5501 | (not blink-matching-paren-dont-ignore-comments)))) |
| @@ -5521,11 +5517,11 @@ The function should return non-nil if the two tokens do not match.") | |||
| 5521 | (mismatch | 5517 | (mismatch |
| 5522 | (if blinkpos | 5518 | (if blinkpos |
| 5523 | (if (minibufferp) | 5519 | (if (minibufferp) |
| 5524 | (minibuffer-message "Mismatched parentheses%s" limit-message) | 5520 | (minibuffer-message "Mismatched parentheses") |
| 5525 | (message "Mismatched parentheses%s" limit-message)) | 5521 | (message "Mismatched parentheses")) |
| 5526 | (if (minibufferp) | 5522 | (if (minibufferp) |
| 5527 | (minibuffer-message "Unmatched parenthesis%s" limit-message) | 5523 | (minibuffer-message "No matching parenthesis found") |
| 5528 | (message "Unmatched parenthesis%s" limit-message)))) | 5524 | (message "No matching parenthesis found")))) |
| 5529 | ((not blinkpos) nil) | 5525 | ((not blinkpos) nil) |
| 5530 | ((pos-visible-in-window-p blinkpos) | 5526 | ((pos-visible-in-window-p blinkpos) |
| 5531 | ;; Matching open within window, temporarily move to blinkpos but only | 5527 | ;; Matching open within window, temporarily move to blinkpos but only |