emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Planner problems


From: Brett Presnell
Subject: [emacs-wiki-discuss] Re: Planner problems
Date: Wed, 26 May 2004 11:24:55 -0400

In message <address@hidden> you write:
> Brett Presnell <address@hidden> writes:
> 
> > Hmmm, now I'm getting (with the same .emacs): WikiPlanner/nil: Error
> > evaluating (planner-diary-entries-here): (wrong-type-argument arrayp
> > nil)
> 
> This seems to happen when there are no entries.
> 
> I've made it return "No entries" instead. Latest dev, as usual.

Now I'm getting

WikiPlanner/nil: Error evaluating (planner-diary-entries-here): 
(wrong-type-argument arrayp nil)

and still the message about invalid lisp code in the planner buffer.

To be sure that the problem wasn't anything on my end and to help you
reproduce it, I created a stripped down .emacs file, called
.emacs-test, with just the contents shown below.

I also created a diary file with only one entry:

May 26, 2004 5:00pm Test planner mode.

I even started with an empty ~/Plans directory.

Then I started emacs with "emacs -q -no-site-file &" and I did

 M-x load-library 

to load ~/.emacs-test

The problem still occurs.

----------------------------------------------------------------------
.emacs-test
----------------------------------------------------------------------
;;
;; Add my own elisp directory and its subdirectories to the load path.
;;
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
    (let* ((my-lisp-dir "~/Emacs/lisp/")
           (default-directory my-lisp-dir))
      (setq load-path (cons my-lisp-dir load-path))
      (normal-top-level-add-subdirs-to-load-path)))
;;
;; Add my own info directory to the info path.
;;
(setq Info-default-directory-list
    (cons "~/Emacs/info" Info-default-directory-list))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Planner
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'planner)
(setq planner-carry-tasks-forward t)
(require 'planner-notes-index)
(require 'planner-diary)
(planner-diary-insinuate)
(add-hook 'diary-display-hook 'fancy-diary-display)
(setq planner-day-page-template
     "* Tasks\n\n\n* Diary\n\n<lisp>(planner-diary-entries-here)</lisp>\n\n\n* 
Schedule\n\n\n* Notes")
(planner-insinuate-calendar)
(add-hook 'planner-mode-hook
          '(lambda ()
             (define-key planner-mode-map "\C-cu"
               'planner-update-task)))
(load "emacs-wiki")
(plan)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]