From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Unwanted undo-boundary Date: Tue, 16 Feb 2010 01:06:19 +0100 Message-ID: References: <83tytkxxkx.fsf@gnu.org> <83sk93y9t2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1266278812 11278 80.91.229.12 (16 Feb 2010 00:06:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2010 00:06:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 16 01:06:49 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NhAxl-00020K-79 for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2010 01:06:49 +0100 Original-Received: from localhost ([127.0.0.1]:38591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhAxk-0003vl-JO for ged-emacs-devel@m.gmane.org; Mon, 15 Feb 2010 19:06:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhAxf-0003vK-6U for emacs-devel@gnu.org; Mon, 15 Feb 2010 19:06:43 -0500 Original-Received: from [140.186.70.92] (port=59377 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhAxe-0003up-9K for emacs-devel@gnu.org; Mon, 15 Feb 2010 19:06:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhAxd-0004wS-KN for emacs-devel@gnu.org; Mon, 15 Feb 2010 19:06:42 -0500 Original-Received: from mail-fx0-f215.google.com ([209.85.220.215]:49418) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhAxd-0004wO-E7; Mon, 15 Feb 2010 19:06:41 -0500 Original-Received: by fxm7 with SMTP id 7so5737662fxm.8 for ; Mon, 15 Feb 2010 16:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=WfZsArKfAOgk5vRVVgKNYvC7sHNCYKakjIwuyMY2oR0=; b=xuxXhBy436dBasC5EA4zlO5+Pv3HctLF17Iybhv74RFQk47c95y3K/do29ELvB0/mc UjVGt3vKuBrFVMqyINjgcwSaIZM8ClC8s2CtJ8T1CeNQoIM+sCW5jEwwTRwps6TEDEPV bgdosxvzCiSddGE/lwEQdLJ3vhPanlAskntys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=j19WgL8HrkqRUiJpIxuOK5z7zpvVdMt/eicJu/4ioRuuS26FLbVEHkGB9cDXpJ2pfo TQ0dWmBqghWcMUKr2VLcoQvcyEX54ZqTpDnPOXE6WCRZMckgWcWc0u6J2TspLmaDS+ek mR8p+/SeqmRKweuA2bfQUEDMST1UeNesAeil8= Original-Received: by 10.239.183.211 with SMTP id v19mr534074hbg.26.1266278799454; Mon, 15 Feb 2010 16:06:39 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121135 Archived-At: On Sun, Feb 14, 2010 at 11:49 PM, Lennart Borgman wrote: > On Sun, Feb 14, 2010 at 11:32 PM, Lennart Borgman > wrote: >> >> The xbacktrace:s are here, just in case I misunderstand this: >> >> =C2=A0 =C2=A0Breakpoint 3, Fundo_boundary () at undo.c:303 >> =C2=A0 =C2=A0303 =C2=A0 =C2=A0 =C2=A0 if (EQ (current_buffer->undo_list,= Qt)) >> =C2=A0 =C2=A0(gdb) xbacktrace >> =C2=A0 =C2=A0"nxml-indent-line" (0x82d7b4) >> =C2=A0 =C2=A0"funcall" (0x82d7b0) > > > The bt backtrace looks more useful. It looks like the undo boundaries > are coming from sequences like this: > > =C2=A0 =C2=A0(gdb) bt > =C2=A0 =C2=A0#0 =C2=A0Fundo_boundary () at undo.c:303 > =C2=A0 =C2=A0#1 =C2=A00x0102e079 in record_marker_adjustment (marker=3D61= 172811, > adjustment=3D-80) at undo.c:211 > =C2=A0 =C2=A0#2 =C2=A00x0114df23 in adjust_markers_for_delete (from=3D1, = from_byte=3D1, > to=3D86, to_byte=3D86) at insdel.c:373 > =C2=A0 =C2=A0#3 =C2=A00x0115149c in del_range_2 (from=3D1, from_byte=3D1,= to=3D86, > to_byte=3D86, ret_string=3D0) at insdel.c:1946 > =C2=A0 =C2=A0#4 =C2=A00x01151044 in del_range_1 (from=3D1, to=3D86, prepa= re=3D1, > ret_string=3D0) at insdel.c:1814 > =C2=A0 =C2=A0#5 =C2=A00x01150f4e in del_range (from=3D1, to=3D86) at insd= el.c:1782 > > and > > =C2=A0 =C2=A0(gdb) bt > =C2=A0 =C2=A0#0 =C2=A0Fundo_boundary () at undo.c:303 > =C2=A0 =C2=A0#1 =C2=A00x0102dd77 in record_point (pt=3D35) at undo.c:90 > =C2=A0 =C2=A0#2 =C2=A00x0102debc in record_insert (beg=3D35, length=3D13)= at undo.c:141 > =C2=A0 =C2=A0#3 =C2=A00x0114f1ce in insert_from_string_1 (string=3D608343= 85, pos=3D0, > pos_byte=3D0, nchars=3D13, nbytes=3D13, inherit=3D0, > =C2=A0 =C2=A0 =C2=A0 =C2=A0before_markers=3D0) at insdel.c:1098 > =C2=A0 =C2=A0#4 =C2=A00x0114efa7 in insert_from_string (string=3D60834385= , pos=3D0, > pos_byte=3D0, length=3D13, length_byte=3D13, inherit=3D0) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at insdel.c:1022 > =C2=A0 =C2=A0#5 =C2=A00x010aa7ef in general_insert_function (insert_func= =3D0x114e834 , > =C2=A0 =C2=A0 =C2=A0 =C2=A0insert_from_string_func=3D0x114ef53 , > inherit=3D0, nargs=3D1, args=3D0x82d540) at editfns.c:2201 > =C2=A0 =C2=A0#6 =C2=A00x010aa85a in Finsert (nargs=3D1, args=3D0x1f) at e= ditfns.c:2245 > > Below are full bt from the above: > > =C2=A0 =C2=A0(gdb) bt I do not really understand the intended behaviour for Emacs here, but in the case of nXhtml I fixed this by disabling undo in the other buffer involved. (It should have been disabled before, but I forgot to do it.)