From unknown Sun Jun 22 03:47:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8251 <8251@debbugs.gnu.org> To: bug#8251 <8251@debbugs.gnu.org> Subject: Status: c-default-style vs. .dir-locals Reply-To: bug#8251 <8251@debbugs.gnu.org> Date: Sun, 22 Jun 2025 10:47:32 +0000 retitle 8251 c-default-style vs. .dir-locals reassign 8251 emacs,cc-mode submitter 8251 Juanma Barranquero severity 8251 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 14 16:51:23 2011 Received: (at submit) by debbugs.gnu.org; 14 Mar 2011 20:51:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzEjb-0001gi-BL for submit@debbugs.gnu.org; Mon, 14 Mar 2011 16:51:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzEjZ-0001gX-CP for submit@debbugs.gnu.org; Mon, 14 Mar 2011 16:51:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzEjT-0003gM-7R for submit@debbugs.gnu.org; Mon, 14 Mar 2011 16:51:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:58144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzEjT-0003gI-5C for submit@debbugs.gnu.org; Mon, 14 Mar 2011 16:51:15 -0400 Received: from [140.186.70.92] (port=41916 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzEjR-0002Dq-RR for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2011 16:51:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzEjP-0003ew-RO for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2011 16:51:13 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:64108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzEjP-0003eg-Os for bug-gnu-emacs@gnu.org; Mon, 14 Mar 2011 16:51:11 -0400 Received: by gyg10 with SMTP id 10so1389723gyg.0 for ; Mon, 14 Mar 2011 13:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=aXdLADQvqX9J41LDPGr3cltbWndwtlJ6FfQdYIuKXgg=; b=d2Us2TwSzSfPO46DXGg0UwxthcVcQWIMfa/bgMng/fJi7KN7K8pcOQdqnIJN5A5ZJ2 SRsphlNA9IQys8+dggvA3ERVGeE/YLbNw49d//nZ1eTSxi5ZTXa8X8fQUa/APbch3Nzq D9Eofek5ClX4l/gr84qGVQZtMZLWYFz0CZ5yw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=xo0nZn5+SMtntcbuN96nrQBMdY6+39vlF1hhEoElilrj7nrGnOdc7rIZwMuhXotDNp aniEekfiuAe4JvwibRuG9HS6pzCi9rSMzNfWRQAHeBnziHxIbNx6CkzAFFQOid1Bo0a6 HrwOjYYd+VRDaI7VKW+a6SFI5+aPxATuQmU7Q= Received: by 10.146.192.5 with SMTP id p5mr18310664yaf.39.1300135870666; Mon, 14 Mar 2011 13:51:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.137.2 with HTTP; Mon, 14 Mar 2011 13:50:25 -0700 (PDT) From: Juanma Barranquero Date: Mon, 14 Mar 2011 21:50:25 +0100 Message-ID: Subject: c-default-style vs. .dir-locals To: Bug-Gnu-Emacs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) Package: emacs Version: 24.0.50 The test file contains just three lines: { x; } (there are two spaces before "x;", as per the GNU style) and .dir-locals.el is a one-liner: ((c-mode . ((c-file-style . "GNU")))) Cases: 1.- No .dir-locals.el, no c-default-style rm .dir-locals.el emacs -Q test.c then c-indentation-style =3D=3D "gnu", c-basic-offset =3D=3D 2 (origina= l value was set-from-style; local in buffer test.c; global value is set-from-style). And indeed, C-n does not change anything. 2.- No .dir-locals, set c-default-style rm .dir-locals.el emacs -Q --eval '(setq c-default-style '((other . "stroustrup")))' test= .c then c-indentation-style =3D=3D "stroustrup", c-basic-offset =3D=3D 4, = and C-n reindents the x; line. 3.- .dir-locals.el, set c-default-style echo ((c-mode . ((c-file-style . "GNU"))))> .dir-locals.el emacs -Q --eval '(setq c-default-style '((other . "stroustrup")))' test= .c then c-indentation-style =3D=3D "gnu", c-basic-offset =3D=3D 4, and C-n reindents. 4.- Like 3, but manually setting the style echo ((c-mode . ((c-file-style . "GNU"))))> .dir-locals.el emacs -Q --eval '(setq c-default-style '((other . "stroustrup")))' test= .c C-c . gnu then c-indentation-style =3D=3D "gnu", c-basic-offset =3D=3D 2, and C-n does nothing (as expected). Shouldn't case 3 work as 4? Or am I misunderstanding something obvious? =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 15 02:26:30 2011 Received: (at 8251) by debbugs.gnu.org; 15 Mar 2011 06:26:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzNi9-0006ye-TN for submit@debbugs.gnu.org; Tue, 15 Mar 2011 02:26:30 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzNi8-0006yR-Eq for 8251@debbugs.gnu.org; Tue, 15 Mar 2011 02:26:28 -0400 Received: from localhost ([127.0.0.1]:48225) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzNi2-0006iZ-T3; Tue, 15 Mar 2011 02:26:22 -0400 From: Glenn Morris To: Juanma Barranquero Subject: Re: bug#8251: c-default-style vs. .dir-locals References: X-Spook: Becker INS beanpole benelux government Watergate CBNRC X-Ran: Ej"QopMo5s{3i!Df}>-UJBVM<$y{xTV&mT3uQUKtC"/#yEr'm\e^k@7~.w}ERJ5(,%8)w< X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 15 Mar 2011 02:26:22 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8251 Cc: 8251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Is this the same as http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7570 ? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 15 05:27:35 2011 Received: (at 8251) by debbugs.gnu.org; 15 Mar 2011 09:27:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzQXO-0003Vx-Va for submit@debbugs.gnu.org; Tue, 15 Mar 2011 05:27:35 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzQXM-0003Vk-Lv for 8251@debbugs.gnu.org; Tue, 15 Mar 2011 05:27:33 -0400 Received: by gyf3 with SMTP id 3so166993gyf.3 for <8251@debbugs.gnu.org>; Tue, 15 Mar 2011 02:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=9c5EGCGFHhgAiYJy26xz/oOsyTLt2b+Wy6fIFVBbgVE=; b=Mcv9pkKBzSHL6kFdNmRriCcoBECyKaYJEvb3dNtFlulDipg9DQ60s8+appTrLZcMf3 Z8Q63/eFKPU3/lqtT2PfaTWu1LvNpwKNmIqNcBfKY2BXfa5et1LbCNlpnQB8Vwwpnxs+ nSeRzfO+3inPgHQH6TmhhCLpzVrEERr4YvHVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=J8XTU175+JPje9XtOtuMRLCX+lwsVgN0+VKWlH/7rBCwSxIJryzOTW/JADegZXK11h H72/HgyTHE2MxjMrSVqz25MI+putYtEKzEBLjOITU2a5GFSBwnzveV6IfZM36xZUSpJQ xGCalFqYqS9J0yoaQP6AtcOWKjrSEWBfqozqI= Received: by 10.151.27.16 with SMTP id e16mr3521847ybj.356.1300181247107; Tue, 15 Mar 2011 02:27:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.34.11 with HTTP; Tue, 15 Mar 2011 02:26:47 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Tue, 15 Mar 2011 10:26:47 +0100 Message-ID: Subject: Re: bug#8251: c-default-style vs. .dir-locals To: Glenn Morris Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: 8251 Cc: 8251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) > Is this the same as > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7570 =C2=A0? I'm not sure, but it is entirely possible. Both are about the default style overriding the .dir-locals.el one. Feel free to merge them. Thanks, =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 06 14:56:45 2011 Received: (at control) by debbugs.gnu.org; 6 Apr 2011 18:56:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7XuH-0000LJ-C3 for submit@debbugs.gnu.org; Wed, 06 Apr 2011 14:56:45 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7XuB-0000L4-HL for control@debbugs.gnu.org; Wed, 06 Apr 2011 14:56:43 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q7Xu6-0007MI-8F for control@debbugs.gnu.org; Wed, 06 Apr 2011 14:56:34 -0400 Date: Wed, 06 Apr 2011 14:56:34 -0400 Message-Id: Subject: control message for bug 8251 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) merge 7570 8251 From unknown Sun Jun 22 03:47:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 21 Aug 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator