[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Woman path : adding l10n man pages
From: |
Frédéric Perrin |
Subject: |
Re: Woman path : adding l10n man pages |
Date: |
Tue, 8 Jan 2008 15:14:46 +0100 |
Le Mon, 31 Dec 2007 14:47:31 +0100, Frédéric Perrin
<address@hidden> a écrit :
> Hello,
>
> Would it be possible to add to Woman's default manpath the local
> manpages ?
I manage to write a patch that does this, by adding /fr*/ to every
path found in manpath.config. Would it be possible to install it ?
Here it is :
$ diff woman.el.~1.16.4.29~ woman.el
596,600c596,609
< (add-to-list 'manpath
< (if (match-beginning 1)
< (match-string 1)
< (cons (match-string 2)
< (match-string 3)))))
---
> (if (match-beginning 1)
> (let ((new-path (match-string 1)))
> (add-to-list 'manpath new-path)
> ;; adding localized manpages
> (dolist
> (loc-path
> (file-expand-wildcards
> (format "%s/%s*"
> new-path
> (substring (getenv
> "LANG") 0 2)))) (add-to-list 'manpath
> loc-path)))
> (add-to-list 'manpath (cons (match-string 2)
> (match-string
> 3)))))
--
Fred
- Re: Woman path : adding l10n man pages,
Frédéric Perrin <=