[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22658: 25.1.50; `undo-auto--boundary-timer` -- is it necessary to pu
From: |
Keith David Bershatsky |
Subject: |
bug#22658: 25.1.50; `undo-auto--boundary-timer` -- is it necessary to put this on a the `timer-list'? |
Date: |
Sun, 14 Feb 2016 08:59:50 -0800 |
Thank you, Eli, for taking a look at #22658.
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.
;; Prevent the `timer-list' from receiving `undo-auto--boundary-timer'.
(defun undo-auto--undoable-change ()
"Called after every undoable buffer change."
;; (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer))
;; (undo-auto--boundary-ensure-timer)
)
(setq timer-list (delq 'undo-auto--boundary-timer timer-list))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
At Sun, 14 Feb 2016 18:35:49 +0200,
Eli Zaretskii wrote:
>
>
> You can always remove the timer from timer-list, can't you? In Emacs
> 25.1.50, there's even a command to do that.