Skip to content

Get rid of haskell-indentation-indent-leftmost #1270

Closed
@gracjan

Description

@gracjan

Variable haskell-indentation-indent-leftmostcan be t or nil or both, and it applies in this case:

func = case a of
  ^      ^

When t indentation offers just the left position, when nil offers just the rightmost, when both offers both.

There are some general truths about this situation:

  1. Truth #_1: Nobody changes the defaults.
  2. Truth #_2: People are upset when their favorite indentation point is not on the list.
  3. Truth #_3: People are kind of okay with clicking TAB until it falls in place as they want.
  4. Truth #_4: Cohort of people wanting rightmost indentation is progressively falling of the right edge of the screen.
  5. Truth #_5: Cohort of people that care about indentation is growing smaller. People want it to just work.
  6. Truth #_6: Determinism (as in: single option) is a virtue that could help with Make indent-according-to-mode continue previous line indentation on empty lines #1265.

Current default is t and I do not think there is a single person on this planet that changed it. There were some that wanted rightmost so this set is not empty.

Note: the fundamental reason to remove this defcustom is that it changes the algorithm. We do not test non t versions, if we keep this defcustom we have to start testing it. This is contrary to other numerical settings that just change the offsets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions