Received: (at submit) by debbugs.gnu.org; 11 May 2023 11:28:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 07:28:24 2023 Received: from localhost ([127.0.0.1]:49884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px4TA-0008A4-DS for submit <at> debbugs.gnu.org; Thu, 11 May 2023 07:28:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:45440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px4T8-00089w-Ad for submit <at> debbugs.gnu.org; Thu, 11 May 2023 07:28:22 -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 <geb-bug-gnu-emacs@HIDDEN>) id 1px4T8-0005mz-3V for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 07:28:22 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px4T6-00023h-RS for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 07:28:21 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px4T4-00027E-FG for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 13:28:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@HIDDEN From: Daniel Fleischer <danflscr@HIDDEN> Subject: Re: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words Date: Thu, 11 May 2023 14:28:12 +0300 Message-ID: <m2lehvyunn.fsf@HIDDEN> References: <m235431gy7.fsf@HIDDEN> <83sfc35kzc.fsf@HIDDEN> <m2y1lvz117.fsf@HIDDEN> <83fs835eyx.fsf@HIDDEN> <m2v8gzyv5b.fsf@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:USHI6C50zQ0pWOEu2cYSTHVb314= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit 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: -1.1 (-) Daniel Fleischer [2023-05-11 Thu 14:03] wrote: > Example: with a rule like "foobarical -> fooBarical" then > > Foobarical -> FooBarical (as is today) > FOOBARICAL -> FOOBARICAL (as is today) > > but fooBarical -> fooBarical, because it's already what we want. Maybe some context: I think some people, at least me, use abbrev mode to properly capitalize words with unique casing, needs not met by regular capitalization rules. It means abbrev keys and values sometimes contain the same word but with different casing. That's why I want nothing to happen when the user writes a word with the right casing, making an abbrev expansion unnecessary. -- Daniel Fleischer
bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.Received: (at 63438) by debbugs.gnu.org; 11 May 2023 11:17:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 07:17:47 2023 Received: from localhost ([127.0.0.1]:49878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px4It-0007qJ-9S for submit <at> debbugs.gnu.org; Thu, 11 May 2023 07:17:47 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:54351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <danflscr@HIDDEN>) id 1px4Ir-0007q6-DA for 63438 <at> debbugs.gnu.org; Thu, 11 May 2023 07:17:45 -0400 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3f417ea5252so41575105e9.0 for <63438 <at> debbugs.gnu.org>; Thu, 11 May 2023 04:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683803859; x=1686395859; h=mime-version:message-id:in-reply-to:user-agent:references:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=MPxr4EmiiIFDkalaEkiaq8KU+SbWW3nTl/bgjSsg5uU=; b=O/vLgq+qkIlb3VXED0Ig4WF02kMDmLqQTIG4lXs2nUnP6tmBxr7B5dOJrfQTS/an8P QLNeItDl9/ccjSHn4hruVesBvoNi17NHS2ABlmyOdVhGn7GoP1fqlaHzgfsD2Lcs46T7 KKdxir97JbPr3/tzdrX6Sj7Wc7NA0OSzH8yobFGsf6Z3qwiOV8ijmkBRKxK1XRZQpWR9 u9yJ+fC6W+HUOVKSDs7rLJKD3S0oShY9ZdMx2rn9rD4lqpBM/vWm2jGajFA5AHwSPfbE zR6cI52z09xc1Dvs9nT8pPTaggIKrhuy9oijF/VUx/SxwBsAZ1G/vX/saUvHDWi3JfpQ 9Rfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683803859; x=1686395859; h=mime-version:message-id:in-reply-to:user-agent:references:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MPxr4EmiiIFDkalaEkiaq8KU+SbWW3nTl/bgjSsg5uU=; b=TgPbRZaiZMRwk2rLZcqp+eo/R/a8ytGglz5SG0xf+uHKecBYkoE0crQPtW19MZjI3v umMaENF+t7+OVrvKoxFNYr4ywADvE+duFaZWAKaLrtU9N/7a3jvu1ig1P7xtesVkAmxy 3DhUanoNNdytJcx3ZWHO+X3woUq4iMb4lEbmNwNNMMk1UU/6jU7S7yJFEODqQyqYnuL+ 4gfLo1TkCaJev4+WsJ6ESKy5ubLLY82gXLtYt1MITv56J7lCAOfl4zN56O5nb1rOd32f XbAvaMVA40NKmfiERwsD7d4oGo5dw9vrUDeaSWZpVI0wD4l8lUG6aR+bs4DFaIroFwZO Ta4g== X-Gm-Message-State: AC+VfDxQx9+YVuhcXFD+kWyGXYhppyyNlXdQx1G9xeE24S+ffqYhiJw/ SGRmGEULxpOZiKlv1qulVPTXOK17+AIxoA== X-Google-Smtp-Source: ACHHUZ7MCH5zlqznMBGubSWPrjen7osPiyZCqXXvDpXKYPuV56wA81cpnYshdYGJbuE6DGgfv5Gw6w== X-Received: by 2002:a1c:f60a:0:b0:3f1:76d0:8bb0 with SMTP id w10-20020a1cf60a000000b003f176d08bb0mr13940705wmc.36.1683803859522; Thu, 11 May 2023 04:17:39 -0700 (PDT) Received: from Home-Mac ([141.226.162.146]) by smtp.gmail.com with ESMTPSA id z24-20020a1cf418000000b003f3e50eb606sm25137507wma.13.2023.05.11.04.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 04:17:38 -0700 (PDT) From: Daniel Fleischer <danflscr@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words Date: Thu, 11 May 2023 14:03:43 +0300 References: <m235431gy7.fsf@HIDDEN> <83sfc35kzc.fsf@HIDDEN> <m2y1lvz117.fsf@HIDDEN> <83fs835eyx.fsf@HIDDEN> User-agent: mu4e 1.11.4; emacs 30.0.50 In-reply-to: <83fs835eyx.fsf@HIDDEN> Message-ID: <m2v8gzyv5b.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63438 Cc: 63438 <at> debbugs.gnu.org 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: -1.0 (-) --=-=-= Content-Type: text/plain Content-Disposition: inline Eli Zaretskii [2023-05-11 Thu 13:39] wrote: > I guess there's a place for a new defcustom, under which no > case-conversion will happen at abbrev expansion time, ever. Is that > what you want? That is, if you have an abbrev foo -> foobarical, then > typing "Foo" or "FOO" will produce a literal "foobarical", each and > every time? I think even simpler: make sure abbrev insertion only works when the input word is strictly (case sensitive) different than the expansion word; leave everything else as is. Example: with a rule like "foobarical -> fooBarical" then Foobarical -> FooBarical (as is today) FOOBARICAL -> FOOBARICAL (as is today) but fooBarical -> fooBarical, because it's already what we want. --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.Received: (at 63438) by debbugs.gnu.org; 11 May 2023 10:38:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 06:38:53 2023 Received: from localhost ([127.0.0.1]:49797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px3hE-0006fS-Lv for submit <at> debbugs.gnu.org; Thu, 11 May 2023 06:38:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1px3hA-0006fE-RV for 63438 <at> debbugs.gnu.org; Thu, 11 May 2023 06:38:51 -0400 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 <eliz@HIDDEN>) id 1px3h4-0008DE-Ad; Thu, 11 May 2023 06:38:43 -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=CzDJ+OScJqaMBi624SKNxzQVnaUidoRh1YPtU8YVM5w=; b=jjtGUkN6wnN0 Cd1KlrXDCTKUu01PLg3pE4hcjTxBi9HAe0n58814wCV42NA53EdzwHJgbMieick87x6mQ4yxqL+9L OONuWxDtk8xgxgIluhWd6TelnxadQbbHC1/XH97jKffiX02hOFtwjR/jwAbKZbsTP34oc1jxORj1K P4vlKi2zRb9TByQubPnziqKRC4ZHzknpERsYifgiQAj3E65FYtEsWdpOcEkAWjiCSsIND9Z8CrLHl XvSdkwx/S2rDp3kirWxJ43q4PNw663CmruxAuRtPSvA1MXnnBCC0VcPEZOamEI2WH2eegfTlLYik9 xtkByDfvcxXCaHjHz/O6eA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1px3h3-0003FP-RM; Thu, 11 May 2023 06:38:42 -0400 Date: Thu, 11 May 2023 13:39:50 +0300 Message-Id: <83fs835eyx.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Daniel Fleischer <danflscr@HIDDEN> In-Reply-To: <m2y1lvz117.fsf@HIDDEN> (message from Daniel Fleischer on Thu, 11 May 2023 12:00:39 +0300) Subject: Re: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words References: <m235431gy7.fsf@HIDDEN> <83sfc35kzc.fsf@HIDDEN> <m2y1lvz117.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63438 Cc: 63438 <at> debbugs.gnu.org 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: -3.3 (---) > From: Daniel Fleischer <danflscr@HIDDEN> > Cc: 63438 <at> debbugs.gnu.org > Date: Thu, 11 May 2023 12:00:39 +0300 > > > Eli Zaretskii [2023-05-11 Thu 11:29] wrote: > > > What did you expect to happen instead? > > I would expect *nothing* to happen; abbrev is key-value mapping; you > write a key and it replaces it with a value. If you write a word > that is not a key, you expect nothing to happen. In this case, the > word is one of the values, and suddenly something happens, > unexpectedly. I know realize that words are compared with keys > ignoring the case, but using the case in the expansion. Still, if a > user writes a word identical to one the abbrev "keys", I would > expect abbrev to leave it as is. I guess there's a place for a new defcustom, under which no case-conversion will happen at abbrev expansion time, ever. Is that what you want? That is, if you have an abbrev foo -> foobarical, then typing "Foo" or "FOO" will produce a literal "foobarical", each and every time?
bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.Received: (at 63438) by debbugs.gnu.org; 11 May 2023 09:10:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 05:10:44 2023 Received: from localhost ([127.0.0.1]:49717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px2Jv-00040e-OC for submit <at> debbugs.gnu.org; Thu, 11 May 2023 05:10:44 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:55560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <danflscr@HIDDEN>) id 1px2Jp-00040K-ID for 63438 <at> debbugs.gnu.org; Thu, 11 May 2023 05:10:42 -0400 Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3063433fa66so5404532f8f.3 for <63438 <at> debbugs.gnu.org>; Thu, 11 May 2023 02:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683796231; x=1686388231; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=SENvFjFLMOeDMFwstHYqpK4l8lMe0J0VlClm0uJnQHU=; b=qsR/xqVRNgy/m5ipwBrf5FOXczJBBoVHiGrNymRM07KvN6qklO6VQ+4WKiYhUk4Nno t7F/q7PkfgYt4BFXlzZfsuOHfK2rPrrKDfk2suxDOvS4Fq4klLmleohdGfsl7ePAJXeD h84B0rngdfEMN1S9vnD6HrxROH4+2nivp7jAsn9UxSODJyV/h31kRv2oqIllkE9OxyfX 69y0UZD41mRpYRtcmpkP+APc5zZ7vg3vFv4xV/Obx3Wti2xGo7ZnawS4iH+XJ3ln9kQX 4mucLDjHZEbFLQKqEzIF76qZnJT9/2URysPqmswE2vgQnQ31/AQbyYE7XA59amwSFy6W SRig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683796231; x=1686388231; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SENvFjFLMOeDMFwstHYqpK4l8lMe0J0VlClm0uJnQHU=; b=elWH9A9p0pDSl+niDEX6WmWcYSovptjmhvFaKaJ8yULOq4OE/43HJ8dJg4PMJrptPm D5QdDFSzDhHbm1xZevec65kbo+bW31IEIv4xi1q3DZLe5lmsuLBHlpYu3zlcvznfYVPm 0oihPOO5/89QyL8egPwUb4qyyZCgnYQQwGLRYtujI22mimCyn0Cj2tyPilYoLPwh+a8N XzYv9UspW/agFz6wYBh1EIBqAOWfRBpW47F7RP5coY8NYAVkwCvi/lK4Hmc6SaDFeqjr 7hMVv/+H9KKQYUdXyUnSsjxV7zRw8Z2WrGzqwWqLwu3TLhIL3Wl1xV/fPeL0KgANocC2 H0eg== X-Gm-Message-State: AC+VfDxPDh61OFUnitR6W53MSXN4sAXBcaUkY9i+E0kxOxns7/pSCWrc muCn4I1Byb2g+wdc9rvJLuuUtuNq+VatwQ== X-Google-Smtp-Source: ACHHUZ6L+VV3T99na/+PhAMKV5TFCYGgi9gkkYgDh2WgZsk+Oh2UocUUe+srULgTVCjZvzLd64raoA== X-Received: by 2002:adf:e948:0:b0:2fe:e137:dbad with SMTP id m8-20020adfe948000000b002fee137dbadmr12686785wrn.51.1683796231396; Thu, 11 May 2023 02:10:31 -0700 (PDT) Received: from Home-Mac ([141.226.162.146]) by smtp.gmail.com with ESMTPSA id e1-20020adfdbc1000000b0030795249ffasm12295577wrj.92.2023.05.11.02.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 02:10:30 -0700 (PDT) References: <m235431gy7.fsf@HIDDEN> <83sfc35kzc.fsf@HIDDEN> User-agent: mu4e 1.11.4; emacs 30.0.50 From: Daniel Fleischer <danflscr@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words Date: Thu, 11 May 2023 12:00:39 +0300 In-reply-to: <83sfc35kzc.fsf@HIDDEN> Message-ID: <m2y1lvz117.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63438 Cc: 63438 <at> debbugs.gnu.org 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: -1.0 (-) Eli Zaretskii [2023-05-11 Thu 11:29] wrote: > What you see is the documented behavior: by default, if the > abbrev was > triggered by a word that has some upper-case letters in it, > Emacs > capitalizes the first letter of every word in the expansion (you > can > optionally set abbrev-all-caps non-nil to up-case all the > letters in > the expansion). In your case, capitalizing the first letter of > "aBC" > yields "ABC", and that's what you see. > > What did you expect to happen instead? I would expect *nothing* to happen; abbrev is key-value mapping; you write a key and it replaces it with a value. If you write a word that is not a key, you expect nothing to happen. In this case, the word is one of the values, and suddenly something happens, unexpectedly. I know realize that words are compared with keys ignoring the case, but using the case in the expansion. Still, if a user writes a word identical to one the abbrev "keys", I would expect abbrev to leave it as is. Thanks, Daniel
bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 63438) by debbugs.gnu.org; 11 May 2023 08:29:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 04:29:03 2023 Received: from localhost ([127.0.0.1]:49670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px1fb-0006Lk-AO for submit <at> debbugs.gnu.org; Thu, 11 May 2023 04:29:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1px1fV-0006LB-AX; Thu, 11 May 2023 04:29:00 -0400 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 <eliz@HIDDEN>) id 1px1fQ-00060y-1D; Thu, 11 May 2023 04:28:52 -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=l/A2YVHkJgLvYEkWR91W7+8YiW8wJi6wDQ74DEaYN3g=; b=ODUUgMcBKc+1 TQ2VmC0gY5sgKrTi6Wahhu+oEUh0fpJ9fwp3BNaj7zql3ShiAfYNF2d4Av6Z6EJmRrDsMfU0JGdXs 4CK18FJNOwUFEdl5uagcLYVyM6LySiVbY+kPRvOuW4zhDqB57rLNqdWnibuTLr5f5djOcGqEIjXA4 GjBORnqQ492zcE2z0ikkjAliZ9bdFsAShH6mVzmsOgjNcgL/pVBjuAPxcEePq+q2ZuI66osZVzVAH BaiGBY+2QSxSwQ33gqeYJ9zLVjYcmrgseeaCLPE+CZQOWptaGGaDRG1PnyVxyI3ME9vZrOX9ZihFs g+xaDfOTJEE2nyTwKUdn4A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1px1fP-00037Z-H1; Thu, 11 May 2023 04:28:51 -0400 Date: Thu, 11 May 2023 11:29:59 +0300 Message-Id: <83sfc35kzc.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Daniel Fleischer <danflscr@HIDDEN> In-Reply-To: <m235431gy7.fsf@HIDDEN> (message from Daniel Fleischer on Thu, 11 May 2023 10:10:40 +0300) Subject: Re: bug#63438: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words References: <m235431gy7.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63438 Cc: 63438 <at> debbugs.gnu.org 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: -3.3 (---) severity 63438 wishlist thanks > From: Daniel Fleischer <danflscr@HIDDEN> > Date: Thu, 11 May 2023 10:10:40 +0300 > > Recipe for recreating: > > - Add some abbrev definition with mixed capitalization, e.g. "abc" > should expand to "aBC". > - Enable abbrev-mode. > - Write "aBC". > - Upon pressing space, abbrev-mode converts it into "ABC". > > 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". What you see is the documented behavior: by default, if the abbrev was triggered by a word that has some upper-case letters in it, Emacs capitalizes the first letter of every word in the expansion (you can optionally set abbrev-all-caps non-nil to up-case all the letters in the expansion). In your case, capitalizing the first letter of "aBC" yields "ABC", and that's what you see. What did you expect to happen instead?
bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 11 May 2023 07:11:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 11 03:11:00 2023 Received: from localhost ([127.0.0.1]:49581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1px0S4-0003wO-39 for submit <at> debbugs.gnu.org; Thu, 11 May 2023 03:11:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:53560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px0S1-0003wF-7L for submit <at> debbugs.gnu.org; Thu, 11 May 2023 03:10:59 -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 <geb-bug-gnu-emacs@HIDDEN>) id 1px0Rx-00036c-JN for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 03:10:53 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px0Rw-0008Vp-8X for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 03:10:53 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1px0Rr-0004vD-Q8 for bug-gnu-emacs@HIDDEN; Thu, 11 May 2023 09:10:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@HIDDEN From: Daniel Fleischer <danflscr@HIDDEN> Subject: 30.0.50; abbrev mode wrongly capitalizes with mixed capitalized words Date: Thu, 11 May 2023 10:10:40 +0300 Message-ID: <m235431gy7.fsf@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:a+zmpaO4FXgsH8iVA1M/igBCYl0= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit 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: -1.1 (-) Recipe for recreating: - Add some abbrev definition with mixed capitalization, e.g. "abc" should expand to "aBC". - Enable abbrev-mode. - Write "aBC". - Upon pressing space, abbrev-mode converts it into "ABC". 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". -- Daniel Fleischer
Daniel Fleischer <danflscr@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#63438
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.