From: John Yates <john@yates-sheets.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Alan Mackenzie <acm@muc.de>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin.
Date: Tue, 14 Oct 2014 14:32:31 -0400 [thread overview]
Message-ID: <CAJnXXojQZD8N3LAq4OKRFMzabwPzxpyYYY5kYOCHjOvxD0bM=Q@mail.gmail.com> (raw)
In-Reply-To: <jwva94ytvjz.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
It seems to me that the ultimate thrust of this proposal is to offer a
variant show-paren-mode. This new variant would differ from the current
behavior of firing only when the cursor is located immediately before an
open-paren or immediately after a close-paren to a new behavior in which
all logical whitespace (including comments) on the current line is
ignored. Such a conceptual model has a number of virtues:
- It relates the proposed behavior to today's behavior in a clear and
intelligible way.
- It points to a fully general model that includes how to behave when the
cursor is within whitespace inside a line.
- By accounting for _all_ whitespace on the line it finesses the need for
"periphery" or similar terminology.
/john
[-- Attachment #2: Type: text/html, Size: 868 bytes --]
next prev parent reply other threads:[~2014-10-14 18:32 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-11 13:43 Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin Alan Mackenzie
2014-10-11 14:21 ` Eli Zaretskii
2014-10-12 8:39 ` Alan Mackenzie
2014-10-12 8:55 ` David Kastrup
2014-10-12 9:25 ` Alan Mackenzie
2014-10-12 9:01 ` Eli Zaretskii
2014-10-12 10:18 ` Alan Mackenzie
2014-10-12 4:12 ` Stefan Monnier
2014-10-12 10:04 ` Alan Mackenzie
2014-10-14 17:49 ` Stefan Monnier
2014-10-14 18:32 ` John Yates [this message]
2014-10-15 9:12 ` Alan Mackenzie
2014-10-15 22:38 ` Andy Moreton
2014-10-16 2:43 ` Stefan Monnier
2014-10-16 9:53 ` Alan Mackenzie
2014-10-16 12:59 ` Stefan Monnier
2014-10-16 13:31 ` Alan Mackenzie
2014-10-16 14:37 ` Stefan Monnier
2014-10-16 15:46 ` Alan Mackenzie
2014-10-16 17:40 ` Stefan Monnier
2014-10-16 21:26 ` Alan Mackenzie
2014-10-17 0:14 ` Stefan Monnier
2014-10-14 21:50 ` João Távora
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='CAJnXXojQZD8N3LAq4OKRFMzabwPzxpyYYY5kYOCHjOvxD0bM=Q@mail.gmail.com' \
--to=john@yates-sheets.org \
--cc=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).