From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: `after-change-functions' and undo Date: Sun, 28 Nov 2004 16:51:27 +0200 Message-ID: <200411281651.27454.pogonyshev@gmx.net> References: <200411280143.18836.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1101653806 1004 80.91.229.6 (28 Nov 2004 14:56:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2004 14:56:46 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 28 15:56:41 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 1CYQTh-0005oT-00 for ; Sun, 28 Nov 2004 15:56:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYQd2-000084-U6 for ged-emacs-devel@m.gmane.org; Sun, 28 Nov 2004 10:06:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYQck-00007c-O8 for emacs-devel@gnu.org; Sun, 28 Nov 2004 10:06:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYQck-00007I-4H for emacs-devel@gnu.org; Sun, 28 Nov 2004 10:06:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYQcj-000077-W3 for emacs-devel@gnu.org; Sun, 28 Nov 2004 10:06:02 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CYQT3-0003bt-2I for emacs-devel@gnu.org; Sun, 28 Nov 2004 09:56:02 -0500 Original-Received: (qmail 2782 invoked by uid 65534); 28 Nov 2004 14:49:19 -0000 Original-Received: from unknown (EHLO localhost.localdomain) (195.50.12.121) by mail.gmx.net (mp008) with SMTP; 28 Nov 2004 15:49:19 +0100 X-Authenticated: #16844820 Original-To: David Kastrup User-Agent: KMail/1.4.3 In-Reply-To: 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:30455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30455 David Kastrup wrote: > Paul Pogonyshev writes: > > I'm having a problem with `after-change-functions' and undo > > interference. > > > > So, the question is: can I prevent my `after-change' hook > > from running while undo is in effect? I couldn't figure out > > from the manual. > > undo-in-progress's value is nil > > Non-nil while performing an undo. > Some change-hooks test this variable to do something different. > > Defined in `simple'. That's exactly what I was looking for, thank you. Maybe it should be added to the Elisp manual? I can do this, but I'm not sure where to add the description. Paul