From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: async-shell-command Date: Sat, 16 Apr 2016 13:44:53 -0700 Message-ID: References: <87a8kuugyb.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1460839521 2446 80.91.229.3 (16 Apr 2016 20:45:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2016 20:45:21 +0000 (UTC) Cc: emacs-devel To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 22:45:13 2016 Return-path: Envelope-to: ged-emacs-devel@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 1arX5a-0001L2-Gi for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 22:45:10 +0200 Original-Received: from localhost ([::1]:33263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arX5Z-00060p-KO for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2016 16:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arX5V-0005wf-FI for emacs-devel@gnu.org; Sat, 16 Apr 2016 16:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arX5Q-0002dj-MM for emacs-devel@gnu.org; Sat, 16 Apr 2016 16:45:05 -0400 Original-Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:36000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arX5Q-0002dZ-Eh for emacs-devel@gnu.org; Sat, 16 Apr 2016 16:45:00 -0400 Original-Received: by mail-pa0-x232.google.com with SMTP id er2so37352331pad.3 for ; Sat, 16 Apr 2016 13:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version; bh=XJBayp0GacsQHx7Ss0jxK51Yv0eevAfReb+LeB7wul4=; b=srasuJlU3to6xvop343JP5gdu6eBXdM9yr+hV977VSOHH5yPcyOz6aO1USLkMjwmbF NHGvrTRfFQ6Y4v9fnhv3mHriQPNvIj6wFEDJwkmtXW3hbbs23vYaaxWDTQEuzFIbhUu1 Jhw0tkSZyRUgGC2xkpxp/WaSvivfn5cN3HtcC+KzlyXpWDL+PKB+Je7gEwYJTr0uVY7l 1Iouy5b/1ERBNrqFCpJug3jHDsREfPFrFhFy9jRx31th9f2R0UuNWkDveBn6Ja4XD9kE u1exI65F5GaqRVisS6p1aKHefo5Y0a4oJzpTST+38aM+rCtXdsTXmlhVPItxWPpZJnK4 cTGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version; bh=XJBayp0GacsQHx7Ss0jxK51Yv0eevAfReb+LeB7wul4=; b=Sz6EbYDocnYDKOd8+1dlWUNnBQ06oX1vnl4SsfVx1CNwSdpMSuAWjMhBl6Alege1ji 4QQ0NqfNVlX/6F+8nLrn57TaTrD2R0P+dNzBVoj9mJQdntvIQV6gFbllCqeb0mxzHuwR TJkHMbK+TXyZlrGD+Rpk4k1KktJDpTF9CnTp+rCRWeEh4HasVUFdC7qwSOJgmVETPUEL fuxUUq1yG+X8DCV7eRywDzWlb3jq6/KtX5eBjxKx59cHlNkM3xrf2eLIkFQizfH2K1xq QRzr+yAngonGPZL/pIPIriAyhFtR+E69gTKybl9E1+edR8zphn22oCTIqidGJhoQQ47K P2MA== X-Gm-Message-State: AOPr4FUHp6B5WAFMhkPWwFnU+kXwRUPXNTuxoyImeyjxpCYGbMISlN0nDHZiu1e5pvOQOg== X-Received: by 10.66.81.137 with SMTP id a9mr39108034pay.32.1460839499428; Sat, 16 Apr 2016 13:44:59 -0700 (PDT) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id to9sm73553847pab.27.2016.04.16.13.44.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 16 Apr 2016 13:44:58 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id D8B751433B5D0; Sat, 16 Apr 2016 13:44:57 -0700 (PDT) In-Reply-To: <87a8kuugyb.fsf@mbork.pl> (Marcin Borkowski's message of "Sat, 16 Apr 2016 09:54:20 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.92 (darwin) Mail-Followup-To: Marcin Borkowski , emacs-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:202997 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >>>>> Marcin Borkowski writes: > Of course, this is extremely hackish. I thought that stock Emacs could use > the prefix argument to `async-shell-command' for something else than "make > this synchronous after all, and put the result at point", which seems odd > (and not documented, btw). For instance, C-u M-& might /not/ show the *As= ync > Shell Command* buffer, and when some option is set, this hiding/showing > behavior would be reversed (as in my solution). OTOH, maybe the current w= ay > of doing things is fine, and just needs mentioning in the docstring? > Any ideas? WDYT? None of the current invocation commands use a prefix argument to control display, so this would be a departure from established practice. I think the change you've described is better done locally, for those who want such behavior. Another way of doing this that might be nicer would be to check if the shell-command string ends in "&!" instead of "&", and to take that as an indication it should be executed both asynchronously and "silently" (without display). =2D-=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJXEqRFAAoJEMFE2PTxn+Ywfc0MALt4hq1t01tT/5ObR0eHuN1T L7s8bQqar4Ibu90BRcEjWs1hmhYT1NDUsKAESY4y5Zor3BCS/a2eqv79tSiqzDjt a8IymXi+1pBqflemXWt0HKRW4aYMgX2oQz8kk0Dt++Yw18mAzIhdEDuSq+QQk7x3 NJExzOE2h/TYeQjHMr4jEAdpOC0rxwnaX8G1Z6aCtkGY5rSqiAgIcnygQLzpUvTF Ze4DdSik/Pq1ULkzS0KrmZYK2i2T2RbbFl10y8li+zSit80Q75qJxrrJNh2IMawC E84rtmjTNRYCqCDOkj74k3qxNnhGyfNvWJqPipqblizwNHMnJ0fFIGsKyPd8gP0D SBKeyOeD49K6E+s8NEbFyv+heLfQp3bpo05pi0bBX/vecLB31+CF74cmr7vU2UBj q+1ovA8UJRTE8ovt6LWCE4vewXhdCrH8Vu8BblZbLNv4KPQGGvlOdH65xxA/4fk/ C5FkJsnRqc/fpvVNq8dliRj7lSwHuUgR1Twb5x8QCQ== =8b3y -----END PGP SIGNATURE----- --=-=-=--