[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C-mode indentation
From: |
Eric Ewanco |
Subject: |
C-mode indentation |
Date: |
Mon, 3 Feb 2003 20:35:53 +0000 () |
I am seeing an anomaly in the behavior of C indent in Pretest 21.2.95. (Build:
GNU Emacs 21.2.95.1 (i386-mingw-nt5.0.2195) of 2003-01-30 on EEWANCO-PC).
If I invoke it with ../bin/emacs -q --no-site-file, load src/alloc.c
from the Emacs build directory, go to line 332, execute Ctrl-C-. BSD to
switch to BSD indent mode, then indent using Ctrl-Alt-\ the structure
definition there, each line is indented eight positions (with a tab).
Doing the same on Emacs 20.6.1 (invoked with the same command line
options) indents 4 positions. If I change the offset alist it changes
the indentation, so that part works. It appears upon further
investigation that the default for c-basic-offset has changed from 4 to
8, but only for BSD style (or at least not for gnu style).
I checked the NEWS file to see if there was a documented change in the
way indentation works (particularly for BSD style), but I didn't run
across anything.
Eric
# __ __ Eric Ewanco
# IC | XC address@hidden
# ---+--- http://www.ewanco.com/~eje
# NI | KA Shrewsbury, MA; USA
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- C-mode indentation,
Eric Ewanco <=