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.devel Subject: Re: TAGS completion with (setq-local completion-ignore-case t) Date: Sat, 09 Mar 2024 17:49:25 +0200 Message-ID: <861q8jxv5m.fsf@gnu.org> References: <87frx2qu8z.fsf@ice9.digital> <868r2u2x4u.fsf@gnu.org> <87bk7qqsdk.fsf@ice9.digital> <865xxy2u6y.fsf@gnu.org> <877cieqnm0.fsf@ice9.digital> <8634szzvtv.fsf@gnu.org> <87il1vk08z.fsf@ice9.digital> <868r2ry1l2.fsf@gnu.org> <87a5n7jy8g.fsf@ice9.digital> <865xxvxyzo.fsf@gnu.org> <864jdfxyj3.fsf@gnu.org> <871q8jjvv8.fsf@ice9.digital> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31402"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Morgan Willcock , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 09 16:50:24 2024 Return-path: Envelope-to: ged-emacs-devel@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 1riyxr-0007yg-LW for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Mar 2024 16:50:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riyx6-0004yt-Ah; Sat, 09 Mar 2024 10:49:36 -0500 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 1riyx4-0004yk-DY for emacs-devel@gnu.org; Sat, 09 Mar 2024 10:49:34 -0500 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 1riyx3-0002p2-Bq; Sat, 09 Mar 2024 10:49:33 -0500 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=S9Rdlmnm7Ij+My/lirZKSgFS1iyVVB97aUXDg3ZJISI=; b=ne6XF1Fc9dnW NElEFj5uJUK+IqmkdzfwJC5D/E8CT3UywP8wlpKKJ6Jvhs7XXLR/u/Dixx2HMChi8PxZ3QSu9i7Yp ebOa7Uljy4C9AMm5FRkcN8gY5W7fhaCv3EvMhRCa00ZtDqpFkax2BTGYNeW0u0MqBrtb2rppStNNq 0wJDcixGyoOs/BeG51y/NNvETQ1MCRi3a2Az85u9zP8hLs//M9InOr0fmUHCuDja1jnrcisDr6fOB EIjPWtxYM6vIq3oSX/2kJkax70/mP8RQlrX7Uzm8jpnRiH6lgJ4/O+MYEJuWiGZY1IxdaF0yC5bL7 o6wgALK0yXDGDMP+kb3vng==; In-Reply-To: <871q8jjvv8.fsf@ice9.digital> (message from Morgan Willcock on Sat, 09 Mar 2024 14:57:47 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316955 Archived-At: > From: Morgan Willcock > Cc: emacs-devel@gnu.org > Date: Sat, 09 Mar 2024 14:57:47 +0000 > > Eli Zaretskii writes: > > > Why exactly do you need to have a buffer-local value of > > completion-ignore-case? This is not a user option, and is meant to be > > either set globally or let-bound for specific code. > > I was using it as a configuration example for a major-mode setup hook, > where the language itself is not case-sensitive, but completions through > capf functions (including TAG completion) can be displayed and inserted > in mixed case. > > Is there a supported way to have user configurable case-insensitive > completion that is configured per major mode? use the user options specific for each type of completion, I'd say. For TAGS that's tags-case-fold-search; for file names that's read-file-name-completion-ignore-case; for buffers its read-buffer-completion-ignore-case. And there may be others. Stefan, any better ideas?