From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: C style alist question? Date: Sat, 06 Apr 2019 06:10:11 +0200 Message-ID: <87mul3wz8c.fsf@telefonica.net> References: <20190406032636.7ftf2ua54uhy2k7e@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266290"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 06:10:37 2019 Return-path: Envelope-to: geh-help-gnu-emacs@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 1hCcf6-00179S-7j for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 06:10:36 +0200 Original-Received: from localhost ([127.0.0.1]:50286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCcf5-00033s-6y for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 00:10:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCceu-00031e-F5 for help-gnu-emacs@gnu.org; Sat, 06 Apr 2019 00:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCcet-00007H-Ch for help-gnu-emacs@gnu.org; Sat, 06 Apr 2019 00:10:24 -0400 Original-Received: from [195.159.176.226] (port=49278 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCces-0008RA-B5 for help-gnu-emacs@gnu.org; Sat, 06 Apr 2019 00:10:22 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hCceo-0016to-TB for help-gnu-emacs@gnu.org; Sat, 06 Apr 2019 06:10:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:SC/x7M2/8bAyk43TJy39kv3/SdI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119911 Archived-At: Ergus writes: > For example: c-lineup-gcc-asm-reg, c-lineup-close-parenm, > c-lineup-arglist-intro-after-paren... what are those, where are them? Are you asking for their documentation? They are described on the CC Mode manual: https://www.gnu.org/software/emacs/manual/html_node/ccmode/Misc-Line_002dUp.html > But also: what's the point with bringing a linux style that needs to be > fixed by all the users that needs it? Probably nobody cared about fixing the Emacs sources? Although this is strange, because there are kernel developers with commit access to Emacs. > Could anyone help me to fix this, or fix the defaults in Emacs to follow > the specifications? Just discuss it with Alan Mackenzie, the maintainer of CC Mode. He is in the emacs-devel mailing list. > What's the recommended configuration when we need to switch constantly? > Because now as I set the tabwidth and the indent-style outside a style, > when I switch I only get a mixed useless style. C styles are buffer local. If you set the correct style in your c-mode hook, you should be ok.