aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-06-21 12:33:12 +0300
committerEli Zaretskii2025-06-21 12:33:12 +0300
commit1406e583fe63c6d0731a731cf67e574be0d8d4d8 (patch)
treefdc9c519ec6ee666852aa2c16d8fbb4c4ccf25e4
parenta2bfce5d2a7d046a45c25364f3c69b3d8a776081 (diff)
downloademacs-1406e583fe63c6d0731a731cf67e574be0d8d4d8.tar.gz
emacs-1406e583fe63c6d0731a731cf67e574be0d8d4d8.zip
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)
-rw-r--r--lisp/man.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/man.el b/lisp/man.el
index dcfab8d2035..50058d14269 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -650,9 +650,12 @@ This is necessary if one wants to dump man.el with Emacs."
650 (if Man-sed-script 650 (if Man-sed-script
651 (concat "-e '" Man-sed-script "'") 651 (concat "-e '" Man-sed-script "'")
652 "") 652 "")
653 ;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would 653 (if (eq system-type 'darwin)
654 ;; suspend remote connections. 654 ;; macOS Sed doesn't support \o notation.
655 "-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'" 655 "-e '/^[[:cntrl:]][[:cntrl:]]*$/d'"
656 ;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would
657 ;; suspend remote connections.
658 "-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'")
656 "-e '/\e[789]/s///g'" 659 "-e '/\e[789]/s///g'"
657 "-e '/Reformatting page. Wait/d'" 660 "-e '/Reformatting page. Wait/d'"
658 "-e '/Reformatting entry. Wait/d'" 661 "-e '/Reformatting entry. Wait/d'"