[Openmcl-devel] What are hemlock buffer bindings?
ron at flownet.com
Mon Feb 1 22:35:21 UTC 2010
On Jan 31, 2010, at 8:03 PM, John DeSoi wrote:
> On Jan 31, 2010, at 9:17 PM, Ron Garret wrote:
>> Hemlock buffer objects have a slot named bindings which contains a hash table. What is this used for? If I stick something random in there will I screw something up?
>> (I'm looking for a place to stash some revision control information on a per-document or per-buffer basis, and this is the only place I've been able to find.)
> Hemlock has a way to define variables that can be per-buffer:
Am I doing this right?
(hi:defhvar "V1" "" :buffer buf)
(setf (hi::variable-value (hi:string-to-variable "V1") :buffer buf) 1)
(hi::variable-value (hi:string-to-variable "V1") :buffer buf)
(hi:hemlock-bound-p (hi:string-to-variable "V1") :buffer buf)
Seems very odd that hi:defhvar takes a string while hi::variable-value and hi:hemlock-bound-p don't, but that's the only way I've been able to get it to work. Am I missing something?
More information about the Openmcl-devel