From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: pari.el : Process stty in windows ? Date: Wed, 16 Mar 2016 17:43:46 +0200 Message-ID: <83wpp2a0nh.fsf@gnu.org> References: <56e7dc83$0$19751$426a74cc@news.free.fr> <56e90871$0$3045$426a74cc@news.free.fr> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458143080 30906 80.91.229.3 (16 Mar 2016 15:44:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2016 15:44:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 16:44:35 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1agDcd-0006qy-Pg for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 16:44:31 +0100 Original-Received: from localhost ([::1]:57113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agDcd-0000XJ-Ax for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 11:44:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agDcL-0000TK-IY for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:44:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agDcG-00053A-Fm for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:44:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agDcG-000536-CW for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:44:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1212 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1agDcF-0004Np-Ns for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 11:44:08 -0400 In-reply-to: <56e90871$0$3045$426a74cc@news.free.fr> (message from Ramare on Wed, 16 Mar 2016 08:17:05 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109600 Archived-At: > From: Ramare > 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.