mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Make `man' more portable
* lisp/man.el (Man-init-defvars): Use [:cntrl:]. Character ranges with octal numbers aren't portable enough. (Bug#77944)
This commit is contained in:
parent
45e849bddc
commit
fc5e905dc9
1 changed files with 2 additions and 4 deletions
|
|
@ -635,9 +635,7 @@ 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'"
|
||||
"-e '/^[[:cntrl:]][[:cntrl:]]*$/d'"
|
||||
"-e '/\e[789]/s///g'"
|
||||
"-e '/Reformatting page. Wait/d'"
|
||||
"-e '/Reformatting entry. Wait/d'"
|
||||
|
|
@ -772,7 +770,7 @@ Different man programs support this feature in different ways.
|
|||
The default Debian man program (\"man-db\") has a `--local-file'
|
||||
\(or `-l') option for this purpose. The default Red Hat man
|
||||
program has no such option, but interprets any name containing
|
||||
a \"/\" as a local filename. The function returns either `man-db'
|
||||
a \"/\" as a local filename. The function returns either `man-db',
|
||||
`man', or nil."
|
||||
(if (eq Man-support-local-filenames 'auto-detect)
|
||||
(with-connection-local-variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue