[Top][All Lists]

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

Re: Simple isearch concerns

From: Juri Linkov
Subject: Re: Simple isearch concerns
Date: Wed, 21 Apr 2021 20:51:38 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> Actually this feature can cause inconvenience in some cases.
> `isearch-occur’ (bound to `M-s o’ in 'isearch-mode-map`) when `isearch’,
> even a buffer is created, `isearch’  doesn’t exit though.
> In vanilla Emacs, the cursor is in the original buffer. But if you use
> shackle or customize `display-buffer-alist’ directly, the cursor
> can be refocused to the new created one. Typing in the *Occur* buffer
> triggers `isearch-printing-char’ which is counterintuitive.

As discussed in bug#47894, the right solution for you would be to use
such customization that helps isearch-occur to exit isearch explicitly:

#+begin_src emacs-lisp
(advice-add 'isearch-occur :after
            (lambda (&rest _args)
              (isearch-done nil t)

reply via email to

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