CVS update by aidan xemacs/man/lispref ...

xemacs-cvs at xemacs.org xemacs-cvs at xemacs.org
Wed Nov 14 13:20:43 EST 2007


  User: aidan   
  Date: 07/11/14 19:20:43

  Modified:    xemacs/man/lispref objects.texi
Log:
Document how one can include a trailing backslash in a raw string.

Revision  Changes    Path
1.364     +6 -0      XEmacs/xemacs/man/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/ChangeLog,v
retrieving revision 1.363
retrieving revision 1.364
diff -u -p -r1.363 -r1.364
--- ChangeLog	2007/11/14 18:06:47	1.363
+++ ChangeLog	2007/11/14 18:20:41	1.364
@@ -1,5 +1,11 @@
 2007-11-14  Aidan Kehoe  <kehoea at parhasard.net>
 
+	* lispref/objects.texi (String Type):
+	Describe how one can include a trailing backslash in a raw string,
+	by means of the Unicode escape syntax. 
+
+2007-11-14  Aidan Kehoe  <kehoea at parhasard.net>
+
 	* xemacs/keystrokes.texi (Character Representation):
 	Clarify the description of which characters are displayed as
 	themselves and which as octal escapes bzw. "control" characters



1.10      +6 -3      XEmacs/xemacs/man/lispref/objects.texi

Index: objects.texi
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/man/lispref/objects.texi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- objects.texi	2006/08/04 22:55:10	1.9
+++ objects.texi	2007/11/14 18:20:42	1.10
@@ -1084,10 +1084,13 @@ string, like this: @code{#r"this \ is an
 a string, each character following a backslash is included literally in
 the string, and all backslashes are left in the string.  This means that
 @code{#r"\""} is a valid string literal with two characters, a backslash and a
-double-quote.  It also means that a string  with this syntax @emph{cannot end
-in a single backslash}.  As with Python, from where this syntax was
+double-quote.  It also means that a string  with this syntax cannot end
+in a single backslash.  As with Python, from where this syntax was
 taken, you can specify @code{u} or @code{U} after the @code{#r} to
-specify that interpretation of Unicode escapes should be done. 
+specify that interpretation of Unicode escapes should be
+done--- at pxref{Character Type}---and if you use @code{#ru} for your raw
+strings, the restriction on the trailing backslash can be worked around
+like so: @code{#ru"Backslash: \u005C"}.
 
   The newline character is not special in the read syntax for strings;
 if you write a new line between the double-quotes, it becomes a





More information about the XEmacs-CVS mailing list