Re: [textadept] Request: Remove tab settings from language modules

From: Robert <ro....at.web.de>
Date: Wed, 2 Nov 2011 08:04:03 +0100

Hi Patrick,

setting
_m.textadept.editing.STRIP_WHITESPACE_ON_SAVE = false
in your work init.lua should do it.

Robert

On Tue, Nov 1, 2011 at 11:51 PM, Patrick McMorris <patr....at.sixpack.ca> wrote:
> I have similar issues when the editor removes trailing spaces on save.
> This is a great feature for writing nice clean code and works ok when
> everyone on a project is also doing it.  But more generally, when you're
> working with millions of lines of code, and hundreds of people, on many
> concurrent branches, on legacy code bases, etc... It's a bad idea for the
> editor to go modify lines that you didn't touch.  It makes merging a
> nightmare and code reviews more complicated than they need to be for folks
> using crappy diff tools.  Personally, I like it on at home but I need it off
> at work.  And I need it to stay off, wholesale at the app level not at the
> per language/fileformat level.
>
>
> Patrick
> PS
> down with tabs
> On Tue, Nov 1, 2011 at 3:28 PM, Brian Schott <briancsch....at.gmail.com> wrote:
>>
>> Some of the language add-on modules contain settings for indentation
>> (tabs vs. spaces and indent size). These override any user settings in
>> ~/.textadept/init.lua, thereby changing how the editor operates in a
>> way that I think is unexpected from a language module.
>>
>> I noticed this primarily with the Java module, as it removes the
>> feature of removing trailing whitespace and also resets my
>> indentation. Tabs are the superior indentation unit (I SHALL NOT BE
>> PERSUADED OTHERWISE, HEATHENS!), but at work I need to follow the
>> guidelines of no trailing whitespace and 4-space indentation (as
>> recommended by the (poorly-worded) Java code conventions
>> http://www.oracle.com/technetwork/java/codeconventions-136091.html#262)
>>
>> Whenever I upgrade or reinstall TA I end up forgetting to remove this
>> from the Java module and manage to stupidly check in files with the
>> wrong whitespace settings. I could override the override in my
>> post_init.lua, but why should I have to?
>>
>> Summary: Leave set_buffer_properties empty in language modules,
>> please. Other than that, they're awesome.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "textadept" group.
>> To post to this group, send email to textadept.at.googlegroups.com.
>> To unsubscribe from this group, send email to
>> textadept+unsubscribe.at.googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/textadept?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to
> textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/textadept?hl=en.
>
Received on Wed 02 Nov 2011 - 03:04:03 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:24:30 EST