emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should there be a k&r2 c-style?


From: Alex
Subject: Re: Should there be a k&r2 c-style?
Date: Fri, 09 Sep 2016 14:08:42 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

John Wiegley <address@hidden> writes:

>>>>>> "A" == Alex  <address@hidden> writes:
>
> A> I imagine that a lot of people nowadays who look at the list of built-in
> A> c-styles in the manual would expect that the 'k&r' style would have a
> A> c-basic-offset of 4, which is what is used in the 2nd edition of 'The C
> A> Programming Language'.
>
> A> For example, the k&r style mentioned in
> A> https://en.wikipedia.org/wiki/Indent_style#K.26R_style has an offset of
> A> 4 spaces.
>
> A> Would it make sense to add a k&r2 c-style that is an alias for the
> A> 'stroustrup' c-style to help alleviate any potential confusion?
>
> Is this just a supposition, or have you heard anyone actually say this?
Just a supposition. I've never heard of anyone talk about it in the
context of Emacs, but I've noticed whenever the K&R style comes up it's
usually associated with a 4-space offset.

I myself did initially think that the k&r c-style would have a 4-space
offset before looking at 'c-style-alist'.

If an alias is too much, perhaps the manual could mention that the
'stroustrup' c-style provides what is used in the K&R2 book?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]