From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: alarm clocks and timers in Emacs? Date: Sun, 2 Apr 2017 21:14:06 +0200 Message-ID: <20170402191406.GA31851@tuxteam.de> References: <87wpb3ktu6.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1491160499 32542 195.159.176.226 (2 Apr 2017 19:14:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2017 19:14:59 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 02 21:14:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cukxZ-00070F-VR for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Apr 2017 21:14:46 +0200 Original-Received: from localhost ([::1]:55984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cukxf-0004JO-O5 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Apr 2017 15:14:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cukxC-0004I6-Pb for help-gnu-emacs@gnu.org; Sun, 02 Apr 2017 15:14:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cukx9-0005rv-LP for help-gnu-emacs@gnu.org; Sun, 02 Apr 2017 15:14:22 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:50352 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cukx9-0005gk-FH for help-gnu-emacs@gnu.org; Sun, 02 Apr 2017 15:14:19 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1cukww-0008Ok-Nl for help-gnu-emacs@gnu.org; Sun, 02 Apr 2017 21:14:06 +0200 In-Reply-To: <87wpb3ktu6.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112679 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Apr 02, 2017 at 10:05:37AM +0000, Devin Prater wrote: > Hi all. Does anyone know if there are any kinds of alarm clocks or > timers in Emacs, or in Elpa or Melpa? Just one of those things I’d like > to have in my… Desktop. See the entries timers [1] and idle timers [2] in the Emacs Lisp manual. Basically, you call (run-at-time "12:00" my-function) for calling my-function at an absolute time, or (run-at-time "1 min" my-function) to call my-function a minute from now. Repeats can be specified, etc. The "idle" variants are for when you want to specify that Emacs be idle for that long to actually call your function. See the docs for the gories. Or ask here for more specifics. [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html#Timers [2] https://www.gnu.org/software/emacs/manual/html_node/elisp/Idle-Timers.html#Idle-Timers regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAljhTX4ACgkQBcgs9XrR2kZgsQCfW2rICR/IXITE/y4RHXYgUmcH izYAn05Q4ADHWyZjrTkuGi5JwNIYOxSm =Yr3f -----END PGP SIGNATURE-----