all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Difference between syntax class `escape' and `charquote'
@ 2009-02-13 21:07 Tobias C. Rittweiler
  2009-02-14  1:51 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias C. Rittweiler @ 2009-02-13 21:07 UTC (permalink / raw
  To: emacs-devel


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

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'd also like to ask for this being clarified in the documentation.

Thanks!

  -T.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Difference between syntax class `escape' and `charquote'
  2009-02-13 21:07 Difference between syntax class `escape' and `charquote' Tobias C. Rittweiler
@ 2009-02-14  1:51 ` Stefan Monnier
  2009-02-15 16:35   ` Richard M Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-02-14  1:51 UTC (permalink / raw
  To: Tobias C. Rittweiler; +Cc: emacs-devel

> 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Difference between syntax class `escape' and `charquote'
  2009-02-14  1:51 ` Stefan Monnier
@ 2009-02-15 16:35   ` Richard M Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard M Stallman @ 2009-02-15 16:35 UTC (permalink / raw
  To: Stefan Monnier; +Cc: tcr, emacs-devel

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

I can explain what that text means.  It makes a distinction between
quoting _only_ the next character and introducing a longer sequence
such as `\150'.

I am not sure why I thought it was important to distinguish these two
cases.  It was a long time ago.  Maybe it was for the sake of some
further feature that was never implemented.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-15 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 21:07 Difference between syntax class `escape' and `charquote' Tobias C. Rittweiler
2009-02-14  1:51 ` Stefan Monnier
2009-02-15 16:35   ` Richard M Stallman

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.