diff options
author | Nic Ferier <nic@ferrier.me.uk> | 2013-05-22 11:02:44 +0100 |
---|---|---|
committer | Nic Ferier <nic@ferrier.me.uk> | 2013-05-22 11:02:44 +0100 |
commit | 5d04f2242bb6f5bd82fe3be008066056d7846026 (patch) | |
tree | 573063c34877f9dcb2f390c2b508026c0902bbf4 /dev | |
parent | 500efe4c40ac70e16d7f2c0de84b10d4343e3bd2 (diff) |
more fixes for #32 #33 #34
Diffstat (limited to 'dev')
-rw-r--r-- | dev/examples.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/examples.el b/dev/examples.el index 983c1d3..1aba70b 100644 --- a/dev/examples.el +++ b/dev/examples.el @@ -287,18 +287,18 @@ #s(hash-table test equal data ("name" "nic" "malady" "on fire"))) => "help nic! I'm on fire" - ;; Replacing case is about the variable name and case-replace + ;; Replacing case has no effect on s-format (let ((case-replace t)) (s-format "help ${NAME}!" 'aget '(("NAME" . "Nick")))) - => "help Nick!" ; forced case insertion + => "help Nick!" (let ((case-replace nil)) (s-format "help ${NAME}!" 'aget '(("NAME" . "Nick")))) - => "help NICK!" ; match the case to the var name + => "help Nick!" (let ((case-replace nil)) (s-format "help ${name}!" 'aget '(("name" . "Nick")))) - => "help Nick!" ; match the case to the var name FAILS + => "help Nick!" ;; What happens when we have literal slashes? (s-format "$0" 'elt '("Hello\\nWorld")) |