unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: mail.vjrao@gmail.com, Dan Nicolaescu <dann@ics.uci.edu>,
	nickrob@snap.net.nz, emacs-devel@gnu.org
Subject: Re: TODO
Date: Wed, 27 Feb 2008 15:45:01 -0500	[thread overview]
Message-ID: <jwvr6eycf89.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1JUOoH-0003jo-4V@fencepost.gnu.org> (Richard Stallman's message of "Wed, 27 Feb 2008 11:07:09 -0500")

>     If the problem is the undo-list, then we can change insert-file-contents
>     to not clear the buffer-undo-list in the case where it did make any
>     changes to the buffer.

I've installed a change that does just that.

> I think this should not be the normal case for insert-file-contents,
> when VISIT = nil.  Rather, it should be a special option to be used in
> particular cases like this.  Perhaps visit = vc?

If `insert-file-contents' does not change any part of the buffer, it's
basically a no-op.  I see hence no reason for it to flush the undo-list
in that case.

AFAIK, flushing the undo list is done on the expectation that the new
content is substantially different, so the original undo-list is only
valid if we add a big undo-entry that represents the changes made by
insert-file-contents (hence making the insert-file-contents operation
undoable).  In the case where the new content is equal to the old
content, we may as well keep the undo-list.


        Stefan




  reply	other threads:[~2008-02-27 20:45 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 17:26 Looking for a new Emacs maintainer or team Vijay Rao
2008-02-24  0:54 ` Richard Stallman
2008-02-24 16:12   ` Vijay Rao
2008-02-24 23:04     ` Richard Stallman
2008-02-25  3:59       ` Vijay Rao
2008-02-25  4:45         ` TODO [was Re: Looking for a new Emacs maintainer or team] Nick Roberts
2008-02-26 15:33           ` V.Rao
2008-02-26 18:13             ` Dan Nicolaescu
2008-02-26 18:26               ` TODO Stefan Monnier
2008-02-26 18:48                 ` TODO Dan Nicolaescu
2008-02-26 18:54                   ` TODO Stefan Monnier
2008-02-26 19:03                     ` TODO Dan Nicolaescu
2008-02-26 23:08                   ` TODO Miles Bader
2008-02-26 23:23                     ` TODO Dan Nicolaescu
2008-02-27  0:08                       ` TODO Miles Bader
2008-02-27  1:17                         ` TODO Dan Nicolaescu
2008-02-27  2:56                           ` TODO Miles Bader
2008-02-27 16:07                   ` TODO Richard Stallman
2008-02-27 20:45                     ` Stefan Monnier [this message]
2008-02-28 16:41                       ` TODO Richard Stallman
2008-02-28 17:09               ` TODO [was Re: Looking for a new Emacs maintainer or team] V.Rao
2008-02-29  1:39                 ` Richard Stallman
2008-02-28  2:00             ` Xavier Maillard
2008-02-28 16:20               ` TODO Michael Albinus
2008-02-28 17:08                 ` TODO Dan Nicolaescu
2008-02-28 17:35                 ` TODO Stefan Monnier
2008-02-28 20:39                   ` TODO Michael Albinus
2008-02-28 23:23                     ` TODO Evans Winner
2008-02-29  4:52                     ` TODO Dan Nicolaescu
2008-02-29  7:58                       ` TODO Michael Albinus
2008-03-01  1:00                         ` TODO Xavier Maillard

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=jwvr6eycf89.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=mail.vjrao@gmail.com \
    --cc=nickrob@snap.net.nz \
    --cc=rms@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).