From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: gvfs-open in eshell/shell-command Date: Mon, 18 Mar 2013 12:19:19 +0000 Message-ID: <87y5dkc33s.fsf@zerg32.ncl.ac.uk> References: <87txon32fx.fsf_-_@zerg32.ncl.ac.uk> <67c7a4b6-c265-45dc-bd51-db40449ac879@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363609183 27439 80.91.229.3 (18 Mar 2013 12:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Mar 2013 12:19:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, gnu.emacs.help@googlegroups.com To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 18 13:20:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UHZ2s-0005iP-LQ for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 13:20:06 +0100 Original-Received: from localhost ([::1]:42321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHZ2V-00011a-MG for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 08:19:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHZ2K-00011D-CF for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 08:19:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHZ2C-00006c-ID for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 08:19:32 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:58169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHZ2C-0008WE-CI for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 08:19:24 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129]) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1UHZ27-0003f1-Fj; Mon, 18 Mar 2013 12:19:19 +0000 Original-Received: from localhost (zerg32.ncl.ac.uk [10.66.65.18]) (authenticated bits=0) by smtpauth-vm.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id r2ICJJnT020574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 18 Mar 2013 12:19:19 GMT In-Reply-To: <67c7a4b6-c265-45dc-bd51-db40449ac879@googlegroups.com> (politza@googlemail.com's message of "Thu, 14 Mar 2013 10:42:09 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89577 Archived-At: 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