all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: pari.el : Process stty in windows ?
Date: Wed, 16 Mar 2016 17:43:46 +0200	[thread overview]
Message-ID: <83wpp2a0nh.fsf@gnu.org> (raw)
In-Reply-To: <56e90871$0$3045$426a74cc@news.free.fr> (message from Ramare on Wed, 16 Mar 2016 08:17:05 +0100)

> From: Ramare <ramare@invalid>
> Date: Wed, 16 Mar 2016 08:17:05 +0100
> 
> > Please explain why you need that command, maybe there's an equivalent
> > solution.
> 
> I should have been clearer. onlret is not my main problem, but the fact 
> that I don't know how to glue two commands.

Ah, that...  This has a simple solution.

> The user types something in emacs, pari.el sends it to gp and does not 
> want it to be echoed back. This is the reason of
> 
> 
> (start-process process-name process-buffer-name
>                        shell-file-name
>                        shell-command-switch
>                        (concat "stty -echo ; " cmd))
> 
> But we get the answer "stty: invalid argument ";"".

You need to quote the whole command, like so:

  (concat "\"stty -echo ; " cmd "\"")

(Btw, if you want to invoke a shell command, why do you use
start-process?  Why not use shell-command instead (if the command ends
with a "&", it will be run asynchronously)?

> With the even simpler
> 
> (shell-command "gp --emacs")
> 
> emacs starts and exits the process immediately, cleanly as if an "exit" 
> command had been entered. The only glitch though is that no prompt appears.

I don't know what is "gp" and how does it invoke Emacs.



  reply	other threads:[~2016-03-16 15:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15  9:57 pari.el : Process stty in windows ? Unknown
2016-03-15 17:27 ` Eli Zaretskii
     [not found] ` <mailman.7598.1458062858.843.help-gnu-emacs@gnu.org>
2016-03-16  7:17   ` Unknown
2016-03-16 15:43     ` Eli Zaretskii [this message]
     [not found]     ` <mailman.7646.1458143060.843.help-gnu-emacs@gnu.org>
2016-03-17 12:30       ` Unknown
2016-03-17 16:30         ` Eli Zaretskii
2016-03-17 13:15 ` Yuri Khan
     [not found] ` <mailman.7677.1458220547.843.help-gnu-emacs@gnu.org>
2016-03-17 17:49   ` Unknown
2016-03-17 17:57     ` Yuri Khan
     [not found]     ` <mailman.7695.1458237493.843.help-gnu-emacs@gnu.org>
2016-03-17 19:17       ` Unknown

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=83wpp2a0nh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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 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.