bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#24510: 25.1; Info: searching for ` does not find what looks like `
Date: Fri, 29 Apr 2022 12:08:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]