Re: [code] [textadept] Textadept 10.0 alpha issue

From: Mitchell <m.att.foicica.com>
Date: Mon, 8 Jan 2018 17:59:51 -0500 (EST)

Hi Gabriel,

On Fri, 5 Jan 2018, Gabriel Dubatti wrote:

> Hi Mitchell,
>
> I have been testing this version and have found that it breaks some of my
> project management code.
>
> I think I discovered that the issue originates in the new set_theme()
> behaviour (save all buffer settings to load them later in each new buffer).
>
> The problem with that is that "all" the buffer settings are saved, not only
> the theming related.
>
> If I'm not getting all this wrong, I think a "buffer.user" object could be
> added to put in it all the thing you don't want to be duplicated in all
> buffers (buffer.user could be ignored or deleted when the setting are
> collected).

It's hard for me to visualize the kinds of settings you are referring to. Can you give an example? Also, if you are creating buffer settings on startup that you do not want to persist, have you tried wrapping them in either an `events.BUFFER_NEW` or `events.INITIALIZED` event?

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 08 Jan 2018 - 17:59:51 EST

This archive was generated by hypermail 2.2.0 : Tue 09 Jan 2018 - 06:47:42 EST