unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Hidden symlinks, sshfs, and svn
@ 2008-08-21 20:10 Tavian Barnes
  2008-08-23 12:44 ` Nikolaj Schumacher
  0 siblings, 1 reply; 2+ messages in thread
From: Tavian Barnes @ 2008-08-21 20:10 UTC (permalink / raw)
  To: help-gnu-emacs

I've noticed that emacs creates hidden symlinks when unsaved files are
left open long enough (regardless of auto-save-mode) named something
like '.#<filename>' and pointing to something like
'<username>@<host>.<domain>.<PID of emacs>:<some long number>'.  They
generally go away if you save the file, or if you close emacs, so I've
never had a problem with them, until now.  The problem I'm having is:
sshfs, with '-o follow_symlinks', is confused by these links, since
they don't point anywhere reasonable.  As such, they cannot be deleted
by 'rm' on the client, so I have to use ssh to get rid of them.  I
can't just ignore them, because svn crashes with "svn: Can't read
directory 'dirname': Partial results are valid but processing is
incomplete." upon encountering a directory with these links.

So:

- From an informative standpoint, what purpose do these links have?
- How can I tell emacs not to create them?  Or, is there a better way
to deal with this problem?

-- 
Tavian Barnes




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hidden symlinks, sshfs, and svn
  2008-08-21 20:10 Hidden symlinks, sshfs, and svn Tavian Barnes
@ 2008-08-23 12:44 ` Nikolaj Schumacher
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolaj Schumacher @ 2008-08-23 12:44 UTC (permalink / raw)
  To: Tavian Barnes; +Cc: help-gnu-emacs

"Tavian Barnes" <tavianator@gmail.com> wrote:

> I've noticed that emacs creates hidden symlinks when unsaved files are
> left open long enough (regardless of auto-save-mode) named something
> like '.#<filename>' and pointing to something like
> '<username>@<host>.<domain>.<PID of emacs>:<some long number>'.
>
> [SNIP]
>
> - From an informative standpoint, what purpose do these links have?

I believe they are used to "lock" the file to prevent editing the file
from different emacs instances.

> - How can I tell emacs not to create them?  Or, is there a better way
> to deal with this problem?

I've never had problems with svn.  I have the following in my
~/.subversion/config, so that might help:

[miscellany]
global-ignores = \#*\# .*~ *~ .\#*



regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-23 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 20:10 Hidden symlinks, sshfs, and svn Tavian Barnes
2008-08-23 12:44 ` Nikolaj Schumacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).