From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Morgan Willcock Newsgroups: gmane.emacs.bugs Subject: bug#73234: 30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf Date: Wed, 18 Sep 2024 21:23:44 +0100 Message-ID: <87cyl04sof.fsf@ice9.digital> References: <875xqzicit.fsf@ice9.digital> <871q1m36jw.fsf@ice9.digital> <87o74q7ylr.fsf@ice9.digital> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17101"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73234@debbugs.gnu.org To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 18 22:25:20 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 1sr1Ek-0004D1-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Sep 2024 22:25:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sr1EN-0006M8-Uc; Wed, 18 Sep 2024 16:24:56 -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 1sr1EE-0006Lo-7v for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 16:24:46 -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 1sr1ED-0005Lo-TT for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 16:24:45 -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=7SN6ysPSxNuWRG055xBb4168Q4Eo/APWKt+SSJHls9c=; b=qMnuM0w2lW06aX1qV/Ad+hj5gOF0fQ/eSbsRJuYCahh7uWyF+Qh0mUvtWbGBZ6mN9o8Bf27TV+YL6vn++MEy06VXlBtKjSBd+QQ79bPnEjgKwuXaKtP1JAqqsH6t648IaeFz9b58nHd8qG/WoKLLOtHCewn8pYgmlSBijyqTn2xCVSkSBJUvZIg5uTBstbj/BWGUq75D3rbfvsy/zfl3F57r65UuAdFv285uS8x+ITu3OJihreU1euCpvrG/V6Fwu09Wn9zC8kc7tIHLHWcI5S8HZRymVLm+S1xM/z83yTytXcLRHDea8pHqDY9lZocyVkQ0CM6BG8WH1h9v9szXew==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sr1EU-0002B2-0g for bug-gnu-emacs@gnu.org; Wed, 18 Sep 2024 16:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Morgan Willcock Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2024 20:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73234 X-GNU-PR-Package: emacs Original-Received: via spool by 73234-submit@debbugs.gnu.org id=B73234.17266910738311 (code B ref 73234); Wed, 18 Sep 2024 20:25:01 +0000 Original-Received: (at 73234) by debbugs.gnu.org; 18 Sep 2024 20:24:33 +0000 Original-Received: from localhost ([127.0.0.1]:59276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr1E0-00029z-RT for submit@debbugs.gnu.org; Wed, 18 Sep 2024 16:24:33 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sr1Dw-00029f-MK for 73234@debbugs.gnu.org; Wed, 18 Sep 2024 16:24:31 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 93DDCE0002; Wed, 18 Sep 2024 20:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ice9.digital; s=gm1; t=1726691025; 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=7SN6ysPSxNuWRG055xBb4168Q4Eo/APWKt+SSJHls9c=; b=JouYLcyJOHo1oug7qzqeG6yg/2l+EnB7IKWoNBUwo7p94Uwtqix3P6qbdJp340iK0sI5EO AGLgey3td38hTiuzr6HeSTrXu/JYCReDtutaIEBvagdybTtTJtd6ekmFr8ZbokZusmeY2A 71cFEBo8aN7CaXkrfI33hA/00yY8oPmo+7feSwmjtTZsRhO5psNkgyeYakORcEr1BI1SXM oDoGJQiW/g+WlioV5QGkbBbVq5UyFLr5kwGEM7Nv5i5AGcehnWOTF7gvK4kJVhfQ+zFhp7 HVeaH4KhDwHamrxv59s+7fWVaD/dxkNR3qMdCZrA6tNXzMugIoUHq8Tn5/hn+g== In-Reply-To: (Eshel Yaron's message of "Tue, 17 Sep 2024 21:03:52 +0200") X-GND-Sasl: morgan@ice9.digital 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:292016 Archived-At: Eshel Yaron writes: > FYI, I've added a new user option completion-preview-ignore-case on the > master branch (commit f1794a17b62), which controls case sensitivity for > Completion Preview mode specifically. This is definitely safe to set > buffer-locally. The docstring of this new variable should hopefully > also explain exactly what's the expected behavior in this regard. Thanks for adding the new option. For my use case I don't think I would be able to use it because the case mismatch between the text already typed and the completion will effectively be generating a completion which may not actually exist. e.g. If a valid completion was "FooBar", and I typed "foo", having the final result as "fooBar" wouldn't be ideal. I've been trying to think of a way to get it to work without disturbing the user interface that already exists. Maybe it would be possible fixup the result in a post-insertion hook if one existed - such a hook might be generally useful anyway. In the long term though, I really think that the preview should be allowed to overlap with the text already typed and potentially replace it when the completion is inserted, but I appreciate that it would be a big change in the internals to please a minority. Morgan -- Morgan Willcock