mitchell | 2 Dec 22:47
Picon

SciTE-st Release 6


Hey everyone,

This is the packaged release of SciTE-st. No more jumping through
hoops to download dependencies, copy them to places, make sure
platform variables are set, etc. All of the files are in one place and
hopefully you'll just be able to unpack the archive, move it to an
appropriate location, and run the executable with everything working
right away.

As always, please read the documentation. Links are on the
http://caladbolg.net/scite_st.php website.

Scintilla and SciTE have been updated to v1.75

Windows: http://scite-tools.googlecode.com/files/scite-st_win32_r6.zip

Linux: http://scite-tools.googlecode.com/files/scite-st_linux_r6.tgz

Note you still have to install the Linux version to /usr/share/scite-
st or recompile.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

KHMan | 2 Dec 23:47
Picon

Re: [lua] abnormal program termination with textrange


Frank wrote:
> i have the following script:
> function escapeString()
> 	local sels = editor.SelectionStart
> 	local sele = editor.SelectionEnd
> 	if sels==sele then
> 	   sels = 0
> 	   sele = editor.Length
> 	end
>   _ALERT(sels.." - "..sele)
> --~   local text = editor:textrange(sels,sele-sels)
> --~   local out=string.gsub(text, "([\"\\\'])", "\\%1")
> --~   editor:ReplaceSel(out)
> end
> scite terminates in the textrange-line...why? the parameters seem to
> be correct

editor:textrange() accept C-array indices, so sele is
editor.Length - 1 and the second argument is also an index. The
following works for me:

function escapeString()
  local sels = editor.SelectionStart
  local sele = editor.SelectionEnd
  if sels == sele then
     sels, sele = 0, editor.Length - 1
  end
  local text = editor:textrange(sels, sele)
  local out = string.gsub(text, "([\"\\\'])", "\\%1")
(Continue reading)

Neil Hodgson | 3 Dec 05:08
Picon

Re: SingleThreadExtension.cxx


maciejr:

> Thank you for the explanation. But is there any way to make COM calls
> in response to user's commands? Do I have to create a new thread in my
> Dll or is there some simpler solution? Maybe there are some flags for
> CoCreateInstance to specify that the calls should be synchronous?

   This is going to be quite a lot of work no matter which approach
you take. The best long term approach is to avoid transferring to the
tool thread at all when performing a Lua function but you'd have to
understand the execution mechanism thoroughly before working on this.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 3 Dec 05:24
Picon

Tracker group


   There is a new scintilla-tracker Google group for receiving
Scintilla and SciTE bug reports and feature requests from the trackers
on SourceForge. Unlike the old system on lyra.org, this is separate
from scintilla-interest and scite-interest so only those interested
will see the issues. If you want to respond to an issue, it is best
done on the tracker where it is most likely to be seen by the
initiator.

http://groups.google.com/group/scintilla-tracker

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

mron | 3 Dec 07:39
Picon

where can ask question about Filerx ?


I have a question that is how to refresh item in 'Files' tab of
Filerx ?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

maciejr | 3 Dec 07:47
Picon

Re: SingleThreadExtension.cxx


I think I am getting there, but I might be wrong (again). It turned
out amazingly simple, so I am suspicious, having very little
experience with threads. With unpatched SciTE 1.75:

1. I define a keyboard trigger for a Lua function that calls a dll
function.
2. The dll function starts a tool thread passing a pointer to
dynamically allocated resources (a string) to it, closes thread
handle, and exits.
3. The tool thread:
- initializes COM,
- creates a server instance, makes the call, cleans up, uninitializes
COM, and
- deallocates the pointer to the parameter string.

No synchronization between threads, because it is a one-way trip. If
the tool thread fails, it fails silently.

I chose this somewhat strange approach of creating the server instance
each time, because it makes the dll less "stateful". It does not seem
to cause any slow-down, but I don't know about heap-fragmentation-like
longer term consequences.

I'll post my code when it is more complete (in 6-7 hours) if it is ok.
Thanks again,

Maciej.

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Neil Hodgson | 3 Dec 09:07
Picon

Re: SingleThreadExtension.cxx


maciejr:

> No synchronization between threads, because it is a one-way trip. If
> the tool thread fails, it fails silently.

   So you are not expecting to call anything that returns a value.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 3 Dec 09:08
Picon

Re: where can ask question about Filerx ?


mron:

> I have a question that is how to refresh item in 'Files' tab of
> Filerx ?

   I don't think the Filerx author is active any more.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

SteveD | 3 Dec 10:20
Picon

Lua extension libraries compiled against SciTE for Windows


Hi guys,

I've put up exts.zip, which is a sampler of useful Lua extension
libraries recompiled against SciTE.exe.  It contains lfs.dll (the Lua
filesystem), bit.dll (bit operations) and luasocket. Just unzip this
in your SciTE bin directory.

luasocket in particular gives your scripts interesting new powers,
like the ability to send email ;)

Or (probably more useful) the ability to push stuff onto ftp sites.

I didn't feel it was necessary to do this for Unix/GTK, because the
regular .so files will work fine, if your package.path and
package.cpath are set properly.

steve d.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Frank Wunderlich | 3 Dec 14:29
Picon

Re: [lua] abnormal program termination with textrange


KHMan, 02.12.2007 23:47:
>
> editor:textrange() accept C-array indices, so sele is
> editor.Length - 1 and the second argument is also an index. The
> following works for me:
>
> function escapeString()
>   local sels = editor.SelectionStart
>   local sele = editor.SelectionEnd
>   if sels == sele then
>      sels, sele = 0, editor.Length - 1
>   end
>   local text = editor:textrange(sels, sele)
>   local out = string.gsub(text, "([\"\\\'])", "\\%1")
>   editor:ReplaceSel(out)
> end
>
> HTH,
>   
ok, that's working also for me, thank you.

Frank

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)


Gmane