Function: s-lex-format

s-lex-format is a macro defined in s.el.

Signature

(s-lex-format FORMAT-STR)

Documentation

`s-format` with the current environment.

FORMAT-STR may use the s-format variable reference to refer to any variable:

 (let ((x 1))
   (s-lex-format "x is: ${x}"))

The values of the variables are interpolated with "%s" unless the variable s-lex-value-as-lisp is t and then they are interpolated with "%S".

Source Code

;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defmacro s-lex-format (format-str)
  "`s-format` with the current environment.

FORMAT-STR may use the `s-format' variable reference to refer to
any variable:

 (let ((x 1))
   (s-lex-format \"x is: ${x}\"))

The values of the variables are interpolated with \"%s\" unless
the variable `s-lex-value-as-lisp' is `t' and then they are
interpolated with \"%S\"."
  (declare (debug (form)))
  (s-lex-fmt|expand format-str))