emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Woman path : adding l10n man pages


From: Glenn Morris
Subject: Re: Woman path : adding l10n man pages
Date: Sun, 17 Feb 2008 18:15:42 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Juri Linkov wrote:

> (e.g. woman-manpath-add-locales can have the same code that
> currently sets woman-locale in mule-cmds.el).

The technical obstacle is that `locale', the fall-back value, isn't
available outside set-locale-environment (AFAICS).

> Also I don't understand why woman-locale is defcustom?  A defcustom
> option is supposed to be customized by the user, but the customized
> value of woman-locale always gets overridden at startup 

I had assumed that `set-locale-environment' runs before processing of
customization options, and by experiment this is the case.

LC_MESSAGES=en_US emacs --no-site-file
  -> woman-locale = en_US.ISO8859-1

Customize woman-locale to nil, save and exit

LC_MESSAGES=en_US emacs --no-site-file
  -> woman-locale = nil

> and on every call to `set-locale-environment'.

Arguably that is what should happen.

> Perhaps the code that uses the locale in woman.el should prefer the
> customized value if woman-locale is non-nil?

I see what you're saying and perhaps you're right. There could be a
general locale variable which woman should use, unless woman-locale is
non-nil, in which case it should be preferred.

But AFAICS there is no such general locale variable at present (no
Lisp variable, including system-messages-locale, seems to be set based
on LC_MESSAGES), so I'd have to add one, which would only be used
by... woman.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]