From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: What's wrong with this elisp code? Date: Thu, 03 Aug 2006 13:35:29 -0400 Message-ID: <44D233E1.6060900@speakeasy.net> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154626635 28855 80.91.229.2 (3 Aug 2006 17:37:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 17:37:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 03 19:37:11 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8h7r-0000Ka-UU for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Aug 2006 19:36:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8h7q-0002dV-5w for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Aug 2006 13:36:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8h7d-0002YR-7M for help-gnu-emacs@gnu.org; Thu, 03 Aug 2006 13:36:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8h7Y-0002Fy-0B for help-gnu-emacs@gnu.org; Thu, 03 Aug 2006 13:36:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8h7X-0002Ff-RA for help-gnu-emacs@gnu.org; Thu, 03 Aug 2006 13:36:31 -0400 Original-Received: from [69.17.117.9] (helo=mail7.sea5.speakeasy.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G8hAu-0001If-QC for help-gnu-emacs@gnu.org; Thu, 03 Aug 2006 13:40:01 -0400 Original-Received: (qmail 13365 invoked from network); 3 Aug 2006 17:36:26 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.27]) (gebser@[66.93.11.17]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 3 Aug 2006 17:36:25 -0000 User-Agent: Thunderbird 1.5.0.5 (X11/20060725) Original-To: GNU Emacs List X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36441 Archived-At: 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?