MXR doesn't honor the Emacs tab-width setting in source files

NEW
Unassigned

Status

Webtools
MXR
6 years ago
6 years ago

People

(Reporter: Wan-Teh Chang, Unassigned)

Tracking

({regression})

Trunk
regression

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Many NSPR and NSS source files use tab characters with a tab width of 8.
MXR displays these files with a tab width of 2, so the indentation looks
wrong.

I was able to correct this problem by adding an Emacs "Mode" line with
"tab-width: 8" to the beginning of source files.  But this no longer
works now.  Is this a regression?  Here are two examples:

http://mxr.mozilla.org/nspr/source/nsprpub/pr/src/md/windows/ntmisc.c
See NowCalibrate in this file.

http://mxr.mozilla.org/security/source/security/nss/lib/ssl/ssl3con.c
See ssl3_CompressMACEncryptRecord in this file.

Thank you for your help with this problem.
You need to log in before you can comment on or make changes to this bug.