Subject: Re: bug#24510: 25.1; Info: searching for ` does not find what looks like `

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 29 Apr 2022 12:08:34 +0200

Juri Linkov <[email-masked]> writes:

> So only folding `' with ‘’ is required?

Yup, I think so.

> Then it's easy to do:

[...]

> @@ -2147,7 +2149,10 @@ Info-isearch-search
>  		   (funcall isearch-regexp-function string lax)
>  		 (word-search-regexp string lax))))
>  	    (isearch-regexp string)
> -	    (t (regexp-quote string)))
> +	    (t (thread-last
> +		 (regexp-quote string)
> +		 (replace-regexp-in-string "`" "[`‘]")
> +		 (replace-regexp-in-string "'" "['’]"))))
>  	   bound noerror count
>  	   (unless isearch-forward 'backward)))
>  	(point))

Nice.  But we should also have this in *Help* (and possibly other
buffers where we do the `' -> ‘’ dance, but I can't think of any others
at the moment), so would it possible to have this like a little minor
mode?  Or would that be difficult?  (I've barely looked at the char-fold
machinery, so I have no idea.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no