Elisp: String

By Xah Lee. Date: . Last updated: .

String Syntax

emacs lisp string is quoted by a double straight quote (U+22: QUOTATION MARK)

This is the only syntax for quoting string.

"this is a string"

(length "abc")
;; 3

String Escape

To include a double quote, use \"

"he said \"something\""

This is called string escape sequence.

Here's most commonly used escapes:

newline character. Unicode codepoint 10 (Line feed).

"or some\nthing"
backslash. Unicode codepoint 92.
Tab character. Unicode codepoint 9 (Horizontal Tab). [see ASCII Characters]
Unicode Escape Sequence
Unicode Escape Sequence


Elisp, String