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: Should there be a k&r2 c-style? Date: Fri, 09 Sep 2016 13:24:23 -0600 Message-ID: <87r38sc1w8.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473449135 19176 195.159.176.226 (9 Sep 2016 19:25:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2016 19:25:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 09 21:25:31 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 1biRQS-0003x2-RZ for ged-emacs-devel@m.gmane.org; Fri, 09 Sep 2016 21:25:25 +0200 Original-Received: from localhost ([::1]:59867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biRQR-0008SJ-QE for ged-emacs-devel@m.gmane.org; Fri, 09 Sep 2016 15:25:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biRQH-0008Px-Ms for emacs-devel@gnu.org; Fri, 09 Sep 2016 15:25:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biRQD-0006KZ-Bh for emacs-devel@gnu.org; Fri, 09 Sep 2016 15:25:12 -0400 Original-Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:36672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biRQD-0006KN-6l for emacs-devel@gnu.org; Fri, 09 Sep 2016 15:25:09 -0400 Original-Received: by mail-oi0-x235.google.com with SMTP id q188so45681107oia.3 for ; Fri, 09 Sep 2016 12:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version; bh=ZMb+Tzt6M6Q7W9r/6jEoAj6HIAnoQcIFqQ5itT2gOyw=; b=ORX4hPxLbzqD7eE7sl0UWiCYPYJjeoF3Ym8CqYJ04gzb7WXNkDzDnldJnxAAx3hjnr xJxEzwvlsuCP2OTV8lp4YWWqO6FP9Gc4GDRfY1zVvXQFNKVoiTbGub9d8TcKI/AynbSs c1nZR0IkLNBx03KiE1RxxvhpMTTp/8otw+4WBmQQEfu+NGpy8MLmZav85h/t96XDdfNs 1MD7VeZ0Famy+D1JeCLxguoqYXOf3LOP6Vlog1nlUyE0E3HTyxMiJdaEigj+6RFRgShR 4zgcRMw4YspcipYGW0qodt5r4+yl+nO8o40Acmgi9slppgBV9Q64S6p/uMXNzCa3Lhqr cpAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=ZMb+Tzt6M6Q7W9r/6jEoAj6HIAnoQcIFqQ5itT2gOyw=; b=crYcE/72F6ai2e56QElhmRbqZLQ5Jro6AVT/+5dB4Hl8HwGf68BmkBV4i3o/ONr8dm 3hxmY9zSycIaG4v9HRvi0qCUSNh9ja/QLF2SgkAGt0YwBW3NK7DN2L7OPzaIAOBwfBIc RfcrGoMpPv+2fkAMJ7iRwow7Vcfkf25sHJ+io4XfIoEaYnH5SJrsspAZRzHAcIIgm7RN nMhasI2NIbulrY0b134NA9ETDnnUnQrPivOwyfhnt5fYifkPrykZyneWaQhoA6dMhHbv sCrpzFn7ChCrgoyuye1o7ah1NGyqUXBulZE4MdikoED42Td3JwtObNMBgpbteDZ01hN4 GDkw== X-Gm-Message-State: AE9vXwPB5phMF0P/5qXKnElTLb+ALfdRm6W58Ve+nUhlwL25t/YJnsjAsZIgDVDMg8NmrQ== X-Received: by 10.202.65.196 with SMTP id o187mr7784781oia.105.1473449107738; Fri, 09 Sep 2016 12:25:07 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id i80sm2178193ita.5.2016.09.09.12.25.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Sep 2016 12:25:07 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::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:207328 Archived-At: I imagine that a lot of people nowadays who look at the list of built-in c-styles in the manual would expect that the 'k&r' style would have a c-basic-offset of 4, which is what is used in the 2nd edition of 'The C Programming Language'. For example, the k&r style mentioned in https://en.wikipedia.org/wiki/Indent_style#K.26R_style has an offset of 4 spaces. Would it make sense to add a k&r2 c-style that is an alias for the 'stroustrup' c-style to help alleviate any potential confusion?