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 17:11:03 -0600 Message-ID: <87bmzgonlk.fsf@gmail.com> References: <87r38sc1w8.fsf@gmail.com> <87mvjgbzud.fsf@gmail.com> <87zin1nob1.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1474499508 12732 195.159.176.226 (21 Sep 2016 23:11:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2016 23:11:48 +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 Thu Sep 22 01:11:44 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 1bmqfx-00020k-IS for ged-emacs-devel@m.gmane.org; Thu, 22 Sep 2016 01:11:37 +0200 Original-Received: from localhost ([::1]:34173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmqfu-0003of-4m for ged-emacs-devel@m.gmane.org; Wed, 21 Sep 2016 19:11:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmqfn-0003oT-Ef for emacs-devel@gnu.org; Wed, 21 Sep 2016 19:11:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmqfj-00080h-DW for emacs-devel@gnu.org; Wed, 21 Sep 2016 19:11:27 -0400 Original-Received: from mail-io0-x232.google.com ([2607:f8b0:4001:c06::232]:35290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmqfj-00080W-8G for emacs-devel@gnu.org; Wed, 21 Sep 2016 19:11:23 -0400 Original-Received: by mail-io0-x232.google.com with SMTP id m186so68700794ioa.2 for ; Wed, 21 Sep 2016 16:11:23 -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=lsR6lOR1yZkDsiA2dV9FhZF2mGW8ZSZ++XrtYZFWwy4=; b=ysyhwZQyh5qbsMqSYGlo3AgAfTVaih7WNXso2qOKfNZWc87vWy7bONRlJCuVH2ZLLE NsNIMoAAAqgLD0YSUNltw8dQxg7/kbvD0gDPSsfenGg5GVwIQathmuQv2peAlcZbLTDU Z3IIxoybd04+gLFiwu4zEawy7ggSZoJgMYWkO7zdEvjhGvHJmwL0adPYWRu3oyUGBwrb cueSgDJTkXRsaZGrxEHCzN4C6/ZzHEI/gXnJ2qimY4lwS0CXVx85KMQpWsonX/OCGCfK ZAtC7tzhLA+Cw2ccegR3Y08XB+2ELyVH9OGpjRmAKon0VTbOOvOo2JicNDFXNzGM4lW4 X4GA== 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=lsR6lOR1yZkDsiA2dV9FhZF2mGW8ZSZ++XrtYZFWwy4=; b=K/bDSARI2pq28z/1+47lnTl1IiQQB7IMFvNJgjzRmhqSOWGD6pjJ0ROg5MuOMosPcY uRwcipcFBoE5xf2ZZZ5Ihv9DMfhkiHACDF4pJ1XTPseps1qjD6hjIRm+UWIlGVNQbxo9 pm2xvz48W4ofdj2yNFSm7I94GvpDYhQeCVLASQpElaqVMFQNYnTrvy2j0h85E8m19BeM wOuNS9WC/D1dIrel1+VaCRyUeZa9tb/ZiBtyU6H6MSbJKicXxC6uAfcrsFtkR/xnj8Ej iqsUoSlMEgc74b9Ml4qAtc380R6IZ/g/AbFF1yIL+sZYp9r6VLwBHf9vbzabABIM/Pg5 S58w== X-Gm-Message-State: AE9vXwOCrOobdKy6Wk0vw2IWjS3lgbiXhU2IAN4k6TJspCXRF7V7Vsm5IFIAuzWapO4e4Q== X-Received: by 10.107.39.194 with SMTP id n185mr60796882ion.47.1474499482880; Wed, 21 Sep 2016 16:11:22 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id r124sm13010115itc.19.2016.09.21.16.11.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Sep 2016 16:11:22 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Wed, 21 Sep 2016 13:12:00 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::232 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:207681 Archived-At: --=-=-= Content-Type: text/plain John Wiegley writes: >>>>>> "A" == Alex writes: > > A> Is something like this okay? > > Yes, that looks good to me. You may want to mention "stroustrup" in quotes > when naming the style, so that people know exactly what to look for. That makes sense. I surrounded it in a @code block to match some other mentions of styles. If it's acceptable, would you commit it for me? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=style.patch Content-Description: style diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi index f311ec8..6916169 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 @code{stroustrup} style. @item bsd @cindex BSD style --=-=-= Content-Type: text/plain TIA --=-=-=--