[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: desktop.el: autosave?
From: |
Juri Linkov |
Subject: |
Re: desktop.el: autosave? |
Date: |
Sat, 27 Apr 2013 23:57:15 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
> I suggest:
>
> Reset the auto-save timer.
> Cancel any previous timer. When `desktop-auto-save-timeout' is a positive
> integer, start a new timer to call `desktop-auto-save' in that many seconds.
Thanks, your docstring is much better.
After testing for some more time I see no problems with `run-with-timer'.
If someone will find it problematic then another option could be added
with a name like `desktop-auto-save-idle-timeout' to use `run-with-idle-timer'
in addition to `run-with-timer'.