John Sullivan-2 wrote:
>
> René j <[EMAIL PROTECTED]> writes:
>> 1. Whenever I create a task (planner-create-task) I would like to be
>> prompted not only for the "task description", its "date", and the
>> "related
>> page" but also for its deadline. Is there a way I can insert
>> "planner-deadline-add" in some hook so that both operations
>> (planner-create-task and planner-deadline-add) can be performed at the
>> same
>> time?
>
> How about just typing the deadline as part of the description?
>
> Describe task: Like this {{Deadline: 2004.09.12}}
>
This would do the trick but it is much more convenient to get prompted for
the Task description by planner-create-task and for its deadline by
planner-deadline-add.
John Sullivan-2 wrote:
>
>> 2. Same question with "planner-rank-change". Is there a way I can insert
>> "planner-rank-change" in some hook so that both operations
>> (planner-create-task and planner-rank-change) can be performed at the
>> same
>> time?
>
> planner-create-task-from-buffer-hook might be helpful, if I understand you
> right.
>
Yes. This is working with planner-rank-change. On the other hand this does
not work when placing planner-deadline-add in this hook. It leads to the
following error message:
Wrong number of arguments: planner-deadline-add, 0
So I tried with planner-deadline-change instead and nothing happened (I do
not get asked for the deadline date)
Do you know why by any chance?
John Sullivan-2 wrote:
>
>> 3. Whenever I add a deadline (planner-deadline-add) to a previously
>> created
>> task, the task is duplicated. Therefore I always have to get rid of one
>> of
>> them. How can I fix this?
>>
>
> That doesn't happen here. Can you give some more details about how you
> trigger
> this? What versions of planner and muse are you using? What planner
> modules do
> you have loaded?
>
Planner 3.21. Muse 3.02.93.
Here is my planner configuration file:
> (require 'planner)
> (require 'planner-tasks-overview)
> (planner-install-extra-context-keybindings)
> (planner-install-extra-task-keybindings)
> (planner-install-extra-note-keybindings)
>
> (global-set-key "\C-ct" 'planner-create-task)
> (global-set-key "\C-cT" 'planner-create-high-priority-task-from-buffer)
> (define-key planner-mode-map "\C-c\C-o\C-t"
> 'planner-create-note-from-task)
> (define-key planner-mode-map "\C-c\C-c" 'muse-project-publish)
> (define-key global-map [f7] 'planner-appt-forthcoming-display)
>
> (require 'planner-publish)
> (setq planner-day-page-template "* Schedule\n\n\n* Tasks\n\n\n*
> Notes\n\n\n")
> (setq planner-reverse-chronological-notes nil)
>
> (require 'planner-vm)
> (require 'planner-bbdb)
>
> (require 'planner-deadline)
> (add-hook 'planner-mode-hook 'planner-deadline-update)
>
> (setq planner-sort-tasks-key-function 'planner-sort-tasks-by-rank)
> (setq planner-renumber-tasks-automatically t)
>
>
> (require 'planner-trunk)
> (setq planner-trunk-rule-list
> '(("\\`[0-9][0-9][0-9][0-9]\\.[0-9][0-9]\\.[0-9][0-9]\\'"
> nil
> ("po\\|maison\\|eel\\|famille" "vpcevu\\|research\\|teaching"))
> ))
> (add-hook 'planner-mode-hook 'planner-trunk-tasks)
>
> (require 'planner-appt)
> (planner-appt-use-schedule)
> (planner-appt-insinuate)
> (setq planner-appt-sort-schedule-on-update-flag t)
> (setq planner-appt-update-appts-on-save-flag t)
> (planner-appt-calendar-insinuate)
>
> (require 'planner-diary)
> (setq planner-diary-use-diary t)
> (planner-diary-insinuate)
> (setq planner-diary-string "* Schedule")
>
> (planner-calendar-insinuate)
> (define-key calendar-mode-map "G" 'planner-calendar-goto)
>
> (require 'planner-calendar)
> (planner-option-customized 'planner-html-inner-header "<calendar
> arrows=\"t\">")
>
> (eval-after-load "muse-publish"
> '(add-hook 'muse-after-publish-hook
> 'planner-calendar-create-today-link nil t))
>
> (setq muse-xml-markup-specials
> '((?\" . """)
> (?\< . "<")
> (?\> . ">")))
>
> (defun planner-insert-date-title-maybe ()
> (when (string-match planner-date-regexp (planner-page-name))
> (save-excursion
> (goto-char (point-min))
> (unless (looking-at "#title")
> (insert
> (format "#title %s\n\n"
> (calendar-date-string
> (planner-filename-to-calendar-date
> (planner-page-name)))))))))
>
> (add-hook 'planner-mode-hook #'planner-insert-date-title-maybe)
>
> (setq planner-carry-tasks-forward 3)
> (setq planner-expand-name-favor-future-p t)
>
> (custom-set-faces
> '(planner-medium-priority-task-face ((t (:foreground "blue"))))
> '(planner-low-priority-task-face ((t (:foreground "green"))))
> '(planner-appt-face ((t (:foreground "blue")))) )
>
> (setq planner-use-task-numbers t)
>
--
View this message in context:
http://www.nabble.com/Task-duplicated-when-planner-deadline-add%28ed%29-tf3443696.html#a10138324
Sent from the Planner-el-discuss mailing list archive at Nabble.com.
_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss