aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/objects.texi35
1 files changed, 18 insertions, 17 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 1f4c378df18..daa397175c3 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -283,11 +283,11 @@ character @kbd{a}.
283?Q @result{} 81 ?q @result{} 113 283?Q @result{} 81 ?q @result{} 113
284@end example 284@end example
285 285
286 You can use the same syntax for punctuation characters, but it is 286 You can use the same syntax for punctuation characters. However, if
287often a good idea to add a @samp{\} so that the Emacs commands for 287the punctuation character has a special syntactic meaning in Lisp, you
288editing Lisp code don't get confused. For example, @samp{?\(} is the 288must quote it with a @samp{\}. For example, @samp{?\(} is the way to
289way to write the open-paren character. If the character is @samp{\}, 289write the open-paren character. Likewise, if the character is
290you @emph{must} use a second @samp{\} to quote it: @samp{?\\}. 290@samp{\}, you must use a second @samp{\} to quote it: @samp{?\\}.
291 291
292@cindex whitespace 292@cindex whitespace
293@cindex bell character 293@cindex bell character
@@ -336,18 +336,19 @@ escape character; this has nothing to do with the
336character @key{ESC}. @samp{\s} is meant for use in character 336character @key{ESC}. @samp{\s} is meant for use in character
337constants; in string constants, just write the space. 337constants; in string constants, just write the space.
338 338
339 A backslash is allowed, and harmless, preceding any character without 339 A backslash is allowed, and harmless, preceding any character
340a special escape meaning; thus, @samp{?\+} is equivalent to @samp{?+}. 340without a special escape meaning; thus, @samp{?\+} is equivalent to
341There is no reason to add a backslash before most characters. However, 341@samp{?+}. There is no reason to add a backslash before most
342you should add a backslash before any of the characters 342characters. However, you must add a backslash before any of the
343@samp{()\|;'`"#.,} to avoid confusing the Emacs commands for editing 343characters @samp{()[]\;"}, and you should add a backslash before any
344Lisp code. You can also add a backslash before whitespace characters such as 344of the characters @samp{|'`#.,} to avoid confusing the Emacs commands
345space, tab, newline and formfeed. However, it is cleaner to use one of 345for editing Lisp code. You can also add a backslash before whitespace
346the easily readable escape sequences, such as @samp{\t} or @samp{\s}, 346characters such as space, tab, newline and formfeed. However, it is
347instead of an actual whitespace character such as a tab or a space. 347cleaner to use one of the easily readable escape sequences, such as
348(If you do write backslash followed by a space, you should write 348@samp{\t} or @samp{\s}, instead of an actual whitespace character such
349an extra space after the character constant to separate it from the 349as a tab or a space. (If you do write backslash followed by a space,
350following text.) 350you should write an extra space after the character constant to
351separate it from the following text.)
351 352
352@node General Escape Syntax 353@node General Escape Syntax
353@subsubsection General Escape Syntax 354@subsubsection General Escape Syntax