mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 10:53:23 +00:00
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:
parent
a2bfce5d2a
commit
1406e583fe
1 changed files with 6 additions and 3 deletions
|
@ -650,9 +650,12 @@ This is necessary if one wants to dump man.el with Emacs."
|
|||
(if Man-sed-script
|
||||
(concat "-e '" Man-sed-script "'")
|
||||
"")
|
||||
;; Use octal numbers. Otherwise, \032 (Ctrl-Z) would
|
||||
;; suspend remote connections.
|
||||
"-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'"
|
||||
(if (eq system-type 'darwin)
|
||||
;; macOS Sed doesn't support \o notation.
|
||||
"-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 '/Reformatting page. Wait/d'"
|
||||
"-e '/Reformatting entry. Wait/d'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue