[TxMt] [PATCH] Prolog run command

Allan Odgaard throw-away-1 at macromates.com
Sat Oct 6 19:03:48 UTC 2007


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?




More information about the textmate mailing list