From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Daily Diary Display in Emacs emacs24 24.4+1-5 Date: Sat, 24 Oct 2015 02:20:59 +0200 Message-ID: <87r3kl6rro.fsf@debian.uxu> References: <20151023102409.76785eec@jhegaala.localdomain> <874mhhb9ic.fsf@debian.uxu> <20151023161109.6dbb5fae@jhegaala.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445645548 6304 80.91.229.3 (24 Oct 2015 00:12:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2015 00:12:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 24 02:12:15 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpmRK-00010C-Cb for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 02:12:06 +0200 Original-Received: from localhost ([::1]:42151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpmRJ-0005cK-Qo for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 20:12:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpmR8-0005c5-CW for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 20:11:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpmR4-0005vN-Ao for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 20:11:54 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpmR4-0005uZ-4G for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 20:11:50 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZpmR1-0000ac-V5 for help-gnu-emacs@gnu.org; Sat, 24 Oct 2015 02:11:47 +0200 Original-Received: from nl106-137-244.student.uu.se ([130.243.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2015 02:11:47 +0200 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2015 02:11:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-244.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:1tTgLrAyh2q+mfyfvby/JK6Fpxs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107803 Archived-At: Charles Curley writes: > Yeah, I know it's disorganized. I've been using > emacs since version 19.x, and across that many > version, it just metastasizes. At least your code did ;) > I don't think it's a matter of the current code not > working (as far as I know). It's a matter what used > to work no longer does so. Since I have not changed > my code going from 23 to 24, that suggests the > problem is somewhere in emacs. As you know, it has been known to happen, that code that worked in one version doesn't work in the next. And, if it "works" in the sense it doesn't produce an error message but seizes to produce the desired behavior, then it sort of doesn't work, does it? Always, the cleaner the code, the more easy to troubleshoot whatever the scenario... > Exactly. I leave my desktops on 24/7 whenever I can. > > I can get it to do what I want manually. M-x diary > does it. I suspect there's a hook in there somewhere > to which I should be adding some code which > ultimately calls diary. > > What I don't know is, what used to tell emacs to run > diary every night? That is what is no > longer working. Examine the calendar and/or diary variables, documentation, and so on. You can schedule it manually ~like this: (require 'cl-lib) (defvar my-timer) (setq my-timer (timer-create)) (defvar *its* 0) (setq *its* 0) ;; replace this with a diary updating function (defun every-five () (message "Five! %s"(make-string (cl-incf *its*) ?\.))) (timer-set-function my-timer 'every-five) (timer-set-time my-timer (current-time) 5) ; once a day = every 86400 second! (timer-activate my-timer) ;; (cancel-timer my-timer) -- underground experts united http://user.it.uu.se/~embe8573