Subject: bug#76371: 31.0.50; M-% -> void variable

From: Gerd Möllmann <[email-masked]>
Date: Mon, 17 Feb 2025 21:19:32 +0100

In a build --without-ns, 

- emacs -Q
- M-% search RET 1 RET

=>

Debugger entered--Lisp error: (void-variable overriding-text-conversion-style)
  perform-replace("search" "1" t nil nil nil nil nil nil nil nil)
  query-replace("search" "1" nil nil nil nil nil)
  funcall-interactively(query-replace "search" "1" nil nil nil nil nil)
  call-interactively(query-replace nil nil)
  command-execute(query-replace)

In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.3.0) of 2025-02-17
 built on pro2
Repository revision: d80ac0fbaa09826342a9818014ae950acc7c0c03
Repository branch: master
System Description:  macOS 15.3.1