all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Mueller <felix@enqueue.eu>
To: emacs-devel@gnu.org
Subject: Re: NS do not set INFOPATH
Date: Sun, 31 May 2009 10:49:10 +0200	[thread overview]
Message-ID: <m2y6sd64jd.fsf@enqueue.eu> (raw)
In-Reply-To: <loom.20090516T231840-8@post.gmane.org> (Adrian Robert's message of "Sat, 16 May 2009 23:26:38 +0000 (UTC)")

Hi,

* Adrian Robert -- [2009-05-17] writes:
> Felix Mueller <felix <at> enqueue.eu> writes:
>
>> an easier alternative would be to simply add a colon to resourcePath
>> in nsterm.m (~ line 418). This way, contents of INFOPATH and
>> Info-default-directory-list are merged when invoking info.
>
> I'm less familiar with this area than you, but it seems strange that
> emacs expects a user env setting for INFOPATH to have a path-separator
> already appended to it.  Shouldn't the code that  as you say merges
> INFOPATH and Info-default-directory-list take care of this?

I think, this is a deliberate choice (see texinfo manual): either merge
or overwrite.

>> I would typically not expect most of the programs I use to set an
>> environment variable by themselves, and I spent a couple of minutes
>> figuring out what was happening and checking for other places that
>> might be responsible for the INFOPATH environment variable. That's why
>> I wrote the email
>
> So it seems the problem is not with INFOPATH per se, but the whole
> approach used by ns-init-paths.  Would it be possible to use the
> alternative you posted for all of these other variables as well, or
> would they be adjusted too late?

I tried looking into this, but I am simply not familiar enough with
Emacs' startup. It seems to me, that this mechanism would not work
without additional, heavier changes to nsterm.m, unless you are ruling
out users moving their application bundle (bad idea, in my
opinion). While I do consider setting paths within a program via
environment variables "unexpected", the other variables have not been
problematic for me, so far. As far as I can tell, w32 uses a similar
approach (w32.c init_environment), and only excludes INFOPATH.

Thanks!

-- 
Felix Mueller
felix@enqueue.eu




      reply	other threads:[~2009-05-31  8:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-03 13:47 NS do not set INFOPATH Felix Mueller
2009-05-16  5:08 ` Adrian Robert
2009-05-16  8:15   ` Leo
2009-05-16 11:06   ` Felix Mueller
2009-05-16 23:26     ` Adrian Robert
2009-05-31  8:49       ` Felix Mueller [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

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

  git send-email \
    --in-reply-to=m2y6sd64jd.fsf@enqueue.eu \
    --to=felix@enqueue.eu \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.