From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: An idea: combine-change-calls Date: Mon, 26 Mar 2018 17:07:40 -0400 Message-ID: References: <20180324135024.GA6319@ACM> <20180325191424.GE6292@ACM> <20180326201728.GA28620@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522098358 9020 195.159.176.226 (26 Mar 2018 21:05:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2018 21:05:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 23:05:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0ZJR-0002FE-G9 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 23:05:53 +0200 Original-Received: from localhost ([::1]:59123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ZLU-00057L-QH for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2018 17:08:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0ZLO-00057C-Fq for emacs-devel@gnu.org; Mon, 26 Mar 2018 17:07:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0ZLJ-0000U4-HZ for emacs-devel@gnu.org; Mon, 26 Mar 2018 17:07:54 -0400 Original-Received: from [195.159.176.226] (port=36613 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0ZLJ-0000Tm-9q for emacs-devel@gnu.org; Mon, 26 Mar 2018 17:07:49 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1f0ZJD-00021u-O8 for emacs-devel@gnu.org; Mon, 26 Mar 2018 23:05:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:gWZ8S1JDtT6Br5R3tApoTsEXhRc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224075 Archived-At: > I'm experimenting with a different strategy: surrounding the mass of > elements in buffer-undo-list with a `(combine-change-begin ,beg ,end) > and a `(combine-change-end ,beg ,end). Beware: this changes the format of entries that can appear in the buffer-undo-list, which has repercussions beyond primitive-undo, IOW it can/will break other things such as undo-in-region and undo-tree. Better use the (apply DELTA BEG END FUN-NAME . ARGS) form, which was introduced specifically for use of such extensions. Stefan