Subject: Re: bug#77944: 31.0.50; M-x man on macOS fails with error

From: Michael Albinus <[email-masked]>
Date: Mon, 21 Apr 2025 19:26:18 +0200

Gerd Möllmann <[email-masked]> writes:

Hi Gerd,

> I then
>
> 1 file changed, 1 insertion(+), 1 deletion(-)
> lisp/man.el | 2 +-
>
> modified   lisp/man.el
> @@ -637,7 +637,7 @@ Man-init-defvars
>  	       "")
>               ;; Use octal numbers.  Otherwise, \032 (Ctrl-Z) would
>               ;; suspend remote connections.
> -	     "-e '/^[\\o001-\\o032][\\o001-\\o032]*$/d'"
> +	     "-e '/^[[:cntrl:]][[:cntrl:]]*$/d'"
>  	     "-e '/\e[789]/s///g'"
>  	     "-e '/Reformatting page.  Wait/d'"
>  	     "-e '/Reformatting entry.  Wait/d'"
>
> built and M-x man in emacs -Q, and that works (with gsed uninstalled).

Great!

> Didn't try the other one, but I could if you want me to.

Yes, please try. [[:cntrl:]] is equal to [\\o0000-\\o0037]. Much
more than [\\o0001-\\o0032], so I'd prefer the latter.

Best regards, Michael.