From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Uday S Reddy <usr.vm.rocks@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Paired delimiters
Date: Mon, 18 Jul 2011 12:10:15 -0400 [thread overview]
Message-ID: <jwvipqzy3rg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <j00tq8$afd$1@dough.gmane.org> (Uday S. Reddy's message of "Mon, 18 Jul 2011 10:18:54 +0100")
> The Elisp manual says that the "paired delimiter" syntax class is "like
> string quote characters except that the syntactic properties of the
> characters between the delimiters are not suppressed". But the description
> of the string syntax class doesn't talk about "suppressing" anything. So,
> I am at a loss to understand what the difference is between the string class
> and paired delimiter class.
It's not very well defined, really. Basically it means things like:
"{" is perfectly valid
whereas
${$ is ill-balanced
and
"foo % this is not a comment"
whereas
$foo % this is a comment and this $ does not match the other.
> The context of my query is that I am trying to get the autopair-mode
> http://code.google.com/p/autopair/
> to correctly in LaTeX-mode.
FWIW you may also like to take a look at electric-pair-mode (new in
Emacs-24).
Stefan
prev parent reply other threads:[~2011-07-18 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 9:18 Paired delimiters Uday S Reddy
2011-07-18 16:10 ` Stefan Monnier [this message]
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=jwvipqzy3rg.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=usr.vm.rocks@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).