From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id 3557C385E45D for ; Wed, 30 Mar 2022 20:21:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3557C385E45D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,223,1643702400"; d="scan'208";a="73647009" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 30 Mar 2022 12:21:30 -0800 IronPort-SDR: 2McHfW+hl32yCBfkkozRsYk5GJm0pIySTQylc3IODSSq/Q65vdLcA+3o1lhB13TvfNiJyLBiTw 3/R69gv0tGI/VSvTmRXhYL1kprLLK+JTy+joLkNGAbquYhxss6dHh36LTtDPvxLP8YhOnDdqoY 3kHIaKcK6HXTl/fMI6j5uWEHhm6yOQjLw2Eu8yXiqi4qj3dmUCntWeN5BUjmB5632gWjR7QqMa iOYnGScjgmqOHCVgzgyhd4svwIFR6CGAGL5czpf2FI3HF2dkzk3Qke92m3pDnEBiZArlwIvWTA Q8c= Date: Wed, 30 Mar 2022 20:21:24 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Noah Goldstein CC: GNU C Library Subject: Re: [PATCH v2] Add .clang-format style file In-Reply-To: Message-ID: References: <20220330170200.2867894-1-goldstein.w.n@gmail.com> <20220330181711.jeq2gvllahoz7or7@google.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3114.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2022 20:21:32 -0000 On Wed, 30 Mar 2022, Noah Goldstein via Libc-alpha wrote: > > > and cleans up some obvious style mistakes > > > > > > - done: > > > +done: > > > > I don't think that's a style mistake either. Emacs indents a label in the > > outermost block of a function like that (one-column indent rather than > > zero columns), and I think it's deliberate to support tools such as "diff > > -p", where it's desirable that, at any point within a function, the > > previous line starting with a letter is the line with the function name, > > not a line with a label somewhere within the function. > > What's the switch for that in emacs? This is what emacs does by default; I don't know what settings there are to configure it. -- Joseph S. Myers joseph@codesourcery.com