Re: [code] [textadept] Textadept 10.0 alpha

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Wed, 3 Jan 2018 17:07:10 +0100

At the end, I went into the Textadept code and disabled the warning :-$

/PA

On 3 January 2018 at 13:13, Gabriel Dubatti <gdubatti.att.gmail.com> wrote:

> Hi Pedro,
>
> You can also try this:
>
> TA_MAYOR_VER= tonumber(_RELEASE:match('^Textadept (.+)%..+$'))
>
> if TA_MAYOR_VER < 10 then ui.set_theme('ggg') else buffer.set_theme('ggg')
> end
>
> If you still get a warning after this, you must have a ui.set_theme() call
> in another place.
>
> Cheers,
>
> Gabriel
>
> El 03/01/2018 a las 03:26, Pedro Andres Aranda Gutierrez escribió:
>
> Hi Mitchell,
>
> tried and got the same warning. Again, it's just cosmetic but anyhow it
> looks like a bit of an overkill. :-)
> Anyway of triggering this warning when the function gets called?
>
> /PA
>
> On 2 January 2018 at 19:20, Mitchell <m.att.foicica.com> wrote:
>
>> 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.
>>
>>
>
>
> --
> Fragen sind nicht da um beantwortet zu werden,
> Fragen sind da um gestellet zu werden
> Georg Kreisler
>
>
>

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
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 Wed 03 Jan 2018 - 11:07:10 EST

This archive was generated by hypermail 2.2.0 : Thu 04 Jan 2018 - 06:55:08 EST