From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#41061: [PATCH] cc-mode: add =?UTF-8?Q?=C3=A2=C2=80=C2=98c-lineup-ternary-bodies=C3=A2=C2=80=C2=99?= Date: Sun, 03 May 2020 23:15:59 -0400 Message-ID: References: <20200503203047.233844-1-mina86@mina86.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="116402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41061@debbugs.gnu.org To: Michal Nazarewicz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 04 05:17:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVRbZ-000U99-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 05:17:17 +0200 Original-Received: from localhost ([::1]:54772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRbY-0003oS-3X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 23:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVRbK-0003nt-8O for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 23:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVRbJ-0002qH-V2 for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 23:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVRbJ-0002cx-RX for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 23:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 May 2020 03:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41061 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41061-submit@debbugs.gnu.org id=B41061.158856216710025 (code B ref 41061); Mon, 04 May 2020 03:17:01 +0000 Original-Received: (at 41061) by debbugs.gnu.org; 4 May 2020 03:16:07 +0000 Original-Received: from localhost ([127.0.0.1]:58731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVRaR-0002bd-Ik for submit@debbugs.gnu.org; Sun, 03 May 2020 23:16:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVRaP-0002au-OH for 41061@debbugs.gnu.org; Sun, 03 May 2020 23:16:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44800) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVRaK-0001v2-0N; Sun, 03 May 2020 23:16:00 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jVRaJ-00015F-5y; Sun, 03 May 2020 23:15:59 -0400 In-Reply-To: <20200503203047.233844-1-mina86@mina86.com> (message from Michal Nazarewicz on Sun, 3 May 2020 21:30:47 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179658 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > return arg % 2 == 0 ? arg / 2 > : (3 * arg + 1); You can format the code that way if you like, but the GNU convention is like this: return (arg % 2 == 0 ? arg / 2 : 3 * arg + 1); That not only makes the nesting very clear, it also indents correctly without a special hack. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)