Re: [code] cpp post_init.lua

From: Ryan Pusztai <rpusztai.att.gmail.com>
Date: Fri, 14 Mar 2014 16:35:23 -0400

Hi Mitchell,

On Fri, Mar 14, 2014 at 4:22 PM, Ryan Pusztai <rpusztai.att.gmail.com> wrote:

> Hi Mitchell,
>
> On Fri, Mar 14, 2014 at 4:17 PM, Mitchell <m.att.foicica.com> wrote:
>
>> I am sure I am doing something wrong, but I don't get my C++ files (i.e.
>>> *.cpp, *.h, *.hpp. and *.cxx) to load a cpp post_init.lua file anymore. I
>>> think that the I saw in 7.1 that
>>> * Split C/C++ lexer into separate lexers and replaced default "cpp"
>>> module with "ansi_c".
>>> happened. I have the post_init.lua file in "~/.textadept/cpp/post_init.
>>> lua".
>>>
>>> Did I miss anything? I thought this would still load after the change
>>> referred to above.
>>> Any ideas? Does the 'cpp' directory need to be renamed 'ansi_c'? I though
>>> that was only for C.
>>>
>>
>> Since Textadept's `modules/cpp/` module was renamed to `modules/ansi_c/`,
>> there is no more "cpp" module and thus your `post_init.lua` will not load.
>> If you rename it to `init.lua`, it should load as a full blown module. You
>> might have to tweak it if it depended on tables like "keys.cpp" to exist,
>> though. Let me know if that doesn't help.
>>
>
> So to be clear I will:
> - rename ~/.textadept/cpp/post_init.lua -> ~/.textadept/ansi_c/init.lua
>
> but I do use "keys.cpp" heavily, so should it be changed to "keys.ansi_c"?
>
> Does "post_init.lua" support still exist? Did I miss this change in the
> manual?
>

Also I am not sure what to do about the context_menu.

I was using
  _M.cpp.context_menu =
  {
  }
and that doesn't work either. Did I miss something from an upgrade guide?

--
Regards,
Ryan
-- 
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 Fri 14 Mar 2014 - 16:35:23 EDT

This archive was generated by hypermail 2.2.0 : Sat 15 Mar 2014 - 06:30:50 EDT