all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Charles Curley <charlescurley@charlescurley.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Daily Diary Display in Emacs emacs24	24.4+1-5
Date: Fri, 23 Oct 2015 16:11:09 -0600	[thread overview]
Message-ID: <20151023161109.6dbb5fae@jhegaala.localdomain> (raw)
In-Reply-To: <874mhhb9ic.fsf@debian.uxu>

On Fri, 23 Oct 2015 22:44:11 +0200
Emanuel Berg <embe8573@student.uu.se> wrote:

> Charles Curley <charlescurley@charlescurley.com>
> 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



  reply	other threads:[~2015-10-23 22:11 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 [this message]
2015-10-24  0:20     ` Emanuel Berg
2015-10-24  0:28 ` John Mastro
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151023161109.6dbb5fae@jhegaala.localdomain \
    --to=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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.