From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add file-dwim. Date: Mon, 19 Oct 2015 07:44:28 +0300 Message-ID: <83bnbvii1f.fsf@gnu.org> References: <87d1wcrzuu.fsf@T420.taylan> <87lhb0ot7m.fsf@T420.taylan> <87h9lnyf5y.fsf@fastmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445229896 5472 80.91.229.3 (19 Oct 2015 04:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 04:44:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Random832 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 06:44:47 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 1Zo2JS-0002dF-V7 for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 06:44:47 +0200 Original-Received: from localhost ([::1]:36438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo2JS-00087y-1j for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 00:44:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo2JF-00087s-2v for emacs-devel@gnu.org; Mon, 19 Oct 2015 00:44:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zo2JA-0004I5-3k for emacs-devel@gnu.org; Mon, 19 Oct 2015 00:44:33 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:57099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo2J9-0004I0-Rt for emacs-devel@gnu.org; Mon, 19 Oct 2015 00:44:28 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NWG00J00A8F1W00@mtaout29.012.net.il> for emacs-devel@gnu.org; Mon, 19 Oct 2015 07:43:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWG00FBEAH0M840@mtaout29.012.net.il>; Mon, 19 Oct 2015 07:43:49 +0300 (IDT) In-reply-to: <87h9lnyf5y.fsf@fastmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:192029 Archived-At: > From: Random832 > Date: Sun, 18 Oct 2015 18:39:53 -0400 > > Artur Malabarba writes: > > > 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. > > Can call-process return the stdout of the process in a string, as > shell-command-to-string does? Yes, of course. See its documentation: the output could go into a buffer, a string, a file, or the null device.