From: Joost Kremers <joostkremers@fastmail.fm>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Is `make-process' doing this?
Date: Sun, 16 Oct 2016 21:02:55 +0200 [thread overview]
Message-ID: <87lgxodsm8.fsf@fastmail.fm> (raw)
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
next reply other threads:[~2016-10-16 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-16 19:02 Joost Kremers [this message]
2016-10-16 19:07 ` Is `make-process' doing this? Andreas Schwab
2016-10-16 20:31 ` Joost Kremers
2016-10-16 19:15 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgxodsm8.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).