Re: [code] [textadept] Textadept 10.0 alpha

From: Mitchell <m.att.foicica.com>
Date: Tue, 2 Jan 2018 13:20:28 -0500 (EST)

Hi Pedro,

On Tue, 2 Jan 2018, Pedro Andres Aranda Gutierrez wrote:

> Happy New Year to everyone:
>
> Nice code. I'm running it on XUbuntu 16.04 clean from compilation and have
> experienced no problems so far.
> Being extremely itchy I'd just complain about a quirk:
>
> In my init code, I have the following to be able to move between pre9.7 and
> post9.7:
>
> --
> -- Prepare transition for 9.7
> --
> set_theme = (ui.set_theme ~= nil) and ui.set_theme or buffer.set_theme
>
> to use the right set_theme function:
>
> set_theme(
> ftheme,
> {
> font = fname,
> fontsize = fsize,
> ['style.linenumber'] = lnstyle,
> })
>
> since ui.set_theme doesn't actually called, the set-theme warning looks
> just a little overkill ;-)

Try `set_theme = buffer.set_theme or ui.set_theme`

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 Tue 02 Jan 2018 - 13:20:28 EST

This archive was generated by hypermail 2.2.0 : Wed 03 Jan 2018 - 06:45:41 EST