unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Tim Zander <tim.zander@kit.edu>
Cc: 37573@debbugs.gnu.org
Subject: bug#37573: 27.0.50; Remote file opened from GNOME-Nautilus
Date: Sun, 06 Oct 2019 12:37:21 +0200	[thread overview]
Message-ID: <871rvqcg7y.fsf@gmx.de> (raw)
In-Reply-To: <66b84229-81df-f88d-78bd-5eeed10b67da@kit.edu> (Tim Zander's message of "Tue, 1 Oct 2019 17:00:35 +0200")

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

Hi Tim,

> Steps to reproduce
>
> Connect to remote ssh server via GNOME-Nautilus.
>
> Drag-and-drop any file from Nautilius to Emacs or just open it from there.
>
> Change this file and try to save.
>
> Get the following Error
>
> Saving file
> /run/user/1000/gvfs/sftp:host=196.196.196.196,user=ubuntu/home/ubuntu/FOO...
>
> basic-save-buffer-2: Unlocking file: Function not implemented,
> /run/user/1000/gvfs/sftp:host=196.196.196.196,user=ubuntu/home/FOO

I could reproduce it locally. The problem is, that /run/user/1000/gvfs/
is a GVFS mounted file system. Most of native file operations work
there, but there seems to be a problem to handle symlinks like .#filename
which are used to mark locked files.

Saving the modified buffer itself works. So it might be appropriate to
suppress the file locking on GVFS mounted file systems. Add the
following lines to your .emacs:

(put 'create-lockfiles 'safe-local-variable 'booleanp)
(dir-locals-set-class-variables 'gvfs '((nil . ((create-lockfiles . nil)))))
(dir-locals-set-directory-class (format "/run/user/%d/gvfs" (user-uid)) 'gvfs)

I'm wondering, whether we shall document this approach somewhere. Eli?

Best regards, Michael.





  reply	other threads:[~2019-10-06 10:37 UTC|newest]

Thread overview: 9+ 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 [this message]
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

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=871rvqcg7y.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=37573@debbugs.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 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).