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: Mon, 18 Apr 2016 17:47:36 -0700 Message-ID: References: <87a8kuugyb.fsf@mbork.pl> <87k2jubsih.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 1461026883 13912 80.91.229.3 (19 Apr 2016 00:48:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2016 00:48:03 +0000 (UTC) Cc: emacs-devel To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 19 02:47:56 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 1asJpa-0000Fi-AU for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2016 02:47:54 +0200 Original-Received: from localhost ([::1]:47911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asJpZ-0004My-KN for ged-emacs-devel@m.gmane.org; Mon, 18 Apr 2016 20:47:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asJpU-0004J3-Pc for emacs-devel@gnu.org; Mon, 18 Apr 2016 20:47:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asJpQ-0005WC-JP for emacs-devel@gnu.org; Mon, 18 Apr 2016 20:47:48 -0400 Original-Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:36142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asJpQ-0005Vy-Ag for emacs-devel@gnu.org; Mon, 18 Apr 2016 20:47:44 -0400 Original-Received: by mail-pa0-x234.google.com with SMTP id er2so513278pad.3 for ; Mon, 18 Apr 2016 17:47:43 -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=6a/fldDmXWvC/0WDPXz7VjtrjDSxRifOsGTXtKUNxXY=; b=a4WvqhjRruotEX5W+31gvymVNJb39KVm9BHOB6uvpSIJUv/fguw+h1J39DWaPMEnFk 5Rzkdf6LMw60blyaw46I+BBWNAIAlvi79TKB6vraacbZO6hsDaLbXdfumVseRMwpzjBI +PFRNisTyKJajkBdilXQU3Z/JaBeRPDvCg7HqT+Dh8tCkPSYclEv7xEN79H48u4SlN3F EFb0TrpnMjODV1CD490z1CoOFK5ujzBhZMQMxYEDGYamuPFBwIx2TKam+7SC/Wni7rMY tlRW4T7kQchnPEySgTFwxsIwoGEln2NbmYr1HF0kvX3lbaeOeIVwJDYuYIZsscQKBrFq FeMA== 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=6a/fldDmXWvC/0WDPXz7VjtrjDSxRifOsGTXtKUNxXY=; b=HrAwO7LFgePcQKyrSzM9//w9f0CajagNdH2g89NVK92YJWpUo7EGNuTLFgVKgQG3bz ROwYIK2Qd2S1p9cdut9DetnHbLsOkEXhycfGmSQ7IoGDH98W7sb1qf3ARJtkROHS2JmK qtHGcqDN7xbw035Djtz6bInQZOvTXBulOKmzAjsE8p/UDp20aBY7SxK46880tEDL5tYD ToqLeVvX0rpAFb3lU8LngjOGQES52LGPzumnkQ3ea4QHzg1dO15Qes2CgiShIoyWQvhk EdwFckIpCCfsvL+6keciUcaij7PcN+zbD8EDscu34/VK0PbygpaTY7QLZha8j2C4pUzr tvTQ== X-Gm-Message-State: AOPr4FXxEW0uI2ramd6PeAVwHzuUpvGgWs7ZsgZ7bWdS9msg83IZM1zIOlvCoeOnfjF1/Q== X-Received: by 10.66.225.235 with SMTP id rn11mr134372pac.138.1461026862428; Mon, 18 Apr 2016 17:47:42 -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 rw2sm86554617pab.30.2016.04.18.17.47.41 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Apr 2016 17:47:41 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id CF21E14375543; Mon, 18 Apr 2016 17:47:40 -0700 (PDT) In-Reply-To: <87k2jubsih.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 18 Apr 2016 21:56:22 +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::234 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:203081 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >>>>> Marcin Borkowski writes: > That sounds interesting. What if the command ends with "!" alone? Should = it > be synchronous and silent? (I guess not.) That doesn't seem to make a lot of sense, does it... > John, would you like me to explore this idea further and try to come up w= ith > a patch? Are there any other ideas for the UI? I'm not sure about changing these functions in core Emacs. I can think of still other behaviors (like not showing the async output buffer until there= is output to display). Rather than changing these venerable commands, it might= be better to explore the UI possibilities in an add-on (using advice, maybe?) = for the time being. Or maybe the concept the "execute but hide the buffer" should just be a new command, provided by an ELPA package that offers more options related to executing shell commands from the minibuffer? > Also, I'm pretty sure that the current meaning of the prefix argument for > `async-shell-command' /must/ be documented - it is far from obvious, and = can > be learned only from careful reading of the code. I'm going to prepare su= ch > a patch for docs (both the docstring and the manual) first. Yes, it should definitely be documented. =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----- iQGcBAEBCgAGBQJXFYAoAAoJEMFE2PTxn+YwUXIL/0l62YmN03Q/oosFmp93SbOu 8h8FgzOufEFBF/+Oeyt4dsEbeVGq0EoxXbY6If8ady2uHb2I5pHfsQ/fm6t0KNDn xKDIz55AtLWFCi6PiAIwt16MN7YffI87QahhKBWJNgX1be3jzJowOj2PXpTGdma8 pY0qDw+5ONfBDzId8W4XVhv0gELP+WCyzpRQryY+y+koyarVZx/rfG5Scn9PMqy6 WZaUlF6ktn/mWEQ9aAnxYgy2Oq9ys9vMrwWCGxarD3Ds3b+XMI3bxFz0Txm0I2f7 jAD6FthTHfD3Y2R2lkMAQxMpZRious5N3kJP+eTbqhKy8Xdv35pj9TfBVVwKCjKg SNXmhYbGZAetmcyGZBUJYhoE/c+1yeDbtZrj7oat1RIMqcUxNRKry5vNIOc2X4vA pMW6RsdgmwTTB8OVxuIeEa9VMV3Fy/+OnVmpT59c/hWOOjCJ4mdPBWhy1pYfU3ic vkYzg3kT5OD4P2ITT+CVPL2jYHXFQ2Dj8esqjkVenw== =JWF/ -----END PGP SIGNATURE----- --=-=-=--