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

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

RE: [emacs-wiki-discuss] Re: Saving day pages and planner-appt er ror


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
>

This email and its attachments are confidential under applicable law and are intended for use of the sender's addressee only, unless the sender expressly agrees otherwise, or unless a separate written agreement exists between Iron Mountain and a recipient company governing communications between the parties and any data that may be so transmitted. Transmission of email over the Internet is not a secure communications medium. If you are requesting or have requested the transmittal of personal data, as defined in applicable privacy laws, by means of email or in an attachment to email, you may wish to select a more secure alternate means of transmittal that better supports your obligations to protect such personal data.

If the recipient of this message is not the recipient named above, and/or you have received this email in error, you must take no action based on the information in this email. You are hereby notified that any dissemination, misuse or copying or disclosure of this communication by a recipient who has received this message in error is strictly prohibited. If this message is received in error, please return this email to the sender and immediately highlight any error in transmittal. Thank you.

reply via email to

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