From: Andrew Hyatt <ahyatt@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 5410@debbugs.gnu.org, Matrix <min.matrix@gmail.com>
Subject: bug#5410: Parenthesis Matching Bug!!
Date: Wed, 10 Aug 2016 23:57:36 -0400 [thread overview]
Message-ID: <m27fboq7nz.fsf@Andrews-MacBook-Pro.local> (raw)
In-Reply-To: <87shukuryr.fsf@web.de> (Michael Heerdegen's message of "Thu, 04 Aug 2016 23:47:24 +0200")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Andrew Hyatt <ahyatt@gmail.com> writes:
>
>> It'd be nice, I guess, if you could just turn it to nil when in a
>> comment.
>
> Yes, I think we could bind `parse-sexp-ignore-comments' to nil around
> the calls to `scan-sexps' in `show-paren--default' when point is inside
> a comment. But I must admit that I don't understand the terse doc of
> `parse-sexp-ignore-comments':
>
> | Non-nil means `forward-sexp', etc., should treat comments as
> | whitespace.
>
> But what does nil mean, exactly? It seems that comments are then
> treated as if they were indistinguishable from code. When I set
> `parse-sexp-ignore-comments' to nil in emacs-lisp-mode, and have such a
> file:
>
> ;; (
> )
>
> then show-paren-mode indicates the parens as matching, though one is
> inside in a comment, and the other is not. `scan-sexps' behaves
> accordingly. That would mean we would need to assure that the matching
> paren position that `scan-sexps' has found is still inside the current
> comment.
Interesting point. The more I hear, the more this sounds like a
wishlist item - we just don't seem to have a way to treat paren matching
in comments separately yet with multiline capabilities. I'm going to
mark it as wishlist for now.
>
>
> Michael.
next prev parent reply other threads:[~2016-08-11 3:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 12:20 bug#5410: Parenthesis Matching Bug!! Matrix
2016-08-04 2:18 ` Andrew Hyatt
2016-08-04 2:55 ` Michael Heerdegen
2016-08-04 20:17 ` Andrew Hyatt
2016-08-04 21:47 ` Michael Heerdegen
2016-08-11 3:57 ` Andrew Hyatt [this message]
2016-08-23 15:02 ` Michael Heerdegen
2022-05-02 9:02 ` bug#5410: bug#5411: show-paren-mode and parens spread over multi-line comments Lars Ingebrigtsen
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=m27fboq7nz.fsf@Andrews-MacBook-Pro.local \
--to=ahyatt@gmail.com \
--cc=5410@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
--cc=min.matrix@gmail.com \
/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).