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: Fri, 23 Oct 2015 22:44:11 +0200 Message-ID: <874mhhb9ic.fsf@debian.uxu> References: <20151023102409.76785eec@jhegaala.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445632548 13344 80.91.229.3 (23 Oct 2015 20:35:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 20:35:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 22:35:39 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 1Zpj3c-0000gv-IM for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 22:35:24 +0200 Original-Received: from localhost ([::1]:41527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj3X-0007TR-5L for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 16:35:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj3M-0007TC-8J for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 16:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpj3J-0005mS-12 for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 16:35:08 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj3I-0005m6-S1 for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 16:35:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zpj3G-0000K5-DL for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 22:35:02 +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 ; Fri, 23 Oct 2015 22:35:02 +0200 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 22:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 44 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:OUxaCF8dNfiSCT2RYz3sMeayirA= 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:107800 Archived-At: Charles Curley writes: > 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. > > Relevant portions of my .emacs ... That code is very disorganized. Try to clean it up. Consider moving it all to file of its own, e.g., my-calendar.el and then `load' it from .emacs. You don't mention which part of the code doesn't work - as for me, I don't even have a "system-is-desktop" function, which is the first line of your code - I'm on GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian but it might be a package thing rather. Anyway, what is it that you want to happen? You write "I have had emacs re-display my diary every day automatically." Literally, that sounds like you have Emacs on 24/7 and you want it to automatically update the diary every 24 hours. But more likely (since you mention "desktop") you want Emacs to bring up the diary on startup. Or? Which is it? In general, instead relying on such wild-west code, do what you want interactively, with M-x (and shortcuts), then, when you get it to work, replicate what you just did in code. It shouldn't be like several pages! Keep configuration (settings, usually `setq') and behavior (functions, i.e. `defun's) apart. -- underground experts united http://user.it.uu.se/~embe8573