GNU bug report logs - #26061
26.0.50; cancel-change-group fails with "unrelated state" error if used after an undo

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Andreas Politz <politza@HIDDEN>; dated Sat, 11 Mar 2017 18:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Mar 2017 18:01:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 11 13:01:57 2017
Received: from localhost ([127.0.0.1]:51674 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cmlL2-0004ux-TO
	for submit <at> debbugs.gnu.org; Sat, 11 Mar 2017 13:01:57 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44278)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <politza@HIDDEN>) id 1cmlL0-0004ui-Is
 for submit <at> debbugs.gnu.org; Sat, 11 Mar 2017 13:01:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1cmlKu-0000zq-Sr
 for submit <at> debbugs.gnu.org; Sat, 11 Mar 2017 13:01:49 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37505)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <politza@HIDDEN>)
 id 1cmlKu-0000zm-P9
 for submit <at> debbugs.gnu.org; Sat, 11 Mar 2017 13:01:48 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35242)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1cmlKt-0001Cq-Oc
 for bug-gnu-emacs@HIDDEN; Sat, 11 Mar 2017 13:01:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <politza@HIDDEN>) id 1cmlKq-0000xJ-FT
 for bug-gnu-emacs@HIDDEN; Sat, 11 Mar 2017 13:01:47 -0500
Received: from gateway-a.fh-trier.de ([143.93.54.181]:50265)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <politza@HIDDEN>)
 id 1cmlKq-0000uN-4M
 for bug-gnu-emacs@HIDDEN; Sat, 11 Mar 2017 13:01:44 -0500
X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum
 Hochschule Trier (RZ/HT)]
Received: from localhost (ip5f5bdecf.dynamic.kabel-deutschland.de
 [95.91.222.207]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested) (Authenticated sender: politza)
 by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 185BE2052D
 for <bug-gnu-emacs@HIDDEN>; Sat, 11 Mar 2017 19:01:29 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de;
 s=default; t=1489255289; bh=/juaOh6HOhBoqYeZ+ZHjT6i9bsI=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type;
 b=EHHB93UY3moeOpnlTzyYC5taoSCOIfmcNmTEludpwuwvnSaBLuesJU6eE2F737CI2
 1BAoAyW3of+d8zBdUfHam/S8HT95C+j/0PxvVSKJxUilgbPL216oDqtLurOfyvR1qb
 UncE3uHQBgmWyPl80fh8ykrOsvMiMzGdUiSRVNTs=
From: Andreas Politz <politza@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.50;
 cancel-change-group fails with "unrelated state" error if used after
 an undo
Date: Sat, 11 Mar 2017 19:01:28 +0100
Message-ID: <87wpbvwv47.fsf@luca>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


Save the following in some file foo.el:

#+BEGIN_SRC emacs-lisp
(defun bug ()
  (interactive)
  (catch 'done
    (atomic-change-group
      (insert "bug")
      (throw 'done nil))))

(setq debug-on-error t)
(switch-to-buffer (get-buffer-create "*bug*"))
(setq unread-command-events
      (list
       ;; insert abc
       ?a ?b ?c
       ;; undo once
       ?\C-/
       ;; call bug
       ?\M-x ?b ?u ?g ?\C-j))
#+END_SRC

, then start Emacs like this:

$ emacs -Q -l foo.el

Debugger entered--Lisp error: (error "Undoing to some unrelated state")
  signal(error ("Undoing to some unrelated state"))
  error("Undoing to some unrelated state")
  cancel-change-group(((#<buffer *bug*> nil)))

--

-ap




Acknowledgement sent to Andreas Politz <politza@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#26061; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 11 Mar 2017 18:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.