From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: Should there be a k&r2 c-style? Date: Wed, 21 Sep 2016 11:41:06 -0600 Message-ID: <87zin1nob1.fsf@gmail.com> References: <87r38sc1w8.fsf@gmail.com> <87mvjgbzud.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1474479701 1920 195.159.176.226 (21 Sep 2016 17:41:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2016 17:41:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Alan Mackenzie To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 21 19:41:38 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmlWV-0007gk-8b for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2016 19:41:31 +0200 Original-Received: from localhost ([::1]:46963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmlWT-00048S-9s for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2016 13:41:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmlWJ-00045c-GQ for emacs-devel@gnu.org; Wed, 21 Sep 2016 13:41:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmlWF-0008Gp-9N for emacs-devel@gnu.org; Wed, 21 Sep 2016 13:41:18 -0400 Original-Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:37757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmlWF-0008Gi-3W for emacs-devel@gnu.org; Wed, 21 Sep 2016 13:41:15 -0400 Original-Received: by mail-it0-x235.google.com with SMTP id 186so57829813itf.0 for ; Wed, 21 Sep 2016 10:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=DIZx6BfrhYO19cc6UjbBHgCNEWoLE3+AOtNFCIGKkbU=; b=VXEdk0niWT2OiYDhAmTvnLjSSGTzDhiS45JQ12LKon4ZGdP8Gau3Mex1fxyPF3Frzk eW+1sn2qYyWCjR/SnD2eK14uXr42kwVNV9iMO1UP3IzCjKwJqqFc+SITjB4d0BchtpRP iQWxFFg6lBqIxzxc4y7FqVYXj/9KX6bSaITeQH5L18EpnW3MXlrUl7ZXg72VCr4T1Fgu m+p81YU3PN2n6Jws4QgQuM8nn68gj3xp8s3MmDHm5cxxbRJXcYG/SINLF2KaJ+z/GRRI u9AKptV9P1RTKE0RfJUd9SuTh4NPBgqDAyL9PcoCjjRSXem2uprpyTSq2QyqmsCNMbgT RUrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=DIZx6BfrhYO19cc6UjbBHgCNEWoLE3+AOtNFCIGKkbU=; b=RlTyK6x1WdinqhjWv8czriVYJiiWPBuK9rCktykiMNF2ByINlHBHnMD9OIIQV+EbfQ e4zCQqKYSR5YVOsaVv9Rc8kz22Q3Cvmg4LHp6/sWgKifiq0AUv7nbh68UwyMa0HVbMmI BUuZz5maJSHmjYOxRLnDWp35xLcuOfoQ15JJSVoeFC1/hlBLvnhf5ChffAbjN8fn0uCC tPchrJSoHQ+uVkkDUEMCI+Ipnuea7TJtx0haOoxOBG6JtAdpySCpGCRSXyFqnKuvoZbr WVFrcn/XkJNqLT3p4hMenRz2IhX9R2GZ1+Jy22lu2+XpTZsBinpnECvZiaf9mU7l1OcQ hyyA== X-Gm-Message-State: AE9vXwNRFCpE4gkYuRngA4zqBrF7aJosim35u+SFqdPCur/gkUxliXSWQmhFhCr0AD6a8Q== X-Received: by 10.36.137.193 with SMTP id s184mr5872367itd.51.1474479674414; Wed, 21 Sep 2016 10:41:14 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id y132sm12568529itc.20.2016.09.21.10.41.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Sep 2016 10:41:13 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Fri, 09 Sep 2016 13:54:46 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207668 Archived-At: --=-=-= Content-Type: text/plain John Wiegley writes: >>>>>> "A" == Alex 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? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=style.patch Content-Description: patch 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 --=-=-=--