joe's "-guess-indent" option should make use of vi headers such as "vim: expandtab sw=4 ts=4 sts=4:"

Bug #605930 reported by Sam "SammyTheSnake" Penny
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic-pae 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic-pae i686
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

Revision history for this message
Sam "SammyTheSnake" Penny (s-a-penny) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.