aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2019-10-08 15:41:00 +0200
committerMichael Albinus2019-10-08 15:41:00 +0200
commit304d022a66f2c71ee643021db69c1c99d135df55 (patch)
tree45a83697a811bcd7b327cf6a8fc716b6247b899e
parentb12edc61711d383819f0119d9227ad856c4556aa (diff)
downloademacs-304d022a66f2c71ee643021db69c1c99d135df55.tar.gz
emacs-304d022a66f2c71ee643021db69c1c99d135df55.zip
* etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573)
* lisp/userlock.el (create-lockfiles): Set `safe-local-variable' property.
-rw-r--r--etc/PROBLEMS17
-rw-r--r--lisp/userlock.el3
2 files changed, 20 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index c0d30ae5b44..504570e911b 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -1183,6 +1183,23 @@ always) doesn't insert the whitespace of the killed and yanked line.
1183 1183
1184The solution is to set the GPaste "trim items" option to OFF. 1184The solution is to set the GPaste "trim items" option to OFF.
1185 1185
1186*** Gnome: Navigation from Nautilus to remote files.
1187
1188If you navigate to a file, which belongs to a remote server, in
1189Nautilus via "Open With Emacs" you might not be able to save this file
1190once you have modified it in Emacs. The reasons for the failure can
1191vary, and for some connection methods saving the file might even succeed.
1192
1193If the remote connection in Nautilus uses ssh or sftp, you could
1194mitigate the problem by the following lines in your .emacs file:
1195
1196(dir-locals-set-class-variables 'gvfs '((nil . ((create-lockfiles . nil)))))
1197(dir-locals-set-directory-class (format "/run/user/%d/gvfs" (user-uid)) 'gvfs)
1198
1199A better approach might be to avoid navigation from Nautilus to Emacs
1200for such files, and instead to open the file in Emacs using Tramp
1201remote file name syntax.
1202
1186*** KDE: When running on KDE, colors or fonts are not as specified for Emacs, 1203*** KDE: When running on KDE, colors or fonts are not as specified for Emacs,
1187or messed up. 1204or messed up.
1188 1205
diff --git a/lisp/userlock.el b/lisp/userlock.el
index f077bc9ad62..209768620c1 100644
--- a/lisp/userlock.el
+++ b/lisp/userlock.el
@@ -34,6 +34,9 @@
34 34
35(eval-when-compile (require 'cl-lib)) 35(eval-when-compile (require 'cl-lib))
36 36
37;;;###autoload
38(put 'create-lockfiles 'safe-local-variable 'booleanp)
39
37(define-error 'file-locked "File is locked" 'file-error) 40(define-error 'file-locked "File is locked" 'file-error)
38 41
39;;;###autoload 42;;;###autoload