From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Workshop to save M$ Windows users - help needed Date: Wed, 6 Oct 2021 01:50:00 -0300 Message-ID: References: <837deua1sd.fsf@gnu.org> <834k9y9ysj.fsf@gnu.org> <87r1d151x1.fsf@logand.com> <87h7dwy9qh.fsf@logand.com> <87ee90y76p.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24735"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 06 06:51:28 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mXyts-0006EN-5I for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 06:51:28 +0200 Original-Received: from localhost ([::1]:45654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXytq-0003vU-IV for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 00:51:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXysm-0003vI-1Q for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:50:21 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:41968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXysh-0007rI-0D for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 00:50:19 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id p1so1287218pfh.8 for ; Tue, 05 Oct 2021 21:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lzfRGFPE889wk2/LdwwyFBCWOVtvjs3cZKoZCYXRE+k=; b=WwrfHbDtBGDN7JDEzYhkt9PzAh1MU4Fi+aPsrU6iRuEUltidae9gP/o73PQFQWWKFs PabdEmcmqxdQJMGKYLLtVqF+bzktJDQm2ymEKWi2d04O9xnJqA7pQb4I6ygnbsQgUW3h 8NSB2RGxH+/kYapRgix+hZ9zEBe/zuLUAjsqq8Vn58y37hwtHg8a0kWJCUoQPIwJb59C st2vFHRSGPm5QxoBCnBW7gE8E4V/LXFh4GrdIICscXSxSQpzketHWDHm4wKjNsk9jwTk qwdU056GD2pcN/1DhJbMkiza/g0uGgh7oDpuZ+wCjOfoQTdx8MbA4OM/8DpagsCH0jIV qRSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lzfRGFPE889wk2/LdwwyFBCWOVtvjs3cZKoZCYXRE+k=; b=McXSSFLsO3DVIHtVMFnJvn/w3ROIFLa5Zv6CJE9zBFlCTrwIypfkfIZDuLdb/R1U/J H8VwgwPHVmkoHEMB9/uVSWSEACGX/cXKYwDvfLDpHxO/Kbt7XEvf6bE23/Zi2gUA9BtY ANY1dhsw5s4jwdleMfvWPsqNGs/O89k66YmGGZcSVo2j8bySvtl6vi/CVkDDSZ5/Rf3V SnCCjkX9qNJXU+AvvVOIYwKoEum5nMlVT/sp5CNwd/l+0b5WUG/owXCeD/sK/Zm6bvMT ce9uzLCxMx1/13MVs6E1VOVUQ+fYyAm8+/F5WGA7+2QpJoHShyIPAWgc/7eQl2Ro5GKx 8hRQ== X-Gm-Message-State: AOAM532gIwvXpFpbszTh3dE6tKKFIrtNlMrHIWk0mH0J9W1y402AfouI piumtPV2Zk9lozf1PevLVQPg1XOM2uGa9se1kwZL94CUQLg= X-Google-Smtp-Source: ABdhPJxR/p3xn41u7m6zLTOdjg33xanOLO15WOLXYIDqIibxF1YTPLxn5qQrbYzyq/G7dKHZoZAyN7tB1hypSLkPXqA= X-Received: by 2002:aa7:88cc:0:b0:431:c124:52ba with SMTP id k12-20020aa788cc000000b00431c12452bamr34090713pff.63.1633495812993; Tue, 05 Oct 2021 21:50:12 -0700 (PDT) In-Reply-To: <87ee90y76p.fsf@logand.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=eduardoochs@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133596 Archived-At: On Mon, 4 Oct 2021 at 15:29, Tomas Hlavaty wrote: > > url-retrieve-synchronously2 had a bug > > this works and should dispose the nework buffer properly: Hi Tomas (and all), Here are some updates on the problem of using eev to install wget.exe on Windows machines. Remember that I have good reasons to suppose the most of the people who will participate in my workshop have never used terminals and don't even know well enough what is a directory. 1. PowerShell =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Someone told me to take a look at PowerShell. Apparently it has a built-in wget, and it is somewhat multi-platform-ish. I installed it on my Debian box. Its main executable is called pwsh. Pwsh doesn't run well on comint buffers - it says that the terminal is not powerful enough. It works well on vterm and ansi-term, and so I added support for ansi-term to eev, and I defined a function eepitch-pwsh that uses ansi-term. I tested its built-in wget on my Debian, and it works nice. I found a friend - who uses Windows but who has never used terminals - who volunteered to help with the tests. It turns out that on Windows the PowerShell executable is called powershell, not pwsh, and it doesn't run well in an ansi-term, but it runs in comint. We tried the scripts that I prepared and they did't work - the wget built-in in my friend's PowerShell behaved in a way totally different from what I expected, and when we used it to download a 400KB file it saved to disk something that had 2MB. Then my friend found this: https://superuser.com/questions/362152/native-alternative-to-wget-in-window= s-powershell/758510#758510 And then we decided that using PowerShell would be bad karma, and we gave up. 2. url-retrieve-synchronously =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D My friend was having a lot of fun executing sexps, so I decided to use `url-retrieve-synchronously' to implement a kind of very primitive fake wget in elisp - obs: I haven't tried your code from https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00073.html https://lists.gnu.org/archive/html/help-gnu-emacs/2021-10/msg00075.html yet, but I will soon! - and I got this: http://angg.twu.net/eev-current/eev-plinks.el#find-urlretrieve (find-wget-elisp "http://angg.twu.net/eev-current/eev-plinks.el" "ee-very-primitive-wget0") 3. wget.exe =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D There's a wget for Windows here: http://gnuwin32.sourceforge.net/packages/wget.htm http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip =E2=80=A2 (eepitch-shell) =E2=80=A2 (eepitch-kill) =E2=80=A2 (eepitch-shell) rm -Rv /tmp/wget/ mkdir /tmp/wget/ cd /tmp/wget/ wget http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip unzip wget-1.11.4-1-bin.zip file bin/wget.exe # bin/wget.exe: PE32 executable (console) Intel 80386 (stripped to # external PDB), for MS Windows I unpacked the .zip in my machine, uploaded the wget.exe to a temporary place in my homepage, and my friend downloaded it with my function `ee-very-primitive-wget0'. The download worked - the file was not corrupted, it seems - but when he tried to execute that wget.exe he got a message saying that that file was not compatible with the version of Windows that we was using - which is "Microsoft Windows 11 Home Single Language". That's what we did today. More news soon... Cheers, Eduardo Ochs http://angg.twu.net/#eev