From: Jeff Miller <jmiller@cablespeed.com>
Subject: Re: What's wrong with this elisp code?
Date: Fri, 4 Aug 2006 15:53:17 -0400 [thread overview]
Message-ID: <17619.42413.326257.699980@gargle.gargle.HOWL> (raw)
In-Reply-To: <44D32639.80305@speakeasy.net>
ken writes:
> > I think this variable is only used inside of some let statements and
> > not available for general use.
>
> My elisp skills are limited, but I'm tending to agree with you. I
> haven't found a specific "(defvar diary-entries-list)" in any of the
> files related to the calendaring or diary functions.
I know I managed to use it in a lisp function once before. I think I
had to use diary-hook to run the function though. I'll have to look
at it closer later on. I'm heading out tonight and will be away all
week.
> > If you use this in your emacs-diary-day.el, does it get you closer to
> > what you want?
> >
> > (let* ((diary-display-hook 'fancy-diary-display)
> > (diary-list-include-blanks t)
> > (text (progn (list-diary-entries (calendar-current-date) 1)
> > (set-buffer fancy-diary-buffer)
> > (buffer-substring (point-min) (point-max)))))
> > (find-file "emacs-diary-day")
> > (erase-buffer)
> > (insert text))
> > (save-buffer)
> >
>
> The error I'm getting with this is a little different:
>
> Loading rng-auto.el (source)...
> Loading /usr/lib/emacs/21.3/i586-suse-linux/fns-21.3.1.el (source)...
> Symbol's function definition is void: list-diary-entries
>
Ah, I think it's missing diary-lib, try invoking it like this:
emacs -batch -l diary-lib -l /home/jmiller/local/lisp/emacs-diary-day.el
Or add (require 'diary-lib) at the beginning of emacs-diary-day.el.
> Thanks for the effort though,
> ken
Jeff
--
Jeff Miller
jmiller@cablespeed.com
next prev parent reply other threads:[~2006-08-04 19:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4811.1154626598.9609.help-gnu-emacs@gnu.org>
2006-08-04 3:31 ` What's wrong with this elisp code? Jeff Miller
[not found] ` <44D32639.80305@speakeasy.net>
2006-08-04 19:53 ` Jeff Miller [this message]
2006-08-03 17:35 ken
2006-08-03 19:16 ` Peter Dyballa
[not found] ` <44D24F39.5080607@speakeasy.net>
[not found] ` <52A05EBB-9A5D-48C9-8A2A-553908FD097E@Web.DE>
[not found] ` <44D25BD4.7040006@speakeasy.net>
[not found] ` <C1580EEC-6A6C-4FE3-8295-070AC6D482AD@Web.DE>
[not found] ` <44D327DF.6090500@speakeasy.net>
2006-08-04 11:27 ` Peter Dyballa
2006-08-04 19:39 ` ken
2006-08-04 20:04 ` Peter Dyballa
[not found] ` <mailman.4866.1154720372.9609.help-gnu-emacs@gnu.org>
2006-08-04 20:51 ` Glenn Morris
[not found] ` <mailman.4842.1154691137.9609.help-gnu-emacs@gnu.org>
2006-08-04 22:23 ` Glenn Morris
2006-08-05 0:06 ` ken
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17619.42413.326257.699980@gargle.gargle.HOWL \
--to=jmiller@cablespeed.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).