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 16:46:34 +0200 Message-ID: <8634szxy2d.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> <875xxvjwzr.fsf@ice9.digital> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Morgan Willcock Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 09 15:47:23 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 1rixyt-0000hl-2O for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Mar 2024 15:47:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rixyD-0006lp-Py; Sat, 09 Mar 2024 09:46:42 -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 1rixyA-0006jZ-Jt for emacs-devel@gnu.org; Sat, 09 Mar 2024 09:46:38 -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 1rixyA-0008Iz-2y; Sat, 09 Mar 2024 09:46:38 -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=9fH1dP3cLs91Q5cptwG5ovUrFvSnBQaqc89KlQgIADY=; b=fU4LqjZ8uwXl HMQBilw2++m3D0VScJBaMHLRO5f+VmIGGGpyeH2qDWOLPsmfCTB5WXh1Xlf+RpnAHEFEYLGVZpA0U L0jhqGRlGa5bCbcOK6kTwIi+ktbcI41g3Ds6AteGMBPOG+7G/S4Dks+mubZtNQQ6ua8C6hfnZzBvI Zxd8g2dLTx5Yv6cigUp2H6OSkvtm5fa9dXzvyybJFoM3O7YaDytARnFAu731q66V28vOTozQFYWIw 8KHbJXA0u1nF4/GcwM31nO0jst1iOjUsTGoJEdVEUOvtrmA0iq2YioeLgc9cBh/HCme6/3SH+dzVM 0uAzq7kEIeOyUD5b3Yqk3Q==; In-Reply-To: <875xxvjwzr.fsf@ice9.digital> (message from Morgan Willcock on Sat, 09 Mar 2024 14:33:28 +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:316953 Archived-At: > From: Morgan Willcock > Cc: emacs-devel@gnu.org > Date: Sat, 09 Mar 2024 14:33:28 +0000 > > Eli Zaretskii writes: > > > Don't use setq-local, use setq. Or let-bind it, like this: > > > > (progn > > (pop-to-buffer (get-buffer-create "test")) > > (let ((tags-case-fold-search t)) > > (insert "is") > > (complete-tag) > > (complete-tag))) > > The code example is just to recreate the problem. This affects the > completion mechanism in the buffer that the user has direct access to > with key-bindings. > > i.e. If the user types "is" and then presses C-M-i there are no > completions available. C-M-i is not bound to complete-tag, it is bound to complete-symbol, at least by default. If I customize tags-case-fold-search to t, and then invoke complete-tag, I get case-insensitive completion based on TAGS.