Elisp: String interpolation

Published on Jan 6, 2022, by Junji Zhi

Use format or concat:

(format "abc %s" "cdf")

(concat "abc " "cdf")

%s is to be replaced with the printed representation of the object.

In Emacs lisp, % + one char is called format specification.

See the list of other format specification here.




 Share: