From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: `after-change-functions' and undo Date: Mon, 29 Nov 2004 01:11:54 -0500 Message-ID: References: <200411280143.18836.pogonyshev@gmx.net> <200411281651.27454.pogonyshev@gmx.net> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101708908 5841 80.91.229.6 (29 Nov 2004 06:15:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2004 06:15:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 29 07:15:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CYeoT-0007eM-00 for ; Mon, 29 Nov 2004 07:15:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYexq-0004c4-UQ for ged-emacs-devel@m.gmane.org; Mon, 29 Nov 2004 01:24:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYexL-0004PX-DO for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:24:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYexJ-0004OC-FE for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:24:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYexJ-0004O1-BR for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:24:13 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CYenp-00006S-8h for emacs-devel@gnu.org; Mon, 29 Nov 2004 01:14:25 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CYelO-0002Ko-MA; Mon, 29 Nov 2004 01:11:54 -0500 Original-To: Paul Pogonyshev In-reply-to: <200411281651.27454.pogonyshev@gmx.net> (message from Paul Pogonyshev on Sun, 28 Nov 2004 16:51:27 +0200) 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: main.gmane.org gmane.emacs.devel:30473 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30473 I will add this. Thanks. *** text.texi 23 Oct 2004 00:52:51 -0400 1.79 --- text.texi 28 Nov 2004 19:53:10 -0500 *************** *** 1244,1249 **** --- 1244,1255 ---- undo individual replacements one by one. @end defun + @defvar undo-in-progress + This variable is normally @code{nil}, but the undo commands bind it to + @code{t}. This is so that various kinds of change hooks can tell when + they're being called for the sake of undoing. + @end defvar + @defun primitive-undo count list This is the basic function for undoing elements of an undo list. It undoes the first @var{count} elements of @var{list}, returning