[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] A lock function.
From: |
mail |
Subject: |
Re: [feature request] A lock function. |
Date: |
Sun, 23 Nov 2008 21:43:18 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
anhnmncb <address@hidden> writes:
> "Davis Herring" <address@hidden> writes:
>> (defun lock-emacs ()
>> (interactive)
>> (let ((inhibit-quit t))
>> (while (not (equal (read-passwd "Unlock: ") "potrzebie"))
>> (setq quit-flag nil)))) ; prevent C-g from looping
>>
>> Davis
> That's great, now I can set it to run after a particular idle time!
>
> Thank you :)
>
I think run-at-time is what you're after, its signature is
(run-at-time time repeat function &rest args)
Take a look at the documentation for it.
- [feature request] A lock function., anhnmncb, 2008/11/22
- Re: [feature request] A lock function., anhnmncb, 2008/11/22
- Re: [feature request] A lock function., Stefan Monnier, 2008/11/22
- Re: [feature request] A lock function., anhnmncb, 2008/11/23
- Re: [feature request] A lock function., Gilaras Drakeson, 2008/11/23
- Re: [feature request] A lock function., anhnmncb, 2008/11/23
- Re: [feature request] A lock function., Davis Herring, 2008/11/23
- Re: [feature request] A lock function., anhnmncb, 2008/11/23
- Re: [feature request] A lock function.,
mail <=
- Re: [feature request] A lock function., Stefan Monnier, 2008/11/23
- Re: [feature request] A lock function., Eli Zaretskii, 2008/11/24