emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 304d022: * etc/PROBLEMS: Describe navigation proble


From: Michael Albinus
Subject: [Emacs-diffs] master 304d022: * etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573)
Date: Tue, 8 Oct 2019 09:41:13 -0400 (EDT)

branch: master
commit 304d022a66f2c71ee643021db69c1c99d135df55
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    * etc/PROBLEMS: Describe navigation problem from Nautilus.  (Bug#37573)
    
    * lisp/userlock.el (create-lockfiles): Set `safe-local-variable' property.
---
 etc/PROBLEMS     | 17 +++++++++++++++++
 lisp/userlock.el |  3 +++
 2 files changed, 20 insertions(+)

diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index c0d30ae..504570e 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -1183,6 +1183,23 @@ always) doesn't insert the whitespace of the killed and 
yanked line.
 
 The solution is to set the GPaste "trim items" option to OFF.
 
+*** Gnome: Navigation from Nautilus to remote files.
+
+If you navigate to a file, which belongs to a remote server, in
+Nautilus via "Open With Emacs" you might not be able to save this file
+once you have modified it in Emacs.  The reasons for the failure can
+vary, and for some connection methods saving the file might even succeed.
+
+If the remote connection in Nautilus uses ssh or sftp, you could
+mitigate the problem by the following lines in your .emacs file:
+
+(dir-locals-set-class-variables 'gvfs '((nil . ((create-lockfiles . nil)))))
+(dir-locals-set-directory-class (format "/run/user/%d/gvfs" (user-uid)) 'gvfs)
+
+A better approach might be to avoid navigation from Nautilus to Emacs
+for such files, and instead to open the file in Emacs using Tramp
+remote file name syntax.
+
 *** KDE: When running on KDE, colors or fonts are not as specified for Emacs,
 or messed up.
 
diff --git a/lisp/userlock.el b/lisp/userlock.el
index f077bc9..2097686 100644
--- a/lisp/userlock.el
+++ b/lisp/userlock.el
@@ -34,6 +34,9 @@
 
 (eval-when-compile (require 'cl-lib))
 
+;;;###autoload
+(put 'create-lockfiles 'safe-local-variable 'booleanp)
+
 (define-error 'file-locked "File is locked" 'file-error)
 
 ;;;###autoload



reply via email to

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