all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: 8207@debbugs.gnu.org
Subject: bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink
Date: Tue, 08 Mar 2011 22:51:10 +0100	[thread overview]
Message-ID: <87tyfdgu29.fsf@escher.fritz.box> (raw)

1. emacs -Q
2. Visit some file, e.g. "foo".
3. M-: (switch-to-buffer (make-indirect-buffer (current-buffer) "bar"))
4. In the indirect buffer "bar" do something to modify the buffer,
   e.g. type SPC.  This causes a file lock symlink like the following to
   be added to the directory containing "foo":
   .#foo -> steve@escher.fritz.box.800:1299574078
5. Type `C-_' to undo the change in step 4, so that "bar" is now
   unmodified, and then kill "bar".
=> The file lock symlink in foo's directory is still there.  

If instead of undoing the change in step 5 the file had been saved, then
the lock would have been released and the symlink deleted.  In fact,
this is the only way, aside from deleting it manually, to eliminate the
symlink.  But if a change is undone, the file is unmodified and hence
cannot be saved, so the symlink should be deleted in this case.

In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-03-08 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10800000
configured using `configure  '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls''





             reply	other threads:[~2011-03-08 21:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 21:51 Stephen Berman [this message]
2012-09-22  3:08 ` bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink Chong Yidong

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=87tyfdgu29.fsf@escher.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=8207@debbugs.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.