From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Is `make-process' doing this? Date: Sun, 16 Oct 2016 21:02:55 +0200 Message-ID: <87lgxodsm8.fsf@fastmail.fm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1476644602 19932 195.159.176.226 (16 Oct 2016 19:03:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Oct 2016 19:03:22 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.2 To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 16 21:03:19 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvqiD-0003UD-8Q for ged-emacs-devel@m.gmane.org; Sun, 16 Oct 2016 21:03:09 +0200 Original-Received: from localhost ([::1]:57496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvqiF-0005la-FE for ged-emacs-devel@m.gmane.org; Sun, 16 Oct 2016 15:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvqi9-0005l1-9s for emacs-devel@gnu.org; Sun, 16 Oct 2016 15:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvqi6-0007Ni-6A for emacs-devel@gnu.org; Sun, 16 Oct 2016 15:03:05 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33845) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvqi6-0007M4-2e for emacs-devel@gnu.org; Sun, 16 Oct 2016 15:03:02 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A203920564 for ; Sun, 16 Oct 2016 15:02:57 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 16 Oct 2016 15:02:57 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=p8ovVGEyzHt1eM4ISFXYRDf/MJ0 =; b=UvqU5zC7b1WNgwXq0Piywz40CNoq2F4WCJqY6fSBK3ZYiSWrQoCfs6TarIq 90uGqvEW198w5oon78oHkTsDvciWmqPZqzx39gfavD0r3tTluIC2R37Y+GQ+vzco l9ZgFIHrtMOznqmGHvkOfYpLC7F7MhejylEY1LS892kZWzp0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=p8 ovVGEyzHt1eM4ISFXYRDf/MJ0=; b=h/V9Q/VfMNuboFgPKLgNvaS5yiFgykvK7/ P2c90Xgy2Ak8FTCuQ/6Slx1NTuscZJFZIYL+2mh+64GoPLK//GPDexcZoRjDqZlS F6ZKwvEqntybHKwQ5Wax68xkNpLI0XRszfDWVWZZqPXh0j+b8NPmu79uBxdrwKsf 3thRD5RII= X-Sasl-enc: UtkMJ9c796ARgWgp196uzaUCWTW0xr1yzUDXkAqrKCd/ 1476644577 Original-Received: from IdeaPad.messagingengine.com (x4d0ae1f0.dyn.telefonica.de [77.10.225.240]) by mail.messagingengine.com (Postfix) with ESMTPA id F39B2F29CD for ; Sun, 16 Oct 2016 15:02:56 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 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:208336 Archived-At: Hi all, just ran into this issue with starting external processes on Linux (I can't test if something similar happens on Windows or Mac OS). Run `emacs -Q', start IELM (for convenience) and type: IELM> (start-process "some-process" nil "evince" "~/path/to/some.pdf") (Assuming that ~/path/to/some.pdf is an existing pdf file, of course). This brings up an evince window with the error message: Unable to open document "file:///home/joost/~/path/to/some.pdf". The point is that if I do this from a shell (either some terminal emulator, or even eshell or M-x shell in Emacs), it works fine. So: ~ $ evince ~/path/to/some.pdf starts evince and opens the file without issue. So I was wondering if it is `make-process' that adds the "file:///home/joost/" part, or if it is evince, and if the latter, if there is something about `make-process' that keeps evince from recognising the argument as an absolute path inspite of the fact that it starts with a tilde. More importantly, I was wondering if I should file a bug report or whether this is simply not guaranteed to work. (I modified my code to ensure that file names are always expanded with `expand-file-name' before being passed to `start-process'. Perhaps I should have been doing that all along.) TIA -- Joost Kremers Life has its moments