* Why `woman'? Why not make `man' better?
@ 2006-12-21 7:12 Ronald
2006-12-21 13:10 ` Robert Thorpe
0 siblings, 1 reply; 2+ messages in thread
From: Ronald @ 2006-12-21 7:12 UTC (permalink / raw)
I think it's better to use one inside or outside Emacs.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Why `woman'? Why not make `man' better?
2006-12-21 7:12 Why `woman'? Why not make `man' better? Ronald
@ 2006-12-21 13:10 ` Robert Thorpe
0 siblings, 0 replies; 2+ messages in thread
From: Robert Thorpe @ 2006-12-21 13:10 UTC (permalink / raw)
Ronald wrote:
> I think it's better to use one inside or outside Emacs.
I find them both fairly much equivalent.
Some background...
In the 1950s(!) a typesetting system called roff was invented. At Bell
labs they wrote a version called troff for their systems that typeset
documents for their teleprinter machines in the 70s. They used that
version in Unix. They decided also to use it for the documentation
system for Unix, for that they made a version that outputted to a
terminal instead of to a printer, this is nroff. The man program uses
nroff.
Much later the GNU folks made clones of both troff and nroff. The
clone worked slightly differently, the groff program performed the
functions of both troff and nroff. But effectively it was just a
slightly better version of the original tools.
In Emacs what M-x man does is:-
* Calls man in the background
* man renders the pages using groff (by loading a library containing
groff)
* Pipes the result to sed to remove some formatting
* Pipes the result to awk to remove some more formatting
* Emacs displays the results.
This process is not particularly efficient, it uses lots of processes.
Also groff spends time creating markup that Emacs later removes with
sed because it doesn't need it. Generally M-x Man is fast enough for
small manpages, and if you have a fast machine. Some long pages though
take some time.
As a response to this WoMan was written. WoMan is an implementation of
nroff within Emacs. In fact it only implements enough of nroff to
render man pages. In the past the speed difference was quite noticable,
with the faster machines of today it's much less significant.
Some people have reported that WoMan gets some MacOSX man-pages wrong,
but I don't know about that.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-21 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-21 7:12 Why `woman'? Why not make `man' better? Ronald
2006-12-21 13:10 ` Robert Thorpe
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.