From: Alex <agrambot@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Should there be a k&r2 c-style?
Date: Fri, 09 Sep 2016 14:08:42 -0600 [thread overview]
Message-ID: <87mvjgbzud.fsf@gmail.com> (raw)
In-Reply-To: <m2fup827e7.fsf@newartisans.com> (John Wiegley's message of "Fri, 09 Sep 2016 12:35:44 -0700")
John Wiegley <jwiegley@gmail.com> writes:
>>>>>> "A" == Alex <agrambot@gmail.com> 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?
next prev parent reply other threads:[~2016-09-09 20:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 19:24 Should there be a k&r2 c-style? Alex
2016-09-09 19:35 ` John Wiegley
2016-09-09 20:08 ` Alex [this message]
2016-09-09 20:54 ` John Wiegley
2016-09-21 17:41 ` Alex
2016-09-21 20:12 ` John Wiegley
2016-09-21 23:11 ` Alex
2016-09-25 18:56 ` John Wiegley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvjgbzud.fsf@gmail.com \
--to=agrambot@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.