From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#37573: 27.0.50; Remote file opened from GNOME-Nautilus Date: Sun, 06 Oct 2019 12:37:21 +0200 Message-ID: <871rvqcg7y.fsf@gmx.de> References: <66b84229-81df-f88d-78bd-5eeed10b67da@kit.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49243"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 37573@debbugs.gnu.org To: Tim Zander Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 06 12:39:07 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 1iH3wJ-000CRp-BB for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 12:38:59 +0200 Original-Received: from localhost ([::1]:32782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH3wG-0000Kg-AW for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Oct 2019 06:38:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48870) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iH3vP-0000IX-OW for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 06:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iH3vO-0006go-LP for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 06:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iH3vO-0006gi-IT for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 06:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iH3vO-00089t-Dw for bug-gnu-emacs@gnu.org; Sun, 06 Oct 2019 06:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Oct 2019 10:38:02 +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.157035826431338 (code B ref 37573); Sun, 06 Oct 2019 10:38:02 +0000 Original-Received: (at 37573) by debbugs.gnu.org; 6 Oct 2019 10:37:44 +0000 Original-Received: from localhost ([127.0.0.1]:45638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH3v5-00089N-OJ for submit@debbugs.gnu.org; Sun, 06 Oct 2019 06:37:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:40223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iH3v2-000897-LR for 37573@debbugs.gnu.org; Sun, 06 Oct 2019 06:37:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570358244; bh=tp/XPTeWFp3LslzezqKme+LyNhvxPoNRKGNRYlkPpsI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lqszQCnvitYw10SoVRAiS0uKxaKW5ED1vktM89A/3Bd8a52KCSax5gHGPCrEVQvnH LtkJ84riw/lhWNjFS2lKD7ChO3VNfptXr1xOt57G0RBmBeVi8tT7+7nrtWpgj7gRpD fpWvAum/qjMgEd/+RcVUBErLev3QWI5UT6wiuMWI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.50.177]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAfYw-1iNhkK2idM-00B1WQ; Sun, 06 Oct 2019 12:37:24 +0200 In-Reply-To: <66b84229-81df-f88d-78bd-5eeed10b67da@kit.edu> (Tim Zander's message of "Tue, 1 Oct 2019 17:00:35 +0200") X-Provags-ID: V03:K1:4bbz7HxAfyCFByKsRJtH+h7WcbhsYDukpFzbLLiap60/2jVtUa2 6yGHkX5kfTIhbHzw7L/DK5onZR6lC/qsr2FTq/covIACfQ6c2xK+De3lL2gYFLMg0r2liJm j2aJnId76D5gf6/dM8N2jlTzgpse/9F6500HVWqVTJbwUI0FY5ov4EyLr8/hU50AsP+W76r 09PQ5kjCDJwVOQHm14vmQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:+6xTn//a0CI=:I3U+WMMuj9xpy6ItgigCmz OeCTp4Maev0OdsvX0QhCqTXHre3h3i1UphxzXZZq9LcJGRS2Qxxz83C5330GuSZHG6zAlG7ql mblHKV5fXbLZxJAcHDsKGW+3nczKc4NjTetSE3+gVbDK1Ih7CStfxNPmRrmKogflw3d+Dio36 /9GdJCWLM6hbHbWKxbXb20Vc4HH7qqbaFr0jp8kouH3HLPxbVyrc4y0KHTwi5XLZXobeYx5co A/XFhU3Efsiigzpij7TifuYRqxjmZ577pPZ7hGzcjH8JLtIOFW4Qosp19qZX2AnfxxC3wLz5g DM6N8Z5LsmgFdpijuIzVAnpbKiNuD235kgyjBH3c08MG8r0TwcgGW/tvHtcQDp2xjliZzkc9x iAjhTMqm2AVt6HktzwgUCQclyckxHFdjiZZIIQWs9hSX5WfZv0KSKEpKUt1WNFWDDwAyIl7L4 LausyNlV6vuCEZZ0UwXK5tT7s+2APYQIJcfgtX4ChzWVfZnvzZhxvsSzmcFsmW+6b7cvFq59j NhM+hAMTfumfii2T56x/PxAHpdhTsqKNPxGO79M4X1tOqOAwC9/KFm9FIjv/PoRMFgE6qyq2Q EHnsHx7sfUnPy/qaOUFaLQoU+dDyXQYWaIw+MEsbaVZGMcfp7ExruOnsJyqi1/h5GGfLLn5s+ 0B3419W5gSvJAXlnedUDfI+04fMaiLwiYDmmr7OQ6FtWTgUhgI4nuhD4/D0T74XXD4wVz8Trj TfbWx/FkTbF+zt3yXyY1mrlRdOX76MkRU0oL/HXflBP72T7+Lg8wBXTYtMTeaE7JLD0jGF9e 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:168419 Archived-At: Tim Zander 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.