Search code examples
emacscustomization

Setting isearch-wrap-pause in emacs 28


I would like to customize the following variables that were newly introduced in Emacs 28.1.

  • isearch-wrap-pause (defined with defcustom in isearch.el, default value t)
  • isearch-repeat-on-direction-change (defined with defcustom in isearch.el, default value nil)

I have the following in my init file.

  (setq isearch-wrap-pause nil
    isearch-repeat-on-direction-change t)

I see the desired effect with this setting. But, I don't see the expected effect when setting isearch-wrap-pause to no or no-ding (other values as defined in isearch.el).

I've tried with

  (setq isearch-wrap-pause 'no
    isearch-repeat-on-direction-change t)

and

  (setq isearch-wrap-pause "no"
    isearch-repeat-on-direction-change t)

and

  (setq isearch-wrap-pause no
    isearch-repeat-on-direction-change t)

without success.

How do I set isearch-wrap-pause to no or no-ding?

Edit [As on 2022-07-22]:

The expected behaviour I was looking for was to wrap around automatically when searching incrementally. I raised a bug with Emacs developers and they informed that this is not the intended behaviour, and automatic wrapping happens only for repeated search and not incremental search.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56535


Solution

  • The expected behaviour I was looking for was to wrap around automatically when searching incrementally. I raised a bug with Emacs developers and they informed that this is not the intended behaviour, and automatic wrapping happens only for repeated search and not incremental search