From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73234: 30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf Date: Tue, 17 Sep 2024 21:03:52 +0200 Message-ID: References: <875xqzicit.fsf@ice9.digital> <871q1m36jw.fsf@ice9.digital> <87o74q7ylr.fsf@ice9.digital> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73234@debbugs.gnu.org To: Morgan Willcock Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 21:05:21 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 1sqdVo-0003V2-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 21:05:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqdVY-0003ys-LC; Tue, 17 Sep 2024 15:05:05 -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 1sqdVQ-0003qp-Hu for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 15:04:58 -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 1sqdVH-0000UB-8B for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 15:04:52 -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=y20WuMPB8QlmHsyr3LgDKJ2MszicfV2PUjJmZ6X8+zA=; b=DBKZxCoku293OmSDiGg3ahv5kxLRew3y/UQU0T2X4trf2aR47IEx7k2gNqXl4gcwwB5K1AxX5Q22Jhgb7DnYzH7RNTXn8cI1waM0SfVCv7ulBbkU8qbroSSQsnr/Qc0Qy1DEsgQQe54jTXKRJ6gYxPBhRE+E+eXxqKt4nwiEVkfExWxD03mMdplYjuEdH0Oxemc8ds7orE3bFFaoqXMB4MzB4uf12RpXuz2RmAdq6pIRKvBrw4rp/bS7WO6GYi/HJFqWKprgpf+VzmRikLt3lDmFfPmkPlDXFojcKiYlfnM4u0T7GrhyD23HET8eO1D2jsedSjgMwtpWfGfZvmtDIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqdVV-0006tn-Te for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 15:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 19:05: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.172659985126430 (code B ref 73234); Tue, 17 Sep 2024 19:05:01 +0000 Original-Received: (at 73234) by debbugs.gnu.org; 17 Sep 2024 19:04:11 +0000 Original-Received: from localhost ([127.0.0.1]:55962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqdUh-0006sE-CJ for submit@debbugs.gnu.org; Tue, 17 Sep 2024 15:04:11 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:40954 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqdUf-0006s6-Qe for 73234@debbugs.gnu.org; Tue, 17 Sep 2024 15:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1726599834; bh=bvwvp8ZknCEOZUfVyN2vHzTiPd2AhR9WycMyqUPxAZc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=W9cxZX8qgjS2l8+YAU3VEQl077cA8l+3/MNAO65vs4HUzP8h/7Mma9cyoPugE/FJw cqkEwkbS/bICH31IKq1I41scSjP5tG3wSz1KCemal3zCig7DgwWH03diFT+Mg35jvj uPojbcld0Pc3VJBmP30iO3aK5UCVLNaricRiFsld2v7a37uJnZALhIwDY/sTrAGwsU EI9c0RZ/U6aEzj93pKJeYr166jMDV9Aragofh1oO+v/SSGFyfK8GKDiDzmin2aKw5C 2m2366ZILjjBerMDzDqhbALSkhF+9y039Kuw1qg2y4yJeO1KcQOFKZecGVQC+6cuWK VZKz4gkk693eQ== In-Reply-To: (Eshel Yaron's message of "Sun, 15 Sep 2024 08:40:02 +0200") 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:291960 Archived-At: Eshel Yaron writes: [...] >>> If case is not important, and you're fine with completing "tes" in your >>> example to "testSymbol", then setting completion-ignore-case to non-nil >>> should get you there, IIUC. >> >> I found out the hard way that completion-ignore-case isn't something >> that can be set as buffer-local: >> >> https://lists.gnu.org/archive/html/emacs-devel/2024-03/msg00302.html >> >> I wouldn't want to set case-insensitivity globally. > > I'll take a closer look at that discussion, but I'm pretty sure you can > in fact set completion-ignore-case buffer-locally. It works as expected > in my quick tests, and it's done in other places in Emacs already :| 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. Cheers, Eshel