From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: undoing changes automatically Date: Wed, 09 Jan 2008 10:07:06 -0500 Message-ID: References: <18231.43165.842097.720674@tfkp07.physik.uni-erlangen.de> <853avbp6ie.fsf@lola.goethe.zz> <18232.50129.24712.310255@tfkp07.physik.uni-erlangen.de> <18308.10385.319747.688235@tfkp07.physik.uni-erlangen.de> <18308.36729.829191.788405@tfkp07.physik.uni-erlangen.de> <18308.40419.541912.6211@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199891241 15094 80.91.229.12 (9 Jan 2008 15:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 15:07:21 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 09 16:07:39 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 1JCcWo-0001jl-S3 for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2008 16:07:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCcWR-0001ah-H5 for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2008 10:07:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCcWO-0001Zx-Sl for emacs-devel@gnu.org; Wed, 09 Jan 2008 10:07:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCcWN-0001Y2-7a for emacs-devel@gnu.org; Wed, 09 Jan 2008 10:07:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCcWN-0001Xr-5O for emacs-devel@gnu.org; Wed, 09 Jan 2008 10:07:11 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCcWJ-0003re-I2; Wed, 09 Jan 2008 10:07:07 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAF9yhEfO+IQqdGdsb2JhbACQHAEwmTCBAA X-IronPort-AV: E=Sophos;i="4.24,263,1196658000"; d="scan'208";a="12459243" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 09 Jan 2008 10:07:06 -0500 Original-Received: from pastel.home ([206.248.132.42]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id PQQ28107; Wed, 09 Jan 2008 10:07:07 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CC8BF7F44; Wed, 9 Jan 2008 10:07:06 -0500 (EST) In-Reply-To: <18308.40419.541912.6211@tfkp07.physik.uni-erlangen.de> (Roland Winkler's message of "Wed, 9 Jan 2008 11:11:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:86644 Archived-At: >> > I guess the message means that cancel-change-group couldn't find the >> > path (through undo entries) going from the current state to the >> > original state. More specifically, it means that the current undo-log >> > does not contains as one of its nthcdr the head of the original >> > undo logs. That might be the case if the changes to undo are too >> > numerous and the undo-log has been truncated to the point where the >> > undo-info needed to revert the change are not present any more. >> >> I thought of something like this, though I couldn't phrase it as >> nicely and accurately as you did it :-) > If all this is true, and it is necessary to keep the error message > of cancel-chance-group in the code, then I'd be glad if this error > message could be replaced by something that is more transparent for > the average emacs user. I do not know what I could do with it except > for bringing it up here. If you can think of a better message, I'm all ears. The "cancel-change-group: Wrong type argument: listp, t" error should be fixed OTOH. And it might indicate that the problem lies elsewhere: maybe the undo was disabled somewhere within the atomic-change-group. Stefan