From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add file-dwim. Date: Sun, 18 Oct 2015 23:22:21 +0100 Message-ID: References: <87d1wcrzuu.fsf@T420.taylan> <87lhb0ot7m.fsf@T420.taylan> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445206948 29934 80.91.229.3 (18 Oct 2015 22:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 22:22:28 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?B?VGF5bGFuIFVscmljaCBCYXnEsXJsxLEvS2FtbWVy?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 00:22:28 2015 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 1ZnwLT-0002cz-Pi for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 00:22:27 +0200 Original-Received: from localhost ([::1]:35701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnwLS-00037S-TH for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 18:22:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnwLO-000379-Up for emacs-devel@gnu.org; Sun, 18 Oct 2015 18:22:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnwLO-00035V-5V for emacs-devel@gnu.org; Sun, 18 Oct 2015 18:22:22 -0400 Original-Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:35468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnwLN-00034o-Up for emacs-devel@gnu.org; Sun, 18 Oct 2015 18:22:22 -0400 Original-Received: by lbbes7 with SMTP id es7so39907016lbb.2 for ; Sun, 18 Oct 2015 15:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=vINN5lTqp8eldKnTSBvyTGgM5HYQ562+IsLYjI3WUkg=; b=jyy9nEEffZw0qXd/4wvUYY8Z+RslDLR+KpNd18SQkt8cUF9MTUiPjDQ6Z8qp2dn507 U/G/w03lPuEPOtPWJ3yoxPVZAuvWaQYEdnUBWCKGNr0dlfnQWlrh8O2CLaitcBm+myy5 KhX/5U73M14aeweOphWWbfsgClxA8Rm/8ZPh0/HlKpQdpqQMoTwZqz+jqIvijuu1de9T C0pfRPoAWeO8xav18Ughj/GIgYLULIzAAxsSw/RzeV2G+4mlfF3Nqy3JnYdfETQX7bza 2rDDSZFCHunrebka7vMu0kL9dnctclF9y3M0AHNrlkGLjtzln2FT2oP17y84NH3Bz7Rd EI3w== X-Received: by 10.112.54.169 with SMTP id k9mr12573641lbp.95.1445206941095; Sun, 18 Oct 2015 15:22:21 -0700 (PDT) Original-Received: by 10.25.22.197 with HTTP; Sun, 18 Oct 2015 15:22:21 -0700 (PDT) In-Reply-To: <87lhb0ot7m.fsf@T420.taylan> X-Google-Sender-Auth: dlUEVV3EztxsSgQGcMozWD0kNFM X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192017 Archived-At: 2015-10-18 20:46 GMT+01:00 Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer : > > Hmm, while that's indeed *my* most common use-case, I'm not sure if it > should be baked into the library. Well, it would be mine too, so that's 100% of our 2 subjects test sample. := -) And I know I've seen other people implement a sort of `open-file-externally` command, so I'm sure it's a common need. > People should be using shell-quasiquote to easily construct shell > commands anyway. ;-) That leaves the freedom to choose between a > synchronous and asynchronous process, whether the output goes into a > buffer, etc.. Actually, people shouldn't use shell-command unless they specifically need a shell. If you want an external program, use start-process; if you want it synchronous, use call-process.