From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: undo weirdness with insert-file-contents Date: Thu, 28 Feb 2008 23:21:09 +0100 Message-ID: <47C733D5.6020207@gmx.at> References: <47C6856B.7080405@gmx.at> <47C6B359.10302@gmx.at> <47C70C24.6000302@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204237420 25388 80.91.229.12 (28 Feb 2008 22:23:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 22:23:40 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org, Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 23:24:05 2008 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.50) id 1JUrAP-0006K0-R2 for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 23:23:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUr9t-0008B8-Ch for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 17:23:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUr8a-0007dA-Jg for emacs-devel@gnu.org; Thu, 28 Feb 2008 17:22:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUr8Y-0007cT-LA for emacs-devel@gnu.org; Thu, 28 Feb 2008 17:22:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUr8Y-0007cJ-Ck for emacs-devel@gnu.org; Thu, 28 Feb 2008 17:21:58 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JUr8X-0007nd-B2 for emacs-devel@gnu.org; Thu, 28 Feb 2008 17:21:58 -0500 Original-Received: (qmail invoked by alias); 28 Feb 2008 22:21:54 -0000 Original-Received: from N717P006.adsl.highway.telekom.at (EHLO [62.47.33.134]) [62.47.33.134] by mail.gmx.net (mp056) with SMTP; 28 Feb 2008 23:21:54 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18HdlxTSWUHFuci+kZ85w61Yk8JDPKPAKbvf6kg9O Msz7V6vzsgRNQJ User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:90788 Archived-At: >>- current_buffer->undo_list = Qt; > > But this patch is clearly problematic, if one believe the comment: it > would cause the generation of undo info during the decoding step. > I understand that this info will be thrown away later, but we don't want > to pay the corresponding price. The comment is mine, don't trust it. Emacs 22 records undo information all through the decoding step. That's what I wanted to avoid. But I'm afraid two insertions get collapsed into one by the undo recording mechanism and I'm comparing the wrong starting positions. I don't yet understand how this happens.