From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry OReilly Newsgroups: gmane.emacs.bugs Subject: bug#16411: undo-only bugs Date: Tue, 14 Jan 2014 09:00:14 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11330904901e7504efee9c9e X-Trace: ger.gmane.org 1389708074 10907 80.91.229.3 (14 Jan 2014 14:01:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 14:01:14 +0000 (UTC) Cc: 16411@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 14 15:01:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W34YR-0004pS-09 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 15:01:19 +0100 Original-Received: from localhost ([::1]:48427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34YQ-0003Jt-4z for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 09:01:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34YH-0003JY-5S for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:01:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W34YB-0001r5-67 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:01:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W34YB-0001r1-23 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W34YA-00075Z-4j for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2014 09:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Barry OReilly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jan 2014 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16411 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16411-submit@debbugs.gnu.org id=B16411.138970802127167 (code B ref 16411); Tue, 14 Jan 2014 14:01:02 +0000 Original-Received: (at 16411) by debbugs.gnu.org; 14 Jan 2014 14:00:21 +0000 Original-Received: from localhost ([127.0.0.1]:49842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W34XT-000746-NU for submit@debbugs.gnu.org; Tue, 14 Jan 2014 09:00:20 -0500 Original-Received: from mail-oa0-f52.google.com ([209.85.219.52]:64708) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W34XP-00073u-Mm for 16411@debbugs.gnu.org; Tue, 14 Jan 2014 09:00:16 -0500 Original-Received: by mail-oa0-f52.google.com with SMTP id o6so9702077oag.11 for <16411@debbugs.gnu.org>; Tue, 14 Jan 2014 06:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=76UgH3ApwTwV7EAlonz9cUCD6YWP0WOVsM6+QHKWxEQ=; b=olxa8wyaAgqNH6rXBNOFuLRg/gst7U+LN1lC25I8XD8HcweVfQcRZ+yXXpSeRtK1XA YaTS+7Ygd1N/iou3njNRJzdydTDVYV0xHHCpRPtWrrtMODVfbWkYwLelMybx87+byZDd V2MdK9XUEvHbqvRXmr2pY3eHQwjXZ6w6kWV5iI1J9Fqgm1MbpQ4ENR1TKTi3Ggu70nrO VZp9naBJfBYCG1Oh8XiCjPTJtI2+EZny1rhRodeH5DC7KiU7MYiwHoq2m+KLE70MYY4C gKC58yBI5C63Te5dxYWws08ddIOmv8ZnNggskNMASMQzqFAfR8GosfQ+uzypDBMxyuUe LjXQ== X-Received: by 10.60.52.83 with SMTP id r19mr1181747oeo.1.1389708014787; Tue, 14 Jan 2014 06:00:14 -0800 (PST) Original-Received: by 10.76.21.84 with HTTP; Tue, 14 Jan 2014 06:00:14 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83459 Archived-At: --001a11330904901e7504efee9c9e Content-Type: text/plain; charset=ISO-8859-1 > >> Actually, this makes me realize the solution to bug 1 is > >> inadequate. Calling (undo-primitive 1) N times creates N redo > >> records whereas (undo-primitive N) creates one. > > No, primitive-undo does not add any undo boundary. > Actually, now I'm not sure what you meant by "redo records". > (primitive-undo N) will undo all the M "records" that appear before > the next Nth undo boundary, and will correspondingly add M redo > "records", but no boundary. I took another look at the code and see I was mistaken on this point. I'll work on a patch. --001a11330904901e7504efee9c9e Content-Type: text/html; charset=ISO-8859-1
> >> Actually, this makes me realize the solution to bug 1 is
> >> inadequate. Calling (undo-primitive 1) N times creates N redo
> >> records whereas (undo-primitive N) creates one.
> > No, primitive-undo does not add any undo boundary.

> Actually, now I'm not sure what you meant by "redo records".
> (primitive-undo N) will undo all the M "records" that appear before
> the next Nth undo boundary, and will correspondingly add M redo
> "records", but no boundary.

I took another look at the code and see I was mistaken on this point.
I'll work on a patch.

--001a11330904901e7504efee9c9e--