all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Saulius Menkevičius" <saulius.menkevicius@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Alan Third <alan@idiocy.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: extracting a zip archive via elisp (with no external executables)
Date: Sun, 9 Jul 2017 22:26:45 +0300	[thread overview]
Message-ID: <7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com> (raw)
In-Reply-To: <CAFyQvY1++OgqhX8VBYKh9zaFWbrG0DOoSB_NCpgQVja6hdiz4w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]

> 
> Am 09.07.2017 um 22:15 schrieb Kaushal Modi <kaushal.modi@gmail.com>:
> 
> On Sun, Jul 9, 2017, 2:59 PM Saulius Menkevičius <saulius.menkevicius@gmail.com <mailto:saulius.menkevicius@gmail.com>> wrote:
> The problem is those files come within a .zip file too.
> 
>  Kind of a chicken and egg scenario here for automatic code..
> 
> You need to extract those outside Emacs. One way is to install 7-zip (search for 7-zip Windows executables online). 
> -- 
> Kaushal Modi
> 

Not sure I expressed myself properly..

I am one of the maintainers of the C# package for emacs https://github.com/OmniSharp/omnisharp-emacs <https://github.com/OmniSharp/omnisharp-emacs>
For the package to work properly it needs to run language server, which
should be downloaded from https://github.com/OmniSharp/omnisharp-roslyn/releases <https://github.com/OmniSharp/omnisharp-roslyn/releases>

I have added a new interactive command omnisharp-install-server which
downloads and installs the server to ~/.emacs.d/.cache/omnisharp/server/<version> directory.
Thus aleviating the need for the user to navigate to web page, download, extract
and the configure package to point to the location where the server has been extracted.

For UNIX systems things are easy, I just download tarball and extract it with (call-process „tar“ .. „xz“..)

But on Windows things get tough, apparently.

Instructing the user to install 7-zip or something else manually kind of
invalidates the purpose of automatic installation. I want to keep this functionality
low-noise and avoid any involvement of the user. Which I can do on macOS & Linux
but I cannot find a way to do non-intrusively on Windows...

BR,
-Saulius

[-- Attachment #2: Type: text/html, Size: 3256 bytes --]

  reply	other threads:[~2017-07-09 19:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-09 12:26 extracting a zip archive via elisp (with no external executables) Saulius Menkevičius
2017-07-09 18:51 ` Alan Third
2017-07-09 18:58   ` Saulius Menkevičius
2017-07-09 19:15     ` Kaushal Modi
2017-07-09 19:26       ` Saulius Menkevičius [this message]
2017-07-09 19:45         ` Eli Zaretskii
2017-07-09 19:49           ` Saulius Menkevičius
2017-07-09 20:09             ` Eli Zaretskii
2017-07-09 20:16               ` Saulius Menkevičius
2017-07-10  2:26                 ` Eli Zaretskii
2017-07-10  7:25                 ` Fabrice Popineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com \
    --to=saulius.menkevicius@gmail.com \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.