diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2013-06-05 20:22:10 +0100 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2013-06-05 20:23:44 +0100 |
commit | 57accd25b8cc868b8480274160fbd441da3da7e6 (patch) | |
tree | 4930f7814c6cee2a45e4e544cef84a94f0892270 /s.el | |
parent | 84d8ea40148561d062963e3d558ac805958442fa (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.el | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |