I had a weird problem: would reliably lock up any time I tried to save a file on a drive mounted over sshfs. Turns out Emacs lock files (weird symlinks that don't point to actual files) where somehow not interpreted correctly over sshfs. Emacs ended up in an infinite loop trying to create and verify the symlink. My solution was to simply disable lock files, like this: (setq create-lockfiles nil). I've never had any use for them anyway πŸ™‚

I thought I'd document this somewhere πŸ˜‰

@sazius you could also use Tramp to access files over ssh... But you probably already know this. ;)

@beni Yes I know, but in this case also need to access the files outside of Emacs so this was the more convenient solution. But yes tramp is very handy in most situations :-)

Sign in to participate in the conversation mastodon

A generalistic Mastodon instance hosted in France, open to all and available since the 9 April 2017. Learn about the instance information and guidelines.