Skip to content

streamline_config.pl: Fix Perl spacing

Steven Rostedt linux-kbuild lkml 1 version Applied

Status from this message: [merged] streamline_configpl-add-softtabstop=4-for-vim-users.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2streamline_config.pl: Make spacing consistentscripts/kconfig/streamline_config.pl+39 -390 repliesApplied
2/2streamline_config.pl: Add softtabstop=4 for vim usersscripts/kconfig/streamline_config.pl+2 -08 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] streamline_config.pl: Fix Perl spacing

Talking with John Hawley about how vim and emacs deal with Perl files with respect to tabs and spaces, I found that some of my Perl code in the kernel had inconsistent spacing. The way emacs handles Perl by default is to use 4 spaces per indent, but make all 8 spaces into a single tab. Vim does not do this by default. But if you add the vim variable control:

# vim: softtabstop=4

to a perl file, it makes vim behave the same way as emacs.

The first patch is to change all 8 spaces into a single tab (mostly from people editing the file with vim). The next patch adds the softtabstop variable to make vim act like emacs by default.

Steven Rostedt (VMware) (2):
streamline_config.pl: Make spacing consistent streamline_config.pl: Add softtabstop=4 for vim users

----

 scripts/kconfig/streamline_config.pl | 80 ++++++++++++++++++------------------
 1 file changed, 41 insertions(+), 39 deletions(-)