From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: dired-man can't deal with compressed pages Date: Sun, 22 Feb 2004 22:59:23 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4038-Sun22Feb2004225922+0200-eliz@elta.co.il> References: <87r7wolz6u.fsf@mail.jurta.org> <87d687vtgp.fsf@mail.jurta.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077483953 17959 80.91.224.253 (22 Feb 2004 21:05:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2004 21:05:53 +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 22:05:42 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 1Av0nG-0005Cn-00 for ; Sun, 22 Feb 2004 22:05:42 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Av0nF-0005P1-00 for ; Sun, 22 Feb 2004 22:05:41 +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 1Av0mS-0003Yw-Pi for emacs-devel@quimby.gnus.org; Sun, 22 Feb 2004 16:04:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Av0ig-0001jT-Mo for emacs-devel@gnu.org; Sun, 22 Feb 2004 16:00:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1Av0ht-0008Ve-IV for emacs-devel@gnu.org; Sun, 22 Feb 2004 16:00:41 -0500 Original-Received: from [192.114.186.21] (helo=necron.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1Av0hr-0008Hd-LS for emacs-devel@gnu.org; Sun, 22 Feb 2004 16:00:07 -0500 Original-Received: from zaretski (pns03-195-176.inter.net.il [80.230.195.176]) by necron.inter.net.il (MOS 3.4.4-GR) with ESMTP id ADP65536; Sun, 22 Feb 2004 10:58:38 GMT Original-To: Juri Linkov X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <87d687vtgp.fsf@mail.jurta.org> (message from Juri Linkov on Sun, 22 Feb 2004 21:03:02 +0200) 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:20119 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20119 > 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. > I think it's better not to duplicate what man already does. `man' doesn't do what we want except where it supports -l. > Users can construct the command line as they want. FWIW, I wouldn't give up on users without "man -l" so easily, but that's me. > 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? > > 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.