* Paired delimiters
@ 2011-07-18 9:18 Uday S Reddy
2011-07-18 16:10 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Uday S Reddy @ 2011-07-18 9:18 UTC (permalink / raw)
To: emacs-devel
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.
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.
Cheers,
Uday
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Paired delimiters
2011-07-18 9:18 Paired delimiters Uday S Reddy
@ 2011-07-18 16:10 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2011-07-18 16:10 UTC (permalink / raw)
To: Uday S Reddy; +Cc: emacs-devel
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-18 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 9:18 Paired delimiters Uday S Reddy
2011-07-18 16:10 ` Stefan Monnier
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).