[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
symlinks and auto-detecting 2-bufs hold *same* ifile-num?
From: |
David Combs |
Subject: |
symlinks and auto-detecting 2-bufs hold *same* ifile-num? |
Date: |
27 Aug 2003 23:57:32 -0400 |
I've got lots of symlinks, some being shortcut-ways to
name certain directories.
Before very long, it turns out that I've managed to end
up with several (differently-named) buffers that are
accessing the *same* file (ie, ls -li shows the same
ifile-num).
Only problem is that *emacs* isn't aware of this -- or
if it is, it sure hasn't told (warned) me either at
the creation of the dup-like buffer, nor later.
Surely I can't be the first to have this problem!
Of course, it's a really dangerous situation, because
it's all too easy to modify one of them, and then
inadvertently make some other modification to the other
one -- with the final result on the disk depending on
the order in which eg save-some-buffers hits them.
(In no case will the result be what you want, with
*both* sets of changes being in effect)
There *has* to be some mode or something that makes
emacs automatically check ifile-numbers and then
ask:
"are you *really* sure you want to do this *dangerous* thing?"
(Likewise, when about to write a modified-buffer to
disk, to automatically do the same check,with similar
question if another differently-named buffer points to
the same ifile-num.)
Thanks!
David
- symlinks and auto-detecting 2-bufs hold *same* ifile-num?,
David Combs <=