From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#75226: [31.0.50] C++ ts-mode missing "alignof" as keyword Date: Wed, 8 Jan 2025 14:49:46 +0000 Message-ID: References: <7F2C7BC4-F609-4C59-BF1D-BAE12F10CFFE@gmail.com> <86ed1llntt.fsf@gnu.org> <95EAF964-0C9F-4719-8AF0-4F9912C9FC8B@gmail.com> <86seq0gm9m.fsf@gnu.org> <1736D702-1BC1-4DF6-967C-052D9E446677@gmail.com> <43399C53-8860-43D1-A319-B3DE2885592E@gmail.com> <867c754gi9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, Yuan Fu , 75226@debbugs.gnu.org, jacob.fai@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 15:50:15 2025 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 1tVXNt-0003uC-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2025 15:50:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVXNl-0006ld-GX; Wed, 08 Jan 2025 09:50:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVXNi-0006j7-TP for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 09:50:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVXNi-000233-HN for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 09:50:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:In-Reply-To:MIME-Version:References:Date:To:Subject; bh=GwsOjd7PKuGlphvpsVN8nPSr2yBNt4z4LZllmV6p1jw=; b=V7bociDUaccviBoBxGLQHos/08rSE3UJjrw7b+KGLXX6Bl3ozT8ktUkVjtoNZpGiFbUu9K8wRn7Xa/cwfdlZHarOyK20wXlyja/jJ2GtZc59L14nRLPsva5uKKhM6UOo5OBB514+8lDZDrhGaLS6vln+fEAvZVD/Nh6iU5PfLU3YEuxDEiNXYR9EMuK7dp0PfVzfeP28dwB6qRKdDKquN9flIS39Q6QFs+pXI7EeDqT/EB551mEEj8Mu5wH/0P8EuB1SqhGzj+ER2lGQbZShzjAmLnjeFNtAR+ouNm2//bqveP+eroMgNOGwL1gk2az66yQqSlh7eyorbZcc7ROjmQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVXNh-0006Zz-UX for bug-gnu-emacs@gnu.org; Wed, 08 Jan 2025 09:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jan 2025 14:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75226 X-GNU-PR-Package: emacs Original-Received: via spool by 75226-submit@debbugs.gnu.org id=B75226.173634779825276 (code B ref 75226); Wed, 08 Jan 2025 14:50:01 +0000 Original-Received: (at 75226) by debbugs.gnu.org; 8 Jan 2025 14:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:46582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVXNe-0006Zc-9P for submit@debbugs.gnu.org; Wed, 08 Jan 2025 09:49:58 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:17469) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVXNZ-0006ZG-R6 for 75226@debbugs.gnu.org; Wed, 08 Jan 2025 09:49:56 -0500 Original-Received: (qmail 75994 invoked by uid 3782); 8 Jan 2025 15:49:47 +0100 Original-Received: from muc.de (pd953a134.dip0.t-ipconnect.de [217.83.161.52]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 08 Jan 2025 15:49:46 +0100 Original-Received: (qmail 3862 invoked by uid 1000); 8 Jan 2025 14:49:46 -0000 Content-Disposition: inline In-Reply-To: <867c754gi9.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298785 Archived-At: Hello, Eli and Jacob. On Wed, Jan 08, 2025 at 14:49:50 +0200, Eli Zaretskii wrote: > > From: Yuan Fu > > Date: Tue, 7 Jan 2025 19:09:40 -0800 > > Cc: Jacob Faibussowitsch , > > 75226@debbugs.gnu.org > > I found that both c++-mode and c++-ts-mode fontifies C++ alternative > > operators like and_eq, xor, etc as keywords. Maybe we should fontify > > them in operator face (added in Emacs 29) instead? > What do other editors do? > Alan, WDYT about this? For me personally, another face for "alphabetic operators" would come dangerously close to angry fruit salad. and_eq, xor, etc. _are_ keywords, so I think it makes sense to fontify them as such. The keywords in C++ could be divided into several categories, including alphabetic operators, and to give each category its own face would, I think, overload the typical user, who wouldn't instantly grasp what all the faces meant. This would be counterproductive. I don't think it makes too much sense to single out just one category of keywords for special treatment. Currently, C++ Mode has just two faces for these things: font-lock-keyword-face for alphabetic ones, and the default-face for those consisting of symbol characters like =, +, ;, ..... This is adequate, probably, for someone whose native language uses a Latin script. Maybe users of other languages see things differently. -- Alan Mackenzie (Nuremberg, Germany).