From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#24510: 25.1; Info: searching for ` does not find what looks like ` Date: Fri, 06 May 2022 18:32:13 +0300 Organization: LINKOV.NET Message-ID: <867d6yit3u.fsf@mail.linkov.net> References: <6905ca6f-0573-4a2b-b346-d5df47862e09@default> <87zgk5mqkm.fsf@gnus.org> <86levp6rce.fsf@mail.linkov.net> <8735hxjcqj.fsf@gnus.org> <86fslwxuxe.fsf@mail.linkov.net> <87pml0gq1p.fsf@gnus.org> <86bkwjvmwg.fsf@mail.linkov.net> <874k2a4wwl.fsf@gnus.org> <86y1zlgou1.fsf@mail.linkov.net> <87ee1dcc5y.fsf@gnus.org> <865ymnrk01.fsf@mail.linkov.net> <877d72zyzt.fsf@gnus.org> <86leviilvy.fsf@mail.linkov.net> <87levitru8.fsf@gnus.org> <86bkwct2ti.fsf@mail.linkov.net> <87y1zenbjp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16816"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Drew Adams , 24510@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 06 17:36:12 2022 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 1nn003-0004D1-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 May 2022 17:36:11 +0200 Original-Received: from localhost ([::1]:40962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nn002-0001de-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 May 2022 11:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmzzu-0001c0-Ah for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 11:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmzzu-0006aO-1t for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 11:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nmzzt-00072B-W9 for bug-gnu-emacs@gnu.org; Fri, 06 May 2022 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 May 2022 15:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24510 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 24510-submit@debbugs.gnu.org id=B24510.165185132426973 (code B ref 24510); Fri, 06 May 2022 15:36:01 +0000 Original-Received: (at 24510) by debbugs.gnu.org; 6 May 2022 15:35:24 +0000 Original-Received: from localhost ([127.0.0.1]:49534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmzzH-00070z-QX for submit@debbugs.gnu.org; Fri, 06 May 2022 11:35:23 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmzzF-00070h-V8 for 24510@debbugs.gnu.org; Fri, 06 May 2022 11:35:22 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BD377C0007; Fri, 6 May 2022 15:35:13 +0000 (UTC) In-Reply-To: <87y1zenbjp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 06 May 2022 13:30:18 +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" Xref: news.gmane.io gmane.emacs.bugs:231522 Archived-At: >> + (unless search-default-mode >> + (setq-local search-default-mode >> + (lambda (string &optional _lax) >> + (thread-last >> + (regexp-quote string) >> + (replace-regexp-in-string "`" "[`‘]") >> + (replace-regexp-in-string "'" "['’]"))))) > > Thanks; I separated this out into a tiny minor mode, and switched that > on in help-mode and info-mode instead. I noticed that Info also contains double quotation marks, so these could be added as well: (replace-regexp-in-string "\"" "[\"“”]") Also this improves tests: diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 6bcac2a5eb..8f3ee66e00 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -1065,6 +1065,9 @@ test-local-set-state (let ((state (buffer-local-set-state global 10 local 20 unexist 30))) + (should (= global 10)) + (should (= local 20)) + (should (= unexist 30)) (buffer-local-restore-state state) (should (= global 1)) (should (= local 2))