Re: [scite] strange problem (LUA: favorites - backup)

2007-02-07 Thread Neil Hodgson
Frank Wunderlich: i have build in a function to replace vars (in my case $(SciteDefaultHome)) with their value. This value is "D:\Programmierung\wscite" but will be replaced by the old short value "D:\PROGRA~1\wscite". is there a way to get the long format? You can try to run "dir /X" but th

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-05 Thread Frank Wunderlich
; but will be replaced by the old short value "D:\PROGRA~1\wscite". is there a way to get the long format? Regards Frank Original-Nachricht Datum: Mon, 5 Feb 2007 18:33:45 +1100 Von: "Neil Hodgson" <[EMAIL PROTECTED]> An: "Discussion of the SciTE

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-04 Thread Neil Hodgson
Frank Wunderlich: as you see i use scite.open, not io.open... In readFavsFile() you call io.open for every file in the favs file to see if they exist but don't call close. Neil ___ Scite-interest mailing list Scite-interest@lyra.org http://mailm

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-03 Thread Frank Wunderlich
from my (script originally from http://lua-users.org/wiki/SciteFavs) script: function OnUserListSelection(listID, s) if listID == 10 then scite.Open(s) end return 0 end as you see i use scite.open, not io.open... regards Frank -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-02 Thread Neil Hodgson
It looks like you are opening files using io.open but not closing them. Possibly Lua's garbage collection is supposed to automatically close these files but closing them explicitly would remove that possible problem. Neil ___ Scite-interest mailing

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-02 Thread Frank Wunderlich
Original-Nachricht Datum: Fri, 2 Feb 2007 10:34:49 +1100 Von: "Neil Hodgson" <[EMAIL PROTECTED]> An: "Discussion of the SciTE editor" CC: Betreff: Re: [scite] strange problem (LUA: favorites - backup) >Do you mean "io.open" or

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-01 Thread Neil Hodgson
Frank Wunderlich: the lua-function Open() opens the given file exclusive, so i cannot rename it while it's open. opening a file in scite "normal" let me rename the file. Can the lua-function changed to work like "normal" open? Do you mean "io.open" or "scite.Open"? If you are using the lua "

Re: [scite] strange problem (LUA: favorites - backup)

2007-02-01 Thread Frank Wunderlich
i found the problem... the lua-function Open() opens the given file exclusive, so i cannot rename it while it's open. opening a file in scite "normal" let me rename the file. Can the lua-function changed to work like "normal" open? regards frank ___