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: msys2 build path problems + copy-paste english results in chinese characters Date: Thu, 2 Dec 2021 15:21:52 +0100 (CET) Message-ID: <772483541.66550.1638454912514@mail1.libero.it> References: <1828600041.64054.1638454169068@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="3141"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" , "ofv@wanadoo.es" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 02 15:22:32 2021 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 1msmym-0000ZL-NI for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 15:22:32 +0100 Original-Received: from localhost ([::1]:58722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msmyk-0000Vq-Nu for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Dec 2021 09:22:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msmyD-0008HC-Vf for emacs-devel@gnu.org; Thu, 02 Dec 2021 09:21:57 -0500 Original-Received: from smtp-18-i2.italiaonline.it ([213.209.12.18]:47514 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 1msmyB-0001Q3-2K for emacs-devel@gnu.org; Thu, 02 Dec 2021 09:21:57 -0500 Original-Received: from oxapps-18-104.iol.local ([10.101.8.114]) by smtp-18.iol.local with ESMTPA id smy8mHnTTkTmXsmy8mMFJ5; Thu, 02 Dec 2021 15:21:52 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1638454912; bh=7AYnaUSgrSZwqucr1LX+U+xC/hbkVtw2fsHTmWputfs=; h=From; b=FIa5q+n5SjBlUXKs+csp39zb1cLr8ntq6QCd1wp84LG0hT4EVZuI9wjfvitx0evMY F/PPJa5uaKfAC8bUROYtTE/NpGYVdKhZwFwuvmp8/h0uSUlnUcHjh5i6XQAccK7XGO PXVGA+fCUsi8MvWJX3VGihxQi5R6x0pdUAjyFEJSW3ssXkNwwIUt+qswD72QXtKtMG pYGaVzk/s3eNK7G/CqzV2jnKRIBIdDLFsB/Vt/+y1g/xra3mFxqKqVN+staFlseapv 1vXvfpzNoer75OJqk0hRJl8ArkjWpERXyCoSrbnpl/2a5dNrurlFLDUMSxvdvvuFe9 G8Vt9bMJf5Dyg== X-CNFS-Analysis: v=2.4 cv=PMfKRdmC c=1 sm=1 tr=0 ts=61a8d680 cx=a_exe a=/Ybp6/jOcaliI5wkn0kplg==:117 a=2Fg0qr12-zQA:10 a=IkcTkHD0fZMA:10 a=3GLR1-XzZKwA:10 a=uWjQyonN3I8A:10 a=5RBUXly4aRsE71DSTQoA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <1828600041.64054.1638454169068@mail1.libero.it> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.3-Rev35 X-Originating-IP: 87.16.209.6 X-Originating-Client: open-xchange-appsuite x-libjamsun: r/bbECymNRjcCedx9Yab4GvLDw8vqtQJ x-libjamv: tgIHJ7FwAVE= X-CMAE-Envelope: MS4xfNk1fdU1ehDfrkNQmjVEpxL7JpEPyksJVFeSvO2xDcjfmQC4QkuXvdavR/WPLbu1sZHgv+3iJpiSs5MZ37X6PRHPD6bxRI0DwqK/TNSJGXAT6t887Zg0 zoewHJ33mZksiVm0r3Xru/KFBGnmMjtzRVn3QZkK6tr8PxK51mzE67dqIEWETb0BxG85LRicfcJjs1eWIHjmuabwlqXW2Crrdqky5chEIXa7zaoqtcrRI6kg Received-SPF: pass client-ip=213.209.12.18; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.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=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280753 Archived-At: Oops, missed subject in replay.. > Il 02/12/2021 15:09 Angelo Graziosi ha scritto: > > > > Try this in your .emacs : > > > > (let ((dir (file-name-directory (car command-line-args)))) > > (setenv "PATH" (concat (getenv "PATH") path-separator dir)) > > (setq exec-path (append exec-path (list dir)))) > > I tried this > > (let ((dir (file-name-directory (car command-line-args)))) > (setenv "PATH" (concat (getenv "PATH") path-separator dir)) > (setq exec-path (append exec-path '("C:/msys64/mingw64/bin" "C:/msys64/usr/bin")))) > > but it does not seem to work. > > First, I had to change it this way > > - ...setq exec-path (append exec-path (list dir)... > + ...setq exec-path (append exec-path '(list dir)... > > otherwise Emacs won't start. > > Second, with that change only '...\Emacs\bin' is added to the PATH, not the MSYS2/MINGW64 paths... > > Instead of change the init file, it is some year I use a Windows .lnk with > > Target: C:\Windows\System32\cmd.exe /c "SET path=C:\msys64\mingw64\bin;%path%&& SET PRELOAD_WINSOCK=1&& START /D ^"C:\LocalApps\Emacs\bin^" runemacs.exe" > > > Ciao, > Angelo.