all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What's wrong with this elisp code?
@ 2006-08-03 17:35 ken
  2006-08-03 19:16 ` Peter Dyballa
  0 siblings, 1 reply; 10+ messages in thread
From: ken @ 2006-08-03 17:35 UTC (permalink / raw)



This line below is in a script:

emacs --batch emacs-diary-day >& /home/xxx/tmp/emacs-diary-log

In /usr/share/emacs/21.3/site-lisp/ (confirmed in load-path) is a file
entitled emacs-diary-day.el; this file contains:

;show today's entries only
(diary 1)
(find-file "/home/xxx/tmp/emacs-diary-day")
;erase everything that might be in the buffer
(erase-buffer)

;see below for the arg to insert
;(apply 'insert diary-entries-list)
;tried both the above and below. Same error either way
(insert diary-entries-list)
(save-buffer)



I found this documentation earlier today:

the variable `diary-entries-list' is a list, in order by date, of all
relevant diary entries in the form of ((MONTH DAY YEAR) STRING), where
string is the diary entry for the given date.  This can be used, for
example, a different buffer for display (perhaps combined with
holidays), or produce hard copy output.

But I'm getting the error:

Loading rng-auto.el (source)...
Loading /usr/lib/emacs/21.3/i586-suse-linux/fns-21.3.1.el (source)...
Preparing diary...
Preparing diary...done
Symbol's value as variable is void: diary-entries-list

If I (setq diary-entries-list "Some string of chars")
there's no error, but of course this isn't what I'm after.

Any happy tips?

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <mailman.4811.1154626598.9609.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-08-05  0:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 17:35 What's wrong with this elisp code? 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
     [not found] <mailman.4811.1154626598.9609.help-gnu-emacs@gnu.org>
2006-08-04  3:31 ` Jeff Miller
     [not found]   ` <44D32639.80305@speakeasy.net>
2006-08-04 19:53     ` Jeff Miller

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.