all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dkcombs@panix.com (David Combs)
Subject: symlinks and auto-detecting 2-bufs hold *same* ifile-num?
Date: 27 Aug 2003 23:57:32 -0400	[thread overview]
Message-ID: <bijujc$srh$1@panix1.panix.com> (raw)

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

             reply	other threads:[~2003-08-28  3:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-28  3:57 David Combs [this message]
2003-08-28 18:23 ` symlinks and auto-detecting 2-bufs hold *same* ifile-num? Kevin Rodgers
2003-08-30  2:46   ` David Combs

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='bijujc$srh$1@panix1.panix.com' \
    --to=dkcombs@panix.com \
    /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.