Re: [code] Don't show output of run/compile

From: Carlos Pita <carlosjosepita.att.gmail.com>
Date: Thu, 17 Apr 2014 01:34:19 -0300

Works like a charm. Thanks!

On Wed, Apr 16, 2014 at 11:44 AM, Mitchell <m.att.foicica.com> wrote:
> Hi Carlos,
>
>
> On Wed, 16 Apr 2014, Carlos Pita wrote:
>
>> Hi Mitchell, thanks for answering. Getting rid of the split is enough
>> but, in this specific case, I don't even care about the buffer. Is it
>> possible to avoid the buffer being created? Cheers.
>
>
> I haven't tested this, but I think you can put the following in your
> ~/.textadept/init.lua:
>
> local function eat_markdown_output(lexer, output)
> if lexer == 'markdown' then return true end
> end
> events.connect(events.COMPILE_OUTPUT, eat_markdown_output, 1)
> events.connect(events.RUN_OUTPUT, eat_markdown_output, 1)
>
> `eat_markdown_output` receives output from compile and run commands. If the
> command comes from the 'markdown' lexer (and thus, a markdown document), it
> will prevent the default handler (that prints output) from running.
>
>
> 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.
>

-- 
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 Thu 17 Apr 2014 - 00:34:19 EDT

This archive was generated by hypermail 2.2.0 : Thu 17 Apr 2014 - 06:30:23 EDT