all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Tim Zander <tim.zander@kit.edu>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Navigation from Nautilus to Emacs via Tramp (was: bug#37573: 27.0.50; Remote file opened from GNOME-Nautilus)
Date: Tue, 08 Oct 2019 16:43:31 +0200	[thread overview]
Message-ID: <877e5f47sc.fsf_-_@gmx.de> (raw)
In-Reply-To: <b5ef0df0-bca2-19f4-d914-18047a6f7e3a@kit.edu> (Tim Zander's message of "Tue, 8 Oct 2019 16:15:26 +0200")

Tim Zander <tim.zander@kit.edu> writes:

Hi Tim,

> Thanks, it did help.+

Thanks for the feedback. I'm glad that it works also for you.

[I've removed the debbugs address from Cc, because the following is not
related to the bug solution. Addedd emacs-devel instead]

> I am willing to write a patch for mapping the gvfs
> files to the tramp files. Could I get some more hints towards this
> solution?

Might be helpful, yes. But this is not trivial.

First question: do you intend to submit this to Emacs (or GNU ELPA)? I
suppose the latter would be more appropriate, as a package on its own.

Anyway, both options would require that you assign the copyright for
your contributions to the FSF. Would you be willing so?

Technically, you would need to write an own file name handler, see

  (info "(elisp) Magic File Names")

This file name handler would watch all relevant file name operations for
file names starting with "/run/user/<nnn>/gvfs/", and map them to the
Tramp file name.
"/run/user/1000/gvfs/sftp:host=localhost/home/albinus/.emacs" would be
mapped to "/sftp:localhost:/home/albinus/.emacs", for example.

See the package tramp-archive.el as example. It does something similar,
and maps file archives (like "/path/to/123.tar/" to a corresponding
Tramp GVFS file name. The crucial point is the trailing slash here,
which activates the mapping.

> Thanks
> Tim

Best regards, Michael.



      reply	other threads:[~2019-10-08 14:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-01 15:00 bug#37573: 27.0.50; Remote file opened from GNOME-Nautilus Tim Zander
2019-10-06 10:37 ` Michael Albinus
2019-10-06 17:44   ` Eli Zaretskii
2019-10-07  7:55     ` Michael Albinus
2019-10-07 16:28       ` Eli Zaretskii
2019-10-08 12:57         ` Michael Albinus
2019-10-08 13:11           ` Eli Zaretskii
2019-10-08 13:44             ` Michael Albinus
2019-10-08 14:15               ` Tim Zander
2019-10-08 14:43                 ` Michael Albinus [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=877e5f47sc.fsf_-_@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tim.zander@kit.edu \
    /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.