From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#42270: 28.0.50; cc-mode indentation issue with attributes Date: Wed, 8 Jul 2020 19:03:58 +0200 Message-ID: <20200708170358.sn4omf4vk3jlks4x@ergus> References: <20200708170358.sn4omf4vk3jlks4x.ref@ergus> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35826"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: 42270@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 08 19:05:32 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtDVj-0009Dh-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jul 2020 19:05:32 +0200 Original-Received: from localhost ([::1]:52938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtDVi-0007zr-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jul 2020 13:05:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtDVH-0007ey-2p for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2020 13:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtDVG-0002cC-MV for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2020 13:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jtDVG-0000hT-IB for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2020 13:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jul 2020 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42270 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15942278492625 (code B ref -1); Wed, 08 Jul 2020 17:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jul 2020 17:04:09 +0000 Original-Received: from localhost ([127.0.0.1]:39000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtDUO-0000gH-TW for submit@debbugs.gnu.org; Wed, 08 Jul 2020 13:04:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jtDUN-0000g9-Ec for submit@debbugs.gnu.org; Wed, 08 Jul 2020 13:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtDUN-00063x-8Q for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2020 13:04:07 -0400 Original-Received: from sonic311-14.consmr.mail.bf2.yahoo.com ([74.6.131.124]:35567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtDUK-0002Ty-RC for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2020 13:04:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1594227841; bh=UkaVSNlmSZpob/tUPQEAiAKoXKfe2r8LSP93F9TD+II=; h=Date:From:To:Subject:References:From:Subject; b=mvHap1kx1WbU52kMr5ImRG0mFCaBRPJEe4Rh1IYRp91VY0JVM4blTBQOa/+zacIbODxbQbaJAKuQvNef2sy+Yht7UCgOs7wEu7S+fSes/xKpw72/BV5KoBhiMRIi4lIzutoXB4G1ymXFdWccfVoEF1mQaq3aQsD7oTo8dfsiNIv2RtN+Bo65vGXvLeeIym7R9MuxkOH2ufWt905iVSXwjyDWpWPiho74GCMnMg72RVSDmjMPDS7+XN+PjM3sn1u0pOjPRqIkVZwzQQguGKmVtJMqMoYCZ4orvfGDm9kfsU3Ji0XXXGPnlWrNU6LY/CV6/TSlOM411yawJadliHaA+Q== X-YMail-OSG: yuexOpsVM1ku2GgZknP7w0NrWElU1PcNaeClh3y2wZOrHsgdTMjgGn5LvOzY6X3 85yeGKzOpfBaWIrW1LVGb9HUhe3_TGxQg_wKoSPmCynT.uMmyLqmG3YVaHy.sCpeFNhdoV8Pqilb l1rEqCA1cw_51pD0oOLaLc2xnmGy4vnQTzLAOF4.inOvVa1BbJimN2KrKZOCfBZTRO0gvTa.TSsK gDpvXqIvUNiPpb3zudidaDa7KRkGpnuBoEHdQ14d2P62MTlaNtMX1QpTxseOaVKhSjXRkTdMKnzH loTM71l33su2MS.Ab0laZ6vSxIa4jCxL46fQsQYGn_skuknsY3rzee6bLldswzc16SuE6Tz4a.wS mAwsj8Hq8_GA0UTxVDlAoc7y1VDCPAy1yHabu_UcQilQi2MDqegMlycxYRVqU8ACfhKJubuJdJm1 X6fX2jAUyKjAYBxTgl_IDIcU_9ueG1Zg1KZsjAhcSZzYZSmbTokT5Hh28fxL0C_BXKqHOhQLPWYW bQZWdWaOugG3LqyIc2jlVKflHT3gEF9BPcfa95JgEmg0DmRSc4AGL1eAvdYXP8xoKXDTy1w8DnU_ Fk6_gPuJNvB0RQy4az2bT.UXxLrQUCrlovbsIoFbBRqzGKOG3Hly7n74m7Gb27c9V2pPmGtplsX5 YUVpa15YKPBBcWDibfRUpuC4sJ0NfcOtpJ0R_DrGVkpt.59Ls0AFlgq1jOoWnRK4VzuePQ.yc7dd jgWCQ7l1XT.wb8fnB45iQZNoUpn2s5jxQvZCF8zf6kigIlpLbWqzgyPvaVT8zwfl0QRguWYZoTyO oK6WQJTjDsjBJD2wD5oLQaksvcnrJt6OHjXtVNNU.6 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Wed, 8 Jul 2020 17:04:01 +0000 Original-Received: by smtp431.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b5447fcd7eef588cabe0039f5f29b329; Wed, 08 Jul 2020 17:03:59 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.16197 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.131.124; envelope-from=spacibba@aol.com; helo=sonic311-14.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/08 11:29:37 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182846 Archived-At: Hi: Working in C++ I am getting this indentation difference when arguments has attributes or not: TaskDataAccesses(TaskDataAccessesInfo taskAccessInfo) : _lock(), _accesses(), _accessFragments(), _taskwaitFragments() { } TaskDataAccesses(__attribute__((unused)) TaskDataAccessesInfo taskAccessInfo) : _lock(), _accesses(), _accessFragments(), _taskwaitFragments() { } The problem seems to be that in the first case the `:` indentation symbol (C-c C-o) is recognised as `member-init-intro` (correct) but in the second one it is detected as a `topmost-intro-cont` which is actually wrong. Best, Ergus In GNU Emacs 28.0.50 (build 10, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2020-07-07 built on ergus Repository revision: df3ece9d2ed61c9526dbf718e3c96d72bd53dccb Repository branch: master System Description: Debian GNU/Linux 10 (buster) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --prefix=/home/ergus/.local/ --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/tmux term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 48788 5097) (symbols 48 6074 1) (strings 32 15630 1699) (string-bytes 1 506737) (vectors 16 7254) (vector-slots 8 75610 8410) (floats 8 22 231) (intervals 56 180 0) (buffers 992 10))