Ben Armstrong wrote:
> You may recall that in our cream-user.vim we have an 'after open' hook 
> set up to create a lockfile for selected files being edited.  When I 
> comment out in the hook the call to "Cream_touch()" so that the lockfile 
> isn't created, both problems go away!  So I need some ideas about how we 
> can still create the lock file without causing these problems.  Any clues?
>   

Here is a simple, reproducible test case that I believe doesn't require 
any of my hooks and that shows Cream_touch() is broken.

1. With an empty buffer, ^O:call Cream_touch("test.tmp").  Then "refresh 
tabs".  No extra tabs appear.
2. Open a file.  Do another ^O:call Cream_touch("test.tmp").  Then 
"refresh tabs".  An extra "Untitled" tab appears.

I tried just changing the bwipeout to a "call Cream_bwipeout()" in 
Cream_touch(), but that didn't help.  I don't really know what I'm doing 
here. :)

Ben


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
cream-general mailing list
cream-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to