unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: 22658@debbugs.gnu.org
Subject: bug#22658: 25.1.50; `undo-auto--boundary-timer` -- is it necessary to put this on a the `timer-list'?
Date: Thu, 08 Jul 2021 03:10:38 +0200	[thread overview]
Message-ID: <87wnq1vcdt.fsf_-_@gnus.org> (raw)
In-Reply-To: <m2y4anqlbt.wl%esq@lawlist.com> (Keith David Bershatsky's message of "Sun, 14 Feb 2016 08:59:50 -0800")

Keith David Bershatsky <esq@lawlist.com> writes:

> I didn't see an off switch because `undo-auto--undoable-change` is
> triggered from `insdel.c` and the timer will renew itself if it is
> merely removed from the `timer-list`.  I like undo/redo, but find
> myself spinning my mental wheels to see if this can somehow be moved
> to some type of hook or simply hard-wired to something other than a
> timer.

(I'm going through old bug reports.)

I think using timers for the undo boundary is the right solution here --
Emacs will put a lot of stuff on the timer list, like
`blink-cursor-start' etc.  If this makes certain debugging difficult,
I'd suggest advising run-at-time to ignore the problematic timers or
something along those lines.

But Emacs is doing the right thing here, I think, so I'm closing this
bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-07-08  1:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-14  8:04 bug#22658: 25.1.50; `undo-auto--boundary-timer` -- is it necessary to put this on a the `timer-list'? Keith David Bershatsky
2016-02-14 16:35 ` Eli Zaretskii
2016-02-14 16:59 ` Keith David Bershatsky
2021-07-08  1:10   ` Lars Ingebrigtsen [this message]

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=87wnq1vcdt.fsf_-_@gnus.org \
    --to=larsi@gnus.org \
    --cc=22658@debbugs.gnu.org \
    --cc=esq@lawlist.com \
    /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).