Emacs Lisp: String

By Xah Lee. Date: .

emacs lisp string is quoted by a single "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.
To include a backslash, use double backslash \\
Tab character. Unicode codepoint 9 (Horizontal Tab). [see ASCII Characters]
Unicode Escape Sequence
Unicode Escape Sequence

Emacs Lisp String

Lisp Basics

ErgoEmacs mascot-s276x226
Buy Xah Emacs Tutorial

Lisp Basics


Lisp Data Structure


Lisp Symbol

Lisp Misc

Working with Elisp