unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: timers and undo
Date: Fri, 24 Dec 2004 16:32:15 -0600 (CST)	[thread overview]
Message-ID: <200412242232.iBOMWFd16657@raven.dms.auburn.edu> (raw)

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.

             reply	other threads:[~2004-12-24 22:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24 22:32 Luc Teirlinck [this message]
2004-12-27  4:09 ` timers and undo Richard Stallman
2004-12-27 22:33   ` Stefan Monnier
2004-12-29  4:04   ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200412242232.iBOMWFd16657@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).