Re: [code] Textadept: non-breaking patch suggestion for editing.lua (to make custom scripting of mouse-driven hover-tips possible)

From: Phil S. <accountz.att.mailbox.org>
Date: Mon, 5 Nov 2018 20:03:11 +0100

Thanks Mitchell, very neat to have this covered! Only just now did I
realize the built-in `buffer:call_tip_pos_start()` seems to of course
still be based on cur-caret-pos but I think I can side-step / ignore
this at my end for current purposes.. =)

Cheers, Phil

On 11/5/18 2:29 PM, Mitchell wrote:
> Hi Phil,
>
> On Sun, 4 Nov 2018, Phil S. wrote:
>
>>> *core/ui.lua* around lines 335 and 350 has buffer state save/restore.
>>> There's no single state object. Just some simple arbitrarily
>>> "_"-prefixed properties.
>>
>>
>> Cool, will look into that! While I have your attention, remember my
>> earlier
>> exploration into the "mouse-driven hover-tips" script?
>>
>> It seems to now have settled that for this to work my local
>> `textadept/modules/textadept/editing.lua` needs to be patched up as
>> shown in
>> the top-most diff here:
>>
>> https://gist.github.com/metaleap/c564a62398ef0ef2dc5a4b36739fb3c9/revisions?diff=split
>>
>>
>> I can of course keep patching my own local editing.lua on every TA
>> update,
>> but this seems a totally benign non-breaking tweak AFAICT. Would you
>> consider
>> looking at it, determining whether there are any hidden / unnoticed-by-me
>> potential implied issues / gotchas / pitfalls that could arise from
>> it, and
>> if not would this tweak be acceptable for you to merge into Textadept's
>> "official" editing.lua?
>
> I've committed a change[1] that adds an optional position parameter to
> `textadept.editing.show_documentation()`.
>
> Cheers,
> Mitchell
>
> [1]: https://foicica.com/hg/textadept/rev/3c83a058dffb

-- 
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 05 Nov 2018 - 14:03:11 EST

This archive was generated by hypermail 2.2.0 : Tue 06 Nov 2018 - 06:50:25 EST