[Sawfish] hash table and concat |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- To: <sawfish@xxxxxxxxxxxxxxxxxxx>
- Subject: [Sawfish] hash table and concat
- From: fuchur <flohtransporter@xxxxxxxxx>
- Date: Sun, 25 Sep 2011 21:35:06 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:organization:face:x-face :mime-version:content-type:x-mailscanner-spamcheck; bh=uK0LMV0RE6ZPM5HFA7gokRar3Xp3dN2QAFOVs2XHSBc=; b=TKPrvfW9O24Z0z7BaPW4LVo8Z78/VSI43Ep13/tcDBn25bZC0iUcq8za9P31bGDpLW LKlyvDROmDc0yzmO8uuHxYSpb3kejN0LgL/EjZIv11sa5JcPloDmXNltGgedznrLez0L dSKZtDH0qs8NMBtVkZeiLCG6ONL4CKkM9hS3Y=
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXo6dXi2qlaWEv9/+78//DLrYv889H/lWcuAAACA0lEQVQ4ja2TQW7jMAxF5RbxWmwhrRMB3jtQ6gskBzAVMGupQXT/I8ynZU+n08xuGDhG8vSpL5IycYszPkucLvpt4ik+DQVPkWmvywYv5z8Uz1NNHdFrjCP5bJqHFYxOhMgRUSHawEkVImyJyfhaa59/a0yEwjom/b9Wsl+uAOYvQO+TMRsILL4o8JU6zmS7BYgEYVJFUQPOZ3JzA0nYU1WAVGJ3WNcAfFHfQHXCKbCzK0jhpjv7Whzhh5A7bSD0tfgsDBDCQNwU/BkgKRVcHFYNNKMkAHMXllwAg6hCoDhCbuvLIZuc31SBB0sb8FO8d2TMMQy1SwMnhqsPZPX3uFY/54It35hmIywKRlrANOlJnJAYPApyX02vxZuSWmYxTkGN9xhrVVDSoGutcSg7yMdtcvcMy106ALA1cAF39WU/pUPuUV24JXk1Zsc7djzJDV6LJYdKOfKo7s4fxc3I8WDvyOm5Hb/rlET00KLqpVZWgVbl2iZxJ1vHtSCIYW7ggQ6uAF3ady4JwPmkYPkfhx5SeEd5VvCxgrJsjaNOa6rjBrQXVz0+NTAqKAowBxjcc3Tr/YAtSpgtgNezgh0AXnHU5AFFG7gN7tgUp2hDi+t2TzfQ04N1buLfYCzFE1n5cTnHPldTH9fvQHe3aN8x3X9eZ6eG9/EnWObx28028R/xH8EvDGr5+fmwfm8AAAAASUVORK5CYII=
- Organization: W.W
Hi,
I can't work with hash tables and concat. In sawfish-client i type:
(require 'rep.data.tables)
(define test-cache (make-weak-table eq-hash eq))
(define (cache my-name)
(or
(table-ref test-cache my-name)
(table-set test-cache my-name 'image)))
(cache 'first-name)
image
if i now type:
(table-ref test-cache 'first-name)
image
it's returns image like expected.
If i use concat like this:
(require 'rep.data.tables)
(define test-cache (make-weak-table eq-hash eq))
(define (cache my-name)
(or
(table-ref test-cache my-name)
(table-set test-cache my-name 'image)))
(cache (concat "first-" "name"))
image
if i now type:
(table-ref test-cache '"first-name")
()
it's returns ().
Anyone a idea what is wrong?
Thank you.
--
Regards,
Fuchur
GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53 C116 E5BC 70D5 B8D7 B2B0
Attachment:
signature.asc
Description: PGP signature