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: Re: PATH, exxec-path and early-init file [Windows] Date: Wed, 12 Aug 2020 14:54:21 +0200 (CEST) Message-ID: <956899396.433746.1597236861815@mail1.libero.it> References: <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="40736"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Richard Copley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 12 14:55:25 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 1k5qHt-000AUE-Ba for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Aug 2020 14:55:25 +0200 Original-Received: from localhost ([::1]:52112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5qHs-000106-AR for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Aug 2020 08:55:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5qGw-0008T0-2K for emacs-devel@gnu.org; Wed, 12 Aug 2020 08:54:26 -0400 Original-Received: from smtp-16-i2.italiaonline.it ([213.209.12.16]:55546 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 1k5qGu-00074Z-1h for emacs-devel@gnu.org; Wed, 12 Aug 2020 08:54:25 -0400 Original-Received: from oxapps-17-101.iol.local ([10.101.8.111]) by smtp-16.iol.local with ESMTPA id 5qGrkg8iKWbdv5qGrkkTzR; Wed, 12 Aug 2020 14:54:22 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1597236862; bh=iPXmyXjb1Vi9OJrLTOCR270J/Pdlr/5PNvlDkV79DmY=; h=From; b=SFL6xAdSDvbEQf9Yi/mXHH/4uQoql/9fhWm0c1/0R3gf1j5Javn4uhW30ujgFWr06 A/nYqcI97jJrWh0Sd/hYRo9XnRxUmr+7ViuPZ/A9E2VKKdvmCyDSzPPI+bj9wcCvnK Z+rMoFxtnkt7kF7l8fRgMw2ZLeGOpFTfUzruXkPgybrS7V93W5S2BXZhud+UcKPYvx i5rsr75W0NlmxSTlEHTJ0z1OhZHnJ/0vhcABV32mUpBZFogl2p/Ybolek45MkqSDho on/qyuH0vi4697bzzil2C74Xy0FjQjmmY4a6Xo4O4czyk0hjxbmzezGCPJiFn3ncVW AJFJm3ywitMJA== X-CNFS-Analysis: v=2.3 cv=YpxxuLQX c=1 sm=1 tr=0 a=bYEtR7erEwu88EdYyiKxXA==:117 a=DfOKazsEdrAA:10 a=IkcTkHD0fZMA:10 a=IHoHnOC3rT4A:10 a=2NqplvioKSCOozaFFxcA:9 a=QEXdDO2ut3YA:10 In-Reply-To: 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: 0LBltAPah237megYByOaUq3l90frReUU x-libjamv: GPbn3V3bQT0= X-CMAE-Envelope: MS4wfP7FDPcYSjT73eEn6sAtvuLFQ3rAZR9OLvbgDpEQcxLgGjuIf0qFTiTT+d93feAd2v+9e2l54nkW5O5qt/bFHsoNddko9GrcXzK58eFAo7M03P9gq4Ht Enb0PZqQppUh2bYTgJHeUCw5MP9B3mHt9sg+1d7D4fXfvywqTDpzx//F22FA0bHMK0hxtOS+hYyApBWQakpl263PxUf56BhsLpw= Received-SPF: pass client-ip=213.209.12.16; envelope-from=angelo.g0@libero.it; helo=libero.it X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/12 08:54:22 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:253683 Archived-At: > Il 12/08/2020 14:45 Richard Copley ha scritto: > > > On Wed, 12 Aug 2020 at 00:06, Angelo Graziosi wrote: > > [...] > > In any case is there a way to avoid to modify Windows PATH? > > One way is to install Emacs to c:\msys64\mingw64\bin, by running 'make > install'. The default library search path includes the invocation > directory. Installing comes with its own disadvantages. > > Another is to call SetDllDirectory (and optionally > SetDefaultDllDirectories) from "main". I don't know how well that > works out. ..but why early-init.el does not work as one expect? Anyway, it seem that this solves my problem: I create a Windows link (.lnk) whose target is C:\msys64\usr\bin\env.exe PATH="/mingw64/bin:$PATH" HOME=/c/Users/utente/AppData/Roaming /c/Emacs/bin/runemacs.exe