joe's "-guess-indent" option should make use of vi headers such as "vim: expandtab sw=4 ts=4 sts=4:"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
joe (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: joe
In the joerc file(s) there is an option to specify "-guess-indent" which will attempt (with varying success) to guess what indent style should be used while editing a file.
If there is a vi header specifying a particular indent style for the file, that style should be respected, as it is more "correct" than any guess based only on the contents of the body of the file (especially if the file has been edited by those who don't understand the difference between tabs and spaces!)
When editing a php file with the header "vim: expandtab sw=4 ts=4 sts=4:" which specifies 4-space indents, joe incorrectly guesses a two-space indent, which is in the right ballpark, but still sadly wrong.
Description: Ubuntu 10.04 LTS
Release: 10.04
joe version: 3.7-1
Cheers & God bless
Sam "SammyTheSnake" Penny
PS I'm also reporting this to Debian and upstream
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: joe 3.7-1
ProcVersionSign
Uname: Linux 2.6.32-
Architecture: i386
Date: Thu Jul 15 16:19:34 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: joe