From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn <tsdh@gnu.org> Newsgroups: gmane.emacs.help Subject: Re: Use Vertico + consult to do the search for an exact word. Date: Thu, 01 Jun 2023 11:47:45 +0200 Message-ID: <87v8g7se5h.fsf@gnu.org> References: <CAGP6POKa1LnDSD4iPgagfbJH2k5He7ijwk2oxRa_4KsLNMUC_g@mail.gmail.com> <87zg5jsmez.fsf@gnu.org> <CAGP6POJN_cKR=SMxQkEafQacrN8+ubV4U4RxMX3Re9W-hyp=zg@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.6; emacs 30.0.50 Cc: help-gnu-emacs@gnu.org To: Hongyi Zhao <hongyi.zhao@gmail.com> Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 01 11:53:19 2023 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org> Envelope-to: geh-help-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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1q4eze-0002YH-T9 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Jun 2023 11:53:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <help-gnu-emacs-bounces@gnu.org>) id 1q4ez2-00065M-Kk; Thu, 01 Jun 2023 05:52:40 -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 <tsdh@gnu.org>) id 1q4ez0-000655-6X for help-gnu-emacs@gnu.org; Thu, 01 Jun 2023 05:52:38 -0400 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 <tsdh@gnu.org>) id 1q4eyz-00061G-I6; Thu, 01 Jun 2023 05:52:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=LawNyrR6zM299UNwcJUMTdg3gzKui4vFPzfaN0obvKc=; b=QGvSDxw8kURNln kQWho9j865G9sOs09X4/5paDhVvLvd00oQ0OICJuQ0uX8YBCPjOS8tHWl3QX3za2bccBd6gH0SnMP frVxZh0NsLFiY04RRdkG3ypHXzzTZIWwhWR2ZtrLWrYzDXvq4eauPUQDHZuY6IArf9MyOA2Fv/eAR u82WZpSNy0S53Qda/Y4sStfOOFalnnib6YEC/kf7T+esdXs15vKGpq63s7mollGzewpnT3GhqFAE6 CwXJfWNBYRQu26L+WYMIcbfUvld2y/e/tvipkh8QwG941tJRiLTMTxs0SBV0SZq+KULxLf7kNEYFw ZvA5gVagOTbH+mX+eSCg==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <tsdh@gnu.org>) id 1q4eyr-0002oQ-8N; Thu, 01 Jun 2023 05:52:36 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id DBD4B27C0054; Thu, 1 Jun 2023 05:52:28 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 01 Jun 2023 05:52:28 -0400 X-ME-Sender: <xms:XGp4ZFdM1T7G0wrxgc2lLCsA29ZBnN7SMeQsyzDBUQEBbD_FQgvmhw> <xme:XGp4ZDPHkX3GJT7Iv3WE5pSldWZ4Cj-zGKpMx-IDgN1qmug0L2M-cL6CL_Q3MUYmx -F6e6V6J57fVQ> X-ME-Received: <xmr:XGp4ZOj6bUSMczBoXtlXihdYXvWvF5yLKYbU4xqlZvJbeheia6KWxsNX0BQWluqpWKPWn7k0qUymfd4X6KsBkUQc0ryNKQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeluddgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: <xmx:XGp4ZO-wA7Vae5k7yJIMymTI6Z8sw7KrSPfl1jVJ1SX67NYBghuZkw> <xmx:XGp4ZBvUIP7uBuNWUD-MbMT_AN7nrtacD2D335sR0ule33ySmixAjw> <xmx:XGp4ZNEtVSZm_wMBGBJLTczjh2YM5ib0nqro5Xt-TVvc_-RObG83oA> <xmx:XGp4ZP2M2KT3egh_cDzmhTvCSICsAV56mYD4bMey1Q_o2q8Hi0pJzw> Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Jun 2023 05:52:28 -0400 (EDT) In-reply-to: <CAGP6POJN_cKR=SMxQkEafQacrN8+ubV4U4RxMX3Re9W-hyp=zg@mail.gmail.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143823 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/143823> Hongyi Zhao <hongyi.zhao@gmail.com> writes: >> I don't use consult myself but I guess the search string is a regular >> expression. So when you want to search for an exact word, use \bid\b >> to find all occurrences of the word id. > > I've tried this trick, but it cannot match the results like `$id$', as > shown in the attached screenshot, from where you can see that the > entry indexed by the circle numbered 1 doesn't appear in the > minibuffer's matching list. That's because $ is a word-character in the syntax-table of the mode you are using in that buffer. You can try \([^a-zA-Z]\|\b\)id\([^a-zA-Z]\|\b\) which should also find $id$ and 1id02. Bye, Tassilo