Re: [code] [textadept] Textadept 11.0 alpha 2

From: Gabriel Dubatti <>
Date: Sun, 28 Jun 2020 14:17:12 -0300

Hi Mitchell,

   I know I changed a lot o things, but the code works fine with TA 10.8
and all previous versions of TA.

   What I see is that the buffers that are currently visible in each
view get the theme change, but not the others (show them using ctrl+tab,
for example).  You can reproduce the issue with this:

1) Put this in init.lua:

  for _, vw in ipairs(_VIEWS) do view:set_theme('dark') end

2) Open init.lua and any other file

3) Check with ctrl+tab that both files use the dark theme

4) Change "dark" to "light" in init.lua and save the file

5) Run reset() from the command entry

6) Check that init.lua use the LIGHT theme (ok)

7) Press Ctrl+TAB and check that the other file still used the DARK
theme (not-ok)

   As I said, it's not a big deal, but it seems to me that some theme
configurations are not updated in TA11 in the buffers that are not
visible after a reset when view:set_theme() is called.



El 28/6/20 a las 13:41, Mitchell escribió:
> Hi Gabriel,
> On Sat, 27 Jun 2020, Gabriel Dubatti wrote:
>> Hi Mitchell,
>>     I got the same results. Only the buffer that is visible updates the
>> colors after a reset.
>>     I changed the background color to red. See the attached pictures.
> You have a pretty heavily customized version of Textadept there, so I
> don't know if there is something else going on that's causing the
> problem. For what it's worth, I started with a clean _USERHOME and
> this in my *~/.textadept/init.lua*:
>   events.connect(events.RESET, function()
>     for _, view in ipairs(_VIEWS) do
>       view:set_theme('dark')
>     end
>   end)
> Note I did not need to have `ui.goto_view()`.
> Then I opened a Lua file, split the view once horizontally, and once
> vertically. Then I opened the command entry and typed `reset`. After
> the reset, all of my views turned from light to dark.
> Cheers,
> Mitchell

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 28 Jun 2020 - 13:17:12 EDT

This archive was generated by hypermail 2.2.0 : Mon 29 Jun 2020 - 06:33:16 EDT