Re: [code] [textadept] Edge mode per buffer

From: Qwerky <mr.qwerky.att.gmail.com>
Date: Mon, 29 Jul 2019 11:40:26 -0600

Hi Mitchell,

Thanks.  That looks like a good possibility.  I see that ui.lua sets
variables such as buffer._anchor and buffer._current_pos.  Can the user
define new per-buffer variables, such as buffer.clm_marks = {}?

qwerky

On 2019-07-29 08:45, Mitchell wrote:
> Hi,
>
> On Sun, 28 Jul 2019, Qwerky wrote:
>
>> Hi.  Is it possible to have buffer.edge_mode = buffer.EDGE_LINE for one
>> buffer, and at the same time buffer.edge_mode = buffer.EDGE_MULTILINE
>> for
>> another buffer?  If so, does each buffer have its own set of
>> multi-lines?
>> Thanks.
>
> Yes, but you'd have to hook things up manually via
> `events.BUFFER_BEFORE_SWITCH` and `events.BUFFER_AFTER_SWITCH` events.
> Textadept's *core/ui.lua* around lines 335 and 350 does this in order
> to allow each buffer to have its own view state.
>
> 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 29 Jul 2019 - 13:40:26 EDT

This archive was generated by hypermail 2.2.0 : Tue 30 Jul 2019 - 06:50:21 EDT