From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeff Miller Newsgroups: gmane.emacs.help Subject: Re: What's wrong with this elisp code? Date: 03 Aug 2006 23:31:51 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154662887 30560 80.91.229.2 (4 Aug 2006 03:41:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 03:41:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 05:41:26 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 1G8qYw-0007SW-69 for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2006 05:41:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8qYv-0002yQ-M2 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Aug 2006 23:41:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.cablespeedmd.com!news.cablespeedmd.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 03 Aug 2006 22:31:51 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Constant Variable) Original-Lines: 29 Original-NNTP-Posting-Host: 24.35.33.41 Original-X-Trace: sv3-DfPwMvFQck9uwkTGhl/+vXPMNsp0tjCsnjFWiVjEn57twQPTOtSfHEx5U126rxYeKcNCnS+G3WKoVNs!8Tx4uyvv2RLCFQ6rCfIucxPJvC3xlwfZBiPG+xqFkAzq2As4uspy0ozXKrBQH/kwLQ7YHvUi Original-X-Complaints-To: abuse@cablespeedmd.com X-DMCA-Complaints-To: abuse@cablespeedmd.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:140832 Original-To: help-gnu-emacs@gnu.org 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:36457 Archived-At: ken writes: > 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 I think this variable is only used inside of some let statements and not available for general use. 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) -- Jeff Miller jmiller@cablespeed.com