🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99244

(none)

#99244
From: nixpbe!uucp
Date: Tue, 16 Oct 1990 21:40
60 lines
2979 bytes
>From uucp Wed Oct 17 04:56 SIN 1990 remote from nixsin
To: nixpbe!unido!gnu-emacs-bug
Path: nixsin!nixpbe!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


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: <9010162140.AW24197@unido.informatik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!relay.eu.net!nixpbe!uucp

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,f1dbc4b61e8e8143
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-16 14:40:37 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!relay.eu.net!nixpbe!uucp
From: nixpbe!uucp@relay.eu.net
Newsgroups: gnu.emacs.bug
Subject: (none)
Message-ID: <9010162140.AW24197@unido.informatik.uni-dortmund.de>
Date: 16 Oct 90 21:40:37 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 60
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Tue Oct 16 22:40:37 1990