From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words Date: Thu, 11 May 2023 13:45:06 +0200 Message-ID: References: Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17277"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: 63438@debbugs.gnu.org To: Daniel Fleischer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 11 13:46:20 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 1px4kW-0004I7-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 May 2023 13:46:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1px4kG-0005ET-RA; Thu, 11 May 2023 07:46:04 -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 1px4kE-0005EH-H9 for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 07:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1px4kE-0006ev-86 for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 07:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1px4kD-0002jx-O5 for bug-gnu-emacs@gnu.org; Thu, 11 May 2023 07:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2023 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63438 X-GNU-PR-Package: emacs Original-Received: via spool by 63438-submit@debbugs.gnu.org id=B63438.168380552110470 (code B ref 63438); Thu, 11 May 2023 11:46:01 +0000 Original-Received: (at 63438) by debbugs.gnu.org; 11 May 2023 11:45:21 +0000 Original-Received: from localhost ([127.0.0.1]:49904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px4jZ-0002io-EW for submit@debbugs.gnu.org; Thu, 11 May 2023 07:45:21 -0400 Original-Received: from sonic312-25.consmr.mail.ir2.yahoo.com ([77.238.178.96]:34062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1px4jW-0002iV-Fe for 63438@debbugs.gnu.org; Thu, 11 May 2023 07:45:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1683805510; bh=rcwl2EqsRpePtYSJDzrVasJa9KloE43ChrmX/HBmjSE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=thU2gnb8t6pV7FyOxmAKCbNvD3EpSwrjV3QMr0qjyWV40uJQhKIp2qsId7wmUiogWeJGwS0uEsit/PtwHFx5XMDIJDACELWzvrd5T18nXnj2INyUHm2v4E2NtBXzs6pgv4YchOC64s9Q4JPueCNJjUlzGECkvSkTgkC6l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ip25gkwbaQHqTov9__FNYgCguT_7N38kNx3z5WJWh2HU.asd3K5mSu rLFOnPZqgMm7XeonrX4vKTRoWdbwl10J.R84gm0qeAsLRBfHXWy0oA_BNs9HwdltRJhew0KRgfim L6HfYDeO8wj2STNWSl18VFTfwA86x3CfyHhLguoJiYtpC4HRZ64Wga.2w9U2kw1VYlgJ7Yx6VFTf 8X9s5qVjztv879HXrX2J3vMsxzw3hOfspPMFGG4tDF5hl2sAd1CLXumLEb5FTIGTYm.CyNhGVNjb GdMeXj7PlVZgV5PUDTpoU.xPmZt3DaxNrIgZgtUD7QqKaHClL1P1XuO3841W6L7neO5LR9tWAEQq Ekc7EarOsRGGob7VkWvxCnMw7ItEbkW9zobWJqa7jPkF4bo8Gf8b8XXFbjtVmv.FTG6PR.Rynf63 D9n80aBZ8JrdFF4oO5CDYNi6xM7jbUSh1xslo4uOfy X-Sonic-MF: X-Sonic-ID: c7c15884-a8bd-4af3-a265-512318e0114d Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ir2.yahoo.com with HTTP; Thu, 11 May 2023 11:45:10 +0000 Original-Received: by hermes--production-ir2-7867f454fc-s6g4r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4833ed73d1ef9f5b49211c03bed4f505; Thu, 11 May 2023 11:45:07 +0000 (UTC) In-Reply-To: (Daniel Fleischer's message of "Thu, 11 May 2023 10:10:40 +0300") X-Mailer: WebService/1.1.21471 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:261564 Archived-At: Daniel Fleischer writes: > Recipe for recreating: > > - Add some abbrev definition with mixed capitalization, e.g. "abc" > should expand to "aBC". > - Enable abbrev-mode.=20 > - Write "aBC". > - Upon pressing space, abbrev-mode converts it into "ABC".=20 > > There is a code section in `abbrev-insert' that explicitly capitalizes > the first letter; I'm sure it's there for a reason but I think the > behavior I showed is unexpected. As for the example "aBC", there are > real use cases, just to mention one "iPhone". The docstring of define-abbrev describes that abbreviations support a property list of options. One of them is :case-fixed: =E2=80=98:case-fixed=E2=80=99: non-nil means that abbreviations are looked = up without case-folding, and the expansion is not capitalized/upcased. Perhaps we should make the interactive commands set the :case-fixed property, if the user wants. Or to avoid case-folding globally: (abbrev-table-put global-abbrev-table :case-fixed t)