From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Regexp for c-or-c++-mode Date: Sun, 7 Jun 2020 16:41:00 +0000 Message-ID: <20200607164100.GB6212@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?TWljaGHvv70=?= Nazarewicz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 07 18:41:35 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jhyMY-0004PM-A1 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 18:41:34 +0200 Original-Received: from localhost ([::1]:36236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhyMX-0001jf-DU for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 12:41:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhyM6-0001HK-Mc for emacs-devel@gnu.org; Sun, 07 Jun 2020 12:41:06 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:31559 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1jhyM5-00061B-Cv for emacs-devel@gnu.org; Sun, 07 Jun 2020 12:41:06 -0400 Original-Received: (qmail 72659 invoked by uid 3782); 7 Jun 2020 16:41:01 -0000 Original-Received: from acm.muc.de (p2e5d5bab.dip0.t-ipconnect.de [46.93.91.171]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 07 Jun 2020 18:41:01 +0200 Original-Received: (qmail 7032 invoked by uid 1000); 7 Jun 2020 16:41:00 -0000 Content-Disposition: inline X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/07 12:41:02 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252019 Archived-At: Hello, Micha�. In c-or-c++-mode--regexp, there are several occurrences of [ \t\r] . These expressions notably lack \n. This seems strange, given how \n is the normal line terminator in Emacs and \r is a rarely used artefact. Is there any reason these expressions are like that, and if so please tell me that reason. If there is no such reason, I have a patch ready to put the \n's into the regexp. Thanks! -- Alan Mackenzie (Nuremberg, Germany).