help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gvfs-open in eshell/shell-command


From: Phillip Lord
Subject: Re: gvfs-open in eshell/shell-command
Date: Mon, 18 Mar 2013 12:19:19 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

<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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]