all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: phillip.lord@russet.org.uk (Phillip Lord)
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change c7a6601 1/5: undo-size can count number of boundaries.
Date: Tue, 22 Sep 2015 21:23:37 -0400	[thread overview]
Message-ID: <jwv6132hrcq.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <874mim6sj2.fsf@russet.org.uk> (Phillip Lord's message of "Tue, 22 Sep 2015 22:41:37 +0100")

> Okay. So, I'll recap, and then explain the logic that I am trying to
> implement.

So, IIUC this undo-buffer-undoably-changed is meant to distinguish "new
change since boundary" from "new change since last timer run").

OK, so we were indeed miscommunicating.

But I get the impression that you didn't pay attention to another part
of the logic that we need: the part that pushes a boundary at the end of
a command.  Currently this is done in the C code and is applied only to
the current buffer, but we should change this so it is applied to all
buffers that were modified during the last command.

> - every ten seconds check the size of the undo list, and iff it is
>   bigger than undo-limit, and has less than 2 boundaries, add one at the
>   start.

Why not just unconditionally add a boundary (i.e. regardless of the undo
list size)?  That would make it more useful (because more predictable
and avoid too large undo steps), and would remove the need for
undo-buffer-undoably-changed.


        Stefan



  reply	other threads:[~2015-09-23  1:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150915152129.671.61929@vcs.savannah.gnu.org>
     [not found] ` <E1Zbs2z-0000By-Qe@vcs.savannah.gnu.org>
2015-09-15 16:57   ` [Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change c7a6601 1/5: undo-size can count number of boundaries Stefan Monnier
2015-09-17  8:08     ` Phillip Lord
2015-09-17 12:53       ` Stefan Monnier
2015-09-17 15:04         ` Phillip Lord
2015-09-18 20:26           ` Stefan Monnier
2015-09-22 10:45             ` Phillip Lord
2015-09-22 12:49               ` Stefan Monnier
2015-09-22 21:41                 ` Phillip Lord
2015-09-23  1:23                   ` Stefan Monnier [this message]
2015-09-23  8:39                     ` Phillip Lord
2015-09-23 13:44                       ` Stefan Monnier
2015-09-28 19:37                         ` Phillip Lord

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=jwv6132hrcq.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=phillip.lord@russet.org.uk \
    /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.