From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66614: 29.1.50; Support not capitalizing words inside symbols Date: Wed, 18 Oct 2023 21:24:49 +0300 Message-ID: <8334y7okjy.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19340"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66614@debbugs.gnu.org To: Spencer Baugh , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 18 20:25:59 2023 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 1qtBF1-0004nC-0h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Oct 2023 20:25:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtBEr-0004zv-Ha; Wed, 18 Oct 2023 14:25:49 -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 1qtBEe-0004o1-Lc for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:25:36 -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 1qtBEe-000333-Cq for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:25:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtBF3-0007Ae-V4 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2023 14:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2023 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66614 X-GNU-PR-Package: emacs Original-Received: via spool by 66614-submit@debbugs.gnu.org id=B66614.169765353527526 (code B ref 66614); Wed, 18 Oct 2023 18:26:01 +0000 Original-Received: (at 66614) by debbugs.gnu.org; 18 Oct 2023 18:25:35 +0000 Original-Received: from localhost ([127.0.0.1]:34654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtBEc-00079o-PZ for submit@debbugs.gnu.org; Wed, 18 Oct 2023 14:25:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtBEa-00079O-82 for 66614@debbugs.gnu.org; Wed, 18 Oct 2023 14:25:33 -0400 Original-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 1qtBE3-0002jY-M2; Wed, 18 Oct 2023 14:24:59 -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=ftZwHAM5b4MVzVHVospipudqcfTh2gCqtuzW/v1qEb0=; b=OJ1qTOii4oxL uVFm1fA6L5v3ujqkZ5lCYsEbJHLitE1xZWFUQ/0fNrc2Y+ckoC+Etf6HHJEih5wPcSKg8OIPyX0ZH g4vak26lBR3NPLru5I5lAbMq9aetuNBD3xAq1G2SjJy63PBowQhqGpoVZFHLH94ilFpLUHawXcXdH ZHZb7pvOx2638A4FBw68STXtK+KfQGs9JfzDqiMWvJK98jFQJiQktclE3PBwCE/sx4fk5tO/aq2ND Zamx/hF+hKUBvtwY13efUSsYLv0qouXv5OoVhxCrAPPdxzF/uFV5AbugiM1Sd4Bnu9rULR1Aw2kam 9U89OrmHb/chhqy3VKqigA==; In-Reply-To: (message from Spencer Baugh on Wed, 18 Oct 2023 13:01:43 -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:272673 Archived-At: > From: Spencer Baugh > Date: Wed, 18 Oct 2023 13:01:43 -0400 > > >From e11c5096b2e0a3eddec8fac692142ff31c889109 Mon Sep 17 00:00:00 2001 > From: Spencer Baugh > Date: Wed, 18 Oct 2023 12:51:37 -0400 > Subject: [PATCH] Add case-symbols-as-words to configure symbol case behavior > > In some programming languages and styles, a symbol (or every symbol in > a sequence of symbols) might be capitalized, but the individual words > making up the symbol should never be capitalized. > > For example, in OCaml, type names Look_like_this and variable names > look_like_this, but it is basically never correct for something to > Look_Like_This. And one might have "aa_bb cc_dd ee_ff" or "Aa_bb > Cc_dd Ee_ff", but never "Aa_Bb Cc_Dd Ee_Ff". > > To support this, the new variable case-symbols-as-words causes symbol > constituents to be treated as part of words only for case operations. > > * src/casefiddle.c (case_ch_is_word): Add. > (case_character_impl): Use case_ch_is_word. > (case_character): Use case_ch_is_word. > (syms_of_casefiddle): Define case-symbols-as-words. (bug#66614) > * src/search.c (Freplace_match): Use case-symbols-as-words when > calculating case pattern. > * test/src/casefiddle-tests.el (casefiddle-tests--check-syms) > (casefiddle-case-symbols-as-words): Test case-symbols-as-words. > * etc/NEWS: Announce case-symbols-as-words. > * doc/lispref/strings.texi (Case Conversion): Document > case-symbols-as-words. Stefan, any comments?