unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* dired-man can't deal with compressed pages
@ 2004-02-22  0:45 Juri Linkov
  2004-02-22  6:31 ` Eli Zaretskii
  2004-02-23 23:36 ` Juri Linkov
  0 siblings, 2 replies; 17+ messages in thread
From: Juri Linkov @ 2004-02-22  0:45 UTC (permalink / raw)
  Cc: Dan Jacobson

> From: Dan Jacobson <jidanni@jidanni.org>
> To: bug-gnu-emacs@gnu.org
> 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  <juri@jurta.org>

	* 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 ****
    (interactive)
    (require 'man)
    (let ((file (dired-get-filename))
!         (manual-program "nroff -man -h"))
      (Man-getpage-in-background file)))
  
  ;;; Run Info on files.
--- 1279,1285 ----
    (interactive)
    (require 'man)
    (let ((file (dired-get-filename))
!         (Man-switches (concat Man-switches " -l")))
      (Man-getpage-in-background file)))
  
  ;;; Run Info on files.

-- 
http://www.jurta.org/emacs/

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2004-02-24 22:03 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22  0:45 dired-man can't deal with compressed pages Juri Linkov
2004-02-22  6:31 ` Eli Zaretskii
2004-02-22 19:03   ` Juri Linkov
2004-02-22 20:59     ` Eli Zaretskii
2004-02-22 21:59       ` Juri Linkov
2004-02-23  6:09         ` Eli Zaretskii
2004-02-23 19:07           ` Kevin Rodgers
2004-02-23 19:51             ` Eli Zaretskii
2004-02-23  3:42       ` Juri Linkov
2004-02-23  6:12         ` Eli Zaretskii
2004-02-23 18:57         ` Richard Stallman
2004-02-23 15:28       ` Stefan Monnier
2004-02-23 18:57         ` Eli Zaretskii
2004-02-23 23:36 ` Juri Linkov
2004-02-24  6:21   ` Eli Zaretskii
2004-02-24 22:03     ` Juri Linkov
2004-02-24 19:26   ` Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).