From: "Herbert Euler" <herberteuler@hotmail.com>
To: herberteuler@hotmail.com, emacs-devel@gnu.org
Subject: RE: Not appropriate message for mismatched parens
Date: Wed, 25 Apr 2007 19:21:45 +0800 [thread overview]
Message-ID: <BAY143-F6C5AC7E0BC7C186198A08DA490@phx.gbl> (raw)
In-Reply-To: <BAY143-F2883532E6A061AE993CE98DA490@phx.gbl>
Please, please, please forgive me. I forgot to delete the `if'.
Please check the following patch.
Regards,
Guanpeng Xu
*** simple.el Wed Apr 25 19:17:01 2007
--- simple.el.modified Wed Apr 25 19:15:11 2007
*************** (defun blink-matching-open ()
*** 4483,4495 ****
blinkpos
message-log-max ; Don't log messages about paren matching.
matching-paren
! open-paren-line-string)
(save-excursion
(save-restriction
! (if blink-matching-paren-distance
! (narrow-to-region (max (minibuffer-prompt-end)
! (- (point)
blink-matching-paren-distance))
! oldpos))
(condition-case ()
(let ((parse-sexp-ignore-comments
(and parse-sexp-ignore-comments
--- 4483,4499 ----
blinkpos
message-log-max ; Don't log messages about paren matching.
matching-paren
! open-paren-line-string
! open-paren-may-be-outside)
(save-excursion
(save-restriction
! (when blink-matching-paren-distance
! (setq open-paren-may-be-outside
! (< (minibuffer-prompt-end)
! (- (point) blink-matching-paren-distance)))
! (narrow-to-region (max (minibuffer-prompt-end)
! (- (point)
blink-matching-paren-distance))
! oldpos))
(condition-case ()
(let ((parse-sexp-ignore-comments
(and parse-sexp-ignore-comments
*************** (defun blink-matching-open ()
*** 4510,4519 ****
;; a matching-char info, in which case the two CDRs
;; should match.
(eq matching-paren (cdr (syntax-after (1- oldpos))))))
! (message "Mismatched parentheses"))
((not blinkpos)
(if (not blink-matching-paren-distance)
! (message "Unmatched parenthesis")))
((pos-visible-in-window-p blinkpos)
;; Matching open within window, temporarily move to blinkpos but
only
;; if `blink-matching-paren-on-screen' is non-nil.
--- 4514,4529 ----
;; a matching-char info, in which case the two CDRs
;; should match.
(eq matching-paren (cdr (syntax-after (1- oldpos))))))
! (if open-paren-may-be-outside
! (message (concat "Open parenthesis is not found in the region
"
! "restricted by
`blink-matching-paren-distance'"))
! (message "Mismatched parentheses")))
((not blinkpos)
(if (not blink-matching-paren-distance)
! (message "Unmatched parenthesis")
! (if open-paren-may-be-outside
! (message (concat "Open parenthesis is not found in the
region "
! "restricted by
`blink-matching-parent-distance'")))))
((pos-visible-in-window-p blinkpos)
;; Matching open within window, temporarily move to blinkpos but
only
;; if `blink-matching-paren-on-screen' is non-nil.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
next prev parent reply other threads:[~2007-04-25 11:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 11:01 Not appropriate message for mismatched parens Herbert Euler
2007-04-25 11:13 ` Herbert Euler
2007-04-25 11:21 ` Herbert Euler [this message]
2007-04-30 22:09 ` Richard Stallman
2007-04-26 0:20 ` Herbert Euler
2007-04-26 3:06 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY143-F6C5AC7E0BC7C186198A08DA490@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).