unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex <agrambot@gmail.com>
To: emacs-devel@gnu.org
Cc: Alan Mackenzie <acm@muc.de>
Subject: Re: Should there be a k&r2 c-style?
Date: Wed, 21 Sep 2016 11:41:06 -0600	[thread overview]
Message-ID: <87zin1nob1.fsf@gmail.com> (raw)
In-Reply-To: <m2mvjg3iax.fsf@newartisans.com> (John Wiegley's message of "Fri,  09 Sep 2016 13:54:46 -0700")

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

John Wiegley <jwiegley@gmail.com> writes:

>>>>>> "A" == Alex  <agrambot@gmail.com> writes:
>
> A> If an alias is too much, perhaps the manual could mention that the
> A> 'stroustrup' c-style provides what is used in the K&R2 book?
>
> I think that would be probably be best.

Is something like this okay?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 506 bytes --]

diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi
index f311ec8..0628f8e 100644
--- a/doc/misc/cc-mode.texi
+++ b/doc/misc/cc-mode.texi
@@ -2554,7 +2554,9 @@ for C code in GNU programs.
 
 @item k&r
 @cindex K&R style
-The classic Kernighan and Ritchie style for C code.
+The classic Kernighan and Ritchie style for C code. If you're looking
+for the style used in the 2nd edition of their book ``The C
+Programming Language'', then check out the Stroustrup style.
 
 @item bsd
 @cindex BSD style

  reply	other threads:[~2016-09-21 17:41 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
2016-09-09 20:54     ` John Wiegley
2016-09-21 17:41       ` Alex [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zin1nob1.fsf@gmail.com \
    --to=agrambot@gmail.com \
    --cc=acm@muc.de \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).