unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: Charles Curley <charlescurley@charlescurley.com>
Subject: Re: Daily Diary Display in Emacs emacs24 24.4+1-5
Date: Fri, 23 Oct 2015 17:28:41 -0700	[thread overview]
Message-ID: <CAOj2CQSNEXzH8iLAMNCABpxW2J2nCNZ4MXzUtLvYjys4RPhyOw@mail.gmail.com> (raw)
In-Reply-To: <20151023102409.76785eec@jhegaala.localdomain>

Charles Curley <charlescurley@charlescurley.com> wrote:
> I have emacs24, 24.4+1-5 on Debian 8.2 jessie. In the past (e.g. emacs
> 23.4+1-4 on debian 7.x, wheezy), I have had emacs re-display my diary
> every day automatically. This capability does not seem to work on this
> version of emacs.

As an example, this will call the `diary' function every night at
midnight. Is this the functionality you have in mind or do you need
something more sophisticated? I didn't see anything in the code you
posted that seems to do anything on a schedule. (But note that I don't
use `diary' myself).

    (defvar my-diary-update-timer
      (run-at-time "12am" (* 60 60 24) #'diary)
      "Timer to call `diary' ever night at midnight.")
    ;; To cancel:
    ;; (cancel-timer my-diary-update-timer)

-- 
john



  parent reply	other threads:[~2015-10-24  0:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-23 16:24 Daily Diary Display in Emacs emacs24 24.4+1-5 Charles Curley
2015-10-23 20:44 ` Emanuel Berg
2015-10-23 22:11   ` Charles Curley
2015-10-24  0:20     ` Emanuel Berg
2015-10-24  0:28 ` John Mastro [this message]
2015-10-24 15:44 ` Stephen Berman
2015-10-24 17:48 ` Charles Curley
2015-10-26 22:44   ` Charles Curley
2015-10-27  0:11     ` Emanuel Berg

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=CAOj2CQSNEXzH8iLAMNCABpxW2J2nCNZ4MXzUtLvYjys4RPhyOw@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=charlescurley@charlescurley.com \
    --cc=help-gnu-emacs@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.
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).