unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 4826@emacsbugs.donarmstrong.com
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	[thread overview]
Message-ID: <83ws2ddxtc.fsf@gnu.org> (raw)
In-Reply-To: <6DCEA76054584B5EA5108B79200472AC@us.oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> 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.





      reply	other threads:[~2009-10-30  9:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-29  7:40 bug#4826: 23.1; woman-manpath, woman-man.conf-path on MS Windows with Cygwin Drew Adams
2009-10-29 20:29 ` Eli Zaretskii
2009-10-29 21:51   ` Drew Adams
2009-10-30  9:40     ` Eli Zaretskii [this message]

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=83ws2ddxtc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=4826@emacsbugs.donarmstrong.com \
    --cc=drew.adams@oracle.com \
    /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).