From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37573: 27.0.50; Remote file opened from GNOME-Nautilus Date: Sun, 06 Oct 2019 20:44:27 +0300 Message-ID: <835zl13h1g.fsf@gnu.org> References: <66b84229-81df-f88d-78bd-5eeed10b67da@kit.edu> <871rvqcg7y.fsf@gmx.de> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22977"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37573@debbugs.gnu.org, tim.zander@kit.edu To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 19:45:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHAan-0005pY-RK for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 19:45:13 +0200 Original-Received: from localhost ([::1]:36094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAam-0007Vj-1H for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 13:45:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40081) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHAae-0007Vc-2u for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHAac-0007Rj-KD for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHAac-0007QT-3d for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHAab-0008Ss-W7 for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 13:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2019 17:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37573 X-GNU-PR-Package: emacs Original-Received: via spool by 37573-submit@debbugs.gnu.org id=B37573.157038388832491 (code B ref 37573); Sun, 06 Oct 2019 17:45:01 +0000 Original-Received: (at 37573) by debbugs.gnu.org; 6 Oct 2019 17:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:46813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAaN-0008Rz-Q4 for submit@debbugs.gnu.org; Sun, 06 Oct 2019 13:44:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHAaL-0008Rh-RA for 37573@debbugs.gnu.org; Sun, 06 Oct 2019 13:44:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iHAaB-00079U-1Z; Sun, 06 Oct 2019 13:44:39 -0400 Original-Received: from [176.228.60.248] (port=2492 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iHAaA-00068p-C5; Sun, 06 Oct 2019 13:44:34 -0400 In-reply-to: <871rvqcg7y.fsf@gmx.de> (message from Michael Albinus on Sun, 06 Oct 2019 12:37:21 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168443 Archived-At: > From: Michael Albinus > Date: Sun, 06 Oct 2019 12:37:21 +0200 > Cc: 37573@debbugs.gnu.org > > 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? Does this file operation always fail on GVFS volumes? If so, perhaps we should not create lockfiles on such volumes by default?