Re: [code] disable "Reload modified file?" dialog

From: Carl Sturtivant <>
Date: Fri, 15 Jan 2016 15:01:54 -0600

Hello Robert,

OK, I understand the meaning of the code you indicated; thanks for
pointing out where it resides.

Can I attach my new handler in my .textadept/init.lua file or in some
other file in .textadept, so I can keep my textadept installation pure?
Can I perhaps make .textadept/core/file_io.lua in fact, and put the code
to replace the handler in there?

In fact how do I need to organize this? The actual coding looks simple,
just not these administrative matters.

Thank you,

On 1/15/2016 11:12 AM, Robert Gieseke wrote:
> Hi Carl,
> in Textadept's /core/file_io.lua, lines 290ff you can see how this
> currently handled.
> I think you could write your own events.FILE_CHANGED handler (which
> needs to be inserted before the current one or you remove this handler),
> which would just do a `io.reload_file`.
> Maybe some notification that the file has been updated by writing a
> statusbar update is also useful.
> Let us know if you need more details on how to write your own event handler.
> Cheers,
> Robert
> Am 15/01/16 um 16:30 schrieb Carl Sturtivant:
>> Hello,
>> Can you point me to how to arrange that files modified outside of
>> Textadept while open in Textadept can be silently reloaded without the
>> "Reload modified file?" dialog appearing when Textadept is moved to the
>> foreground after such an modification?
>> I write a lot of programs that write other programs, and this is a
>> nuisance when engaged in so doing.
>> Carl.

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Fri 15 Jan 2016 - 16:01:54 EST

This archive was generated by hypermail 2.2.0 : Sat 16 Jan 2016 - 06:41:56 EST