all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Tobias C. Rittweiler" <tcr@freebits.de>
Cc: emacs-devel@gnu.org
Subject: Re: Difference between syntax class `escape' and `charquote'
Date: Fri, 13 Feb 2009 20:51:06 -0500	[thread overview]
Message-ID: <jwvd4dl3i1i.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <873aeiqc4q.fsf@freebits.de> (Tobias C. Rittweiler's message of "Fri, 13 Feb 2009 22:07:33 +0100")

> From isearching through src/syntax.c, it seems that the `escape' and
> `charquote' syntax class are interpreted synonymously.

Yes, they're synonymous, AFAIK.

> The documentation says

>      [A character quote character] differs from an escape character in
>      that only the character immediately following is ever affected.

> What is this supposed to mean? How can an escape character not affect
> the immediately following character?

I guess what it might have meant is that in \\" the " would still
be quoted?  I don't think the C code does that, tho, and I can't think
of a language where that would be the right behavior.
IIRC the last time I looked at that code, the C code treats both forms
of escape in the exact same way.


        Stefan




  reply	other threads:[~2009-02-14  1:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 21:07 Difference between syntax class `escape' and `charquote' Tobias C. Rittweiler
2009-02-14  1:51 ` Stefan Monnier [this message]
2009-02-15 16:35   ` Richard M Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd4dl3i1i.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tcr@freebits.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.