all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink
@ 2011-03-08 21:51 Stephen Berman
  2012-09-22  3:08 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Berman @ 2011-03-08 21:51 UTC (permalink / raw
  To: 8207

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''





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

* bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink
  2011-03-08 21:51 bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink Stephen Berman
@ 2012-09-22  3:08 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-09-22  3:08 UTC (permalink / raw
  To: Stephen Berman; +Cc: 8207

Stephen Berman <stephen.berman@gmx.net> writes:

> 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.  

Fixed in trunk, thanks.





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

end of thread, other threads:[~2012-09-22  3:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 21:51 bug#8207: 24.0.50; undo in indirect buffer leaves stale file lock symlink Stephen Berman
2012-09-22  3:08 ` Chong Yidong

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.