From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Using __builtin_expect (likely/unlikely macros) Date: Sat, 20 Apr 2019 19:46:30 +0000 Message-ID: <20190420194630.GD4002@ACM> References: <2dfb837d-989d-c736-b6e6-b20c0e940596@cs.ucla.edu> <87o956c4n4.fsf@gmail.com> <1fbd2fca-18f0-0a90-7a45-58419a9e11ee@cs.ucla.edu> <1555450070.23658.4@yandex.ru> <66b74701-012a-902e-4a5b-6bc30efa87c0@cs.ucla.edu> <87tveu85xt.fsf@gmail.com> <87y3457m3k.fsf@gmail.com> <20190420000510.GA4867@ACM> <91fb8cbb-f1cd-1c08-cbd2-9d947da35c6d@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="10914"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Alex Gramiak , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 20 21:52:48 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHw2a-0002gX-61 for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2019 21:52:48 +0200 Original-Received: from localhost ([127.0.0.1]:44806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHw2Z-0005M8-6b for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2019 15:52:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHw1r-0005L4-7U for emacs-devel@gnu.org; Sat, 20 Apr 2019 15:52:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHvwZ-0005n6-Ru for emacs-devel@gnu.org; Sat, 20 Apr 2019 15:46:36 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:16457 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1hHvwZ-0005mG-Hp for emacs-devel@gnu.org; Sat, 20 Apr 2019 15:46:35 -0400 Original-Received: (qmail 34161 invoked by uid 3782); 20 Apr 2019 19:46:31 -0000 Original-Received: from acm.muc.de (p4FE151F0.dip0.t-ipconnect.de [79.225.81.240]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 Apr 2019 21:46:30 +0200 Original-Received: (qmail 4617 invoked by uid 1000); 20 Apr 2019 19:46:30 -0000 Content-Disposition: inline In-Reply-To: <91fb8cbb-f1cd-1c08-cbd2-9d947da35c6d@cs.ucla.edu> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235714 Archived-At: Hello, Paul. On Fri, Apr 19, 2019 at 17:42:50 -0700, Paul Eggert wrote: > Alan Mackenzie wrote: > > Can I ask that if anybody starts using a new attribute macro, that they > > update the value of c-noise-macro-names under c-mode in .dir-locals? > > That way, correct fontification will then continue to happen whilst > > editing our C files. > Can we put "ATTRIBUTE_.*" there? If not, perhaps we should. Not at the moment, no. Possibly because people might write regexps as loosely as your suggestion, and that would mangle CC Mode. Whats wanted would be something more precise like "ATTRIBUTE_[A-Z]*". For macros with semicolons, I allowed a regexp to be entered directly instead of a list of identifiers, but there it is mandatory that the regexp not match anything but valid identifiers. For noise macros, a regexp just seems less needed, somehow. -- Alan Mackenzie (Nuremberg, Germany).