GNU bug report logs -
#9481
24.0.50; emacs_dir behavior too cumbersome for use within msys
Previous Next
Reported by: CRLF0710 <crlf0710 <at> gmail.com>
Date: Mon, 12 Sep 2011 08:08:01 UTC
Severity: normal
Found in version 24.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
---------- Forwarded message ----------
From: CRLF0710 <crlf0710 <at> gmail.com>
Date: 2011/9/12
Subject: Re: bug#9481: 24.0.50; emacs_dir behavior too cumbersome for
use within msys
To: Eli Zaretskii <eliz <at> gnu.org>
What i met is exactly the second case, however one of the environment
variables should be(according to the code):
set EMACSLOADPATH=X:/share/emacs/<version>/site-lisp;X:/share/emacs/<version>/../site-lisp;X:/share/emacs/<version>/lisp;X:/share/emacs/<version>/leim
And with the other two paths, I'll have to repeat the string
"X:/share/emacs/<version>" for six times, by hand. which is exactly
the emacs_dir variable.
"addpm.exe" won't help in this case because it will generate incorrect
path variables in the registry which will be overridden by the code i
mentioned above. At the same time it will overwrite old settings.
So this is a little inconvenient. If you think this case is not TOO
rare, maybe you can consider fixing it from the code?
2011/9/12 Eli Zaretskii <eliz <at> gnu.org>:
>> From: CRLF0710 <crlf0710 <at> gmail.com>
>> Date: Mon, 12 Sep 2011 16:01:44 +0800
>>
>> emacs_dir is a special environment variable on Win32. If Emacs.exe is
>> located in a "bin/" directory, it will be calculated, which is not a
>> desired behavior at all times.
>>
>> One might want to use it in msys and organize the emacs files in a way
>> similiar to that of *nix systems. To fulfill this, one might want to
>> set emacs_dir to the *:/share/emacs/<version>/ directory. This works
>> unless the emacs.exe is in the *:/bin directory(in fact any directory
>> which is not with the name "bin" or "i386").
>
> Sorry, I don't follow your use case and the problems you are
> experiencing due to the setting of emacs_dir. Please describe in more
> details:
>
> . in which directory you want to install the emacs.exe binary
> . why do you need to break the structure of the Emacs tree that is
> assumed by the current code
> . what does this all have to do with MSYS
>
> IOW, this installation should work:
>
> X:/share/emacs/<version>/bin/emacs.exe
> X:/share/emacs/<version>/lisp/
> X:/share/emacs/<version>/etc/
>
> This should also work:
>
> X:/usr/local/bin/emacs.exe
> X:/share/emacs/<version>/lisp/
> X:/share/emacs/<version>/etc/
> set EMACSLOADPATH=X:/share/emacs/<version>/lisp
> set EMACSDATA=X:/share/emacs/<version>/etc
> set EMACSDOC=X:/share/emacs/<version>/etc
>
> Both of the above should work without any need to change anything in
> the code.
>
> If you need some different configuration, please describe it and the
> rationale for using it rather than the supported ones.
>
> Thanks.
>
--
Wir müssen wissen; wir werden wissen!
CrLF.0710
This bug report was last modified 13 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.