From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: C style alist question? Date: Thu, 11 Apr 2019 17:22:10 +0300 Message-ID: <83v9zk4o6l.fsf@gnu.org> References: <20190406032636.7ftf2ua54uhy2k7e@Ergus> <837ec7bpe4.fsf@gnu.org> <20190411011659.zplon3n3lrtqmb2i@Ergus> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184532"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 11 16:22:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEab8-000lqF-Fd for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2019 16:22:38 +0200 Original-Received: from localhost ([127.0.0.1]:49686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEab7-0003mZ-C5 for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2019 10:22:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEab1-0003mR-Lb for emacs-devel@gnu.org; Thu, 11 Apr 2019 10:22:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEaaz-0000X1-Hh; Thu, 11 Apr 2019 10:22:29 -0400 Original-Received: from [176.228.60.248] (port=2856 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hEaay-0007uQ-Tg; Thu, 11 Apr 2019 10:22:29 -0400 In-reply-to: <20190411011659.zplon3n3lrtqmb2i@Ergus> (message from Ergus on Thu, 11 Apr 2019 03:16:59 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:235290 Archived-At: > Date: Thu, 11 Apr 2019 03:16:59 +0200 > From: Ergus > Cc: help-gnu-emacs@gnu.org > > But other common policies around are: > > 1) add only tabs (and ignore the small mismatch in some cases) > > int function(int var1, > ------->double b, > ------->double c) > { > ------->for (int i = 0; i < 10; ++i) > ------->------->myprintf ("%d\n", > ------->------->------->i); > } AFAIU, this is the 'linux' style in CC Mode. > 2) Use tabs (but only for indentation) and spaces to align > > int function(int var1, > .............double b) > { > ------->for (int i = 0; i < 10; ++i) > ------->------->myprintf ("%d\n", > ------->------->..........i); > } And this is the 'bsd' style. Can you use these built-in styles to get what you want? Or did I misunderstand what you are looking for?