unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: mail@justinbogner.com
To: emacs-devel@gnu.org
Subject: Re: [feature request] A lock function.
Date: Sun, 23 Nov 2008 21:43:18 -0700	[thread overview]
Message-ID: <87tz9x4tuh.fsf@justinbogner.com> (raw)
In-Reply-To: 871vx1hn3e.fsf@sina.com

anhnmncb <anhnmncb@sina.com> writes:

> "Davis Herring" <herring@lanl.gov> 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.





  reply	other threads:[~2008-11-24  4:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-22 11:12 [feature request] A lock function anhnmncb
2008-11-22 12:22 ` anhnmncb
2008-11-23  3:54   ` Stefan Monnier
2008-11-23  6:02     ` anhnmncb
2008-11-23  6:27       ` Gilaras Drakeson
2008-11-23  8:54         ` anhnmncb
2008-11-24  0:09           ` Davis Herring
2008-11-24  2:30             ` anhnmncb
2008-11-24  4:43               ` mail [this message]
2008-11-24  3:00       ` Stefan Monnier
2008-11-24 20:27         ` Eli Zaretskii

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=87tz9x4tuh.fsf@justinbogner.com \
    --to=mail@justinbogner.com \
    --cc=emacs-devel@gnu.org \
    /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).