Re: [code] cpp post_init.lua

From: Mitchell <m.att.foicica.com>
Date: Mon, 17 Mar 2014 09:51:56 -0400 (Eastern Daylight Time)

Ryan,

On Mon, 17 Mar 2014, Ryan Pusztai wrote:

> Hi Mitchell,
>
> On Fri, Mar 14, 2014 at 5:01 PM, Mitchell <m.att.foicica.com> wrote:
>
>> Hi Ryan,
>>
>> On Fri, 14 Mar 2014, Ryan Pusztai 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
>>>
>>
>> Sorry for the confusion. No, you will simply rename `post_init.lua` to
>> `init.lua` such that you have:
>>
>> ~/.textadept/cpp/init.lua
>>
>
> I did that and it doesn't seem to load my "init.lua" file. Should it be
> '~/.textadept/module/cpp/init.lua'?

Yes. That was my Friday for you, sorry :(

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 17 Mar 2014 - 09:51:56 EDT

This archive was generated by hypermail 2.2.0 : Tue 18 Mar 2014 - 06:50:33 EDT