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

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

Re: [emacs-wiki-discuss] pll/planner-create-task-from-note


From: Paul Lussier
Subject: Re: [emacs-wiki-discuss] pll/planner-create-task-from-note
Date: Tue, 05 Apr 2005 16:19:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Here's a newer version of this function, any and all feedback greatly
appreciated:

  (defun pll/planner-create-task-from-note ()
    "Create a task from the note at point, using the information
  provided by planner-current-note-info and create a task out of it
  using: planner-create-task"
    (interactive)

    ;; get the information fromthe note and stuff it into vars
    (let* ((info      (planner-current-note-info))
        (title     (planner-note-title info))
        (link-text (planner-note-link-text info))
        (plan      (planner-note-plan info))
        ;; get the date from the user, in case they want to put it
        ;; somewhere else
        (date  (planner-read-date)))
        ;; Create the task based on what we've learned...
        (planner-create-task title date link-text plan  )))


-- 
Thanks,
Paul




reply via email to

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