From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: dired-man can't deal with compressed pages Date: Sun, 22 Feb 2004 23:59:29 +0200 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8765dyzshr.fsf@mail.jurta.org> References: <87r7wolz6u.fsf@mail.jurta.org> <87d687vtgp.fsf@mail.jurta.org> <4038-Sun22Feb2004225922+0200-eliz@elta.co.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077489079 15630 80.91.224.253 (22 Feb 2004 22:31:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2004 22:31:19 +0000 (UTC) Cc: jidanni@jidanni.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Feb 22 23:31:13 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Av281-0000ln-00 for ; Sun, 22 Feb 2004 23:31:13 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Av280-0007rK-00 for ; Sun, 22 Feb 2004 23:31:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Av245-0003Kn-KG for emacs-devel@quimby.gnus.org; Sun, 22 Feb 2004 17:27:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Av239-0001ju-09 for emacs-devel@gnu.org; Sun, 22 Feb 2004 17:26:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Av22J-0000Ih-3d for emacs-devel@gnu.org; Sun, 22 Feb 2004 17:25:51 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1Av22H-0000Fj-9Q for emacs-devel@gnu.org; Sun, 22 Feb 2004 17:25:17 -0500 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by mx20.gnu.org with esmtp (Exim 4.30) id 1Av1dR-00052d-55 for emacs-devel@gnu.org; Sun, 22 Feb 2004 16:59:37 -0500 Original-Received: from mail.jurta.org (80-235-33-72-dsl.mus.estpak.ee [80.235.33.72]) by spork.dreamhost.com (Postfix) with ESMTP id 0488D11DC2D; Sun, 22 Feb 2004 13:59:31 -0800 (PST) Original-To: Eli Zaretskii User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20120 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20120 "Eli Zaretskii" writes: >> From: Juri Linkov >> Date: Sun, 22 Feb 2004 21:03:02 +0200 >> >> I agree that this will not work for man who don't have the -l option. >> On the other hand, man with the -l option should take the advantage of >> this option. So I think a good solution is to let users to choose >> the command line they want, like in the patch below. > > The canonical Emacs solution to such situations is to try running > `man' with the -l switch and see if it barfs. Seeing how man barfs will not help to construct an alternative command line. >> I think it's better not to duplicate what man already does. > > `man' doesn't do what we want except where it supports -l. This is why I suggested that the user should be able to specify how to uncompress compressed man files (guznip, uncompress, etc.) >> Blindly running the file through all preprocessors will fail if some >> preprocessor is not installed. > > ??? Is that even possible? I thought all the preprocessors we need > (eqn, tbl, refer, and soelim) are always installed as part of the > standard Troff/Groff/man packages. How else would users be able to > format the pages they have? Could you assure that all these preprocessors are available for all man versions? >> > Yet another possible solution is to use functions from woman.el, which >> > IIRC has a special command to format a single file. However, I don't >> > remember how well it supports various preprocessors. >> >> There is already a dired binding to `W' key in woman.el. >> So users desiring a woman can get her with this key. > > Then perhaps dired-x should suggest using it on systems which don't > support "man -l", if the file at point requires that. That would be good. -- http://www.jurta.org/emacs/