jcsalomon / smarttabs

Emacs smart tabs - indent with tabs, align with spaces!
http://www.emacswiki.org/emacs/SmartTabs
114 stars 20 forks source link

Failure to insert spaces using "(c-set-offset 'arglist-intro '+)" #46

Open ideasman42 opened 6 years ago

ideasman42 commented 6 years ago

When using a fixed indent level for multi-line function arguments, tabs are not converted into spaces.

eg:

When using this setting with tab-width set to 4:

(c-set-offset 'arglist-intro '++)

I expect:

--->foobar(
--->........a,
--->........b);

but get:

--->foobar(
--->--->--->a,
--->--->--->b);

Somehow the tabs from arglist-into are interpreted differently.

Using a function that simply returns 8, I get the result I'd expect. eg:

(c-set-offset 'arglist-intro (lambda (pair) 8))