GNU bug report logs - #72310
[PATCH] Treat period as a symbol constituent in cc-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Vladislav Yegorov <vlad@HIDDEN>; Keywords: patch; merged with #72311; dated Fri, 26 Jul 2024 20:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 72310 72311. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 19:59:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 15:59:19 2024
Received: from localhost ([127.0.0.1]:40097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXR5w-0004XM-O7
	for submit <at> 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 <vlad@HIDDEN>) id 1sXQVP-0003dz-55
 for submit <at> 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 <vlad@HIDDEN>) id 1sXQV4-0006eT-Vi
 for bug-gnu-emacs@HIDDEN; 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 <vlad@HIDDEN>) id 1sXQV2-00048B-Oj
 for bug-gnu-emacs@HIDDEN; 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 <bug-gnu-emacs@HIDDEN>; 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 <vlad@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Treat period as a symbol constituent in cc-mode
Date: Fri, 26 Jul 2024 21:20:58 +0200
Message-ID: <87h6ccm02t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2001:67c:2050:0:465::101;
 envelope-from=vlad@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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).




Acknowledgement sent to Vladislav Yegorov <vlad@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#72310; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 11 Feb 2025 19:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.