Article View: gnu.emacs.bug
Article #99360small bug in man.el
From: Tom Weiss
Date: Tue, 02 Oct 1990 22:16
Date: Tue, 02 Oct 1990 22:16
45 lines
2457 bytes
2457 bytes
In GNU emacs version 18.55.2
The manual-entry command (man.el) has a small bug due to a minor
oversight in the function nuke-nroff-bs. The man pages have lists of
items introduced by "o" overstruck with "+". nuke-nroff-bs does not
clean this up when formatting the buffer. For example, here's part of
the man page for "open" (SunOS) as formatted by manual-entry:
The low-order 12 bits of the file mode are
set to the value of mode, modified as follows
(see creat(2)):
o+ All bits set in the file mode creation
mask of the process are cleared. See
umask(2).
o+ The save text image after execution bit of
the mode is cleared. See chmod(2).
o+ The set group ID on execution bit of the
mode is cleared if the effective user ID
of the process is not super-user and the
The fix is simple; here's the diff for man.el:
106a107,109
> ((and (= preceding ?o) (= following ?\+))
> ;; o\b+
> (delete-char -2))
With the fix in place, the text is formatted as follows:
The low-order 12 bits of the file mode are
set to the value of mode, modified as follows
(see creat(2)):
+ All bits set in the file mode creation
mask of the process are cleared. See
umask(2).
+ The save text image after execution bit of
the mode is cleared. See chmod(2).
+ The set group ID on execution bit of the
mode is cleared if the effective user ID
Technical Details
Message-ID:
<9010022216.AA17050@larry.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BELLCORE.BELLCORE.COM!bond!tomShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,c51b9fb1b571d0a1,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-10-02 22:59:18 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BELLCORE.BELLCORE.COM!bond!tom From: bond!tom@BELLCORE.BELLCORE.COM (Tom Weiss) Newsgroups: gnu.emacs.bug Subject: small bug in man.el Message-ID: <9010022216.AA17050@larry.com> Date: 2 Oct 90 22:16:25 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 45 Posted: Tue Oct 2 23:16:25 1990