Le Sun, 13 May 2007 01:23:27 +0200,
Tomasz Melcer <[EMAIL PROTECTED]> a écrit :

> Dnia Sun, 13 May 2007 01:10:12 +0200
> Dominique Michel <[EMAIL PROTECTED]> napisał(a):
> 
> > I committed a few more patches: mplayer support in all the recipes,
> > Play dvd entry in mplayer menu, System documentation in the devel
> > menu. This last patch add a /usr/share/doc browser that launch the
> > docs using less in a terminal.
> > 
> > I don't know for the other distribution, but on gentoo less support
> > all the formats as gz or bz2 currently used for such documentations.
> > It have even basic html support.
> Not sure of that, but more portable way is to call `zless` on gzipped
> files. `less` can open gzip files only if proper environment variable
> is set (according to `zless` manual).
> 

According to zless manpage, LESSOPEN must be 'gzip -cdfq -- %s' for less to
work directly with gz files. But it say nothing about bz2 files. (You can have
both in portage depending to the date where you installed the package. Recently
installed -> bz2, old installation -> gz.) The funny part on gentoo is at
LESSOPEN='|lesspipe.sh %s' lesspipe.sh is a less preprocessor made by gentoo.

This file is join, so maybe at we can distribute it in the addons directory.

man zless is also talking about the env var LESSMETACHARS. It doesn't exist on
gentoo. LESS='-R -M --shift 5'

zless support only gz files and not bz2 files. Another aspect is at simple
things generally are working better, so i think at is better to fix this at
less level as at fvwm-crystal level. If less that come with your distribution
cannot let you to view the files installed by your distribution
in /usr/share/doc, fill a bug report to your distribution. It is not
fvwm-crystal fault is less that come with some distributions is almost useless
and can even not visualize the distribution documentation.

It is what I think. But if you think at it is better to fix it at fvwm-crystal
level as to let the distribution maintainers do their job, your are free to fix
it.

Ciao,
Dominique

Attachment: lesspipe.sh
Description: application/shellscript

_______________________________________________
fvwm-crystal-users mailing list
fvwm-crystal-users@gna.org
https://mail.gna.org/listinfo/fvwm-crystal-users

Reply via email to