From unknown Wed Aug 20 05:16:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jun 2016 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23826 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 23826@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146660975822302 (code B ref -1); Wed, 22 Jun 2016 15:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jun 2016 15:35:58 +0000 Received: from localhost ([127.0.0.1]:51332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFkC6-0005nd-HH for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFkC5-0005nO-2b for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFkBy-000732-SP for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBy-00072o-Oq for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBw-0005vf-L4 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFkBu-00072C-QS for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:47 -0400 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:34716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBu-00071x-M0 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:46 -0400 Received: by mail-vk0-x230.google.com with SMTP id c2so36729792vkg.1 for ; Wed, 22 Jun 2016 08:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=okj+So+LIhor9vZBM4WgtdMbKKtzCmJdiXJ1UlI2l1Q=; b=Jd8HoGBHQrU539EDykLvVw7Q23hubUJLy2CE/A8OzUm6IGjEeH9iNDH+hJG3j+kLsH 0ErFUMtYK4u42DWPAcZSr2ugGjGS4zJz1bW1pVtvDMs1A+rCy+pSgek/fkErxufLRbG0 By/2SYYVHp4haRMcbHyU9Rd0HAnNIMW8XlXd1z6M/uieW1SfscDg52WnJrGCRd5FN9/r 1bl472BAvOjllP5krbfRAErtmaaFRvt899ZcoJ9/4J34N6nc0nGXtYapdahgWGMaN1Hb 03qNRfV5otxvTthz7MouWHEK9DOoJWZ8ZQlysmPBM5NLi0ag6ssd5TBcYxiIJAH5KuLY 0tWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=okj+So+LIhor9vZBM4WgtdMbKKtzCmJdiXJ1UlI2l1Q=; b=hagaG9dGwxyoDzLpDA9vxrACUGKnn9EPTpPZs/fLOC7x5bZOVX9ZQNpU32vf+FkyQQ Gltv8mhME9gSJrD4bDa27+XnVLuWzti4MTPfnmRp0O1A606KL6EvDPGfjzsxnbac8asT tgoeSTKLRnSaQxdyouqkSSMO5q4nepcKpJsaqN8L2ZaPjGGRDR3E5GEzg/6wluX7rBZY tsdStpHHxtjD3lVtzzkP9nU3pbQ9Td/Hw/pxdeDciIyilVCRYP72KQUfz8n8v57rbJ+Q sheta5blC3N3KwfCDBs4yyZDfcb1wqdgzKmNEirCABjDNKFoXNBs0WJxzKsYLc/9bPVs o1AQ== X-Gm-Message-State: ALyK8tI3AsCeRBYXMlQt2mR+ag6XWjUKuJ6pFTRfct3fUmEqSzh8hLDucB+5W7/vmOTfZyW0Am+OUm+DGvN+jQ== X-Received: by 10.31.196.196 with SMTP id u187mr8449312vkf.45.1466609745611; Wed, 22 Jun 2016 08:35:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.28.5 with HTTP; Wed, 22 Jun 2016 08:35:45 -0700 (PDT) From: Ivan Andrus Date: Wed, 22 Jun 2016 09:35:45 -0600 Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) >From `emacs -Q`, open a buffer in c++-mode and insert the following: // X is fontified with font-lock-variable-face and x is not fontified int foo(xml::XmlElement xml, X const& x ) { return 0; } // Fontified correctly int bar(XmlElement xml, X const& x ) { return 1; } Notice that the namespace qualification of XmlElement causes the second parameter to be incorrectly fontified (or so it appears). -Ivan From unknown Wed Aug 20 05:16:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode References: In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 03 Oct 2019 04:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23826 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Ivan Andrus Cc: 23826@debbugs.gnu.org Received: via spool by 23826-submit@debbugs.gnu.org id=B23826.15700763109325 (code B ref 23826); Thu, 03 Oct 2019 04:19:02 +0000 Received: (at 23826) by debbugs.gnu.org; 3 Oct 2019 04:18:30 +0000 Received: from localhost ([127.0.0.1]:38697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFsZR-0002QL-P5 for submit@debbugs.gnu.org; Thu, 03 Oct 2019 00:18:29 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:41882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFsZP-0002Q7-PW for 23826@debbugs.gnu.org; Thu, 03 Oct 2019 00:18:28 -0400 Received: by mail-pf1-f181.google.com with SMTP id q7so844452pfh.8 for <23826@debbugs.gnu.org>; Wed, 02 Oct 2019 21:18:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=w+S1/kUIjE5tgruQFC6Mid3SnsvhxKepvgmGMD70814=; b=t5XxN4LfI0NzVv6VCNIkivyvL9gbLsOFSvqC5oi1FcHtTw4AoicaHKU10uGBgoG6ox aQ1xi1+GWAtLwicCaiYZVkOsEhgwGnOMmsioF1bas+p1oHSGToNv2AwHytM+eNCSUfla bqu2uYhpSgZpMn6GLwxBFa6sVT+UvwHwj6dUYxaOFNxQvtOZJgmyMx23OBHYs4N2dqS0 xoO02WjYiF6+SeNAheyt61Usd0Ba43BdlUWJVTaEhPe33c9ZohYxLhYNuY8XCMeMiL+e 3aTdwYGslcztoJW/dWWK30rFfsuyu2F9Gbqpn5XZzhjlhBzrsax17OIuiG5ZNhfeJRJ1 kgcw== X-Gm-Message-State: APjAAAXQq1LD5fumqndR5quzFsmFvGkJsShG38B1DZ7FrrvzghdGwKZK S3yb41I+RyM+zgJFCZBetglxVx06G8GJHiF5q60= X-Google-Smtp-Source: APXvYqyiSmZU9ZwAjxottjxXCA8+NVr4DZFh5pbybe6ZjYOwusq5yL1jnzrC5Bqf08CjIU3npEXWR837gSUR9QvuovE= X-Received: by 2002:a65:5802:: with SMTP id g2mr7777456pgr.333.1570076301978; Wed, 02 Oct 2019 21:18:21 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Thu, 3 Oct 2019 06:18:11 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) 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: -0.7 (/) Ivan Andrus writes: >>>From `emacs -Q`, open a buffer in c++-mode and insert the following: > > // X is fontified with font-lock-variable-face and x is not fontified > int foo(xml::XmlElement xml, X const& x ) > { > return 0; > } > > // Fontified correctly > int bar(XmlElement xml, X const& x ) > { > return 1; > } > > > Notice that the namespace qualification of XmlElement causes the second > parameter to be incorrectly fontified (or so it appears). I can't reproduce this on current master: X has font-lock-type-face and x font-lock-variable-name-face. Are you still seeing this on a recent version of Emacs? If I don't hear back from you within a couple of weeks, I'll just assume that this has been fixed and close this as unreproducible. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 00:19:09 2019 Received: (at control) by debbugs.gnu.org; 3 Oct 2019 04:19:09 +0000 Received: from localhost ([127.0.0.1]:38701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFsa5-0002Ra-1w for submit@debbugs.gnu.org; Thu, 03 Oct 2019 00:19:09 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:37009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFsa3-0002R2-9A for control@debbugs.gnu.org; Thu, 03 Oct 2019 00:19:07 -0400 Received: by mail-pl1-f180.google.com with SMTP id u20so862282plq.4 for ; Wed, 02 Oct 2019 21:19:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tZ15b+3yt/wynL+wwZp9cTYVfFKhNt/EDIv0CAHuArY=; b=FIYy4IgQnGcp6KtCp+IrhhHKEflhsYLrX2ALqgrJP7X+BQxgtFZ0quwJE/BUmtfHzm vTYkZ7rZXMvQB/Yr/IE0wOW84vGuwR8jIweXKqkVmy/JfRSj9dtMSuJ/4z7HDEnjUQD0 YF5TaG9eq6MUaM2S/gU/i1nSTQ4fyf0VRJ43ZrCfMioQAU6XY14hUsmi+5aUxycGz4Tm cHNAuiSnJb4WQiY/AdoUHR4tmM9TA1Go5ijpIIAH5wCusPK6WXXCBH/w1kXXvCmEAsa5 ZxA+s41N1G63u4nnSZn6NyGhTdBMOyK/0sUE2Fs7vNM0PyO1HXk/pxVreT01Vg7MhSQZ 0X3w== X-Gm-Message-State: APjAAAUgTKbCac6Zz+Ja0cMWa/SmdmjeURLeEoD8QiUHB0wdk/AKnXih OSBbx0NkHMk8Un2Q0t491YRuVcTLI/7HNPFEwjRHImTfBJE= X-Google-Smtp-Source: APXvYqyXRIfOZ9BkKJBYnNNyGTZ83a81K+doZYvQcPM1UJ662m5nTtHwkUCbWpCqjWvAS1qZGMwxqWezT1l2Phb/TXc= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr7746723plq.259.1570076341441; Wed, 02 Oct 2019 21:19:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Kangas Date: Thu, 3 Oct 2019 06:18:50 +0200 Message-ID: Subject: Re: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.2 (/) 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: -0.8 (/) tags 23826 + moreinfo quit From unknown Wed Aug 20 05:16:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 04 Oct 2019 03:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23826 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo To: Stefan Kangas Cc: 23826@debbugs.gnu.org Received: via spool by 23826-submit@debbugs.gnu.org id=B23826.157015891814567 (code B ref 23826); Fri, 04 Oct 2019 03:16:01 +0000 Received: (at 23826) by debbugs.gnu.org; 4 Oct 2019 03:15:18 +0000 Received: from localhost ([127.0.0.1]:41526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGE3q-0003mt-IE for submit@debbugs.gnu.org; Thu, 03 Oct 2019 23:15:18 -0400 Received: from mail-io1-f45.google.com ([209.85.166.45]:39935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGE3o-0003md-Kz for 23826@debbugs.gnu.org; Thu, 03 Oct 2019 23:15:17 -0400 Received: by mail-io1-f45.google.com with SMTP id a1so10432880ioc.6 for <23826@debbugs.gnu.org>; Thu, 03 Oct 2019 20:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pJy8WPF3A/DrwVODrcJMLa+HYcZk9B6Ygz/khwZS1CA=; b=C5jXjFHD/2fcPcLw1Byw5IMenQ/15VhqgbPH3SK/xnDt3DHL91bNx1pAKvNgSzWfOp nsY0FQ5hUVcceMftjsTv0jkFwdWhRJEqwhsSPti2b/Pv6ObI+i6rgp7vet7L6vY38Utc d6qwEB3Ozmyxx3Hns/ezyoc4jemdOT/4BYAQP83HG0Eov1G5kvGJBeAAYhOjp7hoGD2S qVeQbz9aTHpDOQM1eabRj4O3wsOHDgosDXcvx95rItgAWP+wXaxWDcjAQyB9MP6kx2FC WwyzoCS/moSP+WKZHe2EKblufsU4TeaRnvItYDbitTDU3jnwtNNcJpx/Egf6bKmSp6DW JLjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pJy8WPF3A/DrwVODrcJMLa+HYcZk9B6Ygz/khwZS1CA=; b=Bvn70o9md4db6/oLcdVSiwXRU1nJE5v8zlKqULEodrpWImjvGbLKu2d7qD4kdhNEBk Xa8GRdpWbl0tqZGwii76OK32l1oZAT19I3FsfE3PrDGoQix4CJNm9ugQa/0L8lJ2cyVK +E1wRMjIA6+fuGDx8LxGi33YfRpd1ovOGhoUgwI7Tte3tIUwa97SRnIHSZ3NAFzC1E4O YsCArvpVyfQqLC6kQDYfDeRe8RxRMqLKGDaJftXQcpwgINiNo9B2YwwftBu5oCoKgj2L UtmfzTGoAiNyolBTdl2eg/dibuwVEb2A9cV3DuWtW2aMnzrMhnrEd7yXuVMnOUmRqjKB TPBQ== X-Gm-Message-State: APjAAAUI/X8iq1Pu+KxggCrbry8zKJtLClBJxVjDpbUNzzzt0aluIQgM IotUyvM0OL5evDHBzmuv4Jwkdcm6zZU= X-Google-Smtp-Source: APXvYqy5jOmdwWt7M4wswzTtgjuyoLWyOuMYMPyw/sLsR2qfqfvfNFPJDzGfXKR/fMgrI0rsRskgKA== X-Received: by 2002:a5d:91d1:: with SMTP id k17mr11407563ior.237.1570158910880; Thu, 03 Oct 2019 20:15:10 -0700 (PDT) Received: from [192.168.0.6] (174-23-176-97.slkc.qwest.net. [174.23.176.97]) by smtp.gmail.com with ESMTPSA id 6sm1724058ion.66.2019.10.03.20.15.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 20:15:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Ivan Andrus In-Reply-To: Date: Thu, 3 Oct 2019 21:02:15 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: 0.0 (/) 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 (-) On Oct 2, 2019, at 10:18 PM, Stefan Kangas wrote: > > Ivan Andrus writes: > >>> From `emacs -Q`, open a buffer in c++-mode and insert the following: >> >> // X is fontified with font-lock-variable-face and x is not fontified >> int foo(xml::XmlElement xml, X const& x ) >> { >> return 0; >> } >> >> // Fontified correctly >> int bar(XmlElement xml, X const& x ) >> { >> return 1; >> } >> >> >> Notice that the namespace qualification of XmlElement causes the second >> parameter to be incorrectly fontified (or so it appears). > > I can't reproduce this on current master: X has font-lock-type-face and > x font-lock-variable-name-face. > > Are you still seeing this on a recent version of Emacs? Indeed, this is working for me now. > If I don't hear back from you within a couple of weeks, I'll just assume > that this has been fixed and close this as unreproducible. Thanks for following up. -Ivan From unknown Wed Aug 20 05:16:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 04 Oct 2019 03:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23826 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: moreinfo To: Stefan Kangas Cc: 23826@debbugs.gnu.org Received: via spool by 23826-submit@debbugs.gnu.org id=B23826.157015892514586 (code B ref 23826); Fri, 04 Oct 2019 03:16:02 +0000 Received: (at 23826) by debbugs.gnu.org; 4 Oct 2019 03:15:25 +0000 Received: from localhost ([127.0.0.1]:41529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGE3w-0003nB-TU for submit@debbugs.gnu.org; Thu, 03 Oct 2019 23:15:25 -0400 Received: from mail-io1-f54.google.com ([209.85.166.54]:35636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGE3u-0003ml-3y for 23826@debbugs.gnu.org; Thu, 03 Oct 2019 23:15:23 -0400 Received: by mail-io1-f54.google.com with SMTP id q10so10480870iop.2 for <23826@debbugs.gnu.org>; Thu, 03 Oct 2019 20:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pJy8WPF3A/DrwVODrcJMLa+HYcZk9B6Ygz/khwZS1CA=; b=Tfo2PF7kPN6SU9USniZfhpGNUlsI1tZM6kx5fAgFpu6D6C8dLIHb/G0CQUA4nqKR7z 6dkSvp9woWOhV9kHImRhrENK03fG9z4jA8F+RtxMzYmvOCi5f37AVVaDRJ+RdPCV8Q+j zqTwu+cniKX+eVGGycxZxzNA0Q7MPa2/rmgvHD86OkBsdY88kdAtMtAeoodi8N3kuAPp 3jKKc8kGJhrb4f/9D129V9tCm9rJYcMhF+POBoOR+M9Q26ZJZ3NekwRgcDQZAqBHL7di TCT5aPqwWlD6xSzFPn6YYKrvRfy2jbqAsKDhrtpjzB7PbdUvJxP9Xahjy5Q9CGjSvRgl sM8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pJy8WPF3A/DrwVODrcJMLa+HYcZk9B6Ygz/khwZS1CA=; b=RrKg+QNcCiZvcts+XbzBvUPCnZf7Y9NmNXJ57578u9MRtFg1a5RMv3BUEDb0h+gnXe 9s7a6GT9wojX2Vx6LA3/+l41lWB3iY2zE9h1xUxkgR7+AHEQ0AMA5TagrkFPNvVisBPX g4B/apLsYmb/KweIFzUoNHLkXAW0wtHW33AHDpdA7AcTOBhExDA+PkEzOJHgpkjTIUPG TyApHfLO3qRB5NELEDIQCT96VidWJeF/TLiFgfULyj8rzB6tABUYgK4IcsuIMsl6mI40 Z4A6+xNKfrRw9f1s1bEsyDc2LPcPwVI+/goARWwv8ER0aHRz6TN1xdrKkX+zqe3u2K7z WJRA== X-Gm-Message-State: APjAAAUjxPTt2hrChxc9jMcAWGMPIYk4AmGgfshAcG7awrVjGCrqL3rc 0XyaS6JyJKMj+ol/cpg7MHw= X-Google-Smtp-Source: APXvYqyneHhZtQOO5KccjGKV5rPaL4Vdzm+oT/TTavyUrwOqhX7HRWzR5fgmEnTk/IC3mCVn+SwZyQ== X-Received: by 2002:a92:8454:: with SMTP id l81mr13299875ild.20.1570158916647; Thu, 03 Oct 2019 20:15:16 -0700 (PDT) Received: from [192.168.0.6] (174-23-176-97.slkc.qwest.net. [174.23.176.97]) by smtp.gmail.com with ESMTPSA id 6sm1724058ion.66.2019.10.03.20.15.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 20:15:15 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Ivan Andrus In-Reply-To: Date: Thu, 3 Oct 2019 21:15:15 -0600 Content-Transfer-Encoding: 7bit Message-Id: <8C1E49EF-385C-4D68-9AFE-965CC956598F@gmail.com> References: X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: 0.0 (/) 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 (-) On Oct 2, 2019, at 10:18 PM, Stefan Kangas wrote: > > Ivan Andrus writes: > >>> From `emacs -Q`, open a buffer in c++-mode and insert the following: >> >> // X is fontified with font-lock-variable-face and x is not fontified >> int foo(xml::XmlElement xml, X const& x ) >> { >> return 0; >> } >> >> // Fontified correctly >> int bar(XmlElement xml, X const& x ) >> { >> return 1; >> } >> >> >> Notice that the namespace qualification of XmlElement causes the second >> parameter to be incorrectly fontified (or so it appears). > > I can't reproduce this on current master: X has font-lock-type-face and > x font-lock-variable-name-face. > > Are you still seeing this on a recent version of Emacs? Indeed, this is working for me now. > If I don't hear back from you within a couple of weeks, I'll just assume > that this has been fixed and close this as unreproducible. Thanks for following up. -Ivan From unknown Wed Aug 20 05:16:21 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ivan Andrus Subject: bug#23826: closed (Re: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode) Message-ID: References: X-Gnu-PR-Message: they-closed 23826 X-Gnu-PR-Package: emacs,cc-mode X-Gnu-PR-Keywords: moreinfo Reply-To: 23826@debbugs.gnu.org Date: Fri, 04 Oct 2019 04:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1570164962-23760-1" This is a multi-part message in MIME format... ------------=_1570164962-23760-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #23826: 25.1.50; Wrong fontification of parameter in c++-mode which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23826@debbugs.gnu.org. --=20 23826: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23826 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1570164962-23760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 23826-done) by debbugs.gnu.org; 4 Oct 2019 04:55:06 +0000 Received: from localhost ([127.0.0.1]:41542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGFcP-0006A2-NL for submit@debbugs.gnu.org; Fri, 04 Oct 2019 00:55:05 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:33540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGFcO-00069S-Hd for 23826-done@debbugs.gnu.org; Fri, 04 Oct 2019 00:55:05 -0400 Received: by mail-pf1-f172.google.com with SMTP id q10so3159631pfl.0 for <23826-done@debbugs.gnu.org>; Thu, 03 Oct 2019 21:55:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KCdEDjRtBIcigU2+4MA6PgtPCwnzsII9IyVQQJy73gI=; b=IuPMSa8rpLAXKUeNhkBNsF8OCgx7yJIejCQ0SaEgHUDfDBnP6HjP+jmb35MtzBYVDF zRy8uKtK5I9bEJmnBahRBBMNTfKIWKyg9XuhROBErpr++Fe80s324XTpMAbaaCeJiuef QGleMs9fBEwXikK5y0FJo8rKgZt1NfvDvsTXo5dcOakGZA31Paabu2XeJ5x6uOAaBN8d eKnbKv4cmduWLbO7EhVE0WCaogkEWhFjfPpfRa0lniXL1Ctqnq15x8HOB1DUN2FO2wPk UjRyY6Ts89vypO7HjKvgE7EOGRihFkLuwfRMG71W4uEy4krhYRriRQ9uutCHDwqNl/he ENTw== X-Gm-Message-State: APjAAAU9FTfHazV6hQ9qHK7SE/iIzh+SXlb1oEwpWVld8b+1NdgoSVO+ MxFDmFrTLqajq9oqHCZO6pVI21ZxWOBI2UPYa7s= X-Google-Smtp-Source: APXvYqw1iGRpsi/OZuO8u6Eyh23x/sdFlQ4jzBm4uehaCxJFnPlR8pKD3GhCyBsyc8GbAvTucTApLON6CLD6ENx5aBo= X-Received: by 2002:a17:90b:8c4:: with SMTP id ds4mr103361pjb.106.1570164898403; Thu, 03 Oct 2019 21:54:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Kangas Date: Fri, 4 Oct 2019 06:54:47 +0200 Message-ID: Subject: Re: bug#23826: 25.1.50; Wrong fontification of parameter in c++-mode To: Ivan Andrus Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 23826-done Cc: 23826-done@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: -0.7 (/) Ivan Andrus writes: > > I can't reproduce this on current master: X has font-lock-type-face and > > x font-lock-variable-name-face. > > > > Are you still seeing this on a recent version of Emacs? > > Indeed, this is working for me now. Thanks for verifying. Closing this now. Best regards, Stefan Kangas ------------=_1570164962-23760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Jun 2016 15:35:58 +0000 Received: from localhost ([127.0.0.1]:51332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFkC6-0005nd-HH for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFkC5-0005nO-2b for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFkBy-000732-SP for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBy-00072o-Oq for submit@debbugs.gnu.org; Wed, 22 Jun 2016 11:35:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBw-0005vf-L4 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFkBu-00072C-QS for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:47 -0400 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]:34716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFkBu-00071x-M0 for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2016 11:35:46 -0400 Received: by mail-vk0-x230.google.com with SMTP id c2so36729792vkg.1 for ; Wed, 22 Jun 2016 08:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=okj+So+LIhor9vZBM4WgtdMbKKtzCmJdiXJ1UlI2l1Q=; b=Jd8HoGBHQrU539EDykLvVw7Q23hubUJLy2CE/A8OzUm6IGjEeH9iNDH+hJG3j+kLsH 0ErFUMtYK4u42DWPAcZSr2ugGjGS4zJz1bW1pVtvDMs1A+rCy+pSgek/fkErxufLRbG0 By/2SYYVHp4haRMcbHyU9Rd0HAnNIMW8XlXd1z6M/uieW1SfscDg52WnJrGCRd5FN9/r 1bl472BAvOjllP5krbfRAErtmaaFRvt899ZcoJ9/4J34N6nc0nGXtYapdahgWGMaN1Hb 03qNRfV5otxvTthz7MouWHEK9DOoJWZ8ZQlysmPBM5NLi0ag6ssd5TBcYxiIJAH5KuLY 0tWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=okj+So+LIhor9vZBM4WgtdMbKKtzCmJdiXJ1UlI2l1Q=; b=hagaG9dGwxyoDzLpDA9vxrACUGKnn9EPTpPZs/fLOC7x5bZOVX9ZQNpU32vf+FkyQQ Gltv8mhME9gSJrD4bDa27+XnVLuWzti4MTPfnmRp0O1A606KL6EvDPGfjzsxnbac8asT tgoeSTKLRnSaQxdyouqkSSMO5q4nepcKpJsaqN8L2ZaPjGGRDR3E5GEzg/6wluX7rBZY tsdStpHHxtjD3lVtzzkP9nU3pbQ9Td/Hw/pxdeDciIyilVCRYP72KQUfz8n8v57rbJ+Q sheta5blC3N3KwfCDBs4yyZDfcb1wqdgzKmNEirCABjDNKFoXNBs0WJxzKsYLc/9bPVs o1AQ== X-Gm-Message-State: ALyK8tI3AsCeRBYXMlQt2mR+ag6XWjUKuJ6pFTRfct3fUmEqSzh8hLDucB+5W7/vmOTfZyW0Am+OUm+DGvN+jQ== X-Received: by 10.31.196.196 with SMTP id u187mr8449312vkf.45.1466609745611; Wed, 22 Jun 2016 08:35:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.28.5 with HTTP; Wed, 22 Jun 2016 08:35:45 -0700 (PDT) From: Ivan Andrus Date: Wed, 22 Jun 2016 09:35:45 -0600 Message-ID: Subject: 25.1.50; Wrong fontification of parameter in c++-mode To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) >From `emacs -Q`, open a buffer in c++-mode and insert the following: // X is fontified with font-lock-variable-face and x is not fontified int foo(xml::XmlElement xml, X const& x ) { return 0; } // Fontified correctly int bar(XmlElement xml, X const& x ) { return 1; } Notice that the namespace qualification of XmlElement causes the second parameter to be incorrectly fontified (or so it appears). -Ivan ------------=_1570164962-23760-1--