From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [feature/internal-msys] thoughts of a more function windows package Date: Thu, 21 Jan 2021 22:17:03 +0200 Message-ID: <83wnw659kw.fsf@gnu.org> References: <87pn2dq3xv.fsf@russet.org.uk> <83ft39hnk1.fsf@gnu.org> <87h7nppzjy.fsf@russet.org.uk> <838s90hhb6.fsf@gnu.org> <87zh1gircl.fsf@russet.org.uk> <83turofw8r.fsf@gnu.org> <87sg6v76fd.fsf_-_@russet.org.uk> <83czxy7530.fsf@gnu.org> <87zh12grzh.fsf@russet.org.uk> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39008"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 21 21:18:28 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 1l2gPU-000A3D-PK for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Jan 2021 21:18:28 +0100 Original-Received: from localhost ([::1]:41802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2gPT-0004Xk-Qk for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Jan 2021 15:18:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2gOD-000343-OD for emacs-devel@gnu.org; Thu, 21 Jan 2021 15:17:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49361) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2gOD-0002QT-E8; Thu, 21 Jan 2021 15:17:09 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1266 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l2gOC-0006ae-7W; Thu, 21 Jan 2021 15:17:08 -0500 In-Reply-To: <87zh12grzh.fsf@russet.org.uk> (message from Phillip Lord on Thu, 21 Jan 2021 16:44:02 +0000) 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:263252 Archived-At: > From: Phillip Lord > Cc: emacs-devel@gnu.org > Date: Thu, 21 Jan 2021 16:44:02 +0000 > > > Could you please elaborate on how will this work for users? E.g., how > > about describing the steps a user who installs Emacs should do to > > install these additions? I don't think I have a clear picture of what > > you intend to do, and the files you committed are just the starting > > point, so they don't answer this question. > > Considering just the .exe installer, at the end of the installation > process, we would run Emacs with menu bar, scroll bar and everything > switch off and run the command "w32-msys-internal-install-dialog". "We" being the installation process? IOW, this will start automatically at the end of the normal installation? > Emacs would say "do you want do install a handy collection of > tools". User says "y", then Emacs downloads the latest msys2-date.xz, > then unpacks it with xz. Emacs will run msys2.exe to initialize > (hopefully without poping up windows if this will work). Then Emacs will > run pacman to update and install. The user will see Emacs saying > > Would you like to install msys, and a handy set of tools (Y/n) > Installing msys...done > Updating msys...done > Installing git...done First, why Git? This is a "normal" user, not an Emacs developer, right? Git is a huge package (and comes with Vim on top of that), so maybe reconsider that part. Next, by "msys" you mean all those non-native programs that depend on msys-1.0.dll? That's again meant for MinGW developers, not "normal" users. And finally, which packages will pacman install? are you going to provide some list of packages, and if so, what will be there? (Btw, pacman can ask questions and prompt the user for confirmation, but the way you invoke it in w32-msys-run doesn't seem to be prepared for such interaction?) One other aspect that bothers me is that if the user already has some parts of MSYS/MinGW64 installed, they will now have two places with DLLs, which is a step towards "DLL hell". > We might create "internal-msys" package on ELPA which > contains a standard set of packages and Emacs fixes to make it work, so > it would be freely updatable. At which point the w32-msys-install > command would install the ELPA package before doing anything else. Is it really possible for us to distribute MSYS, given its license? > > Btw, I don't think I understand why you insist on using 'concat' to > > generate files names from 2 components: that's what expand-file-name > > is for, and it does that better. > > Because in my own code, I tend to use f.el and I have got used to having > a clean, consistent and comprehensive API, so I tend to forget the > underlying Emacs primitives. Then I think f.el has a big problem. > > One other not about the code you committed is that modifying PATH from > > within Emacs is not generally a good idea, it has some subtleties. > > Any alternative that achieves the same thing? I think the only good idea here is to tell the user to amend PATH by adding such-and-such directories to it. I don't like installers that futz with my PATH, and would hate it if Emacs did that to others. It's very easy to get that wrong, especially on Windows.