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: Sat, 27 Jul 2024 11:22:11 +0200 Message-ID: <87wml78a0s.fsf@yegorov.org> References: <87h6ccm02t.fsf@yegorov.org> <871q3g3qfp.fsf@yegorov.org> <86ikwr2xbo.fsf@gnu.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="18335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , 72311@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 27 20:53:14 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 1sXmXY-0004da-N2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jul 2024 20:53:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXmXJ-0003oK-Oj; Sat, 27 Jul 2024 14:52:57 -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 1sXmXF-0003mz-Gz for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 14:52:53 -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 1sXmXF-00063V-8O for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 14:52:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=lV8nRuKCdS9pH1mt2r+XUD+bE4A4TM/JjpaOrnMfBp8=; b=Wwwi7nrwllUc6Gc7XdnN3aL2tvI/R6m6+wh3e1sGIgWvv1xumqrGbkODuJIwjBCmBgzh7I5oo+zPhj/s4vDLSFDPYM4SY5vzayctR4tAbbZ9HzeMfWYe+iD01txWXGeqECUwvgol3IwgUnj8fshHgerwz7f1KbDZEI2dX1YVAiN54+k9F9nCcvpLhWDPYPHdHTXd4WefGooGTKicbrAw8K7G3ie6sZ/+mNV1gyZD85vC40k0skB2ho+wR1tjBLuqoOVLfeQbsMC/PwHtxZuIBWrB9uJ5LnjK3RjZUbIxac/EEnOW91Cs2uN9vZKNe/smeQ6P4lMER3j+216NQlAn1g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXmXP-0004Nd-Hx for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2024 14:53: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: 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 Original-Received: via spool by 72311-submit@debbugs.gnu.org id=B72311.172210633416680 (code B ref 72311); Sat, 27 Jul 2024 18:53:03 +0000 Original-Received: (at 72311) by debbugs.gnu.org; 27 Jul 2024 18:52:14 +0000 Original-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 Original-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 Original-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== In-Reply-To: <86ikwr2xbo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Jul 2024 08:55:23 +0300") 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 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:289441 Archived-At: > 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?