[TxMt] PHP completion preferences

Allan Odgaard throw-away-1 at macromates.com
Sat Mar 31 15:21:03 UTC 2007


On 30. Mar 2007, at 23:32, Charilaos Skiadas wrote:

> On Mar 30, 2007, at 3:03 PM, Rob McBroom wrote:
>> FWIW, I tried the above, and `"$TM_BUNDLE_SUPPORT"/functions.txt`  
>> doesn't seem to be pointing the file. I got it to work by giving  
>> the explicit complete path to the file, but that's obviously not  
>> what we want stored in the preferences by default. Could it be  
>> that TM_CURRENT_WORD is defined in the Preferences context, but  
>> TM_BUNDLE_SUPPORT is not?
> I think this is exactly what is happening. That is why all the  
> completion commands in the LaTeX bundle have had to be in the  
> global support directory, because that can indeed be accessed, via  
> TM_SUPPORT_PATH. So there we do use the same way for generating the  
> list of commands. Perhaps the PHP bundle should be doing the same?  
> Though the idea of every bundle doing that is probably not great,  
> in which case we can hopefully convince Allan to provide us with  
> TM_BUNDLE_SUPPORT for Preferences items as well, if it is not too  
> difficult.

It is not really feasible to add for 1.x (the lack of the variable  
has to do with implementation details in the caching system to give  
decent performance for the scope specific preference lookups). But it  
will be there for 2.0.





More information about the textmate mailing list