There are some annoyances with this Bundle. It does not work. It tries to call the application called "Term" but it should be "Terminal" (was Terminal ever called Term in previous versions of OS X?). Then, it moves the terminal window to an awkard position (100,100 ?) (See the diff). So the diff to repairs those. It is not a big patch but it corrects annoyances I get everytime I checkout that bundle or tell someone else to.
Also, not included in the diff : The bundle shows support for gprolog on the command line. Some people (like at my university) prefer using swi-prolog (swipl). Should I make a patch that supports gprolog but falls back to swipl if it is not installed? Is it appropriate for a "texmate Run command" to support 2 implementations of Prolog?
Thanks
Guillaume Carbonneau
Guillaume Carbonneau wrote:
Also, not included in the diff : The bundle shows support for gprolog on the command line. Some people (like at my university) prefer using swi-prolog (swipl). Should I make a patch that supports gprolog but falls back to swipl if it is not installed? Is it appropriate for a "texmate Run command" to support 2 implementations of Prolog?
The best is to fall back on $TM_PROLOG or similar. Then it can be specified by the user w/o changing the bundle.
On 01/10/2007, at 02:09, Guillaume Carbonneau wrote:
There are some annoyances with this Bundle. It does not work. It tries to call the application called "Term" but it should be "Terminal" (was Terminal ever called Term in previous versions of OS X?).
Not sure about that, but at least now it should work regardless of OS version, thanks :)
Then, it moves the terminal window to an awkard position (100,100 ?) (See the diff).
Presumably by accident Apple changed the origin of the coordinate system for position the Terminal window (rdar://5500045) which makes (100, 100) awkward only on your pre-release version of the OS. If this doesn’t get fixed, we’ll have to workaround it, but for now, I am leaving the positioning there.
The reason it positions the window is that otherwise the window cascade relative to last position, giving you a new position for each run you do, which can be quite irritating as well.
Also, not included in the diff : The bundle shows support for gprolog on the command line. Some people (like at my university) prefer using swi- prolog (swipl). Should I make a patch that supports gprolog but falls back to swipl if it is not installed? Is it appropriate for a "texmate Run command" to support 2 implementations of Prolog?
I think it is, if there are two versions in wide use. Generally we try to make as much as possible work for the user “out of the box”, so if that means having a command that check which version of prolog the user has, and use that, I am all for it :)
Is there btw any need for the Terminal window, i.e. does the Prolog compiler/runner require an interactive environment, or could we maybe make a nicer run command based on scriptmate and/or HTML output?
Allan Odgaard-2 wrote:
I think it is, if there are two versions in wide use. Generally we try to make as much as possible work for the user “out of the box”, so if that means having a command that check which version of prolog the user has, and use that, I am all for it :)
Ok, I'll do that patch later when I'll get some free time.
Allan Odgaard-2 wrote:
Is there btw any need for the Terminal window, i.e. does the Prolog compiler/runner require an interactive environment, or could we maybe make a nicer run command based on scriptmate and/or HTML output?
Yes, in a Prolog, you write a set of predicates in your code and then run the interactive shell to query those predicates. Thus, the terminal window is required.
Thanks
Guillaume Carbonneau