From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladislav Yegorov Newsgroups: gmane.emacs.bugs Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Date: Fri, 26 Jul 2024 21:26:34 +0200 Message-ID: <871q3g3qfp.fsf@yegorov.org> References: <87h6ccm02t.fsf@yegorov.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40511"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72311@debbugs.gnu.org To: Vladislav Yegorov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 22:00:23 2024 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 1sXR71-000AGf-2l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 22:00:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXR6a-0004av-2w; Fri, 26 Jul 2024 15:59:56 -0400 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 1sXR6Z-0004am-AK for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:59:55 -0400 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 1sXR6Z-0003PU-2X for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:59:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXR6h-0004ZF-On for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 16:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladislav Yegorov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172202395917457 (code B ref -1); Fri, 26 Jul 2024 20:00:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000 Original-Received: from localhost ([127.0.0.1]:40099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXR5z-0004XQ-BE for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:59:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:36458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQaY-0003mR-LN for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:26:51 -0400 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 1sXQaP-0007Op-9j for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:26:41 -0400 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sXQaN-0006kZ-HK for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:26:41 -0400 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4WVyRb4xTgz9sPv; Fri, 26 Jul 2024 21:26:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yegorov.org; s=MBO0001; t=1722021995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=n51egUsLilpZlqf1LnNAyqM6RQksY5yMP6eL96RYZX8=; b=E966lvArf2vEsVSziaJmgB3untTxSMsL0VrPx6Dc8iB+MZO0wyE01/NBnNta7DhRWQoeSp /97B9tvMRBs5ZDcvE3uOHgqIJpIwNrifsqEJYB+uom/P66svM1HBpAy3FatkYKtPfvd3PQ L8K7lwHU7EkxnR8fKSwI2IAoqKt0law0N3xOPNLwE3XAO8VE3Gk/x7wv42pr9e5ZABUbHM lk9fWZGGHfSfs7xeVbYKqD/3mmH1LBuHKbG9ZMZUHtC4Zn16ZudoWOqdXicBD1CCo/qhrI 1r+r3287MitQkdzAyQU0dA7eaHBpwOvOqtvtp7+9lxE2eZtPqhqflLeQYUHglw== In-Reply-To: <87h6ccm02t.fsf@yegorov.org> (Vladislav Yegorov's message of "Fri, 26 Jul 2024 21:20:58 +0200") X-Rspamd-Queue-Id: 4WVyRb4xTgz9sPv Received-SPF: pass client-ip=80.241.56.172; envelope-from=vlad@yegorov.org; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 26 Jul 2024 15:59:16 -0400 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:289386 Archived-At: --=-=-= Content-Type: text/plain I am sorry, I forgot the actual patch. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Treat-period-as-a-symbol-constituent-in-cc-mode.patch >From 0378400ba000cdaf0612b80406e29aee1fd97231 Mon Sep 17 00:00:00 2001 From: Vladislav Yegorov Date: Fri, 26 Jul 2024 20:55:22 +0200 Subject: [PATCH] Treat period as a symbol constituent in cc-mode * lisp/progmodes/cc-langs.el: Classify period as a symbol constituent, so decimal points for example don't divide the number into two symbols. --- lisp/progmodes/cc-langs.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 72cfdfa..f253df9 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -336,6 +336,7 @@ the comment syntax to handle both line style \"//\" and block style ;; Never native compile to allow cc-mode.el:467 hack. (declare (speed -1)) (modify-syntax-entry ?_ "_" table) + (modify-syntax-entry ?. "_" table) (modify-syntax-entry ?\\ "\\" table) (modify-syntax-entry ?+ "." table) (modify-syntax-entry ?- "." table) -- 2.45.2 --=-=-=--