[issue5611] Auto-detect indentation in C source in vimrc

2009-11-08 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: in r76154 for trunk and r76155 for py3k. Thanks for the help, guys! -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5611] Auto-detect indentation in C source in vimrc

2009-06-04 Thread Johannes Hoff
Johannes Hoff johan...@johanneshoff.com added the comment: I came across this bug while searching for autodetecting tabs/spaces. Thanks for the help. To address Georg's question, the patch should be modified to say if search('^\t', 'n', 100) instead of if search('^\t') The former will

[issue5611] Auto-detect indentation in C source in vimrc

2009-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You should restrict the search to the first 100 lines or so, if possible. Many of our C files have inconsistent indentation, and using this script with such a file, automatically relying on it to do the right thing, will result in even more

[issue5611] Auto-detect indentation in C source in vimrc

2009-03-30 Thread Kirk McDonald
New submission from Kirk McDonald kirklin.mcdon...@gmail.com: According to PEP 7, older C source files are indented with tabs, and newer ones are indented with spaces. The vimrc file in the repository assumes that existing C source files should be indented with tabs, and it should indent with

[issue5611] Auto-detect indentation in C source in vimrc

2009-03-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon nosy: +brett.cannon priority: - low stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5611