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, 06 May 2022 13:30:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> If you are sure about this, here is the simplest way to implement it,
> and the users can disable it easily in help-mode-hook:

[...]

> +  (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.

-- 
(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]