From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 21:35:00 2010 Received: (at submit) by debbugs.gnu.org; 4 Nov 2010 01:35:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PDojD-0005UF-Q7 for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:35:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PDojB-0005U8-Qw for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:34:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDonN-000810-9P for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:39:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDonN-00080s-6e for submit@debbugs.gnu.org; Wed, 03 Nov 2010 21:39:17 -0400 Received: from [140.186.70.92] (port=53188 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDonH-0002Ds-Ax for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 21:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDmhf-0002hc-2B for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 19:25:16 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:39946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDmhe-0002hX-VD for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2010 19:25:15 -0400 Received: by gyd8 with SMTP id 8so583286gyd.0 for ; Wed, 03 Nov 2010 16:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type; bh=qxuSCDTpgteawTxbE97sE1Mv6HGnW9bm0jq9ahdDqf8=; b=GSB5755HQkiIX9EKrMa1lqpRmMLaFHeNUvLd0GGPzPLtiXWDnuHsZk28pnLOKYHPLP 0olomksjh7n1Ir2GlCTZHYR1+dlnYmvU6dX9nI52miCSrVx8Fig9QsbmGCZNKhjEAOEV RlUJSBi7vy/mt4aDf+6USj+RecQXOu8F9R3mQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=Zji6bMe4UR0fodjfnIcJlr+f0oe5ssdnr/DARAvRMF9/0quk5El47z3tmjN+jiy0ez i8D1ZeIyY0aVUYuwkD2ZsM3by5Trx5tcpO2UmIWxYrsrXi+yrfkpLoewqTYKg1sLLnnl TegBq/WR2ro4VV2BwzaAEWW8m/P41hyQ3YC04= Received: by 10.100.111.10 with SMTP id j10mr2557843anc.222.1288826712802; Wed, 03 Nov 2010 16:25:12 -0700 (PDT) Received: from localhost (71-208-193-55.hlrn.qwest.net [71.208.193.55]) by mx.google.com with ESMTPS id w32sm5950846ana.17.2010.11.03.16.25.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Nov 2010 16:25:09 -0700 (PDT) From: Christoph To: bug-gnu-emacs@gnu.org Subject: 24.0.50; cc-mode: default indentation inconsistent with typedefs Date: Wed, 03 Nov 2010 17:25:07 -0600 Message-ID: <86y69a9ei4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -5.0 (-----) 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: -5.0 (-----) Start with `emacs -Q'. Start new .c file. Type `typedef enum' then hit `C-j', then `{'. The code is indented like this: typedef enum { blabla Then try `typedef struct', `C-j', '{'. The code is indented like this: typedef struct { blabla This happens in 24.0.50, bzr revision 102241 and also 23.2.1. I don't know which one is right, but I think the indentation should by default be consistent. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-11-03 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (4.5) --cflags -IC:/Progra~2/GnuWin32/include -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: ido-everywhere: t yas/global-mode: t yas/minor-mode: t global-auto-revert-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t Recent input: C-x RET r e p o r t Recent messages: Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/windows.el (source)...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins.el (source)... Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/color-theme/themes/color-theme-example.el (source)...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/color-theme/themes/color-theme-library.el (source)...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins/zenburn.el (source)...done Ido mode enabled Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/anything-c-adaptive-history...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/plugins.el (source)...done Loading c:/Users/Christoph/AppData/Roaming/.emacs.d/custom.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug server js2-mode-autoloads rainbow-mode-autoloads package re-builder dired+ dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux ibuffer nav nav-tags python-21 python nav-bufs anything-config warnings browse-url semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp dired rx ffap thingatpt anything google-c-style cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring second-sel ido yasnippet dropdown-list derived easy-mmode assoc etags-table etags ring remember zenburn color-theme edmacro kmacro wid-edit cl sendmail regexp-opt reporter easymenu uniquify advice help-fns advice-preload autorevert tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 00:57:42 2016 Received: (at 7327) by debbugs.gnu.org; 8 Sep 2016 04:57:42 +0000 Received: from localhost ([127.0.0.1]:53088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhrPB-0000jz-Qu for submit@debbugs.gnu.org; Thu, 08 Sep 2016 00:57:42 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:34752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhrP9-0000jf-Va; Thu, 08 Sep 2016 00:57:40 -0400 Received: by mail-it0-f44.google.com with SMTP id i184so2727937itf.1; Wed, 07 Sep 2016 21:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tO0/Vl4EefJiQuo5I7od4/8aEq8lTxwEQxwwP7l2UtE=; b=bxZMJvACvCpvhwwLkeIpKcL9kBTNpshRUycd1ezUvdCq2C/bKhdNT4a/fBY7n23QJC urb3WT+W6OWhD7QZCz+da2ILWMCQ9JT75qKjRZUxivT1OI7tmpq4M7+v0P7F/mkTc720 GqQWvC6+wvKlmOz49/68O47I4mlk/xbRTY3PZeRnLDgWkR1SXdSrLab0LUkwtGS7BDaO 2lIEiSOwiRrZ7g+9q+4q2V1gvpm3P1/yqwh8/cERwNZ7RMy79lIfPPAHN3IMXMiRuHBE ogdK+Kmi6OCx9iBlbBT9yStrqpj9iBgRPt5Fkz1IszXUxQEY68pP95/PcRkcoi+gTPGE 6avA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tO0/Vl4EefJiQuo5I7od4/8aEq8lTxwEQxwwP7l2UtE=; b=GH57k04A35xUVDewzj5ztlOX57Bi5ukXAamtlNZN5tWPU1rvUwL2D6Gqy2TmNM8kb+ GpQEpqSmkiSOh9XWTJLiAxonOIPyiGxWRSpRPpXxDiRL4r4evjBV7REwYOWBnQpj2R82 edIPOVCcfu3N/N5x9l4RIXOA1PoC/ZKOTncz2bC2jtSh90tzHkrQmUmRTOnB2Y9Owst8 quPpw6qEHmKttLnSGJSAI8gHe2ISZ2eN1IPoT5MqlldWFhS2jfoDmqEmtLkbp23ArMOi qZ0NXqeQTE1Fvc3i7NZRmZ/hRasm+dH6LEA4BQK2D5KgPYwvyRR6T6OGEhptpgs+CuWh 0E4Q== X-Gm-Message-State: AE9vXwMy3IUZMAIJFXJ6YCMOIxSKUe34YjPYFc/rTECKUJrdMB0MzpN8ql8NkIeZKngl1Q== X-Received: by 10.36.253.3 with SMTP id m3mr12430801ith.6.1473310654347; Wed, 07 Sep 2016 21:57:34 -0700 (PDT) Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id g78sm5640911itb.12.2016.09.07.21.57.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Sep 2016 21:57:34 -0700 (PDT) From: Alex To: Christoph Subject: Re: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs References: <86y69a9ei4.fsf@gmail.com> Date: Wed, 07 Sep 2016 22:57:32 -0600 In-Reply-To: <86y69a9ei4.fsf@gmail.com> (Christoph's message of "Wed, 03 Nov 2010 17:25:07 -0600") Message-ID: <87twdr7zur.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags found 24.5 25.1 quit Christoph writes: > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > { > blabla > > Then try `typedef struct', `C-j', '{'. > > The code is indented like this: > > typedef struct > { > blabla > > This happens in 24.0.50, bzr revision 102241 and also 23.2.1. > > I don't know which one is right, but I think the indentation should by > default be consistent. [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.44 listed in list.dnswl.org] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.214.44 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.44 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 7327 Cc: 7327@debbugs.gnu.org, Alan Mackenzie X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags found 24.5 25.1 quit Christoph writes: > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > { > blabla > > Then try `typedef struct', `C-j', '{'. > > The code is indented like this: > > typedef struct > { > blabla > > This happens in 24.0.50, bzr revision 102241 and also 23.2.1. > > I don't know which one is right, but I think the indentation should by > default be consistent. [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.44 listed in list.dnswl.org] 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [209.85.214.44 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.44 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (agrambot[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid tags found 24.5 25.1 quit Christoph writes: > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > { > blabla > > Then try `typedef struct', `C-j', '{'. > > The code is indented like this: > > typedef struct > { > blabla > > This happens in 24.0.50, bzr revision 102241 and also 23.2.1. > > I don't know which one is right, but I think the indentation should by > default be consistent. This behaviour is still present in Emacs 25.1; is it intentional? From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 02 04:48:31 2021 Received: (at 7327) by debbugs.gnu.org; 2 Jun 2021 08:48:31 +0000 Received: from localhost ([127.0.0.1]:38795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loMY7-0001aN-7A for submit@debbugs.gnu.org; Wed, 02 Jun 2021 04:48:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loMY1-0001a7-Rt for 7327@debbugs.gnu.org; Wed, 02 Jun 2021 04:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=y0EMXT5rAHxfNuUcWEdvzc4NDQYdV9eAL3RBtrC2WrI=; b=AQaXdXR+Q5jLUkBmo4bM+hsK0g 6kqi+89WN9gPr0K9M5nc3JSbPyQmOY+6aWco1aQR/B6qRzbcOBplw+TQ1BdsbxpKU4ivaC1jHuxbN MCevDDt+GMIWJeioD+WsL8QJbxYAroPNJzZh5Mgp8jb5hEzeVUwVFmwGbM28uVituOL4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loMXr-00041j-Od; Wed, 02 Jun 2021 10:48:15 +0200 From: Lars Ingebrigtsen To: Christoph Subject: Re: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs References: <86y69a9ei4.fsf@gmail.com> X-Now-Playing: Nobukazu Takemura's _The Quest is a Reward_: "The Quest Is A Reward" Date: Wed, 02 Jun 2021 10:48:11 +0200 In-Reply-To: <86y69a9ei4.fsf@gmail.com> (Christoph's message of "Wed, 03 Nov 2010 17:25:07 -0600") Message-ID: <87wnrcd54k.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Christoph writes: > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > { > blabla > > Then try `typedef struct', `C-j', '{ [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 7327 Cc: 7327@debbugs.gnu.org, Alan Mackenzie X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Christoph writes: > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > { > blabla > > Then try `typedef struct', `C-j', '{'. > > The code is indented like this: > > typedef struct > { > blabla This behaviour is still present in Emacs 28. Alan, is this behaving as designed, or is it a bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 07:38:47 2021 Received: (at 7327) by debbugs.gnu.org; 3 Jun 2021 11:38:47 +0000 Received: from localhost ([127.0.0.1]:42774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lolgU-0001CR-QB for submit@debbugs.gnu.org; Thu, 03 Jun 2021 07:38:47 -0400 Received: from colin.muc.de ([193.149.48.1]:14800 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lolgS-0001CE-Qb for 7327@debbugs.gnu.org; Thu, 03 Jun 2021 07:38:45 -0400 Received: (qmail 63089 invoked by uid 3782); 3 Jun 2021 11:38:37 -0000 Received: from acm.muc.de (p4fe15a45.dip0.t-ipconnect.de [79.225.90.69]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 03 Jun 2021 13:38:37 +0200 Received: (qmail 8261 invoked by uid 1000); 3 Jun 2021 11:38:37 -0000 Date: Thu, 3 Jun 2021 11:38:37 +0000 To: Lars Ingebrigtsen Subject: Re: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs Message-ID: References: <86y69a9ei4.fsf@gmail.com> <87wnrcd54k.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wnrcd54k.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 7327 Cc: Christoph , 7327@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Lars On Wed, Jun 02, 2021 at 10:48:11 +0200, Lars Ingebrigtsen wrote: > Christoph writes: > > Start with `emacs -Q'. Start new .c file. > > Type `typedef enum' then hit `C-j', then `{'. > > The code is indented like this: > > typedef enum > > { > > blabla > > Then try `typedef struct', `C-j', '{'. > > The code is indented like this: > > typedef struct > > { > > blabla > This behaviour is still present in Emacs 28. > Alan, is this behaving as designed, or is it a bug? It's kind of both. The issue came up on 2014-02-19 in a post from Xue Fuqiao on the CC Mode list. This behaviour has been in place since at least 2000-01-16, and I decided in 2014 that to fix the bug would result in too much chaos, with "typedef enum"s, lots of them, suddenly becoming mis-indented. The root of the problem is that the CC Mode syntactic symbol brace-list-open is used for both typedef enums (as above) and for the initialisation of structs with literals. This economy was a mistake, with the benefit of hindsight. So I think I would still rather not fix this bug, since it has at least two decades' standing. Sorry! > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 04:33:04 2021 Received: (at 7327) by debbugs.gnu.org; 4 Jun 2021 08:33:04 +0000 Received: from localhost ([127.0.0.1]:45246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5GK-0001aY-FR for submit@debbugs.gnu.org; Fri, 04 Jun 2021 04:33:04 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5GI-0001Zv-EL for 7327@debbugs.gnu.org; Fri, 04 Jun 2021 04:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:References:Message-ID:Date: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AhP/kv4et1hotocfBcpe28PSkc+JztiiBSLqMA5ltZQ=; b=puF4SAUHsv4zDxLgGudk4gZeEr p/xpRacMOOyBg8wGiS0Hc9iVDLer6bSbQVOHWmCYVN5zPohecbtAZ8Fs02O7IYj8z0wXZSaj8ebHN Y38K1bfdwIUFf8CYmnOHpHM0uMptcIGLS2y5qggiN4Q/CoIX9fgp2EJZMxl1o04Zuks0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp5G7-0003GH-PI; Fri, 04 Jun 2021 10:32:56 +0200 From: Lars Ingebrigtsen To: Alan Mackenzie Subject: Re: bug#7327: 24.0.50; cc-mode: default indentation inconsistent with typedefs In-Reply-To: (Alan Mackenzie's message of "Thu, 3 Jun 2021 11:38:37 +0000") Date: Fri, 04 Jun 2021 10:32:30 +0200 Message-ID: <87h7ie2foh.fsf@gnus.org> References: <86y69a9ei4.fsf@gmail.com> <87wnrcd54k.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) X-Now-Playing: Mia Doi Todd's _Music Life_: "Take Me to the Mountain" MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Alan Mackenzie writes: > So I think I would still rather not fix this bug, since it has at least > two decades' standing. Thanks for the explanation. I'm closing this bug report, then. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 7327 Cc: Christoph , 7327@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Alan Mackenzie writes: > So I think I would still rather not fix this bug, since it has at least > two decades' standing. Thanks for the explanation. I'm closing this bug report, then. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 04:33:14 2021 Received: (at control) by debbugs.gnu.org; 4 Jun 2021 08:33:14 +0000 Received: from localhost ([127.0.0.1]:45254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5GU-0001b7-F2 for submit@debbugs.gnu.org; Fri, 04 Jun 2021 04:33:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp5GT-0001at-Kr for control@debbugs.gnu.org; Fri, 04 Jun 2021 04:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0tRa3fj7xHTm/E+pvJ0XRVrKp+gn3GhThgNpnkQJQrk=; b=nKrEPghmO4CuPPMSuwCswbUKUS ZlN/1DhT7eEbduWf6wuofSaFHcgUd0eaLBlxFS1IOMWwBNSJs5YuDJNWFjKIPH9KzJmqK2usu96eL WzyDNAAs9eo6ETnjjB2x8uPlI9uSkoHW1z3l+B0meeKePFP+OR4He+UUlElhGiiMsEtI=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp5GL-0003GX-Sq for control@debbugs.gnu.org; Fri, 04 Jun 2021 10:33:07 +0200 Date: Fri, 04 Jun 2021 10:33:05 +0200 Message-Id: <87bl8m2fni.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #7327 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 7327 wontfix close 7327 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 7327 wontfix close 7327 quit From unknown Tue Jun 17 03:39:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 02 Jul 2021 11:24:05 +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