From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/syntax-for-strings.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 devdocs/elisp/syntax-for-strings.html (limited to 'devdocs/elisp/syntax-for-strings.html') diff --git a/devdocs/elisp/syntax-for-strings.html b/devdocs/elisp/syntax-for-strings.html new file mode 100644 index 00000000..5d361c75 --- /dev/null +++ b/devdocs/elisp/syntax-for-strings.html @@ -0,0 +1,15 @@ +

Syntax for Strings

The read syntax for a string is a double-quote, an arbitrary number of characters, and another double-quote, "like this". To include a double-quote in a string, precede it with a backslash; thus, "\"" is a string containing just one double-quote character. Likewise, you can include a backslash by preceding it with another backslash, like this: "this \\ is a single embedded +backslash".

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 character in the string. But an escaped newline—one that is preceded by ‘\’—does not become part of the string; i.e., the Lisp reader ignores an escaped newline while reading a string. An escaped space ‘\ ’ is likewise ignored.

"It is useful to include newlines
+in documentation strings,
+but the newline is \
+ignored if escaped."
+     ⇒ "It is useful to include newlines
+in documentation strings,
+but the newline is ignored if escaped."
+
+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-for-Strings.html +

+
-- cgit v1.2.3