all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: 31035@debbugs.gnu.org
Cc: "Alan Mackenzie" <acm@muc.de>, "Johan Bockgård" <bojohan@gnu.org>
Subject: bug#31035: 27.0.50; (apply ...) doesn't work with undo-in-region
Date: Mon, 02 Apr 2018 20:41:11 -0400	[thread overview]
Message-ID: <jwvo9j1dsxq.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <jwva7ul6u6j.fsf@iro.umontreal.ca> (Stefan Monnier's message of "Mon, 02 Apr 2018 19:54:28 -0400")

> The main problem being that undo-in-region (as well as
> erc-update-undo-list, incidentally) needs not just to know which part of
> the buffer is modified and with which DELTA, but it also needs to be
> able to create a new entry to apply the same change at another
> buffer position.

I think the easiest solution for that is to somehow pass BEG to the
function so that the function can be made "position independent".

The easiest way to do that without changing the format is to probably
move point to BEG before calling the function (and to document the fact
that the function should not bake-in the values of BEG and END but
should instead assume that point is the beginning of the area that
should be modified).


        Stefan





      reply	other threads:[~2018-04-03  0:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-02 23:54 bug#31035: 27.0.50; (apply ...) doesn't work with undo-in-region Stefan Monnier
2018-04-03  0:41 ` Stefan Monnier [this message]

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=jwvo9j1dsxq.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=31035@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=bojohan@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 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.