Workaround for "M-x man" on macOS 15 and later

* lisp/man.el (Man-init-defvars): Workaround for macOS Sed.  Do
not merge to master.  (Bug#77944)
This commit is contained in:
Eli Zaretskii 2025-06-21 12:33:12 +03:00
parent a2bfce5d2a
commit 1406e583fe

View file

@ -650,9 +650,12 @@ This is necessary if one wants to dump man.el with Emacs."
(if Man-sed-script (if Man-sed-script
(concat "-e '" Man-sed-script "'") (concat "-e '" Man-sed-script "'")
"") "")
;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would (if (eq system-type 'darwin)
;; suspend remote connections. ;; macOS Sed doesn't support \o notation.
"-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'" "-e '/^[[:cntrl:]][[:cntrl:]]*$/d'"
;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would
;; suspend remote connections.
"-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'")
"-e '/\e[789]/s///g'" "-e '/\e[789]/s///g'"
"-e '/Reformatting page. Wait/d'" "-e '/Reformatting page. Wait/d'"
"-e '/Reformatting entry. Wait/d'" "-e '/Reformatting entry. Wait/d'"