diff options
| author | Lars Ingebrigtsen | 2021-08-31 03:04:22 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-08-31 03:04:22 +0200 |
| commit | 50765f3f511d467ff024dda7c84530c759253d18 (patch) | |
| tree | 4e2d2c790599d7ba2a34433977557deb4cedb31b /src | |
| parent | d2ad64b7a524450bd1a4f59a5e0801abb0637b32 (diff) | |
| download | emacs-50765f3f511d467ff024dda7c84530c759253d18.tar.gz emacs-50765f3f511d467ff024dda7c84530c759253d18.zip | |
Make run-at-time try harder to run at integral multiples
* lisp/emacs-lisp/timer.el (timer): Add new slot integral-multiple.
(timerp): Adjust.
(timer-event-handler): Recompute the delay if requested
(bug#39099).
(run-at-time): Mark the timer as recomputable if given a t
parameter.
* src/keyboard.c (decode_timer): Adjust.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 2e4c4e6aabf..81ff9df153d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4234,7 +4234,7 @@ decode_timer (Lisp_Object timer, struct timespec *result) | |||
| 4234 | { | 4234 | { |
| 4235 | Lisp_Object *vec; | 4235 | Lisp_Object *vec; |
| 4236 | 4236 | ||
| 4237 | if (! (VECTORP (timer) && ASIZE (timer) == 9)) | 4237 | if (! (VECTORP (timer) && ASIZE (timer) == 10)) |
| 4238 | return false; | 4238 | return false; |
| 4239 | vec = XVECTOR (timer)->contents; | 4239 | vec = XVECTOR (timer)->contents; |
| 4240 | if (! NILP (vec[0])) | 4240 | if (! NILP (vec[0])) |