Re: [code] Troubles with buffer properties and intellisense

From: Rena <hyperhacker.att.gmail.com>
Date: Sun, 10 Nov 2013 04:25:07 -0500

On Sun, Nov 10, 2013 at 4:13 AM, Robert Gieseke <rob.g.att.web.de> wrote:

> Am 11/10/13, 9:54 AM, schrieb Rena:
>
> Since moving to 7.0 I've been having a problem with setting buffer
>> properties in init.lua.
>>
>> My init.lua is here: http://pastebin.com/uHivAcQQ
>>
>
> I noted a reference to `gui.print` there. That should be `ui.print` now
> but I think this it not necessary anymore. I experimented with something
> similar recently, showing error messages in a textbox:
>
> local function error_message(msg)
> ui.dialogs.textbox{title='Error', text=msg, width=800}
> return true
> end
> events.connect(events.ERROR, error_message, 1)
>
>
>
> The buiffer properties all seem to work (tab width, edge colour, etc are
>> set), but when I split my view, they all revert to default (tab width
>> changes, edge highlighting disappears).
>>
>
> Buffer and view properties are now automatically loaded from a
> `.textadept/properties.lua` file[1]. You could put all settings into
> `.textadept/properties.lua`. This file is processed for new buffers and new
> views (your settings are at the moment only connected to the new buffer
> event).
>
>
> Also, intellisense doesn't seem to work. When I put the caret in a Lua
>> keyword like tostring and press Ctrl+I, the popup only says "Lexer Lua;
>> Style function (12)". In 6.x it would give info about the function from
>> the
>> Lua manual.
>>
>>
> That should be `Ctrl+H` (Meta+H in Curses) now. You can change this like
>
> keys[not CURSES and 'ci' or 'mi'] = textadept.adeptsense.show_apidoc
>
> Cheers,
> Robert
>
> [1] http://foicica.com/textadept/08_Preferences.html#Buffer.Properties
> --
> 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.
>
>
Alright, thanks. I tried your error message popup idea as well, that's a
lot nicer than opening a new view. :) I'm curious, what was Ctrl+i doing?

-- 
Sent from my Game Boy.
-- 
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 Sun 10 Nov 2013 - 04:25:07 EST

This archive was generated by hypermail 2.2.0 : Sun 10 Nov 2013 - 06:33:39 EST