unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Frédéric Perrin" <frederic.perrin@resel.fr>
To: emacs-devel@gnu.org
Subject: Re: Woman path : adding l10n man pages
Date: Tue, 8 Jan 2008 15:14:46 +0100	[thread overview]
Message-ID: <20080108151446.7bcd3769@girafe.maisel.enst-bretagne.fr> (raw)
In-Reply-To: <20071231144731.6993df8e@girafe.maisel.enst-bretagne.fr>

Le Mon, 31 Dec 2007 14:47:31 +0100, Frédéric Perrin
<frederic.perrin@resel.fr> 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

  reply	other threads:[~2008-01-08 14:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-31 13:47 Woman path : adding l10n man pages Frédéric Perrin
2008-01-08 14:14 ` Frédéric Perrin [this message]
2008-01-08 15:38   ` Andreas Schwab
2008-01-09 15:35     ` Frédéric Perrin
2008-01-12 18:01     ` Frédéric Perrin
2008-02-04 19:58     ` Glenn Morris
2008-02-16 20:01       ` Frédéric Perrin
2008-02-16 22:13         ` Glenn Morris
2008-02-16 23:32           ` Juri Linkov
2008-02-17  0:18             ` Glenn Morris
2008-02-17  0:43               ` Juri Linkov
2008-02-17 23:15                 ` Glenn Morris
2008-02-17 23:35                   ` Juri Linkov
2008-02-18  0:02                     ` Glenn Morris
2008-02-18  0:41                       ` Juri Linkov
2008-02-18  1:14                         ` Miles Bader
2008-02-18 23:35                           ` Juri Linkov
2008-02-19  0:18                             ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080108151446.7bcd3769@girafe.maisel.enst-bretagne.fr \
    --to=frederic.perrin@resel.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).