unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: vincent.belaiche@gmail.com (Vincent Belaïche)
Cc: 27528@debbugs.gnu.org
Subject: bug#27528: 26.0.50; load-path initialisation is wrong when Emacs is launched in batch mode from a console inside another Emacs
Date: Thu, 29 Jun 2017 17:27:32 +0300	[thread overview]
Message-ID: <83lgoarhrf.fsf@gnu.org> (raw)
In-Reply-To: <848tkbkrw2.fsf@AIGLEROYAL> (vincent.belaiche@gmail.com)

> From: vincent.belaiche@gmail.com (Vincent Belaïche)
> Date: Thu, 29 Jun 2017 12:30:37 +0200
> Cc: Vincent Belaïche <vincent.belaiche@gmail.com>
> 
> The content of load-path-outside-other-emacs.txt is as follows (all the
> content is stdout):
> 
> --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8----
> (c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/vc c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/url c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/textmodes c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/progmodes c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/play c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/org c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/nxml c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/net c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/mh-e c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/mail c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/leim c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/language c:/Nos_Programmes/GNU/Emacs/share/emacs
 /26.0.50/lisp/international c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/image c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/gnus c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/eshell c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/erc c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/emulation c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/emacs-lisp c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/cedet c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/calendar c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/calc c:/Nos_Programmes/GNU/Emacs/share/emacs/26.0.50/lisp/obsolete)--8<----8<----8<----8<----8<--  end  -->8---->8---->8---->8---->8----
> 
> To me this output is correct.
> 
> 3) From a DOS shell inside emacs-25 instance, launched by `M-x shell', I
> launch the following command, that is equivalent to the first one:
> 
> --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8----
> %EMACS% --batch -Q --eval "(princ load-path)" ^
>    > %TEMP%\load-path-inside-emacs-dos.txt 2>&1 
> --8<----8<----8<----8<----8<--  end  -->8---->8---->8---->8---->8----
> 
> Then I get the following output:
> 
> --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8----
> (c:/Nos_Programmes/GNU/Emacs_build20170614/share/emacs/26.0.50/lisp)Warning: arch-dependent data dir 'c:/Nos_Programmes/GNU/Emacs_build20170614/libexec/emacs/26.0.50/i686-pc-mingw32/': Permission denied
> Warning: Lisp directory 'c:/Nos_Programmes/GNU/Emacs_build20170614/share/emacs/26.0.50/lisp': Invalid argument
> Warning: Could not find simple.el or simple.elc
> --8<----8<----8<----8<----8<--  end  -->8---->8---->8---->8---->8----
> 
> The text up to `)' is stdout, and the remainder is stderr. To me this
> output is wrong.

I think this is because Emacs 25 exports to the environment of the
subordinate Emacs its value of emacs_dir, which then points the
subordinate Emacs at the directory where Emacs 25 lives.

Emacs 26 fixed that problem, AFAIR, so I think if you do it the other
way around, i.e. invoke Emacs 25 from inside Emacs 26, you will see
the expected behavior.





  reply	other threads:[~2017-06-29 14:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 10:30 bug#27528: 26.0.50; load-path initialisation is wrong when Emacs is launched in batch mode from a console inside another Emacs Vincent Belaïche
2017-06-29 14:27 ` Eli Zaretskii [this message]
2017-06-30 12:45   ` Vincent Belaïche
2017-06-30 13:44     ` Eli Zaretskii

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=83lgoarhrf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=27528@debbugs.gnu.org \
    --cc=vincent.belaiche@gmail.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).