From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: <politza@googlemail.com>
Cc: help-gnu-emacs@gnu.org, gnu.emacs.help@googlegroups.com
Subject: Re: gvfs-open in eshell/shell-command
Date: Mon, 18 Mar 2013 12:19:19 +0000 [thread overview]
Message-ID: <87y5dkc33s.fsf@zerg32.ncl.ac.uk> (raw)
In-Reply-To: <67c7a4b6-c265-45dc-bd51-db40449ac879@googlegroups.com> (politza@googlemail.com's message of "Thu, 14 Mar 2013 10:42:09 -0700")
<politza@googlemail.com> writes:
> On Tuesday, March 12, 2013 2:48:12 PM UTC+1, Michael Albinus wrote:
>> phillip.lord@newcastle.ac.uk (Phillip Lord) writes:
>>
>>
>>
>> > I'm attempting to get gvfs-open to work in eshell.
>
> Try setting/letting `process-connection-type' to nil .
;; process-connection-type is essential or nothing works. What it does? No idea.
(defun eshell/open (&rest args)
;; need a delay in here or it doesn't work. Why? No idea!
(let ((process-connection-type nil))
(setq proc (start-process "eshell-open"
phil-eshell-buffer
shell-file-name shell-command-switch
(format "gvfs-open %s"
(mapconcat 'identity args " ")))))
(set-process-sentinel proc 'phil-open-sentinel)
(set-process-filter proc 'comint-output-filter))
(defun phil-open-sentinel (&rest args)
)
And this works perfectly. So, yes, process-connection-type seems to be
the trick. Thanks very much for the suggestion.
Phil
prev parent reply other threads:[~2013-03-18 12:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.21530.1362559820.855.help-gnu-emacs@gnu.org>
2013-03-06 10:39 ` About traditional Lisp primitives Barry Margolin
2013-03-07 10:54 ` gvfs-open in eshell/shell-command Phillip Lord
2013-03-12 13:48 ` Michael Albinus
[not found] ` <mailman.21924.1363096112.855.help-gnu-emacs@gnu.org>
2013-03-14 17:42 ` politza
2013-03-18 12:19 ` Phillip Lord [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5dkc33s.fsf@zerg32.ncl.ac.uk \
--to=phillip.lord@newcastle.ac.uk \
--cc=gnu.emacs.help@googlegroups.com \
--cc=help-gnu-emacs@gnu.org \
--cc=politza@googlemail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.