delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/30/20:48:27

From: bukinm AT inp DOT nsk DOT su (Michael Bukin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: emacs question
Date: Wed, 30 Jul 1997 14:20:52 GMT
Organization: BINP SD RAS
Lines: 67
Message-ID: <33df47be.2537735@news-win.inp.nsk.su>
References: <Pine DOT NXT DOT 3 DOT 95 DOT 970729173249 DOT 14040A-100000 AT eagle1>
Reply-To: bukinm AT inp DOT nsk DOT su
NNTP-Posting-Host: csd-bsdi.inp.nsk.su
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Tue, 29 Jul 1997 21:40:09 GMT, Jude DaShiell
<jdashiel AT eagle1 DOT eaglenet DOT com> wrote:

> 
> I've started reading certain man pages with emacs since
> sometimes if they're sent over to cawf or awf they generate errors.
> The one problem page for me is bash.1.
> What I'd like to know is if there's any kind of additional filtration a
> user can tell emacs to use on something like bash.1 for example that
> will filter out all those (\) characters.
> Alternativly what else should be used to read bash.1?

In emacs:

M-x load-library <ret> man <ret>
<switch to buffer which contains bash manpage>
M-x Man-fontify-manpage <ret>

(bash.1 should be writable for this to work).

Alternatively, use `less bash.1' from dos prompt
(I use that because it supports colors).

Also, here is my script to read man pages:

-*- man.bat -*-
@sh d:/comp/djgpp/bin/man.sh %1 %2 %3 %4 %5 %6 %7 %8 %9
-*- end of man.bat -*-

-*- man.sh -*-
#!/bin/sh
# If it says can not find /bin/sh
# add SYSROOT=%DJDIR% in djgpp.env under [bash] section

# View manuals in $MANPATH[i]/*/$arg[j]*

_first_time=1

for _name in "$@"; do
  OLDIFS=$IFS
  IFS=';'
  for _path in "${MANPATH:-d:/comp/djgpp/info/catman}"; do
  IFS=$OLDIFS
    for _manpage in ${_path}/*/${_name}*; do
      if [ ${_first_time} = 0 ]; then
        echo Continue \(y/n\)\?
        read
        case ${REPLY} in
          n* | N* )
            exit 0 ;;
        esac
      fi
      ${MANPAGER:-less -s} "${_manpage}"
      _first_time=0
    done
  done
done
-*- end of man.sh -*-

I have placed all manpages under one directory
d:/comp/djgpp/info/catman/man*/manpages.

Probably you'll have to change this script,
according to your local setup.

Hope this helps.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019