From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclient and "nonexistent symlinks"
Date: Tue, 08 Mar 2011 19:57:26 -0700 [thread overview]
Message-ID: <il6qah$v9k$1@dough.gmane.org> (raw)
In-Reply-To: <87lj0pqmso.fsf@gmail.com>
On 3/8/11 3:17 PM, Evans Winner wrote:
> I have been doing some testing with Emacs lately and I use
> it in daemon mode and connect remotely using emacsclient.
> This has caused me to use M-x kill-emacs quite a bit and I
> think it is this which is causing me to sometimes get files
> in my filesystem that look like this in dired:
>
> .#.bbdb -> thorne@braintron.24188:1298889269
>
> If I hit RET on one of these in dired I get a message that
> says "File is a symlink to a nonexistent target".
>
> I am wondering several things: what are they? how do they
> get there? is there something I should be doing differently?
See the "Interlocking" node of the Emacs manual (aka the "Protection against
Simultaneous Editing" section):
When you make the first modification in an Emacs buffer that is
visiting a file, Emacs records that the file is "locked" by you. (It
does this by creating a specially-named symbolic link in the same
directory.) Emacs removes the lock when you save the changes. The
idea is that the file is locked whenever an Emacs buffer visiting it
has unsaved changes.
...
If Emacs or the operating system crashes, this may leave behind lock
files which are stale, so you may occasionally get warnings about
spurious collisions. When you determine that the collision is spurious,
just use `p' to tell Emacs to go ahead anyway.
> And more importantly at the moment, is there a way to
> predicate on whether a file is one of these things? I know
> there is `file-symlink-p' that will tell me it is a symlink,
> but is there a way to see if it is also one of these bogus
> synlinks?
I thought userlock.el would have the answer, but it seems that
ask-user-about-lock is not called from Lisp...
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2011-03-09 2:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 22:17 emacsclient and "nonexistent symlinks" Evans Winner
2011-03-09 2:57 ` Kevin Rodgers [this message]
2011-03-09 6:32 ` Tim X
2011-03-09 7:21 ` Evans Winner
2011-03-09 8:47 ` Gregor Zattler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='il6qah$v9k$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.