unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [joe-emacs-bugs@elem.com: change to file on disk not noticed by indirect buffer]
Date: Thu, 6 Jul 2006 17:22:31 +0200	[thread overview]
Message-ID: <7dbe73ed0607060822o39c58a54t10d3d1ccd7f0723c@mail.gmail.com> (raw)
In-Reply-To: <E1Fy8j7-0006SH-78@fencepost.gnu.org>

> The behavior of find-alternate-file is also surely not good, but I am
> not sure what it should do instead.  The ideal would be to substitute
> the new file in the base buffer and its indirect buffers, without
> otherwise altering the differences between them.  But that is probably
> quite hard, so it would be better to do something else that's at least
> sensible.

Would it be that hard? Just change the base buffer's file as if it was
a buffer without any indirect ones and for the indirect buffers, keep
track of what mode they were in (would saving more information be
useful?) and read the data from the new base buffer into them.

On the other hand, what if I do want to find an alternative file in
the indirect buffer I am currently in? Maybe I am done with this
indirect buffer and don't need it anymore.

Maybe there should be a new command such as the one the Joe suggested
and keep the current functionality as it is?

  parent reply	other threads:[~2006-07-06 15:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-05 14:51 [joe-emacs-bugs@elem.com: change to file on disk not noticed by indirect buffer] Richard Stallman
2006-07-05 16:07 ` Chong Yidong
2006-07-06 13:32   ` Richard Stallman
2006-07-06 13:56     ` Chong Yidong
2006-07-06 15:22 ` Mathias Dahl [this message]
2006-07-07 19:30   ` Richard Stallman
2006-07-07 22:25     ` Mathias Dahl

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7dbe73ed0607060822o39c58a54t10d3d1ccd7f0723c@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).