|
From: | David Lord |
Subject: | RE: [emacs-wiki-discuss] Re: Saving day pages and planner-appt er ror |
Date: | Thu, 9 Jun 2005 08:37:29 +0100 |
Sacha,
Yes, that fixes it, thankyou. I wonder if its to do with the age of my emacs build, its 21.3.1 but the date is 2003-03-28. I'll try something newer when I get a chance.
BTW, I've been using planner for a year now. Its a great tool, thankyou.
Regards
--
David Lord
> -----Original Message-----
> From:
> address@hidden
>
> [mailto:address@hidden
> ngnu.org] On Behalf Of Sacha Chua
> Sent: 08 June 2005 16:21
> To: address@hidden
> Subject: [emacs-wiki-discuss] Re: Saving day pages and
> planner-appt error
>
>
> David Lord <address@hidden> writes:
>
> > 'write-file-functions
> > 'local-write-file-hooks)))
> > (add-hook hook 'planner-renumber-notes-maybe t t)
> > But write-file-functions does not appear to be defined
> anywhere in my
> > environment (GNU Emacs 21.3.1 Windows 2000). It is not
> mentioned in any
> > lisp files apart from planner.
>
> Hmm. Let's try that with write-file-hooks instead of
> local-write-file-hooks... Does this work?
>
> (define-derived-mode planner-mode emacs-wiki-mode "Planner"
> "An extension to Emacs Wiki that supports a planning system.
> \\{planner-mode-map}"
> ;; because we're not inheriting from normal-mode, we need to
> ;; explicitly run file variables if the user wants to
> (condition-case err
> (hack-local-variables)
> (error (message "File local-variables error: %s"
> (prin1-to-string err))))
> ;; check to see if the mode changed
> (when (eq major-mode 'planner-mode)
> (let ((hook 'write-file-hooks))
> (add-hook hook 'planner-renumber-notes-maybe t t)
> (add-hook hook 'planner-sort-tasks-maybe t t)
> (add-hook hook 'planner-renumber-tasks-maybe t t)
> (add-hook hook 'planner-align-tasks-maybe t t))
> (add-hook 'emacs-wiki-before-highlight-buffer-hook
> 'planner-zap-overlays t t)
> (add-hook 'emacs-wiki-before-highlight-buffer-hook
> 'planner-highlight-tasks t t)
> (add-hook 'emacs-wiki-before-highlight-buffer-hook
> 'planner-highlight-notes t t)
> (when (fboundp 'easy-menu-add)
> (easy-menu-add planner-menu planner-mode-map))
> (planner-prepare-file)))
>
> --
> Sacha Chua <address@hidden> - open source geekette
> http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
> interests: emacs, gnu/linux, personal information management, CS ed
> sachac on irc.freenode.net#emacs . YM: sachachua83
>
>
> _______________________________________________
> emacs-wiki-discuss mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
>
[Prev in Thread] | Current Thread | [Next in Thread] |