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: Fri, 4 Aug 2006 15:53:17 -0400 Message-ID: <17619.42413.326257.699980@gargle.gargle.HOWL> References: <44D32639.80305@speakeasy.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154847982 28212 80.91.229.2 (6 Aug 2006 07:06:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2006 07:06:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 09:06:14 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 1G9ciD-0000R5-N2 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Aug 2006 09:06:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9ciD-0005Pl-AG for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Aug 2006 03:06:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G95ja-0002zI-4O for help-gnu-emacs@gnu.org; Fri, 04 Aug 2006 15:53:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G95jY-0002we-8e for help-gnu-emacs@gnu.org; Fri, 04 Aug 2006 15:53:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G95jY-0002wN-3A for help-gnu-emacs@gnu.org; Fri, 04 Aug 2006 15:53:24 -0400 Original-Received: from [216.15.205.76] (helo=admin2.cablespeed.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G95nA-00009f-Vv for help-gnu-emacs@gnu.org; Fri, 04 Aug 2006 15:57:09 -0400 Original-Received: from dummy.name; Fri, 04 Aug 2006 14:54:06 -0500 Original-To: GNU Emacs List In-Reply-To: <44D32639.80305@speakeasy.net> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Mailman-Approved-At: Sun, 06 Aug 2006 03:05:33 -0400 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:36531 Archived-At: 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