unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: compilation-start without shell?
Date: Fri, 24 Dec 2010 13:05:06 +0100	[thread overview]
Message-ID: <AANLkTinvwcF1PW_MBwMvkU-0MO4ayDcBCvzJoKU6qC_S@mail.gmail.com> (raw)
In-Reply-To: <83fwtne6hg.fsf@gnu.org>

On Fri, Dec 24, 2010 at 12:48 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Lennart Borgman <lennart.borgman@gmail.com>
>> Date: Fri, 24 Dec 2010 12:07:40 +0100
>> Cc: emacs-devel@gnu.org
>>
>> I tried to get PowerShell scripts working from inside Emacs. That was
>> quite tricky so I decided to try to bypass the cmd.exe shell by
>> changing compilation-start the way I suggested.
>
> It's not clear how using PowerShell scripts is related to compilation.

I started the script with compilation-start (since I wanted the output
to be processed the way it will be done then).

>> Making the change I suggested can be useful. It is just a few lines
>> changes. I can send a patch for it.
>
> I still don't understand the problem.  Can you show an example and
> some error message?

PowerShell just hangs when run under Emacs. However it is not clear to me why.

I have tested that (without going that far as changing the C sources).
The only way I could get it to work under Emacs was by setting .ps1 to
be run by powershell.exe (ftype ...).

However there are more reasons to avoid the shell. You can more easily
send parameters to a script started without a shell.

So what I want is being able to use the frame work setup by
compilation-start without it starting a shell since this makes sending
parameters more easy.



  reply	other threads:[~2010-12-24 12:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-24  3:43 compilation-start without shell? Lennart Borgman
2010-12-24 10:11 ` Eli Zaretskii
2010-12-24 11:07   ` Lennart Borgman
2010-12-24 11:48     ` Eli Zaretskii
2010-12-24 12:05       ` Lennart Borgman [this message]
2010-12-24 12:21         ` Óscar Fuentes
2010-12-24 12:42           ` Lennart Borgman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=AANLkTinvwcF1PW_MBwMvkU-0MO4ayDcBCvzJoKU6qC_S@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).