summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2013-06-05 20:22:10 +0100
committerWilfred Hughes <me@wilfred.me.uk>2013-06-05 20:23:44 +0100
commit57accd25b8cc868b8480274160fbd441da3da7e6 (patch)
tree4930f7814c6cee2a45e4e544cef84a94f0892270 /s.el
parent84d8ea40148561d062963e3d558ac805958442fa (diff)
s-lex-format is not just for lexical variables, it works fine with dynamic binding
Diffstat (limited to 's.el')
-rw-r--r--s.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/s.el b/s.el
index 037573c..0eb57c6 100644
--- a/s.el
+++ b/s.el
@@ -515,17 +515,17 @@ transformation."
(s-match-strings-all "${\\([^}]+\\)}" fmt)))))
(defmacro s-lex-format (format-str)
- "`s-format' with the lexical environment.
+ "`s-format` with the current environment.
FORMAT-STR may use the `s-format' variable reference to refer to
-any lexical variable:
+any variable:
(let ((x 1))
(s-lex-format \"x is: ${x}\"))
-The values of the lexical variables are interpolated with \"%s\"
-unless the variable `s-lex-value-as-lisp' is `t' and then they
-are interpolated with \"%S\"."
+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\"."
(s-lex-fmt|expand format-str))
(provide 's)