Article View: gnu.emacs.bug
Article #100030Fixes to man.el to run on IRIS (Silicon Graphics' SysV Unix)
From: Carl R. Manning
Date: Fri, 09 Mar 1990 23:09
Date: Fri, 09 Mar 1990 23:09
68 lines
3508 bytes
3508 bytes
Hi,
In case anyone else out there has trouble with man not
cleaning entries, here are the changes I made to man.el so
that it would work on our IRIS system (IRIS is Silicon
Graphics' SysV Unix).
------------------------------------------------------------------------
In function MANUAL-ENTRY, add argument "-T " as below:
;; use "man -T<space> topic" to tell man to ignore the
;; current terminal type so it won't try to insert boldface.
(call-process manual-program nil t nil "-T " section topic)
(call-process manual-program nil t nil "-T " topic))
Note: This is not portable. man -T means something else
on Sun systems. It is not clear what the best way to
conditionalize this code is; perhaps something like a #+SysV
or #-BSD is more appropriate.
At the least, this might be mentioned in the PROBLEMS file.
------------------------------------------------------------------------
In function NUKE-NROFF-BS, add \. to search string so it will find
strings like A.OUT as well:
;; Nuke headers: "MORE(1) UNIX Programmer's Manual MORE(1)"
(goto-char (point-min))
(while (re-search-forward "^ *\\([A-Za-z][-_\.A-Za-z0-9]*([0-9A-Z]+)\\).*\\1$" nil t)
(replace-match ""))
;; Nuke headers: "MORE(1) UNIX Programmer's Manual MORE(1)"
(goto-char (point-min))
(while (re-search-forward "^ *\\([A-Za-z][-_\.A-Za-z0-9]*([0-9A-Z]+)\\).*\\1$" nil t)
(replace-match ""))
------------------------------------------------------------------------
In NUKE-NROFF-BS, add code to take care of IRIS footers:
;; Nuke footers: "Printed 12/3/85 27 April 1981 1"
;; Sun appear to be on drugz:
;; "Sun Release 3.0B Last change: 1 February 1985 1"
;; HP are even worse!
;; " Hewlett-Packard -1- (printed 12/31/99)" FMHWA12ID!!
;; System V (well WICATs anyway):
;; "Page 1 (printed 7/24/85)"
;; IRIS (silicon grahics unix, another system V):
;; "Page 1 (last mod. 7/24/85)"
;; Who is administering PCP to these corporate bozos?
(goto-char (point-min))
(while (re-search-forward
(cond ((eq system-type 'hpux)
"^[ \t]*Hewlett-Packard\\(\\| Company\\)[ \t]*- [0-9]* -.*$")
((eq system-type 'berkeley-unix) ;; ??
"^\\(Printed\\|Sun Release\\) [0-9].*[0-9]$")
;; these two can be combined as below
;; ((eq system-type 'usg-unix-v)
;; "^ *Page [0-9]*.*(printed [0-9/]*)$")
;; ((eq system-type 'silicon-graphics-unix)
;; "^ *Page [0-9]*.*(last mod. [0-9/]*)$")
(t "^ *Page [0-9]*.*(.* [0-9/]*)$"))
nil t)
(replace-match ""))
------------------------------------------------------------------------
Cheers,
CarlManning@ai.mit.edu
Technical Details
Message-ID:
<19900309230939.0.CRM@WORKER-6.AI.MIT.EDU>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!lll-winken!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!WORKSERVER.AI.MIT.EDU!CarlManningShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,3b5c5ef19b76a377,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-03-09 15:09:00 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!lll-winken!uwm.edu!cs.utexas.edu!tut.cis.ohio-state.edu!WORKSERVER.AI.MIT.EDU!CarlManning From: CarlManning@WORKSERVER.AI.MIT.EDU (Carl R. Manning) Newsgroups: gnu.emacs.bug Subject: Fixes to man.el to run on IRIS (Silicon Graphics' SysV Unix) Message-ID: <19900309230939.0.CRM@WORKER-6.AI.MIT.EDU> Date: 9 Mar 90 23:09:00 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 68 Posted: Sat Mar 10 00:09:00 1990