Re: [scite] Re: April White's (& PhiLho's) tool menu generator

2007-06-19 Thread Doyle Whisenant
Philippe Lhoste wrote: On 19/06/2007 04:12, Doyle Whisenant wrote: Hi, I use the lua code above in SciTE all of the time. Now since upgrading to 1.74, the code doesn't work. What do I need to change in order for this to work in Version 1.74 (with lua5.1?) See: http://article.gman

Re: [scite] Re: April White's (& PhiLho's) tool menu generator

2007-06-19 Thread Doyle Whisenant
ortcut.47.*=Ctrl+T ... ... -- Thanks! Doyle Whisenant [EMAIL PROTECTED] ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

[scite] Re: April White's (& PhiLho's) tool menu generator

2007-06-18 Thread Doyle Whisenant
hanks! Doyle Whisenant [EMAIL PROTECTED] ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

Re: [scite] 1.74 test downloads

2007-06-15 Thread Doyle Whisenant
\scite-gdb\scite_lua\gdb.lua:261: attempt to call global 'loadlib' (a nil value) I'm no guru but I found this: Note: for Lua 5.1: The loadlib() function has been moved into the package table, so you must use package.loadlib() instead. -- Thanks! Doyle W

Re: [scite] Re: Using GDB with SciTE

2007-06-02 Thread Doyle Whisenant
hrough all of the open buffers and compare against a saved array of buffers. Or am I missing something? I admit I've not kept up with all of the recent changes so I am probably missing something vital. Thanks for any info. -- Thanks! Doyle Whisenant [

Re: [scite] Using GDB with SciTE

2007-06-02 Thread Doyle Whisenant
ld be considered if there was a very good case. I would still like to see an OnClose event which is fired when an open buffer is closed. This would allow a lot more flexibility when dealing with buffers. Any serious overhaul of the extension interface should at least consider this. -- Thanks!

Re: [scite] a couple of newbie questions

2006-12-15 Thread Doyle Whisenant
thanks, bb -- Doyle Whisenant http://www.freewebs.com/mekdesign/ mekanixx at gmail dot com ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

Re: [scite] Project Manager

2006-06-23 Thread Doyle Whisenant
t the requirement of many users Thank you, this works great until something better comes along. I use: "explorer.exe" /n,/root,"$(FileDir)" which puts me in the folder of the file that is being edited. It's amazing how versatile SciTE really is! -- Doyle Whisenant htt

Re: [scite] Re: Sub : Command Line

2006-05-25 Thread Doyle Whisenant
string value I'll figure this out, most likely something I've done. ;-) Thanks again! -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet" dot "net" ___ Scite-interest mailing list Scite-intere

Re: [scite] Sub : Command Line

2006-05-22 Thread Doyle Whisenant
April White wrote: (This may be a re-post) Doyle Whisenant wrote: ... I have used the user defined list feature to write custom tool menus, for example all of the CVS tools (for work). Is this what you want to do? I'd be interested in this. Any example code? Doyle, I have a b

Re: [scite] Sub : Command Line

2006-05-22 Thread Doyle Whisenant
April White wrote: I am unsure if you want to do the change within SciTE or not. I have used the user defined list feature to write custom tool menus, for example all of the CVS tools (for work). Is this what you want to do? I'd be interested in this. Any example code? --

Re: [scite] SciTE Director question

2006-04-24 Thread Doyle Whisenant
Doyle Whisenant wrote: Hi, in the SciTE Director docs it states... The actions understood by SciTE are: ... ... extender: Call the extension interface with the given command. Is this refering to the Scintilla.iface commands? Or? Anyone have examples of how to use this in a director app

[scite] SciTE Director question

2006-04-24 Thread Doyle Whisenant
Hi, in the SciTE Director docs it states... The actions understood by SciTE are: ... ... extender: Call the extension interface with the given command. Is this refering to the Scintilla.iface commands? Or? Anyone have examples of how to use this in a director app? -- Doyle Whisenant

Re: [scite] Re: LUA script access to all buffers

2006-04-19 Thread Doyle Whisenant
rtup. It will add each opened file to the list. What you do with them is up to you. ;-) I am not an expert with lua but this should help get you started. -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet" dot "net" _

Re: [scite] Lua question

2006-01-30 Thread Doyle Whisenant
y at line 20, not be magically saved to line 15, out of sync with the file? That's exactly what I'm trying to do. My "newbieness" with Lua is proving difficult. You're right, I need to concentrate on saving marks with a buffer save. Thanks -- Doyle Whisenant http://ww

Re: [scite] Lua question

2006-01-29 Thread Doyle Whisenant
April White wrote: Doyle Whisenant wrote: Is there an event that I can use to run a lua script when SciTE is closing similar to OnOpen? Is it possible to do this? If so, how? I need to access all open buffers when SciTE closes. Anyone know of a reliable way to do this? Do you want when a

[scite] Lua question

2006-01-29 Thread Doyle Whisenant
Is there an event that I can use to run a lua script when SciTE is closing similar to OnOpen? Is it possible to do this? If so, how? I need to access all open buffers when SciTE closes. Anyone know of a reliable way to do this? -- Doyle Whisenant http://www.freewebs.com/mekdesign

[scite] Save/Load markers

2006-01-25 Thread Doyle Whisenant
FYI, anyone interested in trying out my lua implementation of a bookmark load/save feature for SciTE can get the files here: http://www.freewebs.com/mekdesign/testmarker.zip Be kind, this is my first attempt. Seems to work here on Windows 98 but... ;-) -- Doyle Whisenant http

Re: [scite] Possibly OTLua question

2006-01-19 Thread Doyle Whisenant
Neil Hodgson wrote: Doyle Whisenant: This will save keeping track of yet another file. Will this mess up the *.ses files? The *.ses file format will change in the future and additional information in the file will not be handled when upgrading. Any idea on what will change? Just

Re: [scite] Possibly OTLua question

2006-01-19 Thread Doyle Whisenant
Kein-Hong Man wrote: Doyle Whisenant wrote: [snip] function read_session() local ln = 0 local n = 1 local bufferpath = props['FilePath'] local f = io.open("SciTE.ses", "r") if not f then return nil end for ln in f:lines() do local s=f:read&qu

[scite] Possibly OTLua question

2006-01-18 Thread Doyle Whisenant
:close() return true end If I comment out the line marked above, I get a count of 9 lines which is correct. Otherwise, I get a count of 5 lines. What am I doing wrong? Sorry for the long post! -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet&qu

Re: [scite] Re: Saving/restoring bookmarks

2006-01-17 Thread Doyle Whisenant
ne ln: editor:MarkerAdd(ln,SC_MARK_ROUNDRECT) You can hook it on the events OnOpen, OnSave and store/restore it from file. Thanks Roman, I'll play with this when I have time. -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic"

Re: [scite] Saving/restoring bookmarks

2006-01-16 Thread Doyle Whisenant
ed in this! -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet" dot "net" ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

Re: [scite] command parameters

2005-11-21 Thread Doyle Whisenant
es, IMHO. Then again, maybe it's just me! -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet" dot "net" ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

[scite] How to get filenames of open buffers

2005-11-11 Thread Doyle Whisenant
Hi all, I'm trying to implement a director interface for SciTE in my app and want to know the best/easiest way to retrieve the names of all opened files (buffers)in SciTE. Lua script? Or... Any examples/hints would be nice, thanks. -- Doyle Whisenant http://www.freewebs.com/mekd

Re: [scite] startup script reports an error

2005-10-17 Thread Doyle Whisenant
ne written a Lua script that autocloses the output pane on a successful build? i.e. If the phrase ">Exit code: 0" is the last line, automatically close the output pane. Or is there another way? Sorry, I'm to Lua fluent yet. Thanks! -- Doyle Whisenant http://www.freewebs

Re: [scite] exposing the SciTE 'execute tool' functionality to Lua

2005-10-13 Thread Doyle Whisenant
April White wrote: Doyle Whisenant wrote: Does this mean that one can have multiple tools executing one after another with only one command? If not, is this possible? No promises, I've only just cracked open the code... Ultimately I feel the command system will be able to handle mul

Re: [scite] exposing the SciTE 'execute tool' functionality to Lua

2005-10-12 Thread Doyle Whisenant
Philippe Lhoste wrote: Doyle Whisenant wrote: It would be nice if this could be one command which executed each in turn (if no errors - exit code 0). And please, no *.bat files please! Why ever not? Although I'd use make or scons or similar. A batch file is just another file to

Re: [scite] exposing the SciTE 'execute tool' functionality to Lua

2005-10-11 Thread Doyle Whisenant
Neil Hodgson wrote: Doyle Whisenant: Does this mean that one can have multiple tools executing one after another with only one command? If not, is this possible? It may be but probably through a script rather than an extension to command.*. I use SciTE with BCX which means I need to

Re: [scite] exposing the SciTE 'execute tool' functionality to Lua

2005-10-10 Thread Doyle Whisenant
ed to: 1.) Run BCX to translate the *.bas file 2.) Run the compiler on the *.c file 3.) Optionally run the resource compiler 4.) Run the linker It would be nice if this could be one command which executed each in turn (if no errors - exit code 0). And please, no *.bat files please! --

Re: [scite] Request: exporting Lua API for custom Dlls

2005-06-19 Thread Doyle Whisenant
;Make the target a Windows .DLL with all functions exportable." -tWM, "Make a multithreaded application or DLL." -tWR, "Target uses the dynamic runtime lib. Can use -D_RTLDLL instead." -tWCR, "Target uses the dynamic runtime lib for CONSOLE apps." HTH -- Doyle

Re: [scite] Scite - Lua Question

2005-05-26 Thread Doyle Whisenant
which writes to another temporary file, which we then read. First thing to check is whether the scite_other.dll has actually been loaded - it should complain. Ahh... I get it now. I'll play with this more when I have some free time. I appreciate it! Thanks a lot! -- Doyle Whis

Re: [scite] Scite - Lua Question

2005-05-25 Thread Doyle Whisenant
FILE_OUT,'r') local n = f:read('*n') -- < error here f:read() if n == 1 then our_window = f:read() end end -- Doyle Whisenant http://www.freewebs.com/mekdesign/ "mechanic" at "sonet" dot "net" ___ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest

[scite] Scite - Lua Question

2005-05-24 Thread Doyle Whisenant
end local cmd = 1 if other then cmd = 0 end f:write(verb,':',arg,'\n') f:write(cmd,' ',our_window,'\n') f:close() fn() f = io.open(TEMP_FILE_OUT,'r') local n = f:read('*n') -- < error here f:read() if n == 1