Another question I can't solve on my own. When I type ' - a single quote - I don't want to see a closing one inserted automatically (this is Lisp, after all). The newLISP language bundle has this:
smartTypingPairs = ( ( '(', ')' ), ( '[', ']' ), ( '{', '}' ), ( '"', '"' ), );
so obviously it's some sort of default behaviour. Can I switch it off in this bundle yet leave it available in others?
thanks
cormullion@mac.com wrote:
Another question I can't solve on my own. When I type ' - a single quote
- I don't want to see a closing one inserted automatically (this is
Lisp, after all). The newLISP language bundle has this:
smartTypingPairs = ( ( '(', ')' ), ( '[', ']' ), ( '{', '}' ), ( '"', '"' ), );
so obviously it's some sort of default behaviour. Can I switch it off in this bundle yet leave it available in others?
What's the scope selector on the preference you added to the bundle?
On 2006-08-06, at 16:13, Jacob Rus wrote:
cormullion@mac.com wrote:
Another question I can't solve on my own. When I type ' - a single quote - I don't want to see a closing one inserted automatically (this is Lisp, after all). The newLISP language bundle has this: smartTypingPairs = ( ( '(', ')' ), ( '[', ']' ), ( '{', '}' ), ( '"', '"' ), ); so obviously it's some sort of default behaviour. Can I switch it off in this bundle yet leave it available in others?
What's the scope selector on the preference you added to the bundle?
Hi Jacob. The scope on the language itself is empty, like the other languages there.
cormullion@mac.com wrote:
On 2006-08-06, at 16:13, Jacob Rus wrote:
cormullion@mac.com wrote:
Another question I can't solve on my own. When I type ' - a single quote - I don't want to see a closing one inserted automatically (this is Lisp, after all). The newLISP language bundle has this: smartTypingPairs = ( ( '(', ')' ), ( '[', ']' ), ( '{', '}' ), ( '"', '"' ), ); so obviously it's some sort of default behaviour. Can I switch it off in this bundle yet leave it available in others?
What's the scope selector on the preference you added to the bundle?
Hi Jacob. The scope on the language itself is empty, like the other languages there.
You need to make sure you scope the smart typing pairs preference to the language you want it to apply to. I'm just trying to make sure that isn't your problem.
On Aug 6, 2006, at 3:27 AM, cormullion@mac.com wrote:
Can I switch it off in this bundle yet leave it available in others?
You sure can. I did that with the OCaml bundle.
William D. Neumann
"I eat T-bone steaks, I lift barbell plates, I'm sweeter than a German chocolate cake. I'm the reflection of perfection, the number one selection. I'm the man of the hour, the man with the power, too sweet to be sour. The ladies' pet, the men's regret, where what you see is what you get, and what you don't see, is better yet."
--Superstar Billy Graham
On 2006-08-06, at 16:28, William Neumann wrote:
On Aug 6, 2006, at 3:27 AM, cormullion@mac.com wrote:
Can I switch it off in this bundle yet leave it available in others?
You sure can. I did that with the OCaml bundle.
Cool. (Looks like a powerful language, to my naive eyes.) Is it easy for you to tell me now how to do it? It's just that I'd like to avoid having to install Subversion first so that i can download the bundle... :-)
Another question I can't solve on my own. When I type ' - a single quote - I don't want to see a closing one inserted automatically (this is Lisp, after all). The newLISP language bundle has this:
I'm betting you made a copy of the Lisp bundle to do this, meaning you copied over the old cruft that's inside it. Preference items need to be not in the language grammar but rather in a separate scoped preference item. This is the issue here, since there is no scope on the preference items the default preferences from the Source bundle are taking over.
I'll commit a fix to the built-in Lisp bundle to fix it there.
On 2006-08-06, at 18:31, Michael Sheets wrote:
Another question I can't solve on my own. When I type ' - a single quote - I don't want to see a closing one inserted automatically (this is Lisp, after all). The newLISP language bundle has this:
I'm betting you made a copy of the Lisp bundle to do this, meaning you copied over the old cruft that's inside it. Preference items need to be not in the language grammar but rather in a separate scoped preference item. This is the issue here, since there is no scope on the preference items the default preferences from the Source bundle are taking over.
Thanks, Michael. Yes, I believe I started off with a modified version of the Lisp bundle that had already had a first pass of the cruft- removal-mechanism, but of course it's hard when you're a new TextMater.... Another pass is required, obviously.
I'll commit a fix to the built-in Lisp bundle to fix it there.
OK - since I'm working on the newLISP bundle I can keep them separate, hopefully, and learn from the experts as I go!
On 2006-08-06, at 19:49, Jacob Rus wrote:
OK - since I'm working on the newLISP bundle I can keep them separate, hopefully, and learn from the experts as I go!
My recommendation is to add newlisp stuff to the lisp bundle and commit it to the main repository.
Thanks, Jacob. I would probably follow your recommendation, but I'm struggling with one language and working with two might be too much for me at this stage, and I'd hate to upset anybody who works with Lisp with my fumbling efforts - their wrath is legendary... :-)
I'm hacking on the newLISP bundle because I'm trying to see whether TextMate could replace BBEdit for me; making a BBEdit codeless language module is relatively simple compared with a TM bundle, though.
I'll add "learn how to commit things to the main repository" to my list of new cool things to learn about TextMate.