From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: PATH, exxec-path and early-init file [Windows] Date: Wed, 12 Aug 2020 01:05:30 +0200 (CEST) Message-ID: <774805960.449268.1597187130831@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10125"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 12 01:06:37 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5dLm-0002XW-GD for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Aug 2020 01:06:34 +0200 Original-Received: from localhost ([::1]:39354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5dLl-0007Og-02 for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Aug 2020 19:06:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5dL2-0006sl-Ub for emacs-devel@gnu.org; Tue, 11 Aug 2020 19:05:50 -0400 Original-Received: from smtp-32-i2.italiaonline.it ([213.209.12.32]:57871 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5dKs-0005kl-Kc for emacs-devel@gnu.org; Tue, 11 Aug 2020 19:05:48 -0400 Original-Received: from oxapps-30-131.iol.local ([10.101.8.177]) by smtp-32.iol.local with ESMTPA id 5dKkkvDIfDvSy5dKkksJ4H; Wed, 12 Aug 2020 01:05:31 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1597187131; bh=oH6Um1+cp2B1AuiH3KvDN94Gg3EoTeulqCt4maZdq5c=; h=From; b=frTiM6f6+Qte2/enSaRdYeYBjux7g6G9395HdLuuCD/BxY7wReOs0zOAXE+5xQVLs C2cJOnpYMrKwY8/Lq18V2IHXdCZNfu/Xhnsj9QfO2km/T1xMm0YkuNKM2fx65y5mzk iY7ZhTzIuwkgay5J/5I7fuhqT6dt6aUVmTBp+C7p0hQpHUhU07etN+WOo/Uz/hgriy 3RzNaKjM55j2OSS9yB4uohUEDMFw7a+KNFyXEQlwEZXXLgbINQBYwv1KjZDpwCHwGq cLLWBhd+B+KAckyijaNDd9ft4MBEPDOi72Ov7p61Sfr/47FKah3ZxxKI5CNgeR+/T8 QsZx+9JyBs6Ag== X-CNFS-Analysis: v=2.3 cv=b9DMHeOx c=1 sm=1 tr=0 a=hNqzLy5S7+nyYAz7qMsu+Q==:117 a=DfOKazsEdrAA:10 a=IkcTkHD0fZMA:10 a=IHoHnOC3rT4A:10 a=Ye9q-bpsAAAA:8 a=_1ioAqpC-cFJS4RNK88A:9 a=QEXdDO2ut3YA:10 X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.3-Rev13 X-Originating-IP: 79.22.239.239 X-Originating-Client: open-xchange-appsuite x-libjamsun: KyJVAgduyb1rLDo+mNiQmrnjldJz9H25 x-libjamv: zzIAxjl3mYk= X-CMAE-Envelope: MS4wfEXc6Jy4FAB8Qm7qct1QNwttd0hI4heODp1oPBMlChr+TT+KthT5q9F1zZUoKXd8r3Cp/JWTYIj4wfkFFToUDZGqtd50tdnRok86Jmcj1BqD9oGlGgM5 yJsGlFLGWHBjzijkFNAVv7egtnq7cPcXzEt+wTbGON39gNvbnxX2yi6AnuV80ylNLUPkZMUGh0ORVw== Received-SPF: pass client-ip=213.209.12.32; envelope-from=angelo.g0@libero.it; helo=libero.it X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/11 19:05:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253649 Archived-At: The following regards the build of EMACS MASTER on Windows with MSYS2/MINGW64, whose tree is installed in C:\Emacs. Trying to not add "C:/msys64/mingw64/bin" at level of Windows PATH, I added this to the init.el file (from https://emacs.stackexchange.com/questions/27326/gui-emacs-sets-the-exec-path-only-from-windows-environment-variable-but-not-from): (add-to-list 'exec-path "C:/msys64/mingw64/bin") (setenv "PATH" (mapconcat #'identity exec-path path-separator)) This almost works in the sense that I lose a few graphics elements (the tool bar icons are grayed, those of speed bar are completely lost etc.). So I moved those line to an early-init.el file. Indeed the Emacs manual says: "...early-init.el. This file is loaded before the package system and GUI is initialized..." "We do not recommend that you move into early-init.el customizations that can be left in the normal init files. That is because the early init file is read before the GUI is initialized..." But the result is the same. In short without a correct Windows PATH it does not find all the libraries it needs. It seems that what stated by the manual is a bit confusing: if early-init.el is loaded before GUI initialization, why shouldn't it work? In any case is there a way to avoid to modify Windows PATH?