Auto reload of Lua from within Scite

81 views
Skip to first unread message

Robin

unread,
May 16, 2011, 10:10:33 AM5/16/11
to scite-i...@googlegroups.com
The ext.lua.auto.reload re-initializes the global scope if the source startup or extension script is saved from within the editor. I go through a formatting step so the lua source file can change outside of the editor. Is there a Lua command or way that can be used to cause such a reload from within Lua? I have an auto-close and auto-reload from an external program but it would be cleaner and easier to initiate it from within SciTE.

Thanks. Robin.

mozers

unread,
May 16, 2011, 1:20:06 PM5/16/11
to Robin
Monday, May 16, 2011, 6:10:33 PM, Robin wrote:

Is there a Lua command or way that can be used to cause such a reload from within Lua?


The first option:
  command.name.23.*=Restart
  command.23.*=dostring os.execute('cmd /c start "" "'..props['SciteDefaultHome']..'\\scite.exe"') scite.MenuCommand(IDM_QUIT)
  command.mode.23.*=subsystem:lua

The second option - to use SciTE-Ru with function scite.ReloadStartupScript()

-- 
mozers
<http://scite-ru.org>

Randy Kramer

unread,
May 16, 2011, 1:31:19 PM5/16/11
to scite-i...@googlegroups.com
On Monday 16 May 2011 01:20:06 pm mozers wrote:
> <html><head><title>Re: [scite] Auto reload of Lua from within
> Scite</title> <META http-equiv=Content-Type content="text/html;
> charset=ISO-8859-1"> </head>
> <body>
> <span style=" font-family:'Courier New'; font-size: 9pt;">Monday, May
> 16, 2011, 6:10:33 PM, Robin wrote:<br> </span><table>
> <tr>
> <td width=1 bgcolor= #0000ff><br>
> </td>
> <td width=777 bgcolor= #e4eff1><span style=" font-family:'courier
> new'; font-size: 9pt;">Is there a Lua command or way that can be used
> to cause such a reload from within Lua?</td> </tr>
> </table>
> <span style=" font-family:'Courier New'; font-size: 9pt;"><br><br>
> The first option:<br>
> &nbsp; command.name.23.*=Restart<br>
> &nbsp; command.23.*=dostring os.execute('cmd /c start ""

> "'..props['SciteDefaultHome']..'\\scite.exe"')
> scite.MenuCommand(IDM_QUIT)<br> &nbsp;
> command.mode.23.*=subsystem:lua<br>
> <br>
> The second option - to use SciTE-Ru with function&nbsp;<a
> href="http://scite-ru.googlecode.com/svn/trunk/pack/doc/SciTE-Ru_Kern
>el.html#ReloadStartupScript">scite.ReloadStartupScript()</a><br> <br>
> <span style=" font-family:'arial'; font-size: 8pt; color:
> #c0c0c0;"><i>--&nbsp;<br> mozers<br>
> &lt;<a style=" font-style: normal;"
> href="http://scite-ru.org">http://scite-ru.org</a>&gt;</body>
>
> <p></p>
>
> -- <br />
> You received this message because you are subscribed to the Google
> Groups "scite-interest" group.<br /> To post to this group, send
> email to scite-i...@googlegroups.com.<br /> To unsubscribe from
> this group, send email to
> scite-interes...@googlegroups.com.<br />
>
> For more options, visit this group at
> http://groups.google.com/group/scite-interest?hl=en.<br />


mozers

unread,
May 17, 2011, 1:26:36 PM5/17/11
to Randy Kramer
Monday, May 16, 2011, 9:31:19 PM, Randy wrote:
>> <html><head><title>Re: [scite] Auto reload of Lua from within

Change your KMail on a normal email client that understands html.
Or read this thread via the web http://groups.google.com/group/scite-interest/browse_thread/thread/9e8b10063cbc9fdd#

--
mozers
<http://scite-ru.org>

Randy Kramer

unread,
May 17, 2011, 2:05:43 PM5/17/11
to scite-i...@googlegroups.com

mozers,

Sorry about that! I must have fat-fingered something--I'm sure I didn't
intend to reply. (And it's hard for me to guess what I must have
accidentally hit to send a reply.)

But, I might as well say that I much prefer to have email in plain text
rather than in HTML.

Randy Kramer

Philippe Lhoste

unread,
May 18, 2011, 6:55:32 AM5/18/11
to scite-i...@googlegroups.com

Change your e-mail client to a standards-compliant one that at least generates
Content-Type: multipart/alternative messages instead of pure HTML messages. The latter is
generally frown upon in most mailing lists I frequent (all developer oriented, I admit),
HTML messages being merely tolerated.

I know you intended well, but telling somebody to change their e-mail client in order to
able to read your ill-formed message is a bit rude... :-)

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply all
Reply to author
Forward
0 new messages