From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode 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 To: Vladislav Yegorov Cc: 72311@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172202395917457 (code B ref -1); Fri, 26 Jul 2024 20:00:03 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000 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 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 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 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 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== From: Vladislav Yegorov In-Reply-To: <87h6ccm02t.fsf@yegorov.org> (Vladislav Yegorov's message of "Fri, 26 Jul 2024 21:20:58 +0200") References: <87h6ccm02t.fsf@yegorov.org> Date: Fri, 26 Jul 2024 21:26:34 +0200 Message-ID: <871q3g3qfp.fsf@yegorov.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -1.3 (-) 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 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: -2.3 (--) --=-=-= 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 --=-=-=-- From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Resent-From: Jeremy Bryant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Vladislav Yegorov Cc: Alan Mackenzie , 72311@debbugs.gnu.org Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172202989327194 (code B ref 72311); Fri, 26 Jul 2024 21:39:02 +0000 Received: (at 72311) by debbugs.gnu.org; 26 Jul 2024 21:38:13 +0000 Received: from localhost ([127.0.0.1]:40176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXSdd-00074U-I7 for submit@debbugs.gnu.org; Fri, 26 Jul 2024 17:38:13 -0400 Received: from out-188.mta1.migadu.com ([95.215.58.188]:56266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXSdb-00074E-Pd for 72311@debbugs.gnu.org; Fri, 26 Jul 2024 17:38:08 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1722029872; 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=d8dWDDGp7gDHTJpctJFfyJwjiuSJVRfipVZnI5FvHPw=; b=f+BhUEAJkr77wXafI//pTDdigRrO4jkooDywwFeWLhm6/AdAeJ5dzKPOMADq8eopPoFNHQ /BzOWvhWwE32PT7CSKM7upaMbU7aD48vrbZcvyBgVeGClYCYVUbHCcVAImWtjcNdbaIFzv RwvP1uWdscFtS/PCZlALTWBAF4T6gipDP5+P8syWvio4zrXFXuPWeQDNipXU31V15dEJwB kOsMtKF5m3elGwa8Xi4wuZntuK/+2ym3tvWLoRKGo2ANkx4B0J6UUi2un1PCKwLlSgAP/+ Qr6WoWG/P+uHWMNDrgEU0EmPa7pmRQr6LZr1gffDxdfK8Ych02IS/jxdfiMROw== From: Jeremy Bryant In-Reply-To: <871q3g3qfp.fsf@yegorov.org> (Vladislav Yegorov's message of "Fri, 26 Jul 2024 21:26:34 +0200") References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> Date: Fri, 26 Jul 2024 22:37:51 +0100 Message-ID: <87ikwral74.fsf@jeremybryant.net> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: 1.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: -0.0 (/) Vladislav Yegorov writes: > I am sorry, I forgot the actual patch. > > [2. text/patch; 0001-Treat-period-as-a-symbol-constituent-in-cc-mode.patch]... Alan, any thoughts? From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 05:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Alan Mackenzie , Vladislav Yegorov Cc: 72311@debbugs.gnu.org Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172205974521356 (code B ref 72311); Sat, 27 Jul 2024 05:56:01 +0000 Received: (at 72311) by debbugs.gnu.org; 27 Jul 2024 05:55:45 +0000 Received: from localhost ([127.0.0.1]:40367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXaPB-0005YO-8s for submit@debbugs.gnu.org; Sat, 27 Jul 2024 01:55:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXaP8-0005YA-JS for 72311@debbugs.gnu.org; Sat, 27 Jul 2024 01:55:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXaOs-0005zv-SB; Sat, 27 Jul 2024 01:55:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GynJDd/clWt+L638lL0UGVZKeK80apeDAnrs0fuKB30=; b=FY7c1UzVcX62 auS67GL+4bzZfnHmk9jwx6Hil/lpI3uFIYdG5xUtV0TVHiLYKmBNIoE7TauKtTchwzykJdxj2OKWr bBeEFqc0bmc5KaFGE44T7AOXHWk+LZclJc/PbLeO1yiDhwrk3QDA2yYYq7XYK19fafEB2AptKjrOL 6mBJpaD6Se4Y1u1VyCxDYR92UUTKwrwfNEVlif6deTA0zh7NiiDDw+fWpI9Am9C5XQuiD/KO9EmtS nhcQCIAzYjH9qi+eG5wgZB/0HGWShEnk3qlNknDJjfAIKwbMI42/f9HZPkKyWKR6mCOftiz7SjUBW SUBT3Ed9+qI1sS9ySAN9UA==; Date: Sat, 27 Jul 2024 08:55:23 +0300 Message-Id: <86ikwr2xbo.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <871q3g3qfp.fsf@yegorov.org> (message from Vladislav Yegorov on Fri, 26 Jul 2024 21:26:34 +0200) References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> X-Spam-Score: -2.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: -3.3 (---) > Cc: 72311@debbugs.gnu.org > From: Vladislav Yegorov > Date: Fri, 26 Jul 2024 21:26:34 +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. What about stuff like 'foo.bar', where 'foo' is a struct and 'bar' is its member? won't this change make them a single symbol? From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Vladislav Yegorov Cc: acm@muc.de, Eli Zaretskii , Jeremy Bryant , 72311@debbugs.gnu.org Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172207962927758 (code B ref 72311); Sat, 27 Jul 2024 11:28:02 +0000 Received: (at 72311) by debbugs.gnu.org; 27 Jul 2024 11:27:09 +0000 Received: from localhost ([127.0.0.1]:40634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXfZs-0007DO-OP for submit@debbugs.gnu.org; Sat, 27 Jul 2024 07:27:08 -0400 Received: from mail.muc.de ([193.149.48.3]:41165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXfZq-0007CS-Cm for 72311@debbugs.gnu.org; Sat, 27 Jul 2024 07:27:06 -0400 Received: (qmail 52350 invoked by uid 3782); 27 Jul 2024 13:26:50 +0200 Received: from muc.de (p4fe15a81.dip0.t-ipconnect.de [79.225.90.129]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 27 Jul 2024 13:26:50 +0200 Received: (qmail 9846 invoked by uid 1000); 27 Jul 2024 11:26:49 -0000 Date: Sat, 27 Jul 2024 11:26:49 +0000 Message-ID: References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.org> <87wml78a0s.fsf@yegorov.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wml78a0s.fsf@yegorov.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) From: Alan Mackenzie X-Primary-Address: acm@muc.de 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 (-) Hello, Vladislav and Eli. On Sat, Jul 27, 2024 at 11:22:11 +0200, Vladislav Yegorov wrote: > > What about stuff like 'foo.bar', where 'foo' is a struct and 'bar' > > is its member? won't this change make them a single symbol? That was my first reaction, too. > You are right, kind of forgot about that. I think in that case a > simple syntax table modification like my patch provides won't do the > trick. > My motivation for this patch was to able to use C-M-f (forward-sexp) > to skip over decimal numbers. What are your thoughts on defining a > forward-sexp-function that will use a alternate syntax table in > certain contexts? maybe a bit too hacky? It would be possible to put a syntax-table text property on a '.' when it is followed directly by a decimal digit, with no space between. Maybe we could also check that there's a valid number character before the . (space, BOL, 0-9, -, ...?), but that might be over engineering. My next thought is, for consistency, how would we handle something like 1.381E-23? For consistency, C-M-f ought to move forward over that number in its entirety. That would need some more rigorous analysis of every piece of text, probably by a regexp, and putting syntax-table properties on both the '.' and the '-'. This would slow CC Mode down, even if not by a lot. So, it could be done, yes. Is it worth doing, though? I've got very little experience of hacking files with lots of floating point constants in them, so it's difficult for me to judge just how annoying it is for C-M-f and C-M-b only to move over part of a number. -- Alan Mackenzie (Nuremberg, Germany). From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Resent-From: Vladislav Yegorov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 18:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: Alan Mackenzie , 72311@debbugs.gnu.org Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172210633416680 (code B ref 72311); Sat, 27 Jul 2024 18:53:03 +0000 Received: (at 72311) by debbugs.gnu.org; 27 Jul 2024 18:52:14 +0000 Received: from localhost ([127.0.0.1]:42407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXmWb-0004Kx-Ei for submit@debbugs.gnu.org; Sat, 27 Jul 2024 14:52:13 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:45292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXddl-0002oT-7s for 72311@debbugs.gnu.org; Sat, 27 Jul 2024 05:23:01 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.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-102.mailbox.org (Postfix) with ESMTPS id 4WWJzn6Q19z9sml; Sat, 27 Jul 2024 11:22:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yegorov.org; s=MBO0001; t=1722072133; 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=lV8nRuKCdS9pH1mt2r+XUD+bE4A4TM/JjpaOrnMfBp8=; b=Dfb1DjmjKOMvesYwjGXtcYIbTz5JX1v0lI2YqMgjCOQ03WsTDyqG7PMRGDbQ1Geh+PXw2B cl9ye2XpjQDKWuGiitG4mshgPK6OsaxgrR8/C4tmkrS69tP0hAO6fM0uuqnGBajbL85Fdy zRpXxrz6XdhmJZMiCszBnmyTugSs28R5tl+Jvxo95nKVpQE9ATaO0eE11tKihixZS5OXPb LWqb2jUB4tqyfeJGlkZoBjsuUBAoCyzwW05xzqYzwi2guvhmBT0ziz5bmepFYAJbu7pboM OedqTSCmQbZOjrmpm1Mr4ZZnh2amfa9or7Oov79fRNVhR8TFnGCWmGgUyCLuNA== From: Vladislav Yegorov In-Reply-To: <86ikwr2xbo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Jul 2024 08:55:23 +0300") References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.org> Date: Sat, 27 Jul 2024 11:22:11 +0200 Message-ID: <87wml78a0s.fsf@yegorov.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Sat, 27 Jul 2024 14:52:12 -0400 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.7 (-) > What about stuff like 'foo.bar', where 'foo' is a struct and 'bar' is > its member? won't this change make them a single symbol? You are right, kind of forgot about that. I think in that case a simple syntax table modification like my patch provides won't do the trick. My motivation for this patch was to able to use C-M-f (forward-sexp) to skip over decimal numbers. What are your thoughts on defining a forward-sexp-function that will use a alternate syntax table in certain contexts? maybe a bit too hacky? From unknown Sat Aug 16 19:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jul 2024 00:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Alan Mackenzie , Vladislav Yegorov Cc: Eli Zaretskii , Jeremy Bryant , 72311@debbugs.gnu.org Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172221120832230 (code B ref 72311); Mon, 29 Jul 2024 00:01:01 +0000 Received: (at 72311) by debbugs.gnu.org; 29 Jul 2024 00:00:08 +0000 Received: from localhost ([127.0.0.1]:44606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYDo7-0008Mp-Nm for submit@debbugs.gnu.org; Sun, 28 Jul 2024 20:00:08 -0400 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:50057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYDo5-0008Li-2e for 72311@debbugs.gnu.org; Sun, 28 Jul 2024 20:00:06 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id DAA95138015C; Sun, 28 Jul 2024 19:59:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 28 Jul 2024 19:59:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1722211187; x=1722297587; bh=RrSKdhxsSi9Tgxg1LVEtiFhbTqLhdHaFlaTdNK3GG7w=; b= C7UFeFiGGwsqtYm23bHsTaFcRcz+H9n+YbcV11JalOmHLD4AACvpavaiemtHKEhR 4qWF4XqDNkvT76Zh8GuWLHd1nP7OF7Eu+qpkDO32D3sHzCXUQ/8uxxrKmd7BePge 1UCbrWdw0zw+tMPrI+mUCFwEG3B3E7bpGfNE9BmtKpa5rTlrkqs8R7DwjibGXn8+ 9YIUhtLff35PywHjpKhn+Ffl2xySf1YbLhsJ0NAfXPCjIGtlpDrRRpuT3t4EE4Cb kQdLzx1JywQ2QAW5q9p8sHJCszhAvISZx2zp7OFbSaLOpcwbj4qWK8EM5YonWzHP dR0J7Wyiifxm2jBljAJBXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722211187; x= 1722297587; bh=RrSKdhxsSi9Tgxg1LVEtiFhbTqLhdHaFlaTdNK3GG7w=; b=S OPZOauzb0+YXUIuuASWRoNpS5QoXCxeWa4v3JJ32BtfA6DXZ4BSFrRhCQIeYj6Ur k5jRZK5jfIaymrSKFtEZSZkG9XH8V7GXMKAj1nnJ7Ru02VtK6APturnw78qOBg7f +oXOj3WzzjqIKvFlTxeKktQA4T+kIrkLZprUdmorvPEbUQE8D4bjlnAxAJhXVN+5 x5ZikDQQPDA+Q4mAGWFjrk9O8l83Sgs7pGNN6hvRKo67k9RmAnD2BQsQwvIrNDc6 tQ0kXBkn1wD4os0BNrQcaOZ2sK4f/5ZRpsHgYwIKOKko2+igwcoK9DlpmVfvceGA c5XPHg8nAGeMfCWodJvbA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjedugddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveegudej heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 Jul 2024 19:59:46 -0400 (EDT) Message-ID: Date: Mon, 29 Jul 2024 02:59:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.org> <87wml78a0s.fsf@yegorov.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) 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.7 (-) On 27/07/2024 14:26, Alan Mackenzie wrote: > It would be possible to put a syntax-table text property on a '.' when > it is followed directly by a decimal digit, with no space between. > Maybe we could also check that there's a valid number character before > the . (space, BOL, 0-9, -, ...?), but that might be over engineering. That sounds like the better choice indeed, but given the increase in complexity maybe the minor improvement in behavior is not really worth the effort. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 04 21:15:06 2024 Received: (at control) by debbugs.gnu.org; 5 Oct 2024 01:15:06 +0000 Received: from localhost ([127.0.0.1]:36941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swtNx-0001WO-Sk for submit@debbugs.gnu.org; Fri, 04 Oct 2024 21:15:06 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:52523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swtNw-0001WE-5y for control@debbugs.gnu.org; Fri, 04 Oct 2024 21:15:04 -0400 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a993a6348e0so6184666b.1 for ; Fri, 04 Oct 2024 18:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728090839; x=1728695639; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=B8ME4VmUQ5pZ8CpU0EuHjoJ4kFLbz4dx4DogUVHtmNs=; b=e7lYv3fKg7gxV4dxLN6umwUBbi1XIYHraP/WdWldrGumv6xp9gqXvMxHQtRiQsBQ8v YuhUQYT1KgVC7SPW7OUSQevEnfsHC+IE8DDj3AIQKAX5LAOSIZgtQVPtxn/oJsP5b1Da KDZJ71G9O33bzfz320uF0+vkbbylhrLOxn+Z+Ce2TgmNcv5sZvyKozd9R7D1NW2yPGx7 O4wfvR8oxnoU100SQZVzfxvTZUButMpHNXeCWtjhYqzS77yuFDXkq4hRZtrfQNpUjWw7 +Ogrnja3YUGf/LHynkprpR9kvzoQ3jfFWocZGu1P8+wwPBOujtqpo1caDAcH/E95ckTm i4Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728090839; x=1728695639; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B8ME4VmUQ5pZ8CpU0EuHjoJ4kFLbz4dx4DogUVHtmNs=; b=jw+WLDT6roAaxfOfV7etN4QvCcxEOI1CCqFds6WySjOtkm5DbjWqjnfRTvtQzP3JI3 Ep4yDKyOUTR+xUKLkawNdCDA2yJ2YKKYuD75XEzUOiNNdS3SoeSc6AHTMgiF5tARGwqx X0GZV5oOYIw5WveJ2rxLuscJfXtnJi0u5wiQ9nKZUCuPIzOJ/n58cf5u6JFjWSKBopa3 O+4EMG2Vvc4XjLznSvl9H53mxkTtux72w6yBGjIRNKekd+ciCo0K17w3gIdBr6YXRhcm PeuqB8nJvW644Biw76/rAXaxPsIqpVqftsBlWZlEV/+StN8s8cPXWuCJDfnlnkX6A2vQ Wnwg== X-Gm-Message-State: AOJu0YzWORuVv5SuqyY8Ic+39gyR1lDspQGy72h/74C+a75gOwtLcIqP xmt86Z9XjhT7elHPMobUDDRO3fyQ0uUjv1kgPPonLk1HJxS/6ZpyFuvK+H7GwnywRyDNcH0zz6W 2PFufVIUW8d51aWD2kAqS0QI2ejm5bA== X-Google-Smtp-Source: AGHT+IGz/VJwvkkcUgiAsMimybEjnWKa08KYnhGt7KJfKOivdi8Bc4FVLIESy/tjNGsRtfkqKDrKq4hE+Tgg2t3WaO4= X-Received: by 2002:a05:6402:84e:b0:5c8:9f44:a0b2 with SMTP id 4fb4d7f45d1cf-5c8d2e1765fmr4815485a12.5.1728090839278; Fri, 04 Oct 2024 18:13:59 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 4 Oct 2024 18:13:59 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 4 Oct 2024 18:13:59 -0700 Message-ID: Subject: control message for bug #72311 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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: -1.0 (-) forcemerge 72310 72311 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 11 14:24:21 2025 Received: (at control) by debbugs.gnu.org; 11 Feb 2025 19:24:21 +0000 Received: from localhost ([127.0.0.1]:58687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1thvrp-0003ed-4p for submit@debbugs.gnu.org; Tue, 11 Feb 2025 14:24:21 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:44233) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1thvrm-0003eL-J6 for control@debbugs.gnu.org; Tue, 11 Feb 2025 14:24:19 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5de5e3729ecso7021280a12.0 for ; Tue, 11 Feb 2025 11:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739301852; x=1739906652; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=CgVi3mCM9ET8BZVd9YmOVBoGQo+3JQvZULshF13ojas=; b=N5vEAQ0Q10MmM5HXb+Bk+ttV6YyJdWMEV1Y9XvrWJFQ7MnBWviopi/rhzE+bHakGpi E9EUVSJDSARM2i0L36SU8a3SkbtPRK/UQNTE42RlyTrcdCpkpYpi43oSuhDmwrBJEcd9 Wg03tyf6AjpinqvCflzcLeei2J2mQyH9/aM1kb86JWh32XjSJEmQ24CURUmIBwohWNQg Rx0SmfXEYeZkg0ZkA7+Az3Pl3JRjeHb7kjoLpbYK2WhCs9F03PSTdv8EFov27YQqTMNQ CYYqSmrBKq22wOufeq+xqxSz6YRW6xFiRxzsXlNPOI/NGpGu4JvlDY2vDehr8n3S8tPp l/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739301852; x=1739906652; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CgVi3mCM9ET8BZVd9YmOVBoGQo+3JQvZULshF13ojas=; b=LE9PJGjBu9OfvMwv2lPjhnc+wGUcXvfnue46iEl0DOrB9ixVLov/KDasUwAqvmMXnx NqeJ5yZmiTkjI6ZGC3n+vm+rkEt5BDuKB1j5rigEVlK72g/eSSh6e+N4t+g4e1LiOrZ5 7LwNGx7uYA6nRPwfFPr3zYiD6rdIyyrdnxJfykicUsD4aUKh6KDfXUsRpL/IoREK0qun AMn1K6o27iBTReFQdPdZod19yxDH3VwC2xOlJ/Nx+npxU0M515sIGvlsOQHbsurA+O1E pEajysDPuHDd9sKnymylQgsr36ahjl0IPN1dApitF1fA6P3jlwN+PyTvVijk/q/d6Ff3 xp0A== X-Gm-Message-State: AOJu0YzLpHYlNsABhe8UdUQUX96tXULx/j0xiFBYkPpLa+ewB7kp6DAt d+edubA5s8Il1+VMsndFCcmCq0pqjFsAtMz2f0L8EEYVQmVO2DS8JQogQrcowVLj6cep6asxPpP s7WeGemuKOK72cUfWuigZrn4oP+Ax7fjSBVAupg== X-Gm-Gg: ASbGnctJNibR2K9ORDsH31iGxXyUr1FrH2ZtC9ogRWlSHi3XtVZG9U5YECfhmn1vawu UQfe26fbDh1f8BnkCb2bB9npuBmx2tvlwXbFxFOafs6xInPJ0/bhega7iMx8kigcTLOWdNB9Dzw == X-Google-Smtp-Source: AGHT+IGVOsQLeIOuBZW98ZIHN0l9QvWMZ/ah13TTmWEX2tMTx+cawjo78MhcCwBYZfb0PDdgqFL7oPyo11uofNWDfAo= X-Received: by 2002:a05:6402:2713:b0:5dc:929a:a726 with SMTP id 4fb4d7f45d1cf-5deade00961mr297043a12.26.1739301852401; Tue, 11 Feb 2025 11:24:12 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Feb 2025 11:24:12 -0800 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 11 Feb 2025 11:24:12 -0800 X-Gm-Features: AWEUYZkEa7m1cfTKowEHO9Wp_JZn1pRFd-qM8YPCipR4UJSUCQN5O773Qn9pOgI Message-ID: Subject: control message for bug #72311 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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: -1.0 (-) severity 72311 wishlist quit From unknown Sat Aug 16 19:16:31 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: Vladislav Yegorov Subject: bug#72311: closed (Re: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode) Message-ID: References: <871q3g3qfp.fsf@yegorov.org> X-Gnu-PR-Message: they-closed 72311 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 72311@debbugs.gnu.org Date: Sun, 23 Feb 2025 00:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1740271802-1003-1" This is a multi-part message in MIME format... ------------=_1740271802-1003-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72311: [PATCH] Treat period as a symbol constituent in cc-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72311@debbugs.gnu.org. --=20 72311: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72311 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740271802-1003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72311-done) by debbugs.gnu.org; 23 Feb 2025 00:50:01 +0000 Received: from localhost ([127.0.0.1]:58035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tm0C0-0000Fo-OY for submit@debbugs.gnu.org; Sat, 22 Feb 2025 19:50:01 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:54296) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tm0By-0000FR-3J for 72311-done@debbugs.gnu.org; Sat, 22 Feb 2025 19:49:59 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e05717755bso5002253a12.0 for <72311-done@debbugs.gnu.org>; Sat, 22 Feb 2025 16:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740271792; x=1740876592; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=KjNEJHWS3Yqlb1qE1zHcCi2MM2gzPZuNfUtAOJQtnZ4=; b=L6/4eviTEAyFEcKGe9Ddh29Bq7+htfZMpRNjPC7SzThQ5RgkdBMXcrKrajVk4A+uv/ j0R9TK9ECByyXYC9T2BZ71MFY5Op4oi2z8uFe7FIxOyg3I68iAwl9bOVR2+KyN/Jc8nh p4OmRa2AIy4RazEGnZk0Js69wNtq1mW3gPTbnwrIp4d4NTX0PW39pzKP5+hd6D6gCIbs SqV+UCyMCRPx2Oyq3DPMiKormr5roEK0DF0eYvp9/wt8gfgV0GTfYxm/36CFOzwPWAf4 gqPzb83DivRpdlcRu4aprOxXX2vW0Kvj1KxOmHJWDc0HRu9UMmWXuGpppjAhWL/5yVQR smhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740271792; x=1740876592; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KjNEJHWS3Yqlb1qE1zHcCi2MM2gzPZuNfUtAOJQtnZ4=; b=GwG7MCEilGK6VFi/sB49hJDUrrMjRGHfNG+xt+f7uUyqARDpPz/lN7J/ydONvqufW4 rbJGJsPLk2kJjXeDjgj3n71PbICd46g7XAoUexmGFkNyqqcFMudn73+Ze4lNy2RBvo2t sB1AmCcPcdWVW4InYJgQsN+8QqaUZL5mNFdFe2TQSdbtsaVfqOd2K9VyvNp9lWJrrhS7 nj8xwpJsbCfwyHN0sR5RQHJWFQ2oKNsnmB4e42cLuFqRljMs0xODZZP10zMtgsbhev2y JirqXePlvpTf/oCHB7sXeiHb6zUwIMvmisyKMgtSOEPlvcNrHn9QOO4bm8V5R+hON25N 2R9A== X-Forwarded-Encrypted: i=1; AJvYcCVzDQbA9/5FZ3Qke6LBxMr+vTn3TNqJQHzy1CagrOnGOg/9DvH/ySGzBoS2mTZ421cGS+ZUkLn9CGh+@debbugs.gnu.org X-Gm-Message-State: AOJu0YxgI2dGZUe92FUAyffHegD0vpGkBQ6cYKXGF1cujZBZcV8SnoO5 vS9TzgoC8sDbumxRtTKqU5Q7FOP1QSyVeNy4nhboufOrJORNvt+K25fXX0CAJydO4stAtYQJeuh Wiln59s7+F3v+GsM/N5MElISeuR2siV+zt+8= X-Gm-Gg: ASbGncuufXmdHpUY+ErrBiJuok+FTIJHzqaiM0IazQyTq0JX0rhfESqIyAYJFohxWv3 MEiFR3bJLtqP+AN0FrhuV6VAyY9Qj9oc2UHeXqeJ5UJz4386tCGFaDhl8YWxaQ4PwfxV9W7Re/w c5JwI2kjmt X-Google-Smtp-Source: AGHT+IHUwjGWd6jWDvUQ90sEBbUmDhjztFBsuGeRcUIVWV1jM9lBeNd/kMyfna+q7nAqWrgGiuQJg44hq051REMLZ1I= X-Received: by 2002:a05:6402:350f:b0:5dc:c9ce:b022 with SMTP id 4fb4d7f45d1cf-5e0b70e4ddemr7693216a12.9.1740271791764; Sat, 22 Feb 2025 16:49:51 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 23 Feb 2025 00:49:49 +0000 From: Stefan Kangas In-Reply-To: References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.org> <87wml78a0s.fsf@yegorov.org> MIME-Version: 1.0 Date: Sun, 23 Feb 2025 00:49:49 +0000 X-Gm-Features: AWEUYZm_U_X4fGF8TluUpNuJYv-yA1CnJjaalSAaBSropGGuj3h3FhVSrayHgpI Message-ID: Subject: Re: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode To: Dmitry Gutov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 72311-done Cc: Alan Mackenzie , Eli Zaretskii , Vladislav Yegorov , Jeremy Bryant , 72311-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.3 (/) Dmitry Gutov writes: > On 27/07/2024 14:26, Alan Mackenzie wrote: >> It would be possible to put a syntax-table text property on a '.' when >> it is followed directly by a decimal digit, with no space between. >> Maybe we could also check that there's a valid number character before >> the . (space, BOL, 0-9, -, ...?), but that might be over engineering. > > That sounds like the better choice indeed, but given the increase in complexity > maybe the minor improvement in behavior is not really worth the effort. It sounds like this is not a change that we want to make, so I'm closing this now. Nevertheless, thanks for the patch, Vladislav. ------------=_1740271802-1003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000 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 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 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 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 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== From: Vladislav Yegorov To: Vladislav Yegorov Subject: Re: [PATCH] Treat period as a symbol constituent in cc-mode In-Reply-To: <87h6ccm02t.fsf@yegorov.org> (Vladislav Yegorov's message of "Fri, 26 Jul 2024 21:20:58 +0200") References: <87h6ccm02t.fsf@yegorov.org> Date: Fri, 26 Jul 2024 21:26:34 +0200 Message-ID: <871q3g3qfp.fsf@yegorov.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Jul 2024 15:59:16 -0400 Cc: bug-gnu-emacs@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: -2.3 (--) --=-=-= 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 --=-=-=-- ------------=_1740271802-1003-1-- From unknown Sat Aug 16 19:16:31 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: Vladislav Yegorov Subject: bug#72310: closed (Re: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode) Message-ID: References: <87h6ccm02t.fsf@yegorov.org> X-Gnu-PR-Message: they-closed 72310 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 72310@debbugs.gnu.org Date: Sun, 23 Feb 2025 00:50:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1740271803-1003-3" This is a multi-part message in MIME format... ------------=_1740271803-1003-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72311: [PATCH] Treat period as a symbol constituent in cc-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72310@debbugs.gnu.org. --=20 72311: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72311 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740271803-1003-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72311-done) by debbugs.gnu.org; 23 Feb 2025 00:50:01 +0000 Received: from localhost ([127.0.0.1]:58035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tm0C0-0000Fo-OY for submit@debbugs.gnu.org; Sat, 22 Feb 2025 19:50:01 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:54296) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tm0By-0000FR-3J for 72311-done@debbugs.gnu.org; Sat, 22 Feb 2025 19:49:59 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e05717755bso5002253a12.0 for <72311-done@debbugs.gnu.org>; Sat, 22 Feb 2025 16:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740271792; x=1740876592; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=KjNEJHWS3Yqlb1qE1zHcCi2MM2gzPZuNfUtAOJQtnZ4=; b=L6/4eviTEAyFEcKGe9Ddh29Bq7+htfZMpRNjPC7SzThQ5RgkdBMXcrKrajVk4A+uv/ j0R9TK9ECByyXYC9T2BZ71MFY5Op4oi2z8uFe7FIxOyg3I68iAwl9bOVR2+KyN/Jc8nh p4OmRa2AIy4RazEGnZk0Js69wNtq1mW3gPTbnwrIp4d4NTX0PW39pzKP5+hd6D6gCIbs SqV+UCyMCRPx2Oyq3DPMiKormr5roEK0DF0eYvp9/wt8gfgV0GTfYxm/36CFOzwPWAf4 gqPzb83DivRpdlcRu4aprOxXX2vW0Kvj1KxOmHJWDc0HRu9UMmWXuGpppjAhWL/5yVQR smhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740271792; x=1740876592; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KjNEJHWS3Yqlb1qE1zHcCi2MM2gzPZuNfUtAOJQtnZ4=; b=GwG7MCEilGK6VFi/sB49hJDUrrMjRGHfNG+xt+f7uUyqARDpPz/lN7J/ydONvqufW4 rbJGJsPLk2kJjXeDjgj3n71PbICd46g7XAoUexmGFkNyqqcFMudn73+Ze4lNy2RBvo2t sB1AmCcPcdWVW4InYJgQsN+8QqaUZL5mNFdFe2TQSdbtsaVfqOd2K9VyvNp9lWJrrhS7 nj8xwpJsbCfwyHN0sR5RQHJWFQ2oKNsnmB4e42cLuFqRljMs0xODZZP10zMtgsbhev2y JirqXePlvpTf/oCHB7sXeiHb6zUwIMvmisyKMgtSOEPlvcNrHn9QOO4bm8V5R+hON25N 2R9A== X-Forwarded-Encrypted: i=1; AJvYcCVzDQbA9/5FZ3Qke6LBxMr+vTn3TNqJQHzy1CagrOnGOg/9DvH/ySGzBoS2mTZ421cGS+ZUkLn9CGh+@debbugs.gnu.org X-Gm-Message-State: AOJu0YxgI2dGZUe92FUAyffHegD0vpGkBQ6cYKXGF1cujZBZcV8SnoO5 vS9TzgoC8sDbumxRtTKqU5Q7FOP1QSyVeNy4nhboufOrJORNvt+K25fXX0CAJydO4stAtYQJeuh Wiln59s7+F3v+GsM/N5MElISeuR2siV+zt+8= X-Gm-Gg: ASbGncuufXmdHpUY+ErrBiJuok+FTIJHzqaiM0IazQyTq0JX0rhfESqIyAYJFohxWv3 MEiFR3bJLtqP+AN0FrhuV6VAyY9Qj9oc2UHeXqeJ5UJz4386tCGFaDhl8YWxaQ4PwfxV9W7Re/w c5JwI2kjmt X-Google-Smtp-Source: AGHT+IHUwjGWd6jWDvUQ90sEBbUmDhjztFBsuGeRcUIVWV1jM9lBeNd/kMyfna+q7nAqWrgGiuQJg44hq051REMLZ1I= X-Received: by 2002:a05:6402:350f:b0:5dc:c9ce:b022 with SMTP id 4fb4d7f45d1cf-5e0b70e4ddemr7693216a12.9.1740271791764; Sat, 22 Feb 2025 16:49:51 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 23 Feb 2025 00:49:49 +0000 From: Stefan Kangas In-Reply-To: References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.org> <87wml78a0s.fsf@yegorov.org> MIME-Version: 1.0 Date: Sun, 23 Feb 2025 00:49:49 +0000 X-Gm-Features: AWEUYZm_U_X4fGF8TluUpNuJYv-yA1CnJjaalSAaBSropGGuj3h3FhVSrayHgpI Message-ID: Subject: Re: bug#72311: [PATCH] Treat period as a symbol constituent in cc-mode To: Dmitry Gutov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 72311-done Cc: Alan Mackenzie , Eli Zaretskii , Vladislav Yegorov , Jeremy Bryant , 72311-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.3 (/) Dmitry Gutov writes: > On 27/07/2024 14:26, Alan Mackenzie wrote: >> It would be possible to put a syntax-table text property on a '.' when >> it is followed directly by a decimal digit, with no space between. >> Maybe we could also check that there's a valid number character before >> the . (space, BOL, 0-9, -, ...?), but that might be over engineering. > > That sounds like the better choice indeed, but given the increase in complexity > maybe the minor improvement in behavior is not really worth the effort. It sounds like this is not a change that we want to make, so I'm closing this now. Nevertheless, thanks for the patch, Vladislav. ------------=_1740271803-1003-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000 Received: from localhost ([127.0.0.1]:40097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXR5w-0004XM-O7 for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:59:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:52754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQVP-0003dz-55 for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:21:33 -0400 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 1sXQV4-0006eT-Vi for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:21:15 -0400 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sXQV2-00048B-Oj for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:21:10 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-101.mailbox.org (Postfix) with ESMTPS id 4WVyK84f9gz9stG for ; Fri, 26 Jul 2024 21:21:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yegorov.org; s=MBO0001; t=1722021660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=U+7M8A3MQ+6M8aYfNuuk0rPOX1TtyP45AmOVn45x5pg=; b=0rEREPUvjQ9+7gVwdB7Pd/b6UM345qtCH1piST2aBK4gdhFS3aahiF3tKvH/ao9X1OoW4/ 6aqZlmZSSoGamM6j/PoOW39R7ADaYBcUTUtO32lT+G2c648FaLkbl+1vPwODWfJGN0CzCi DcZLk1KNwC76P4mqtCrB+2DePU2Fp/KphtZccGsytTBnYRUC7+rkyfSCVn5CeGjGQxqBZx mYgwyEq7GQivCehTyFT+CSECFyktnng6SCn9IOJDWX5HUebLG3z8NAvsqDSqaF1haFmgsK YsJ3XiYr7XJWe7FAgZFBUZSTnWk5XN7lbnXUJTFdFL1UD87mkXQm0WaVYqJV5A== From: Vladislav Yegorov To: bug-gnu-emacs@gnu.org Subject: [PATCH] Treat period as a symbol constituent in cc-mode Date: Fri, 26 Jul 2024 21:20:58 +0200 Message-ID: <87h6ccm02t.fsf@yegorov.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:67c:2050:0:465::101; envelope-from=vlad@yegorov.org; helo=mout-p-101.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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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 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: -2.3 (--) I am not sure if this is intended behavior or not, but as it's just a small change I am directly submitting a patch. I would expect c-mode to treat numbers with a decimal point as one symbol instead of two separate. The same thing can be said about designated initializers (i.e. {.pi = 3.14}). I quickly checked the behavior in emacs-lisp-mode and it works as I would expect there (forward-symbol skips a decimal point number as a whole). ------------=_1740271803-1003-3--