From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Curley Newsgroups: gmane.emacs.help Subject: Re: Daily Diary Display in Emacs emacs24 24.4+1-5 Date: Fri, 23 Oct 2015 16:11:09 -0600 Message-ID: <20151023161109.6dbb5fae@jhegaala.localdomain> References: <20151023102409.76785eec@jhegaala.localdomain> <874mhhb9ic.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1445638298 2812 80.91.229.3 (23 Oct 2015 22:11:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 22:11:38 +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 00:11:38 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 1ZpkYY-0001M0-8F for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Oct 2015 00:11:26 +0200 Original-Received: from localhost ([::1]:41814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpkYX-0003Wn-IX for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 18:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpkYN-0003Wi-RW for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 18:11:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpkYK-0003lA-HV for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 18:11:15 -0400 Original-Received: from mail.endcrypt.com ([2607:f0d0:1301:23::3]:60882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpkYK-0003l6-Ca for help-gnu-emacs@gnu.org; Fri, 23 Oct 2015 18:11:12 -0400 Original-Received: from jhegaala.localdomain (unknown [199.192.126.172]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.endcrypt.com (Postfix) with ESMTPSA id B812B80410 for ; Fri, 23 Oct 2015 22:11:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.endcrypt.com B812B80410 In-Reply-To: <874mhhb9ic.fsf@debian.uxu> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f0d0:1301:23::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:107802 Archived-At: On Fri, 23 Oct 2015 22:44:11 +0200 Emanuel Berg wrote: > 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. Yeah, I know it's disorganized. I've been using emacs since version 19.x, and across that many version, it just metastasizes. > > 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 Sorry about that. "system-is-desktop" is a function local to my network which looks at the host name, and returns t or nil depending on whether I consider the computer a desktop machine or a server. 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. > > 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. Exactly. I leave my desktops on 24/7 whenever I can. > 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! 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. -- The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. -- U.S. Const. Amendment IV Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB