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#72310: [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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40201"; mail-complaints-to="usenet@ciao.gmane.io" To: 72310@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 22:00:22 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 1sXR6z-000AEr-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 22:00:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXR6a-0004b2-SW; 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 1sXR6Y-0004ad-Gj for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:59:54 -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 1sXR6Y-0003PM-71 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:59:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXR6g-0004Z1-VF 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:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72310 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172202395917451 (code B ref -1); Fri, 26 Jul 2024 20:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000 Original-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 Original-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 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 1sXQV4-0006eT-Vi for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:21:15 -0400 Original-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 Original-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== 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-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:289385 Archived-At: 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).