Function: verb--eval-code-tags-in-string

verb--eval-code-tags-in-string is a natively compiled function defined in verb.el.

Signature

(verb--eval-code-tags-in-string S &optional CONTEXT)

Documentation

Like verb--eval-code-tags-in-buffer, but in a string S.

Use buffer CONTEXT as the current buffer, or a temporal one if CONTEXT is nil. Return a new string with the code tags expanded.

Source Code

;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb--eval-code-tags-in-string (s &optional context)
  "Like `verb--eval-code-tags-in-buffer', but in a string S.
Use buffer CONTEXT as the current buffer, or a temporal one if CONTEXT
is nil.  Return a new string with the code tags expanded."
  (with-temp-buffer
    (insert s)
    (goto-char (point-min))
    (verb--eval-code-tags-in-buffer (current-buffer)
                                    (or context (current-buffer)))
    (verb--buffer-string-no-properties)))