From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#4826: 23.1; woman-manpath, woman-man.conf-path on MS Windows with Cygwin Date: Fri, 30 Oct 2009 11:40:31 +0200 Message-ID: <83ws2ddxtc.fsf@gnu.org> References: <7D3F20CA4B154B88B024209D1F0EBAC7@us.oracle.com> <83zl7adjvr.fsf@gnu.org> <6DCEA76054584B5EA5108B79200472AC@us.oracle.com> Reply-To: Eli Zaretskii , 4826@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1256897478 20129 80.91.229.12 (30 Oct 2009 10:11:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 10:11:18 +0000 (UTC) Cc: 4826@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 11:11:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N3oR7-00078a-7c for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 11:10:25 +0100 Original-Received: from localhost ([127.0.0.1]:54259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3oR6-0000Nt-Ft for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 06:10:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3oOA-0007iX-I3 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 06:07:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3oO5-0007e5-78 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 06:07:21 -0400 Original-Received: from [199.232.76.173] (port=47280 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3oO4-0007dq-W5 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 06:07:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50774) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3oO4-0008Sk-Bm for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 06:07:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9UA7ELv006507; Fri, 30 Oct 2009 03:07:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9U9o5K6003432; Fri, 30 Oct 2009 02:50:05 -0700 Resent-Date: Fri, 30 Oct 2009 02:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 30 Oct 2009 09:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4826 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4826-submit@emacsbugs.donarmstrong.com id=B4826.12568956892759 (code B ref 4826); Fri, 30 Oct 2009 09:50:04 +0000 Original-Received: (at 4826) by emacsbugs.donarmstrong.com; 30 Oct 2009 09:41:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout21.012.net.il (mtaout21.012.net.il [80.179.55.169]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9U9fQaU002756 for <4826@emacsbugs.donarmstrong.com>; Fri, 30 Oct 2009 02:41:28 -0700 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KSB00M00LWISD00@a-mtaout21.012.net.il> for 4826@emacsbugs.donarmstrong.com; Fri, 30 Oct 2009 11:40:25 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.186.42]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KSB0005PMVC8G10@a-mtaout21.012.net.il>; Fri, 30 Oct 2009 11:40:25 +0200 (IST) In-reply-to: <6DCEA76054584B5EA5108B79200472AC@us.oracle.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 30 Oct 2009 06:07:21 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32288 Archived-At: > From: "Drew Adams" > Date: Thu, 29 Oct 2009 14:51:36 -0700 > > Where should Emacs look? How about looking to the most common UNIX simulation > for Windows? Look to the commonly used program that actually installs a UNIX > manual on Windows. Where would you have Emacs look for a model - at your > personal directory structure, which you mention as a counter-example? GnuWin32 is the most popular and most up-to-date and actively maintained collection of GNU utilities to native Windows, and its archives come with man pages. I think this qualifies as the ``commonly used program that actually installs a UNIX manual on Windows''. But GnuWin32 installs the man pages in the `man' sub-directory under wherever you unzip the archives. That doesn't help to resolve this problem, unfortunately. (As you might have guessed, I install them under `D:/usr'.) You suggest to cater to Cygwin first and foremost, but Cygwin defaults are better suited to the Cygwin build of Emacs (and I believe there, the current Unix defaults work out of the box anyway). Native Windows build of Emacs does not necessarily need to consider Cygwin as the best default. > This is already the approach we take for `woman-man.conf-path'. The default > value for that user option, on Windows (emacs -Q), is ("C:/cygwin/lib" > "C:/cygwin/etc"). Why do we use the Cygwin directories here? Because they > provide a reasonable default behavior on Windows. No, we use these directories for `woman-man.conf-path' because Cygwin is about the only Windows collection of tools that brings a port of `man' program which supports the `man' config files. Other ports of `man' don't have and don't support that file. > And there is already code in woman.el that converts UNIX directories to > Cygwin-Windows directories - see `woman-Cyg-to-Win' and > `woman-parse-colon-path'. That code tries to do a good job of figuring out which > Windows file names to use. Why shouldn't we do something similar for > `woman-manpath'? This is again Cygwin-specific, because Cygwin uses Unix-style path lists where directories are separated by colons rather than by semi-colons. Native Windows tools will always use semi-colon separated lists in MANPATH. To summarize, I think the solution I suggested is the best: > > If anything, I would suggest writing some code to look up the > > directories in the default value on every drive that is on a local > > hard disk, then perhaps do the same under /Cygwin on each drive. This should work both for you and for me, and probably for most anyone else. Unfortunately, I'm too busy these days to implement it. Volunteers are welcome.