all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: diary-mail-entries
Date: Tue, 20 Mar 2007 22:45:19 -0600	[thread overview]
Message-ID: <etqd8o$vvj$1@sea.gmane.org> (raw)
In-Reply-To: <20070320214922.GD16535@relwi.unibe.ch>

sven.bretfeld@gmx.ch wrote:
> Hello list
> 
> I'm trying to set up a cron job sending me the entries of the Emacs
> diary every morning, just as described in
> 
> http://www.emacswiki.org/cgi-bin/wiki/DiaryMode#DiaryMode3
> 
> It's not working, since the mail sent by the script doesn't contain
> all of the entries of my diary file. It contains almost only
> automatical entries like holidays. A few personal entries are
> included, however, about two out of 20. Does anybody have an idea
> what's going wrong here?
> 
> I add the script and my settings below.
> 
> Thanks for help
> Sven
> 
> ------------
> 
> Here is the script (it's one line in the original; I tried 50 days
> just to see if any entry is caught at all, it should be 7 or less
> after I got it working):
> 
> #!/bin/bash
> emacs --batch --eval "(setq diary-mail-days 50 european-calendar-style
> t diary-file \"~/aktuell/myconf/diary\" diary-mail-addr
> \"sven.bretfeld@relwi.unibe.ch\")" -l diary-lib -f diary-mail-entries

You are probably aware that --batch implies --no-init-file, which means
your personal .emacs and installation's default.el files are not loaded.

Rather than partially replicating the contents of those files with
--eval etc., why not explicitly load them:

emacs --batch --load ~/.emacs --load default.el --funcall diary-mail-entries

> And here are the diary-settings of my .emacs:
> 
> (setq diary-file "~/aktuell/myconf/diary")
> 
> ;; Europäisch
> (setq european-calendar-style 't)
> (setq calendar-week-start-day 1
>        calendar-day-name-array
>          ["Sonntag" "Montag" "Dienstag" "Mittwoch" 
>           "Donnerstag" "Freitag" "Samstag"]
>        calendar-month-name-array
>          ["Januar" "Februar" "März" "April" "Mai" 
>           "Juni" "Juli" "August" "September" 
>           "Oktober" "November" "Dezember"])
> 
> ;; Start with diary (if there is an entry today)
> (diary)
> 
> ;; Timer
> (display-time)
> (add-hook 'diary-hook 'appt-make-list)
> (diary 0)
> 
> ;; LaTeX output des Kalenders
> (setq cal-tex-diary 't)


-- 
Kevin Rodgers
Denver, Colorado, USA

  reply	other threads:[~2007-03-21  4:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 21:49 diary-mail-entries sven.bretfeld
2007-03-21  4:45 ` Kevin Rodgers [this message]
2007-03-21 22:15   ` diary-mail-entries [SOLVED] sven.bretfeld
  -- strict thread matches above, loose matches on Subject: below --
2022-10-13 16:53 diary-mail-entries aalinovi
2022-10-13 17:31 ` diary-mail-entries Thorsten Bonow
2022-10-13 19:21 ` diary-mail-entries Emanuel Berg
2022-10-13 19:23 ` diary-mail-entries Emanuel Berg
2022-10-14 13:42 diary-mail-entries aalinovi
2022-10-16 20:31 ` diary-mail-entries Thorsten Bonow
2022-10-17 11:21   ` diary-mail-entries aalinovi

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='etqd8o$vvj$1@sea.gmane.org' \
    --to=kevin.d.rodgers@gmail.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.