[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dired-man can't deal with compressed pages

From: Juri Linkov
Subject: dired-man can't deal with compressed pages
Date: Sun, 22 Feb 2004 02:45:13 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

> From: Dan Jacobson <address@hidden>
> To: address@hidden
> Date: Sat, 13 Sep 2003 06:45:22 +0800
> dired-man can't deal with resolvconf.8.gz etc. compressed man pages.

I think this problem can be fixed by invoking man with the -l option
and letting it to handle man files properly instead of calling the
current "nroff -man -h", i.e. to decompress the manual page files,
to format the nroff source more correctly: preprocess it thought tbl,
use correct switches, etc. all what man program does.

2004-02-22  Juri Linkov  <address@hidden>

        * dired-x.el (dired-man): Replace manual-program by Man-switches.

Index: emacs/lisp/dired-x.el
RCS file: /cvsroot/emacs/emacs/lisp/dired-x.el,v
retrieving revision 1.52
diff -c -r1.52 dired-x.el
*** emacs/lisp/dired-x.el       28 Sep 2003 09:03:45 -0000      1.52
--- emacs/lisp/dired-x.el       22 Feb 2004 00:41:04 -0000
*** 1279,1285 ****
    (require 'man)
    (let ((file (dired-get-filename))
!         (manual-program "nroff -man -h"))
      (Man-getpage-in-background file)))
  ;;; Run Info on files.
--- 1279,1285 ----
    (require 'man)
    (let ((file (dired-get-filename))
!         (Man-switches (concat Man-switches " -l")))
      (Man-getpage-in-background file)))
  ;;; Run Info on files.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]