From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: timers and undo Date: Fri, 24 Dec 2004 16:32:15 -0600 (CST) Message-ID: <200412242232.iBOMWFd16657@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1103928135 20699 80.91.229.6 (24 Dec 2004 22:42:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Dec 2004 22:42:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 24 23:42:10 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 1Chy8Q-0005E4-00 for ; Fri, 24 Dec 2004 23:42:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ChyJ5-0003rw-6s for ged-emacs-devel@m.gmane.org; Fri, 24 Dec 2004 17:53:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ChyIa-0003kz-E1 for emacs-devel@gnu.org; Fri, 24 Dec 2004 17:52:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ChyIZ-0003kQ-9k for emacs-devel@gnu.org; Fri, 24 Dec 2004 17:52:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ChyIY-0003jP-52 for emacs-devel@gnu.org; Fri, 24 Dec 2004 17:52:38 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Chy1D-0002dm-7l for emacs-devel@gnu.org; Fri, 24 Dec 2004 17:34:43 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id iBOMYgFu004560 for ; Fri, 24 Dec 2004 16:34:42 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id iBOMWFd16657; Fri, 24 Dec 2004 16:32:15 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org 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:31377 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31377 The way timers treat undo is really peculiar. Do `emacs -q'. Then: M-: (run-at-time 5 5 (lambda () (with-current-buffer "*scratch*" (insert "aaaaaaa\n")))) Wait till enough lines are inserted. C-/. The entire block of inserted lines gets deleted all at once. This apparently causes problems with undo-outer-limit as I pointed out before. But there is more. Wait until once more a bunch of lines are inserted. I now expected that C-/ would get rid of these inserted lines once more. But no. It deletes the introductory comment lines. The "aaaaaaa" lines stay and they are impossible to undo after repaeting C-/ undo-more: No further undo information It seems hard to consider this a deliberate "feature". Sincerely, Luc.