Merged from mwolson@gnu.org--2006 (patch 50)
[planner-el.git] / planner-el.texi
blob4d443280b26370875a93c163bc73c934d026c6c6
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename planner-el.info
4 @settitle planner-el
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * planner-el: (planner-el). planner.el: Day planner/organizer for Emacs.
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for Planner version 3.40.
17 Copyright @copyright{} 2001, 2004, 2005, 2006 Free Software Foundation, Inc.@*
18 Parts copyright @copyright{} 2005 Jim Ottaway@*
19 Parts copyright @copyright{} 2005 Dryice Dong Liu
21 @quotation
22 Permission is granted to copy, distribute and/or modify this document
23 under the terms of the GNU General Public License, Version 2.0
24 or any later version published by the Free Software Foundation.
25 A copy of the license is included in the section entitled ``GNU
26 General Public License.''
27 @end quotation
28 @end copying
30 @titlepage
31 @title Guide to Planner
32 @subtitle a day planner and organizer
33 @subtitle for GNU Emacs and XEmacs
35 @c The following two commands
36 @c start the copyright page.
37 @page
38 @vskip 0pt plus 1filll
39 @insertcopying
40 @end titlepage
42 @c So the toc is printed at the start
43 @contents
45 @ifnottex
46 @node Top, Preface, (dir), (dir)
47 @comment  node-name,  next,  previous,  up
48 @top Planner
50 @insertcopying
51 @end ifnottex
53 @menu
54 * Preface::                     
55 * Introduction::                
56 * Installation::                
57 * Overview::                    A discussion of different approaches to planning
58 * Getting Started::             
59 * More about Planner::          In-depth look at some core features
60 * Managing Your Information::   Integration with external programs
61 * Advanced Configuration::      
62 * Reference Material::          
63 * Getting Help::                
64 * Acknowledgements::            
65 * GNU General Public License::  
66 * Concept Index::               
68 @detailmenu
69  --- The Detailed Node Listing ---
71 Installation
73 * Getting the Files::           
74 * Creating Your Planner::       
75 * Components::                  
76 * Advanced Installation::       
78 Getting the Files
80 * Installing from a Source Archive::  
81 * Installing from Arch::        
82 * Installing from Debian::      
84 Overview
86 * Planning based on the Franklin-Covey Approach::  
87 * Why Use Planner::             
89 Getting Started
91 * Tasks::                       
92 * Schedule::                    
93 * Notes::                       
94 * Hyperlinks::                  
95 * Example Page::                
96 * Review::                      
98 More about Planner
100 * Navigation::                  
101 * More about Tasks::            
102 * More about Notes::            
103 * Making Files Pretty::         
104 * Annotations::                 
105 * Interactive Lisp::            
106 * Publishing::                  
107 * Experimental Functions::      
109 More about Tasks
111 * Creating New Tasks::          
112 * Organizing Your Tasks::       
113 * Task Reports and Overviews::  
115 Creating New Tasks
117 * Creating a Task::             
118 * Task Priorities::             
119 * Task IDs::                    
120 * Cyclic Tasks::                
121 * Task Detail::                 
122 * Deadlines::                   
124 Organizing Your Tasks
126 * Multiple Projects::           
127 * Viewing Tasks::               
128 * Modifying Tasks::             
129 * Carrying Over Unfinished Tasks::  
130 * Task Numbering::              
131 * Task Ranks::                  
132 * Grouping Tasks::              
134 Task Reports and Overviews
136 * Accomplishments::             
137 * Task Overviews::              
138 * <tasks> tag::                 
140 More about Notes
142 * Using Allout Mode::           Quickly navigating your notes
143 * <notes>::                     Note headlines
144 * <past-notes>::                Index of past notes
145 * Note Indices::                
147 Publishing
149 * Publishing Calendars::        planner-calendar.el
150 * Authz Access Restriction::    planner-authz.el
151 * RSS Publication::             Sharing notes with planner-rss.el
152 * iCal Task Publication::       Sharing tasks with planner-ical.el
153 * RDF Publication::             planner-rdf.el
155 RDF Publication
157 * Publishing with planner-rdf::  
158 * planner-rdf Tags::            
159 * planner-rdf Usage Examples::  
161 Managing Your Information
163 * E-mail::                      Linking notes and tasks to messages
164 * Scheduling and Time::         Tracking appointments and where your time goes
165 * Finances::                    Display your account balances and more
166 * Contacts and Conversations::  BBDB and ERC
167 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
168 * Tracking Development::        
170 E-mail
172 * Unix mail::                   Unix mailboxes: planner-unix-mail.el              
173 * Gnus::                        Gnus mail and news reader: planner-gnus.el
174 * VM::                          VM mail reader: planner-vm.el
175 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
176 * MH-E::                        MH-E mail reader: planner-mhe.el
177 * Rmail::                       Rmail: planner-rmail.el
179 Scheduling and Time
181 * Diary::                       Using the Emacs diary
182 * Appointments::                Appointments in plan pages: planner-appt.el
183 * Timeclock::                   Time tracking: planner-timeclock.el
184 * schedule.el::                 Project completion: planner-schedule.el
186 Diary
188 * Planner-Diary Advanced Features::  
190 Usage
192 * Task-based Appointments::     
193 * Schedule-based Appointments::  
194 * Viewing Appointments::        
195 * Appointment Updating on Save::  
196 * Appointment and Calendar Integration::  
197 * Appointment Hooks::           
199 Finances
201 * Ledger::                      Personal finances: planner-ledger.el
203 Contacts and Conversations
205 * BBDB::                        Contacts: planner-bbdb.el
206 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
208 Tracking Research and Resources
210 * W3m::                         Web browser: planner-w3m.el
211 * BibTeX::                      Bibliographies: planner-bibtex.el
212 * Bookmark::                    Bookmarks: planner-bookmark.el
214 Tracking Development
216 * Log Edit::                    Changelogs: planner-log-edit.el
217 * XTLA::                        TLA changesets: planner-xtla.el
218 * Gnats::                       Gnats: The GNU bug reporting system
220 Advanced Configuration
222 * Customizing Your Day Pages::  Change your templates
223 * Variables to Customize::      Change various aspects of Planner behavior
224 * Ideas for Other Keybindings::  Add to and change the default keybindings
226 Reference Material
228 * Keeping Track of Time::       
229 * Other Interactive Functions::  
230 * Planner Keybindings::         Default keybindings for Planner
231 * Sample Configuration Files::  
233 Sample Configuration Files
235 * File Organization::           
236 * Bare-Bones Planning::         
237 * Bare-Bones Planning with Plan Pages::  
238 * Tasks on Plan Pages with Some Day Pages::  
239 * Hierarchical Tasks::          
241 @end detailmenu
242 @end menu
244 @node Preface, Introduction, Top, Top
245 @comment  node-name,  next,  previous,  up
246 @chapter Preface
248 This document describes Planner, which was written by John Wiegley and
249 is now maintained by Michael Olson (@pxref{Acknowledgements}).
251 This document is a work in progress, and your contribution will be
252 greatly appreciated. Please e-mail comments and suggestions to the
253 mailing list (@pxref{Getting Help}). In the subject line of your
254 e-mail, include the word @samp{Planner}.
256 This documentation is available in eye-pleasing formats including PDF
257 and HTML at @url{http://www.mwolson.org/static/doc/}.
259 Documentation author: John Sullivan @email{john@@wjsullivan.net}
261 Maintainer: Michael Olson @email{mwolson@@gnu.org}
264 John Sullivan (johnsu01)@*
265 April 25, 2004
267 @node Introduction, Installation, Preface, Top
268 @comment  node-name,  next,  previous,  up
269 @chapter Introduction
271 Planner is an organizer and day planner for Emacs.  It helps you keep
272 track of your pending and completed tasks, daily schedule, dates to
273 remember, notes and inspirations. It is a powerful tool not only for
274 managing your time and productivity, but also for keeping within easy
275 keystroke reach all of the information you need to be productive. It can
276 even publish reports charting your work for your personal web page, your
277 conscience, or your soon-to-be-impressed boss.
279 In fact, because it uses as its building blocks simple plain-text files,
280 it is an incredibly modular and flexible tool capable of shaping and
281 handling your personal information in ways whose variety is limited only
282 by your imagination. Because of this, Planner has a very active and
283 generous community who regularly share their innovations with each
284 other. Many of these modules and extensions are included in the archive
285 that you will download. Once you get the basics down, you'll probably
286 want to explore some of them. But as you read this manual and work with
287 Planner, keep in mind that the basic core is actually very simple, and
288 it might be worth spending time with just that before delving into the
289 customizations.
291 Because they are plain text with very few requirements, the organizer
292 pages kept by Planner can be as basic or as detailed as you
293 like. Your pages can be simple to-do lists with no more additional
294 information than what you would scrawl on a napkin, or they can be a
295 highly technical affair involving hyperlinks, embedded Lisp code,
296 appointment schedules and RSS feeds. As with so much in Emacs, it's
297 all up to you.
299 To get started with Planner, you first need to download it, and possibly
300 also the packages it depends on (@pxref{Installation}).
302 @node Installation, Overview, Introduction, Top
303 @comment  node-name,  next,  previous,  up
304 @chapter Installation
305 @cindex installation
307 Planner depends on Muse. Information for downloading and installing
308 Muse can be found at
309 @url{http://www.mwolson.org/static/doc/muse.html}.
311 Make sure that you use the latest Muse release.  Development code might
312 prove unstable.
314 @menu
315 * Getting the Files::           
316 * Creating Your Planner::       
317 * Components::                  
318 * Advanced Installation::       
319 @end menu
321 @node Getting the Files, Creating Your Planner, Installation, Installation
322 @comment node-name,  next,  previous,  up
323 @section Getting the Files
325 Currently, there are three ways to obtain and install Planner. You can
326 install it from a source archive, Arch repository, or Debian package.
328 @menu
329 * Installing from a Source Archive::  
330 * Installing from Arch::        
331 * Installing from Debian::      
332 @end menu
334 @node Installing from a Source Archive, Installing from Arch, Getting the Files, Getting the Files
335 @comment node-name,  next,  previous,  up
336 @subsection Installing from a Source Archive
337 @cindex source code archive, installing from
339 You can install Planner from the source archive packaged and
340 distributed directly by the maintainer. This archive is provided in
341 both @file{.tar.gz} and @file{.zip} format.
343 @enumerate
344 @item
345 Download and unpack either
346 @url{http://www.mwolson.org/static/dist/planner-latest.tar.gz} or
347 @url{http://www.mwolson.org/static/dist/planner-latest.zip}.
349 @item Edit your @file{~/.emacs} (@file{_emacs} on Microsoft Windows).
351 @example
352 ;; Add the directories to your load path
353 (add-to-list 'load-path "/path/to/muse/lisp")
354 (add-to-list 'load-path "/path/to/planner")
355 (add-to-list 'load-path "/path/to/remember")
357 ;; Load planner
358 (require 'planner)
359 @end example
360 @end enumerate
362 @subsubsection Updating Your Version
364 Download a new version and extract it over the old directory. Don't
365 forget to delete any byte-compiled files (@file{*.elc}) in the
366 directories so that the new code will be used.
368 @node Installing from Arch, Installing from Debian, Installing from a Source Archive, Getting the Files
369 @comment node-name,  next,  previous,  up
370 @subsection Installing from Arch
371 @cindex Arch repositories
372 @cindex Arch, installing from
374 Arch allows you to retrieve previous versions and select specific
375 features and bugfixes. Debian users can install Arch with @kbd{apt-get
376 install tla}. Users of other distributions should see
377 @url{http://regexps.srparish.net/www/}.
379 To get started with Planner using Arch, you'll need to run some initial
380 commands to register your local copy of the archive and retrieve the
381 files.
383 @example
384 # Register the Muse archive
385 tla register-archive http://www.mwolson.org/archives/2006
387 # Get the Muse archive
388 tla get mwolson@@gnu.org--2006/muse--main--1.0 muse
390 # Download planner module into the planner/ subdirectory
391 tla get mwolson@@gnu.org--2006/planner--main--1.0 planner
392 @end example
394 Then add the following lines to your @code{~/.emacs}:
396 @example
397 ;; Add the directories to your load path
398 (add-to-list 'load-path "/path/to/muse/lisp")
399 (add-to-list 'load-path "/path/to/planner")
400 (add-to-list 'load-path "/path/to/remember")
402 ;; Load planner
403 (require 'planner)
404 @end example
406 You can also browse the Arch repository on the web at
407 @url{http://www.mwolson.org/cgi-bin/archzoom/archzoom.cgi/mwolson@@gnu.org--2006/planner}.
409 @subsubsection Updating Your Version
410 @cindex Arch, updating from
412 To stay up-to-date using Arch, here are some commands that might be
413 useful.
415 To list upstream changes not in local copy:
417 @example
418 # Change to the source directory you are interested in. Example:
419 cd muse/
421 # Display the summary of changes
422 tla missing --summary
423 @end example
425 To update to the latest version:
427 @example
428 cd muse; tla replay
429 cd ../planner; tla replay
430 cd ../remember; tla replay
431 @end example
433 Don't forget to delete any byte-compiled files (@file{*.elc}) in the
434 directories so that the new code will be used.
436 @node Installing from Debian, , Installing from Arch, Getting the Files
437 @comment node-name,  next,  previous,  up
438 @subsection Installing from Debian
439 @cindex Debian package
441 Debian packages for Planner, Muse, and Remember are available in Debian
442 proper as the @code{planner-el}, @code{muse-el}, and @code{remember-el}
443 packages, respectively.
445 If you wish to try experimental packages, add the following lines to
446 your @file{/etc/apt/sources.list}
448 @example
449 deb http://www.mwolson.org/debian/ ./
450 @end example
452 Then, do the following steps as root:
454 @example
455 apt-get update
456 apt-get install muse-el
457 apt-get install planner-el
458 @end example
460 @subsubsection Updating Your Version
461 @cindex Debian package, updating
463 If you installed Planner from Debian, do @kbd{apt-get update; apt-get
464 upgrade} to upgrade all packages that can be upgraded, or @kbd{apt-get
465 update; apt-get install planner-el} to upgrade just planner-el.
467 @node Creating Your Planner, Components, Getting the Files, Installation
468 @section Creating Your Planner
470 Now that you have installed the files for Planner and Muse, you need
471 to set some options to create your first planner.
473 Muse thinks in terms of projects. Each project consists of a group of
474 documents and certain information associated with these
475 documents. Planner is organized as a project within Muse. So, you need
476 to tell Muse a bit about it.
478 Add something like the following code to your @file{.emacs} file.
480 First, give your new Planner project a name. In this case, we use the
481 name, ``WikiPlanner''.
483 @example
484 (setq planner-project "WikiPlanner")
485 @end example
487 Next, add an entry for your project to Muse's master list of
488 projects. Don't forget to use your own name here in place of
489 ``WikiPlanner'' if you have chosen something different.
491 @example
492 (setq muse-project-alist
493       '(("WikiPlanner"
494          ("~/Plans"           ;; where your Planner pages are located
495           :default "TaskPool" ;; use value of `planner-default-page'
496           :major-mode planner-mode
497           :visit-link planner-visit-link)
499          ;; This next part is for specifying where Planner pages
500          ;; should be published and what Muse publishing style to
501          ;; use.  In this example, we will use the XHTML publishing
502          ;; style.
504          (:base "planner-xhtml"
505                 ;; where files are published to
506                 ;; (the value of `planner-publishing-directory', if
507                 ;;  you have a configuration for an older version
508                 ;;  of Planner)
509                 :path "~/public_html/Plans"))))
510 @end example
512 This code should work fine as-is for you as long as the directories
513 you see exist, and as long as you have no other Muse projects besides
514 your planner.
516 The first directory (@file{~/Plans}) is the directory where the
517 source files for your planner will reside. This is the directory where
518 you will actually visit files and edit them.  These files must have a
519 ``.muse'' extension.
521 The second directory (@file{~/public_html/Plans}) is the directory where
522 your planner files will be published by Muse as XHTML.
524 After you have added this code, make sure to either evaluate it or
525 restart Emacs.
527 @node Components, Advanced Installation, Creating Your Planner, Installation
528 @comment node-name,  next,  previous,  up
529 @section Components
531 Now that you have the archive, let's look at what's in it.
533 There should be three directories, named @file{planner}, @file{muse} and
534 @file{remember}.
536 In the @file{planner/} directory, you'll see many files with names like
537 @file{planner-gnus.el}. These are extra modules and extensions for
538 Planner, which you can use to tailor Planner to fit your desired
539 planning and information management habits.
541 In the @file{muse/lisp} directory, you'll see many files with names like
542 @file{muse-blosxom.el}. As in @file{planner/}, these are optional
543 modules and extensions.
545 A minimal working installation includes just @file{planner/planner.el}.
547 You need @file{planner.el} because it provides the core functions for
548 handling tasks, notes, and page navigation. You need @file{Emacs Muse}
549 because it provides the functions used to display your pages (both in an
550 emacs buffer and as HTML), and for connecting them to each other. More
551 specifically, it enables you to have hyperlinks and formatting in your
552 emacs buffers even though the actual files you are working with are
553 saved in plain text. These abilities are used in Planner to format your
554 planner pages the way you like, to create links from your tasks and
555 notes to the materials and projects they refer to, and to optionally
556 ``publish'' your pages in different formats, including HTML.
558 In the @file{remember/} directory are files related to
559 RememberMode. RememberMode does not depend on Planner or Muse, but works
560 best with Planner installed. It is not required in order to use Planner,
561 but it is used by many Planner users to record notes and information to
562 their planner pages.
564 If you are curious, you can open each file in these directories and read
565 the comments at the top, to get an idea of what each extension is used
566 for. They are also all detailed later in this manual.
568 @node Advanced Installation,  , Components, Installation
569 @comment  node-name,  next,  previous,  up
570 @section Advanced Installation
572 Once you decide you want to keep Planner around for a while, there
573 are two additional steps you can take to make using it easier and more
574 efficient. These steps are optional.
576 @itemize
578 @cindex @file{remember.el}
579 @cindex @file{remember-planner.el}
580 @item You can install @file{remember.el} and @file{remember-planner.el}
581 so that you can create Planner notes from anywhere. See the
582 documentation at
583 @uref{http://sacha.free.net.ph/notebook/doc/dev/remember/} for more
584 information.
586 @cindex installing the info file
587 @cindex @file{planner-el.texi}, installing
588 @cindex @file{planner-el.info}, installing
589 @item You can make this document, the Planner info file, appear in
590 the index of info files you see when you type @command{M-x info} or
591 @kbd{C-h i} in Emacs. The instructions for doing this vary depending
592 on whether you have permission to edit certain files on your
593 system. Follow the instructions in @ref{Installing an Info File, ,
594 ,texinfo, Texinfo}, using something like:
596 @example
597 * Planner: (path/to/planner/Planner). Organizer/day planner
598 for Emacs.
599 @end example
601 for the new entry in the info @file{dir} file.
603 @cindex byte compiling
604 @item You can byte-compile @file{planner.el}, @file{Muse},
605 @file{remember.el}, or any of the optional modules you frequently use,
606 in order to improve the speed of their execution. Basically, all you
607 need to do is change to the directory of each project and run
608 @command{make} from the command line. To read more detail about byte
609 compilation, see @ref{Byte Compilation, , ,elisp, Emacs Lisp Reference
610 Manual}.
612 @end itemize
614 @node Overview, Getting Started, Installation, Top
615 @comment node-name,  next,  previous,  up
616 @chapter Overview
618 Planner is a plain-text hyperlinked personal information manager
619 for Emacs that helps you keep track of tasks, notes, and other
620 information. People use Planner to support different ways of planning
621 one's day, from Franklin-Covey and David Allen's Getting Things Done
622 to home-brew hacks. Planner is even used to manage information not
623 normally handled by a personal information manager, like bugtracking,
624 time tracking, and team data. If you start by using Planner as a basic
625 TODO and notes manager, you might find other ways it can help you
626 improve your process.
628 You can use Planner to keep track of your tasks, schedule, notes,
629 and other information you want to store in hyperlinkable text files.
630 You can get the most benefit out of a personal information manager if
631 you use it everyday. Most people add @code{(plan)} to the end of their
632 @file{~/.emacs} so that Planner shows today's schedule and
633 unfinished tasks whenever Emacs starts. If you leave your Emacs
634 running for more than 24 hours, try to get into the habit of running
635 @code{plan} at least once a day.
637 Because your time is important, Planner tries to minimize
638 distractions, making it easier for you to jot down tasks and notes
639 without being distracted from your work. People often make tasks based
640 on the current buffer, so Planner tries to create hyperlinks to
641 whatever you're looking at so that you can jump back to it easily. The
642 @ref{Getting Started} tutorial will show you how to set that up for
643 both tasks and notes.
645 The customizability of Planner means you can make your personal
646 information manager truly personal. Planner strives to be as flexible
647 as possible, and we would love to adapt Planner to fit your needs.
648 Browse through our mailing list at
649 @url{http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss} to
650 find out how other people are using Planner, and post your feature
651 requests and bug reports there!
653 Planner is just a tool. It does not dictate a particular way of
654 planning, although it supports some ways better than it supports
655 others. If you want to take some time thinking about planning, read
656 the following reflections for inspiration and ideas. On the other
657 hand, if you want to hit the ground running, see @ref{Getting
658 Started}. If you already have a specific way of planning in mind,
659 check out @ref{Sample Configuration Files}.
661 @menu
662 * Planning based on the Franklin-Covey Approach::  
663 * Why Use Planner::             
664 @end menu
666 @node Planning based on the Franklin-Covey Approach, Why Use Planner, Overview, Overview
667 @comment  node-name,  next,  previous,  up
668 @section Planning Based on the Franklin-Covey Approach
669 @cindex philosophy of planning
671 This is a slightly edited and updated version of an essay by John
672 Wiegley. Read it if you want to get some insights into one way of
673 planning. You can skip this if you want to go straight to planning
674 your day.
676 What is planning?  It can be a nebulous thing to define.  In its
677 essence, however, it is very simple: it's how we achieve our dreams.
679 Our days are filled with time, and hence with actions, whether they
680 be of a mental or physical sort.  But there are two kinds of
681 action: reactive and creative.  Reactive action is a response to
682 the environment, a reaction to stimulus.  Had we enough instincts
683 to ensure survival, we could live according to this kind of action
684 alone.  It is a mode of behavior we share with every living
685 species.
687 The opposite to reactivity is creativity, when we decide upon a
688 course of action that is a wholly a product of personal choice.  We
689 then make decisions as to the steps needed to make this wish a
690 reality.  This is planning.  Planning is essentially a creative
691 endeavor at every step.
693 First, create the idea, what you want to achieve.  Very short-term
694 ideas do not need much more than thinking about how to do it.  But
695 long-term ideas require planning, since the mind cannot contain all
696 of the details.
698 Second, decide how the idea maps into the circumstances you find
699 yourself in.  Some environments will assist your plan, others
700 hinder it.  But step by step, identify every barrier to the
701 realization of your idea, and devise a countermeasure to overcome
702 it.  Once you've mapped things out from beginning to end,
703 accounting for unknowables as best you can, you now have your plan.
705 Third is to break the stages of the plan into parts that are not
706 overwhelming in their complexity.  It is at during this phase that
707 a plan is turned into task items, each to be accomplished within
708 the span of one day's time.  If a task requires several days, break
709 it up further.  The smaller it is, the less your mind will recoil
710 from attempting it.
712 Fourth is to monitor your progress, identifying problems and
713 correcting for them as you go.  Some plans start out unachievable,
714 and remain that way indefinitely, due to a simple lack of
715 observation.  If nothing is working for you, change it.  Otherwise,
716 your plan is merely a well-crafted wish.
718 Fifth is just to do the work, and be patient.  All good plans take a
719 great deal of time, and *cannot* happen immediately.  The groundwork
720 must be laid for each step, or else it will rest on an unsecure
721 foundation.  If you follow your plan doggedly, applying some time to
722 it each day or week, it @emph{will} happen.  Remember the story of the
723 tortoise and the hare.  I've even written a short essay on the
724 necessity of gradual accomplishment, which can be found at
725 @url{http://emacswiki.org/johnw/essays/node2.html}.
727 How can this software help?  Computers are ideal for manipulating
728 information, since they allow you to change things without erasing
729 or rewriting.  And since all plans change quite a bit during their
730 implementation, a planning program can be very helpful.
732 Start by adding the following to your @file{.emacs} (or @file{_emacs}):
734 @example
735 (load "planner")
736 @end example
738 Now, conceive your idea.  I can't believe there's nothing you want
739 from life.  More peace, time to enjoy the world, an end to war?
740 Everyone wants something.  Search deeply, and you will find
741 countless unhoped wishes lurking therein.  Choose one for now, and
742 think on it for a while.
744 Then open a file (using @kbd{C-x C-f}) within the directory named by
745 @code{planner-directory}.  Emacs will automatically recognize this file
746 as a planner file.  Name the file after your plan, such as
747 @file{BetterHealth}.
749 Choose an idea you really want to accomplish.  Struggle to
750 differentiate between the things you want because others want them,
751 and the things you want for yourself.  It takes quite an effort, and
752 may require a long time before you notice the difference.  Many people
753 want to be more healthy to be more attractive, which is an externally
754 driven goal.  Unless @emph{you} really want to accomplish what you
755 envision, the odds are you will fail.  Only our own wishes and dreams
756 possess enough personal energy to see themselves to fruition.  What
757 happens to many of us is simply that we never become conscious of
758 these dreams: what we love, what we desire most.  When I talk to
759 friends, so much of what I hear is things they want because they feel
760 they should want them.  There's just not enough energy there to pursue
761 a good plan, because nearly all of it is negative energy.
763 Do you know what you really want?  Don't worry, many people don't.
764 It's not a question anyone really wants us to pursue, because often
765 we don't want what others do; it doesn't contribute to the social
766 welfare, and all that nonsense.  Somehow we always forget that
767 what's good for the social welfare now, was someone else's crazy
768 dream a hundred years ago.  The human aversion to fundamental
769 change is always one's greatest enemy, so don't waste any time
770 getting bitter about it.
772 For the sake of argument I assume you really do want to be
773 healthier, because you've fallen in love with the ideal of purity,
774 or you understand the connection between your physical self and the
775 world around you, and how this can open up your spirit to desiring
776 more.  I assume.  :)
778 So you're in a Wiki file called @file{BetterHealth}.  Start typing.
779 Type anything related to your idea: what you think about it, your
780 ideas on it, @emph{and especially what the end will look like}.  If
781 you can't visualize the end, you can't plan, since planning is about
782 drawing a line between now and then.
784 When you've typed enough to gain a vision of your goal, start
785 drafting what the possible intermediate steps might be.  Then stop,
786 get up, walk around, enjoy life, and come back to it.  Taking a
787 long time at the beginning is not a bad idea at all, as long as
788 it's not forever.
790 As you chew on your idea, it will begin to become more and more
791 concrete.  You'll have ideas about the smallest pieces, and ideas
792 about the biggest pieces.  Keep going until it starts to take shape
793 before you, and you can see yourself in your mind's eye moving from
794 the present into the future.  Write down this progression, and the
795 sorts of things you might encounter along the way.
797 As you continue, you'll naturally discover discrete phases, or
798 ``milestones'' as managers love to call them.  These are very
799 important, because they let you know you're making progress.  I
800 recommend having a big party with friends every time you achieve a
801 milestone.  A typical plan might have between three and ten.
803 Between the milestones are the bigger pieces of your plan.  Name
804 these pieces using MixedCase words, and you'll notice that Emacs
805 colors and underlines them for you.  Like, FindGoodGym.  Hit return
806 on this highlighted word, and you'll find yourself in another,
807 blank file.  In this file, start drafting your sub-plan, just as
808 you did with the larger plan.  You should find it easier now, since
809 the scope is smaller.
811 As you break down further, you'll notice simple little things that
812 need to get done.  These are your tasks.  Every plan is a
813 succession of tasks.  The difference from reactivity is that each
814 task is part of the larger plan. This is what it means to be
815 systematic: that everything you do helps further your plan.  If you
816 have tasks in your day that contribute to no plan, they are
817 reactive.  Of course, life is full of these, but don't let them
818 take up more than 20% of your day.  If you allow yourself to be
819 dominated by reactive tasks, you'll regret it at the end of your
820 life.  I don't know this personally, but I do know that striving
821 for one's dreams -- and seeing them come to fruition -- is the
822 greatest joy a man can possess.  It is the essence of freedom, of
823 living, of creation.  Reactivity is the opposite of this, and
824 serves only to drain our energy and slacken our spirits.
826 Now that you've thought of a simple task, type @kbd{C-c C-t}. This
827 will ask for a brief description of the task, and when you plan to do
828 it. If you hit @key{RETURN} at the question @samp{When}, it assumes
829 you mean today. It will also pop up a three-month calendar at this
830 question, so you can see where your free days are. Make sure you set
831 the variable @code{mark-diary-entries-in-calendar} to @samp{t} in your
832 @file{.emacs} (or @file{_emacs}) file. This way, you can see which
833 days your appointments fall on. (Read about the Emacs Calendar and
834 Diary in @ref{Calendar/Diary, , , Emacs, GNU Emacs Manual}.)
836 @example
837 (setq mark-diary-entries-in-calendar t)
838 @end example
840 Once your task is in there, go back to your plan and keep
841 generating more tasks.  Generate them all!  Fully describe---as
842 tasks---everything necessary to bring your sub-plan to completion.
843 Don't create tasks for the other sub-plans.  You may have good idea
844 of what they'll look like, but don't bother rendering them into
845 tasks just yet.  Things will change too much between now and then,
846 for that to be a good use of your time.
848 Is your sub-plan now rendered into all of the tasks necessary to
849 reach your first milestone?  Great!  That is the purpose of
850 planner.el.  The rest is really up to you.  If you find that you
851 keep putting things off, and never do them, that's the surest sign
852 you're planning for someone else's dream, and not your own.
854 Here are some of the things planner.el can do, to help you manage
855 and track your tasks:
857 At the beginning of every day, type @kbd{M-x plan}.  This will jump
858 you to the top of the most recent task list before today.  If you
859 skipped a bunch of days, you'll have to open up those files on your
860 own.
862 Probably some of the tasks that day won't be finished -- that's OK.
863 Learning to properly estimate time is a magical, mystical art that few
864 have mastered.  Put your cursor on those undone tasks, and type
865 @kbd{C-c C-c}.  This will move them into today's task page.  You can
866 jump to today's task page at any time by typing @kbd{C-c C-n} (from a
867 Wiki or planning page).  I heartily recommend binding @kbd{C-c n}, to
868 jump you to this page from anywhere:
870 @example
871 (define-key mode-specific-map [?n] 'planner-goto-today)
872 @end example
874 As you look at your task sheet each day, the first thing to do is to
875 ``clock in'' to one of them.  This isn't necessary, and is only
876 helpful if you're around your computer a lot.  But by typing @kbd{C-c
877 C-i} (assuming you have my @file{timeclock.el} on your load-path), it
878 will log the time you spend working on your sub-plan (@pxref{Time
879 Intervals, , , Emacs, GNU Emacs Manual}).  This is helpful for viewing
880 your progress.  Type @kbd{C-c C-o} to clock out.
882 @kbd{C-M-p} and @kbd{C-M-n} will move a task up and down in priority.
883 Priority is represented by a letter A through C.  'A' tasks mean they
884 must be done that day, or else your plan is compromised and you will
885 have to replan.  'B' means they should be done that day, to further the
886 plan, otherwise things will be delayed.  'C' means you can put off the
887 task if you need to, although ultimately it will have to be done.
889 For reactive tasks, the letters mean something different: 'A' means
890 you must do it today, or somebody will roast your chestnuts over an
891 open fire.  'B' means you should do it today, or else someone will
892 be practicing patience at the day's end.  'C' means no one will
893 notice if you don't do it.
895 Again, reactive tasks are ENEMIES OF PLANNING.  Really, until you
896 see them that way, circumstances will push you around and steal
897 your life away.  We have only so many years to use, and everyone is
898 greedy to take them.  It's insidious, almost invisible.  A healthy
899 dislike of reactivity will do wonders for organizing your affairs
900 according to their true priority.
902 The last word that needs to be said concerns ``roles''.  Every person
903 stands in several positions in his life: husband, employee, manager,
904 etc.  These roles will tend to generate tasks not associated with any
905 immediate plan, but necessary to maintain the health and functioning
906 of the role.  My suggestion is to keep this the smallest possible
907 number, and fulfill those that remain well.  How you decide to
908 apportion your time between pursuing grand designs, and fostering deep
909 relationships, is a personal matter.  If you choose well, each will
910 feed the other.
912 I mention this to point that reactivity is something not
913 exclusively associated with tasks that have no master plan, because
914 being a father, for example, is something that rarely proceeds
915 according to orderly plans.  But the role of father itself is its
916 own plan, whose goal is ``to be the best one can'', and whose
917 component tasks are spending time on whatever comes up.  It is, in
918 a sense, an implicit plan.  But reactive tasks follow no plan at
919 all; they are parasites of time that suck the spirit away, whereas
920 properly chose roles actually help fulfill one's own inner needs.
921 At least, this is what I believe.
923 @defun plan force-days
924 Start your planning for the day, beginning with the last day's tasks.
926 If @code{planner-carry-tasks-forward} is non-nil, find the most recent
927 daily page with unfinished tasks and reschedule those tasks to
928 the current day.  If @var{force} is non-nil, examine all past daily
929 pages for unfinished tasks.
931 If @code{planner-carry-tasks-forward} is nil, visit the most recent
932 daily page.  If a daily page for today exists, visit that instead.
934 If @var{force-days} is a positive integer, scan that number of days.
935 If @var{force-days} is @samp{t}, scan all days.
937 @end defun
939 @node Why Use Planner,  , Planning based on the Franklin-Covey Approach, Overview
940 @comment  node-name,  next,  previous,  up
941 @section Why Use Planner?
942 @cindex Planner, why use
944 You can skip this essay if you just want to get started, or read it
945 for some insights into why the previous maintainer is crazy about it.
947 Why I Use Planner, by Sacha Chua
949 I thought about why I liked Planner. Planner as a TODO manager
950 isn't particularly special. Although I can assign tasks to categories
951 and see a breakdown of what projects are taking up my time, Evolution
952 and Microsoft Outlook provide more powerful task support. In other
953 task managers, you can e-mail tasks, assign multiple categories and
954 fill in all sorts of metadata. You can even synchronize your tasks
955 with devices like a phone or PDA. So why use Planner?
957 I realized that integration into my way of life and automatic context
958 clues are what really make planner tasks worth it for me. I don't have
959 to switch to another application to create a task. I can just hit a
960 keyboard shortcut. Planner uses a minibuffer to get the task
961 description. My windows are not rearranged in any way, and I can look
962 at the data that's relevant to a task. Not only that, tasks
963 automatically pick up context clues, like whom I'm talking to on IRC
964 or the file I'm editing at the moment. This cuts down on the explicit
965 context I need to include and makes it easier for me to bring up the
966 task again.
968 As a scheduler, Planner is also not particularly distinguished.
969 Sure, it can display my @file{~/diary}, but for that matter so can
970 @kbd{M-x diary}. Evolution and Outlook can give me a more graphical
971 view of my time, sync with my PDA, and coordinate my schedule with
972 other people. Those applications support detailed schedule entries
973 with powerful cyclic options. On the other hand, Planner gives me
974 a personal, plain text view and (at least the way I use it) requires
975 me to edit a separate file to add new appointments. (I've defined a
976 few shortcut keys to deal with this.) However, it does have one
977 advantage---my schedule is always loaded. I used to use Outlook on
978 Windows, but having my schedule in a separate application meant that I
979 actually looked at it very rarely, as I had turned off reminders
980 because they got annoying.
982 Planner's notes, however, are what really convinced me. I can hit
983 a keyboard shortcut from anywhere and type my notes into a buffer
984 which automatically keeps context information. After typing the note,
985 I can then categorize it. I think that the critical thing here is that
986 interruptions---fleeting thoughts---don't break my flow. I can just
987 pop up a remember buffer, stow that thought away somewhere, and go
988 back to it whenever I want. In contrast, creating a note in Outlook
989 means switching out of my application, making a couple of keystrokes,
990 typing the note in, and then switching back. The context switches make
991 it hard to keep track of where I am and what I'm supposed to remember.
992 Not only that, I need to enter context by hand. Even though I can
993 color my notes and reorganize them in Outlook, I find the context
994 switch too expensive. I used to keep notes in other knowledge
995 management tools as well. Some applications allowed me to
996 drag-and-drop links into the current note, and that was cool. But that
997 required a manual action, and those applications didn't feel
998 integrated into my way of working. (Note: You'll need remember.el for
999 this.)
1001 I guess that's why I like Planner. Unlike other organizers which
1002 don't know anything about the applications I use, Planner tries
1003 its best to integrate into the way I work, and it's easy to extend.
1004 Fortunately I do almost all my work in Emacs, so I can think of my
1005 organizer as integrated into my e-mail client, Internet Relay Chat
1006 client, web browser, file editor and even games. It automatically
1007 picks up context clues from these applications and allows me to easily
1008 jump back to relevant files. It doesn't distract me. It allows me to
1009 key in data and then it gets out of my way.
1011 (That said, it's perfectly okay to use Planner even if you don't live
1012 in Emacs.)
1014 The processing that happens in the background is a bonus, and
1015 publishing my task list and notes online has greatly helped me. It
1016 gives other people a way to see what I'm working on and what I've
1017 planned for the future. Occasionally people write in with additional
1018 resources and helpful tips. (Again, this is purely optional. Many
1019 people don't publish their planner pages. Other people use really
1020 fine-grained access control.)
1022 I think the greatest feature of Planner, though, is its user
1023 community. Because Planner can be easily modified, we can experiment
1024 with a lot of new ideas quickly, and we can tailor Planner to fit our
1025 needs. I love checking my @samp{emacs-wiki-discuss} mail and finding
1026 out how people have tweaked Planner or would like to tweak Planner,
1027 and I've learned a lot by exchanging reflections on organizing one's
1028 life.
1030 I really wasn't an organization freak before I started using Planner.
1031 I often forgot to do my homework or answer important mail. I still
1032 procrastinate now, but at least it's all being kept track of
1033 somewhere! I also really like how Planner lets me to gradually improve
1034 how I'm doing things, and I feel I've come a long way.
1036 Please try it out! We'd love to hear how Planner can become
1037 @emph{your} personal information manager.
1039 @node Getting Started, More about Planner, Overview, Top
1040 @comment  node-name,  next,  previous,  up
1041 @chapter Getting Started
1043 At the end of this tutorial, you will be able to use Planner and
1044 related modules to keep track of your tasks, schedules and notes, all
1045 within the convenience of Emacs.
1047 There are two kinds of pages in a Planner wiki. Day pages show tasks,
1048 schedule, and notes for the day, while plan pages organize related tasks
1049 and notes into a single page.
1051 If you have not yet added planner to your @file{~/.emacs}, add the
1052 following lines:
1054 @example
1055 (add-to-list 'load-path "/path/to/muse/lisp")
1056 (add-to-list 'load-path "/path/to/planner")
1057 (add-to-list 'load-path "/path/to/remember")
1058 (require 'planner)
1059 @end example
1061 This will bring up the most recent day page with unfinished tasks or
1062 create a new day page if necessary. By default, planner pages are
1063 stored in @samp{~/Plans} (@code{planner-directory}).
1065 @menu
1066 * Tasks::                       
1067 * Schedule::                    
1068 * Notes::                       
1069 * Hyperlinks::                  
1070 * Example Page::                
1071 * Review::                      
1072 @end menu
1074 @node Tasks, Schedule, Getting Started, Getting Started
1075 @section Tasks
1077 Let us start by creating a task labelled
1079 @example
1080 Join http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
1081 @end example
1083 From anywhere (even this info buffer!), call @kbd{M-x
1084 planner-create-task-from-buffer} to create a new task. Fill in the
1085 description and choose a date by:
1087 @itemize
1088 @item typing 1 - 31 to put the task on that day of the month,
1089 @item accepting the default (today) by pressing RET,
1090 @item selecting the date with mouse-1,
1091 @item
1092 typing +n (where in is an integer) to schedule the task in n days time,
1094 @item typing nil to make an undated task.
1095 @end itemize
1097 For now, accept the default (@samp{today}) by pressing @key{RET}.
1099 You will then be prompted for a plan page. Plan pages gather related
1100 tasks and notes, giving you an overview of what you've done so far.
1101 You can accept the default TaskPool, create your own plan page, or
1102 specify nil to make a task that is not associated with a plan page.
1103 For now, accept the default (@samp{TaskPool}) by pressing RET.
1105 You have created your first task. View today's page with
1106 @kbd{M-x planner-goto-today}. You will see a line of the form
1108 @example
1109 #B  _ Join http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss (TaskPool)
1110 @end example
1112 If you created the task from this page, then there will be an additional
1113 annotation:
1115 @example
1116 #B  _ Join http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss : Tasks (TaskPool)
1117 @end example
1119 The URL, @samp{TaskPool} and @samp{Getting Started} are
1120 hyperlinks. You can use TAB and S-TAB to navigate between them and RET
1121 to follow the link.
1123 Create more tasks using @kbd{M-x planner-create-task-from-buffer}.
1124 This is bound to @kbd{C-c C-t} in @code{planner-mode} pages
1125 for your convenience. For example, create the following tasks:
1127 @itemize
1128 @item
1129 @samp{Describe my current way of working and how I would like to work},
1130 for three days from now (@samp{+3}),
1131 @item
1132 @samp{Learn how to schedule a task}, an undated task (@kbd{nil}) on the
1133 TaskPool page,
1134 @item
1135 @samp{Browse through the Planner info manual} for today (@kbd{.} or
1136 accept the defaults), and
1137 @item
1138 @samp{Add (plan) to the end of my [[~/.emacs]]} for today, but without a
1139 plan page (specify @kbd{nil} at the plan page prompt)
1140 @end itemize
1142 Tip: I bind planner-create-task-from-buffer to "F9 t" so that I can
1143 easily call it from anywhere. You can do that with this elisp fragment:
1144 @code{(global-set-key (kbd "<f9> t") 'planner-create-task-from-buffer)}
1146 Next, visit the TaskPool by:
1148 @itemize
1149 @item
1150 @key{TAB}-bing or using the cursor and typing @key{RET} to follow the
1151 link,
1152 @item @kbd{C-x C-f TaskPool RET} to use @code{find-file}, or
1153 @item @kbd{C-c C-f TaskPool RET} to use @code{muse-project-find-file}
1154 @end itemize
1156 You can see an overview of the tasks as scheduled on different days.
1157 Unlike many personal information managers that store all of your data
1158 in one file and then perform magic in order to present different
1159 views, Planner uses plain text files. The data is duplicated and kept
1160 updated by functions. This makes it simpler and easier to modify,
1161 because what you see is (almost) what you get. On the other hand,
1162 you'll need to get used to either editing both files, or using the
1163 built-in functions for editing and updating files. If you prefer not
1164 to work with linked tasks, you can configure Planner to use only plan
1165 pages or use only day pages.
1167 The TaskPool page should list the tasks you created earlier. Go to the
1168 one named Learn how to schedule a task . Type @kbd{C-c C-c}
1169 (@code{planner-copy-or-move-task}) to schedule the task. Type RET to
1170 accept the default (today). Go to the day page by following the link
1171 or calling @kbd{M-x planner-goto} (@kbd{C-c C-j C-d} or the menu bar);
1172 you will see the newly-created task there. You can also use @kbd{C-c
1173 C-c} (@kbd{planner-copy-or-move-task}) to reschedule a task to an
1174 earlier or later date.
1176 Well, that task is done. To mark the task as completed, type @kbd{C-c
1177 C-x} (@code{planner-task-done}). You can also edit the status manually
1178 (change _ to X) as long as you remember to call @kbd{M-x
1179 planner-update-task} to update the link page as well. Updating relies on
1180 the task description being the same, so do not edit this manually.
1182 Quick summary of commands:
1184 @itemize
1185 @item
1186 Go to today's page: @kbd{M-x plan} to carry unfinished tasks forward, or
1187 @kbd{M-x planner-goto-today} to just go to today's page.
1188 @item
1189 Create a task: @kbd{C-c C-t} (@code{planner-create-task-from-buffer}),
1190 or type a task manually (call M-x planner-update-task if the task is
1191 linked)
1192 @item
1193 Mark a task as done: @kbd{C-c C-x} (@code{planner-task-done}), or edit
1194 the task and call @kbd{M-x planner-update-task}
1195 @item Edit a task description: @kbd{M-x planner-edit-task-description}
1196 @item Reschedule a task: @kbd{C-c C-c} (@code{planner-copy-or-move-task})
1197 @item
1198 Reschedule many tasks: Mark a region and use @kbd{M-x
1199 planner-copy-or-move-region}
1200 @item
1201 Change the plan of a task: @kbd{M-x planner-replan-task}, or @kbd{C-c
1202 C-c} (@code{planner-copy-or-move-task}) with a plan page
1203 @item Delete a task: @kbd{M-x planner-delete-task}
1204 @item
1205 Reorder tasks: @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1206 (@code{planner-lower-task}), or normal editing commands like kill and
1207 yank
1208 @item Change task priorities (@samp{#A} > @samp{#B} > @samp{#C}):
1209       @key{C-M-p} (@code{planner-raise-task-priority}) and
1210       @key{C-M-n} (@code{planner-lower-task-priority}),
1211       or edit the task and call @kbd{M-x planner-update-task}.
1212 @end itemize
1214 You can save your tasks with @kbd{C-x C-s} the same way you save any
1215 other file, or Emacs will prompt you to save it when you exit.
1217 @node Schedule, Notes, Tasks, Getting Started
1218 @comment  node-name,  next,  previous,  up
1219 @section Schedule
1221 This is free-form. You can put anything you want into this, or remove
1222 it from @code{planner-day-page-template} entirely. Some people use it
1223 to keep track of their plans for the day with tables like this:
1225 @example
1226 hh:mm | hh:mm | activity
1227 hh:mm | hh:mm | activity
1228 hh:mm | hh:mm | activity
1229 @end example
1231 Remember, Planner files are just plain text. You can add new sections
1232 or remove old ones, or use the suggested sections for entirely
1233 different activities.
1235 @node Notes, Hyperlinks, Schedule, Getting Started
1236 @comment  node-name,  next,  previous,  up
1237 @section Notes
1239 You can put anything you want in this section, or remove it from your
1240 @code{planner-day-page-template} entirely.
1242 You may be interested in @file{remember-planner.el}, part of the
1243 Remember package. @code{remember-planner.el} makes it easy to create
1244 notes from anywhere in Emacs, and it uses the same hyperlink-sensing
1245 code that Planner uses. Notes added by remember-planner.el look like
1246 this:
1248 @example
1249 .#1 Headline 00:00
1250 Body
1251 @end example
1253 and are outlined at the H2 level in published HTML.
1255 If you include the following in your @file{~/.emacs}:
1257 @example
1258 (require 'remember-planner)
1259 (setq remember-handler-functions '(remember-planner-append))
1260 (setq remember-annotation-functions planner-annotation-functions)
1261 @end example
1263 you can easily create context-aware notes. @kbd{M-x remember} will
1264 create a dedicated buffer for you to fill in your note. If Planner
1265 recognizes the buffer as one with context then it will include a
1266 hyperlink at the bottom. The first line is used as a title, so make it
1267 short and meaningful. The rest of the text will be used as the body of
1268 the note. Try it now by creating a note, perhaps about things you'd
1269 like to remember from this tutorial.
1271 Typing @kbd{C-c C-c} after composing will prompt for a plan page to
1272 put this on, with auto-completion. By default, notes will go on
1273 today's page only. If you specify a plan page, the note will go on
1274 today's page and on the plan page. Let's try specifying
1275 @samp{TaskPool} for the note.
1277 If you look at today's page, you'll find a timestamped note that links
1278 to @samp{TaskPool}. Likewise, @samp{TaskPool} contains a note that
1279 links to today's page. Because the text is copied, changes in one will
1280 not be automatically reflected in the other. To update the linked page
1281 after editing a note, use @kbd{M-x planner-update-note}. To change the
1282 plan page of a note, use @kbd{planner-replan-note}.
1284 @node Hyperlinks, Example Page, Notes, Getting Started
1285 @section Hyperlinks
1286 @cindex hyperlinks
1288 Planner automatically creates context-sensitive hyperlinks for your
1289 tasks and notes when you use @code{planner-create-task-from-buffer}
1290 and @code{remember}.
1292 Blue links indicate URLs and Planner pages that already exist. Red links
1293 indicate Planner pages that have not yet been created.
1295 Middle-click or type @key{RET} on any link to view the link in the
1296 current window. Shift-middle-click or type @key{S-RET} to view the
1297 link in another window. @key{TAB} goes to the next link, while
1298 @key{S-TAB} goes to the previous one.
1300 You can pick up hyperlinks using the @code{planner-annotation-as-kill}
1301 function.
1303 @defun planner-annotation-as-kill
1304 Create a context-sensitive hyperlink for the current buffer and copy
1305 it to the kill ring. When called with a prefix argument, prompt for
1306 the link display name.
1307 @end defun
1309 You can then paste it into any Planner buffer by using @kbd{M-x yank}
1310 or the keyboard shortcut.
1312 Hyperlinks are a powerful feature of Planner. You can use them to
1313 hyperlink to mail, news, Web pages, and even IRC connections. See the
1314 section on @ref{Managing Your Information} to find out how to enable
1315 support for various parts of Emacs. Want to add a new hyperlink
1316 scheme? Check out the source code for examples or ask on the mailing
1317 list for help.
1319 @node Example Page, Review, Hyperlinks, Getting Started
1320 @comment  node-name,  next,  previous,  up
1321 @section Example Page
1322 @cindex example page
1323 @cindex planning page, example
1325 An example planner file is given below. You'll notice that Planner
1326 does not have a well-defined user interface. Rather, it's free-form
1327 and open, allowing you to adapt it to your preferences.
1329 @example
1330 ----------------------------------------------------------------------
1331 * Tasks
1333 #B  _ Join http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss (TaskPool)
1334 #B  _ Browse through the Planner info manual (TaskPool)
1335 #B  _ Add (plan) to the end of my ~/.emacs
1336 #B  X Learn how to schedule a task (TaskPool)
1338 * Schedule
1340 18:00 | 19:00 | Learn how to use Planner
1342 * Notes
1344 Notes are free-form. You can put anything you want into this.
1346 .#1 This is note number one
1348 Notes on note number one!
1350 .#2 This weird ".#2" syntax is used for allout.el enumerated lists
1352 It makes using allout-mode very handy.
1354 @end example
1356 @node Review,  , Example Page, Getting Started
1357 @comment  node-name,  next,  previous,  up
1358 @section Review
1360 @itemize
1362 @item @emph{Ideas for using planner more effectively:}
1364 @itemize
1365 @item
1366 Add @code{(plan)} to the end of your @file{~/.emacs} so that you are
1367 reminded about your tasks every day.
1369 @item
1370 Bind useful functions to shortcut keys and get used to creating tasks
1371 and notes from anywhere.
1373 @item
1374 Think about how you plan your day and look for ways to improve it. Ask
1375 the mailing list for tips.
1377 @item
1378 Browse the rest of this manual, the source code, and other resources on
1379 the Net for tidbits you can use.
1381 @item Have fun!
1382 @end itemize
1384 @item @emph{Useful functions outside planner buffers:}
1386 @itemize
1387 @item @code{planner-create-task-from-buffer}
1388 @item @code{remember}
1389 @item @code{planner-goto-today}
1390 @item @code{planner-goto}
1391 @item @code{plan}
1392 @end itemize
1394 @item @emph{Useful functions inside planner buffers:}
1396 @itemize
1397 @item @kbd{C-c C-t} (@code{planner-create-task-from-buffer})
1398 @item @kbd{C-c C-x} (@code{planner-task-done})
1399 @item @kbd{M-x planner-edit-task-description}
1401 @item
1402 @kbd{C-c C-c} (@code{planner-copy-or-move-task}), @kbd{M-x
1403 planner-copy-or-move-region}
1405 @item @kbd{M-x planner-replan-task}
1406 @item @kbd{M-x planner-delete-task}
1408 @item
1409 @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1410 (@code{planner-lower-task})
1412 @item @key{C-M-p} (@code{planner-raise-task-priority}) and
1413       @key{C-M-n} (@code{planner-lower-task-priority}),
1414 @item @code{planner-replan-note}
1415 @item @code{planner-update-note}
1416 @end itemize
1418 @end itemize
1420 That's all you need to know in order to use Planner as a basic TODO
1421 and notes manager, but there's a whole lot more. Read through this
1422 manual and our mailing list archives for lots of wonderful ideas about
1423 planning in Emacs!
1425 @node More about Planner, Managing Your Information, Getting Started, Top
1426 @comment  node-name,  next,  previous,  up
1427 @chapter More about Planner
1429 @menu
1430 * Navigation::                  
1431 * More about Tasks::            
1432 * More about Notes::            
1433 * Making Files Pretty::         
1434 * Annotations::                 
1435 * Interactive Lisp::            
1436 * Publishing::                  
1437 * Experimental Functions::      
1438 @end menu
1440 @node Navigation, More about Tasks, More about Planner, More about Planner
1441 @comment  node-name,  next,  previous,  up
1442 @section Starting with Day Pages
1444 @command{planner-goto-today} opens today's page.  Day pages are named
1445 @samp{YYYY.MM.DD} and contain your notes for the day.
1447 You should see a file that looks like this:
1449 @example
1450 * Tasks
1453 * Schedule
1455 * Notes
1456 @end example
1458 You can type anything you want into this file.  You can add or delete
1459 sections.  When you save, Emacs stores your information in
1460 @code{planner-directory}.
1462 Use the following commands to navigate through day pages:
1464 @defun plan
1465 Start planning the day.  If @code{planner-carry-tasks-forward} is
1466 non-nil, copy the most recent unfinished tasks to today's page, else
1467 open the most recent page.
1468 @end defun
1470 @defun planner-goto (@kbd{C-c C-j C-d})
1471 Prompt for a date using a calendar pop-up and display the
1472 corresponding day page.  You can specify dates partially.  The current
1473 year and month are used if omitted from the input.  For example, if
1474 today is 2004.05.05, then
1476 @itemize
1477 @item @kbd{+1} is one day from now, or @samp{2004.05.06}
1478 @item @kbd{-1} is one day before now, or @samp{2004.05.04}
1479 @item @kbd{12} is equivalent to @samp{2004.05.12}
1480 @item @kbd{8.12} is equivalent to @samp{2004.08.12}
1481 @item @kbd{2005.08.12} is a full date specification
1482 @end itemize
1484 In the calendar buffer, you can also left-click or press @key{RET} on
1485 a date to select it.
1486 @end defun
1488 @defun planner-goto-today (@kbd{C-c C-j C-j})
1489 Display today's page. Create the page if it does not yet exist.
1490 @end defun
1492 @defun planner-goto-tomorrow (@kbd{C-c C-j C-t})
1493 Goto the planner page days @var{after} the currently displayed date.
1494 If @var{days} is nil, go to the day immediately after the currently
1495 displayed date.  If the current buffer is not a daily planner page,
1496 calculate date based on today.
1497 @end defun
1499 @defun planner-goto-yesterday (@kbd{C-c C-j C-y})
1500 Goto the planner page @var{days} before the currently displayed date.
1501 If @var{days} is nil, go to the day immediately before the currently
1502 displayed date.  If the current buffer is not a daily planner page,
1503 calculate date based on today.
1504 @end defun
1506 @defun planner-goto-most-recent
1507 Go to the most recent day with planning info.
1508 @end defun
1510 @defun planner-goto-previous-daily-page
1511 Goto the last plan page before the current date.
1512 The current date is taken from the day page in the current
1513 buffer, or today if the current buffer is not a planner page.
1514 Do not create pages if they do not yet exist.
1515 @end defun
1517 @defun planner-goto-next-daily-page
1518 Goto the first plan page after the current date.
1519 The current date is taken from the day page in the current
1520 buffer, or today if the current buffer is not a planner page.
1521 Do not create pages if they do not yet exist.
1522 @end defun
1524 @defun planner-goto-plan-page page
1525 Opens @var{page} in the the @code{planner-project} Wiki.  Use
1526 @code{planner-goto} if you want fancy calendar completion.
1527 @end defun
1529 @defun planner-show date
1530 Show the plan page for @var{date} in another window, but don't select
1531 it.  If no page for @var{date} exists, return nil.
1532 @end defun
1535 @node More about Tasks, More about Notes, Navigation, More about Planner
1536 @comment  node-name,  next,  previous,  up
1537 @section More about Tasks
1538 @cindex tasks, more about
1540 This section is divided into three parts. In the first part, you can
1541 read about all the options, strategies and commands to help you
1542 efficiently add new tasks to your planner. In the second part, we'll go
1543 over all of the aspects of Planner that relate to organizing, editing,
1544 rescheduling and viewing the tasks you've already created. Finally,
1545 we'll cover some ways to step back and look at various reports and
1546 overviews that can be generated from your planner pages.
1548 You may also be interested in tracking time spent on tasks with
1549 @ref{Timeclock} and estimating project completion time with
1550 @ref{Schedule} (also see @pxref{schedule.el}).
1552 @menu
1553 * Creating New Tasks::          
1554 * Organizing Your Tasks::       
1555 * Task Reports and Overviews::  
1556 @end menu
1558 @node Creating New Tasks, Organizing Your Tasks, More about Tasks, More about Tasks
1559 @comment  node-name,  next,  previous,  up
1560 @subsection Creating New Tasks
1561 @cindex tasks, creating
1563 Planner makes it very easy to quickly add something to your list of
1564 tasks. Once you get used to the basics of
1565 @command{planner-create-task-from-buffer}, you might want to take a
1566 closer look at some things in Planner that can help you create new tasks
1567 in a way that fits with your system.
1569 @menu
1570 * Creating a Task::             
1571 * Task Priorities::             
1572 * Task IDs::                    
1573 * Cyclic Tasks::                
1574 * Task Detail::                 
1575 * Deadlines::                   
1576 @end menu
1578 @node Creating a Task, Task Priorities, Creating New Tasks, Creating New Tasks
1579 @comment  node-name,  next,  previous,  up
1580 @subsubsection Creating a Task
1581 @cindex tasks, creating
1583 You can create a task from any buffer in Emacs by invoking
1584 @command{M-x planner-create-task-from-buffer}.
1586 This command does more than just add an item to your list of tasks. It
1587 also connects that item to some useful context information.
1589 If you create a task while viewing any buffer other than a Planner
1590 day page, Planner will associate the task with a hyperlink to that
1591 buffer. Try it now by creating a task from this Info buffer.
1593 @enumerate
1594 @item @kbd{M-x planner-create-task-from-buffer}
1595 @item
1596 When prompted for the task name, enter @kbd{Learn how to change a task's
1597 status} and press @key{RET}.
1599 @item
1600 When prompted for the date, press @key{RET} to schedule the task for
1601 today.
1603 @item
1604 When prompted for the project page, press @key{RET} to accept the
1605 default page of @samp{TaskPool}. This is a page for tasks not connected
1606 to a larger plan.
1608 @end enumerate
1610 Planner prompts you for two pieces of information when you ask it
1611 to create a task. First, it asks you when you would like to have the
1612 task show up in your planner. If you would like it to be scheduled for
1613 today, you can just hit @key{RET}. If you would like it to be
1614 scheduled for some day during the current month, you can just enter
1615 the date, without the month, like @samp{16}. If you would like it to
1616 be scheduled for some day in a future month of the current year, you
1617 can enter just the month and date, like @samp{06.16}. If you would
1618 like to schedule something for next year, then enter the full date,
1619 like @samp{06.16.2005}. If you do not want this task to appear on a
1620 day page at all, you can enter @samp{nil}.
1622 The second piece of information Planner asks for is the name of
1623 the project to associate the task with. In the above example, you
1624 associated the task with the project ``TaskPool'', which means that
1625 you did not want to associate the task with a particular project or
1626 goal in your life. Another way to do this is to answer the project
1627 prompt by entering @samp{nil}. But instead, you might enter
1628 @samp{LearnPlanner} as the project. This creates a new page called
1629 ``LearnPlanner'' in your planner directory and places an entry for the
1630 task on that page.
1632 The task then exists in two places: once on your day page, to show how
1633 it fits into your daily work; and once on a project page, to show how
1634 it fits into your larger projects and goals. In the future you might
1635 add related tasks like, ``Memorize Planner keybindings''. These
1636 tasks might be scattered over weeks or months worth of day pages, but
1637 as long as you enter the same project name for each, you will have a
1638 way to look at them all together on a single project page.
1640 Planner also creates hyperlinks to enable you to easily move back
1641 and forth between the day page system and the project page
1642 system. Each task on a day page will have a hyperlink to its project
1643 page. Each task on a project page will have a hyperlink to its day
1644 page.
1646 After using Planner for a while, you may find yourself with quite
1647 a few project pages. Keep in mind that completion is enabled at the
1648 project prompt when you create a task, so hitting @kbd{SPC} or
1649 @kbd{TAB} at the prompt will show you a list of your current project
1650 pages.
1652 Once the task is created, you are returned to the buffer you were
1653 working in again, Planner gets out of your way, and you can go on
1654 about your business. Later on, when you decide to actually work on
1655 that ``Memorize Planner keybindings'' task, you will be able to
1656 follow the hyperlink from that task on your day or project page
1657 directly to the relevant node in the Planner info file!
1659 By default, @command{M-x planner-create-task-from-buffer} creates
1660 medium-priority tasks, marked with the letter @samp{B}.  But you can
1661 specify a particular priority or change the default (@pxref{Task
1662 Priorities}).
1664 You don't have to use @command{planner-create-task-from-buffer} to
1665 create tasks. You can also create new tasks manually by typing them
1666 directly on your day or project page in the format Planner expects. You
1667 can even still create hyperlinks by using Muse formatting as you
1668 manually type the new task. Keep in mind also that tasks do not have to
1669 be linked to any other page.
1671 For convenience, @command{planner-create-task-from-buffer} is bound to
1672 @kbd{C-c C-t} in Planner buffers.  You can bind
1673 @command{planner-create-task-buffer} to a shortcut key.  See the
1674 manual for your Emacs distribution to find out more about keybinding.
1676 @defun planner-create-task-from-buffer title date plan-page
1677 Create a new task named @var{title} on @var{date} based on the current
1678 buffer.
1680 With a prefix, associate the task with the current planner page.  If
1681 you create a task on a date page, you will be prompted for a plan
1682 page.  If you create a task on a plan page, you will be prompted for a
1683 day page.  If nil is specified, the task is created only on the
1684 current page.
1686 See @code{planner-create-task} for more information.
1688 The new task is created at the top or bottom of the first block of
1689 tasks on the scheduled day page (if any), depending on the value of
1690 @code{planner-add-task-at-end-flag}.
1691 @end defun
1693 @defun planner-create-task title date annotation plan-page
1694 Create a new task named @var{title} based on the current Wiki page.
1695 If @var{date} is non-nil, makes a daily entry on @var{date}, else
1696 makes an entry in today's planner page. It's assumed that the current
1697 Wiki page is the page you're using to plan an activity. Any time
1698 accrued to this task will be applied to that page's name in the
1699 timelog file, assuming you use timeclock (@pxref{Time Intervals, , ,
1700 Emacs, GNU Emacs Manual}). If @var{annotation} is non-nil, it will be
1701 used for the page annotation. If @var{plan-page} is non-nil, the task
1702 is associated with the given page.
1704 With a prefix, associate the task with the current planner page.  If
1705 you create a task on a date page, you will be prompted for a plan
1706 page.  If you create a task on a plan page, you will be prompted for a
1707 day page.  If nil is specified, the task is created only on the
1708 current page.
1710 You probably want to call @code{planner-create-task-from-buffer}
1711 instead.
1713 The new task is created at the top or bottom of the first block of
1714 tasks on the scheduled day page (if any), depending on the value of
1715 @code{planner-add-task-at-end-flag}.
1716 @end defun
1718 @node Task Priorities, Task IDs, Creating a Task, Creating New Tasks
1719 @comment  node-name,  next,  previous,  up
1720 @subsubsection Task Priorities
1722 You can set the priority of a task when you create it, rather than
1723 waiting to adjust it after the fact. In order to do this, call the
1724 function corresponding to the priority you want. You probably want to
1725 bind these functions to some keys if you intend to use them much.
1727 @itemize
1728 @item @code{planner-create-high-priority-task-from-buffer}
1729 creates a task with priority @samp{A}.
1731 @item @code{planner-create-medium-priority-task-from-buffer}
1732 creates a task with priority @samp{B}.
1734 @item @code{planner-create-low-priority-task-from-buffer}
1735 creates a task with priority @samp{C}.
1736 @end itemize
1738 Or, you can change the default priority of
1739 @command{planner-create-task-from-buffer} by customizing
1740 @var{planner-default-task-priority}.
1742 You can actually use just one general priority, but using more than
1743 one color-codes your tasks and gives you a better overview of your
1744 day.
1747 @node Task IDs, Cyclic Tasks, Task Priorities, Creating New Tasks
1748 @comment  node-name,  next,  previous,  up
1749 @subsubsection Task IDs
1750 @cindex @file{planner-id.el}, using
1751 @cindex tasks, IDs
1753 After loading @file{planner.el}, make sure that @file{planner-id.el} is
1754 in your load path and add this to your @file{.emacs} (or @file{_emacs}):
1756 @example
1757 (require 'planner-id)
1758 @end example
1760 This module modifies the behavior of @file{planner.el}, adding global
1761 task IDs so that tasks can be edited and updated. Planner IDs are of
1762 the form @samp{@{@{Identifier:Number@}@}}.
1764 @subheading Options
1766 @defopt planner-id-add-task-id-flag
1767 Non-nil means automatically add global task IDs to newly-created
1768 tasks. If nil, use @command{planner-id-add-task-id} to add IDs to
1769 existing tasks, or @command{planner-id-add-task-id-to-all} to add to
1770 all tasks on the current page. (Development version 2004.05.05:
1771 planner--dev--1.0--patch-81)
1772 @end defopt
1774 @defopt planner-id-update-automatically
1775 Non-nil means automatically update linked tasks whenever a page is
1776 saved. If nil, use @command{planner-update-task} to update the linked
1777 task. By default, linked tasks are automatically updated.
1778 @end defopt
1780 @defopt planner-id-tracking-file
1781 File that contains ID tracking data. This file is automatically
1782 overwritten.
1783 @end defopt
1785 @subheading Functions
1787 The following interactive functions are defined in @file{planner-id.el}:
1789 @defun planner-id-jump-to-linked-task &optional info
1790 Display the linked task page. If @var{info} is specified, follow that
1791 task instead.
1792 @end defun
1794 @defun planner-id-add-task
1795 Add a task ID for the current task if it does not have one
1796 yet. Update the linked task page, if any.
1797 @end defun
1799 @defun planner-id-update-tasks-on-page &optional force
1800 Update all tasks on this page. Completed or cancelled tasks are not
1801 updated. This can be added to @code{write-file-functions}. If
1802 @var{force} is non-nil, completed and cancelled tasks are also
1803 updated.
1804 @end defun
1806 @defun planner-id-add-task-id-to-all
1807 Add a task ID for all the tasks on the page. Update the linked page,
1808 if any.
1809 @end defun
1811 @defun planner-id-search-id id
1812 Search for all occurrences of @var{id}.
1813 @end defun
1815 @defun planner-id-follow-id-at-point
1816 Display a list of all pages containing the ID at point.
1817 @end defun
1819 @defun planner-id-follow-id-at-mouse event
1820 Display a list of all pages containing the ID at mouse. @var{event} is
1821 the mouse event.
1822 @end defun
1824 @node Cyclic Tasks, Task Detail, Task IDs, Creating New Tasks
1825 @comment  node-name,  next,  previous,  up
1826 @subsubsection Cyclic Tasks
1827 @cindex @file{planner-cyclic.el}, using
1828 @cindex tasks, cyclic
1829 @cindex cyclic tasks
1830 @cindex recurring tasks
1832 If there are tasks that you have to do regularly, you can have Planner
1833 schedule those tasks automatically.
1835 Make sure that @file{planner-cyclic.el} is in your load path and add
1836 this to your @file{.emacs} (or @file{_emacs}):
1838 @example
1839 (require 'planner-cyclic)
1840 @end example
1842 Create a diary file named @file{~/.diary.cyclic-tasks}
1843 (or the value of @code{planner-cyclic-diary-file}). Here is an example:
1845 @example
1846 Tuesday #B0 _ Study Japanese
1847 Friday #B0 _ Study Japanese (JapaneseStudies)
1848 @end example
1850 The first will be a plain task, the second will be linked.  The first
1851 line will automatically create its task every Tuesday, while the
1852 second will create it every Friday.
1854 You can schedule tasks in a variety of ways. This module uses the same
1855 syntax for specifying when tasks will be scheduled as the Emacs diary
1856 uses for appointments and events. See @ref{Date Formats, the GNU Emacs
1857 Manual, Date Formats,emacs, the GNU Emacs Manual}, and @ref{Sexp Diary
1858 Entries, the GNU Emacs Lisp Reference Manual, Sexp Diary
1859 Entries,elisp, the GNU Emacs Lisp Reference Manual}, for a full
1860 description of the possibilities.
1862 By default, planner-cyclic creates multiple tasks if you let tasks build
1863 up (that is, the next Tuesday rolls around and you @emph{still} haven't
1864 marked the task as done.) To turn off this behavior:
1866 @example
1867 (setq planner-cyclic-diary-nag nil)
1868 @end example
1870 @subheading Functions
1872 @file{planner-cyclic-diary} includes the following interactive
1873 functions:
1875 @defun planner-cyclic-create-tasks-maybe
1876 Maybe create cyclic tasks. This will only create tasks for future
1877 dates or today.
1878 @end defun
1880 @node Task Detail, Deadlines, Cyclic Tasks, Creating New Tasks
1881 @comment  node-name,  next,  previous,  up
1882 @subsubsection Task Detail
1883 @cindex tasks
1885 You may find your planner pages getting very full, so that you want to
1886 have one broad task entry be linked to a more specific list of
1887 sub-tasks. Or, maybe you want to have a number of notes linked to a
1888 particular task.
1889 @cindex tasks, sub-
1890 @cindex tasks, meta-
1891 @cindex meta-tasks
1892 @cindex sub-tasks
1894 This can be done with targets.  You can have a task that is really a
1895 meta-task:
1897 @example
1898 #A1  _ Do things in RevelleLog#13 @{@{Tasks:101@}@} (RevelleLog)
1899 @end example
1901 @samp{RevelleLog#13} could then be a list of sub-tasks in the form of
1902 a note, or any kind of note.
1904 Or, instead of pointing to a particular note on @samp{RevelleLog}, you
1905 could have the whole page be tasks that you enter in manually, without
1906 linking them to another page. You can just type them in like this:
1908 @example
1909 #A1  _ First specific thing to do
1910 @end example
1912 This way, the tasks will only appear on this specific project page,
1913 and not on any daily page, so you only see them when you want to look
1914 up all of the specific tasks associated with @samp{#A1  _ Do things in
1915 RevelleLog @{@{Tasks:101@}@} (RevelleLog)}.
1917 As you can see, the ability to manually enter tasks is one of
1918 Planner's nicest features. It allows you to create tasks that are
1919 not assigned to a specific date (by manually entering them on a
1920 project page with no date) or to a specific project (by manually
1921 entering them on a day page with no project). Yet as long as you enter
1922 them using the syntax it understands, Planner will continue to
1923 recognize them as tasks.
1925 Another way to have a task not be connected to a particular date is to
1926 do @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and specify
1927 @samp{nil} when asked for the date.
1929 If you would like to see a list of all of your unfinished tasks, do
1930 @kbd{M-x planner-list-unfinished-tasks}. This function only checks
1931 day plan pages, not project pages.
1933 @node Deadlines,  , Task Detail, Creating New Tasks
1934 @comment  node-name,  next,  previous,  up
1935 @subsubsection Deadlines
1936 @cindex tasks, deadlines for
1937 @cindex deadlines, task
1938 @cindex @file{planner-deadline.el}, using
1940 You can use @file{planner-deadline.el} to automatically recalculate
1941 days to a deadline by adding @code{(require 'planner-deadline)} to
1942 your @file{~/.emacs}. With the default setup, make your tasks of the
1943 form
1945 @example
1946 #A0 _ Some task @{@{Deadline: 2004.09.12@}@}
1947 @end example
1949 (Note: There must be at least one space after the colon.)
1951 After you run @code{planner-deadline-update} to update task descriptions,
1952 the task will be of the form
1954 @example
1955 #A0 _ Some task @{@{Deadline: 2004.09.12 - 2 days@}@}
1956 @end example
1958 @subheading Options
1960 @defopt planner-deadline-regexp
1961 Regular expression for deadline data.
1962 The special deadline string should be regexp group 1. The
1963 date (YYYY.MM.DD) should be regexp group 2.
1964 @end defopt
1966 @subheading Functions
1968 @defun planner-deadline-update
1969 Replace the text for all tasks with deadlines. Deadlines are of the
1970 form @samp{@{@{Deadline: YYYY.MM.DD@}@}} by default.
1971 @end defun
1973 @defun planner-deadline-change &optional date
1974 Change the deadline of current task to @var{date}. If @var{date} is nil,
1975 remove deadline.
1976 @end defun
1978 @node Organizing Your Tasks, Task Reports and Overviews, Creating New Tasks, More about Tasks
1979 @comment  node-name,  next,  previous,  up
1980 @subsection Organizing Your Tasks
1981 @cindex tasks, organizing
1982 @cindex tasks, old
1984 Okay, now that you've gotten the hang of creating tasks, you're probably
1985 facing a really long list of things to do. How can you organize them so
1986 that they don't overwhelm you? Planner gives you a number of strategies
1987 for dealing with large numbers of tasks.
1989 @enumerate
1990 @item Arrange your tasks in the rough order you're going to do them.
1991 @item Use #A, #B and #C task priorities to differentiate between
1992       high-priority, normal and low-priority tasks.
1993 @item Schedule your tasks onto different days.
1994 @item Group your tasks into plan pages.
1995 @item Don't schedule all your tasks.
1996 @end enumerate
1998 @enumerate
2000 @item @emph{Task order}
2002 To remind yourself to do tasks in a certain order, simply edit the
2003 lines so that they're in the order you want. You can use normal
2004 editing commands like kill, yank and transpose-line to reorder the
2005 tasks, or use @key{M-p} (@code{planner-raise-task}) and @key{M-n}
2006 (@code{planner-lower-task}) to rearrange the tasks.
2008 @item @emph{Task priorities}
2010 By default, tasks are created with medium priority (@samp{#B}). You
2011 can make a task high-priority (@samp{#A}) or low-priority (@samp{#C})
2012 by manually editing the task and calling M-x planner-update-task to
2013 update the linked page. Alternatively, you can use @key{C-M-p}
2014 (@code{planner-raise-task-priority}) and @key{C-M-n}
2015 (@code{planner-lower-task-priority}) to modify the task and update the
2016 linked page.
2018 You can edit the priority of a task using @kbd{M-x
2019 planner-edit-task-priority}, or manually edit it and call @kbd{M-x
2020 planner-update-task} to update tasks on the linked page.
2022 @item @emph{Schedule your tasks on different days}
2024 You don't have to do everything today. Is this a task you would rather
2025 do tomorrow? Schedule it for then instead. You can specify @samp{+n}
2026 or @samp{-n} whenever you are asked for a date, where @var{n} is the
2027 number of days before or after the current file's date or today.
2028 Don't over-procrastinate things, though!
2030 @item @emph{Plan pages}
2032 Plan pages let you group related tasks and notes together for easy
2033 reference. For example, you could have a plan page for each major
2034 project or goal in your life, like @samp{GoodHealth} or
2035 @samp{FurtherStudies}.
2037 Although plan pages start by grouping everything under a @samp{*
2038 Tasks} header, you can organize your plan pages in different ways. For
2039 example, you can separate groups of tasks with blank lines, and
2040 Planner will sort tasks within each group.
2042 @item @emph{Tasks without dates}
2044 Plan pages also allow you to have undated tasks or tasks with no
2045 particular deadlines. This keeps your daily task list small and
2046 manageable while making it easier for you to find things to do if you
2047 have free time. Make sure you check your plan pages regularly so that
2048 you don't completely forget about them.
2050 For automated scheduling of the next task on a plan page after you
2051 complete a task, see the section in
2052 @uref{http://sacha.free.net.ph/notebook/emacs/planner-config.el} named
2053 ``Schedule next undated task from same project''.
2055 @end enumerate
2058 @menu
2059 * Multiple Projects::           
2060 * Viewing Tasks::               
2061 * Modifying Tasks::             
2062 * Carrying Over Unfinished Tasks::  
2063 * Task Numbering::              
2064 * Task Ranks::                  
2065 * Grouping Tasks::              
2066 @end menu
2068 @node Multiple Projects, Viewing Tasks, Organizing Your Tasks, Organizing Your Tasks
2069 @comment  node-name,  next,  previous,  up
2070 @subsubsection Associating Tasks with Multiple Projects
2071 @cindex multiple projects
2072 @cindex planner-multi.el, using
2074 You can use @file{planner-multi.el} to associate a task with more than
2075 one project. That way, you can easily keep GTD-style context lists as
2076 well as project-related lists.
2078 To use multiple projects, add the following to your @samp{~/.emacs}:
2080 @example
2081 (require 'planner-multi)
2082 @end example
2084 Under GNU Emacs, you can specify multiple projects by separating them
2085 with a single space. For example, you can specify @kbd{planner doc}
2086 when creating a task to associate the task with those two projects.
2088 Under XEmacs, you can specify multiple projects by typing @kbd{RET}
2089 after each entry and terminating the list with another @kbd{RET}. For
2090 example, to specify @kbd{planner} and @kbd{doc}, you would type
2091 @kbd{planner RET doc RET RET} at the prompt.
2093 If you want to see an overview of all of your tasks as well as
2094 project- or context-specific lists, you can set
2095 @code{planner-multi-copy-tasks-to-page} to your overview page(s). For
2096 example, set it to @samp{TaskPool} to be able to see an overview of
2097 all of your unfinished tasks. You can also set this to multiple pages
2098 such as @samp{[[TasksByProject][p]] [[TasksByContext][c]]} and use
2099 @file{planner-trunk.el} to sort and organize tasks for easy reference.
2100 (@pxref{Grouping Tasks})
2102 @subheading Options
2104 @defopt planner-multi-copy-tasks-to-page
2105 Automatically copy newly-created tasks to the specified page.
2106 @end defopt
2108 By default, tasks are removed from
2109 @code{planner-multi-copy-tasks-to-page} when you call
2110 @code{planner-task-done} or @code{planner-task-cancelled}. If you
2111 prefer to keep a copy of the task, remove
2112 @code{planner-multi-remove-task-from-pool} from
2113 @code{planner-mark-task-hook}.
2115 If you want to use a different separator instead of spaces, customize
2116 the @code{planner-multi-separator} variable.
2118 @defopt planner-multi-separator
2119 String that separates multiple page references.
2121 For best results, this should be something recognized by
2122 @code{muse-link-at-point} so that links are highlighted
2123 separately.
2124 @end defopt
2126 @node Viewing Tasks, Modifying Tasks, Multiple Projects, Organizing Your Tasks
2127 @comment  node-name,  next,  previous,  up
2128 @subsubsection Viewing tasks
2129 @cindex tasks, viewing
2131 Review the tasks scheduled for today by typing @kbd{M-x
2132 planner-goto-today}.  If you created the task from the previous
2133 section in this tutorial, you should see a line that looks like
2135 @example
2136 #A _ Learn how to change a task's status from Tasks (TaskPool)
2137 @end example
2139 If you have @code{planner-use-task-numbers} set to non-nil, you will see
2140 something like the following instead.
2142 @example
2143 #A0 _ Learn how to change a task's status from Tasks (TaskPool)
2144 @end example
2146 From left to right, these are what the symbols mean:
2148 @itemize
2149 @item @samp{A} - Priority.  A (high)
2150 @item
2151 @samp{0} - Priority number.  It is calculated whenever you save the file
2152 or call @command{planner-renumber-tasks}, provided that
2153 @code{planner-use-task-numbers} is non-nil.  Tasks are numbered in
2154 ascending order according to priorities.
2155 @item @samp{_} - Status.  _ (unfinished)
2156 @end itemize
2158 If you click on @samp{Tasks} or press @key{RET} while your cursor is
2159 in the link, Emacs will display the previous info page.
2161 If you select @samp{TaskPool}, Emacs will display the @samp{TaskPool}
2162 plan page.  Plan pages organize your tasks and notes about a project
2163 in one file.
2165 @subheading Functions
2167 You can use @command{planner-seek-next-unfinished-task} to move to the
2168 next unfinished task on the current page.
2170 @defun planner-list-tasks-with-status status &optional pages
2171 Display all tasks that match the STATUS regular expression on all day
2172 pages.  The PAGES argument limits the pages to be checked in this
2173 manner:
2175 @itemize
2176 @item @code{t}: check all pages
2177 @item regexp: search all pages whose filenames match the regexp
2178 @item list of page names: limit to those pages
2179 @item alist of page/filenames: limit to those pages
2180 @end itemize
2182 Called interactively, this function will search day pages by
2183 default. You can specify the start and end dates or leave them as
2184 nil to search all days. Calling this function with an interactive
2185 prefix will prompt for a regular expression to limit pages.
2186 Specify @samp{.} or leave this blank to include all pages.
2188 This function could take a long time.
2189 @end defun
2191 @defun planner-list-unfinished-tasks &optional pages
2192 Display all unfinished tasks. @var{pages} follows
2193 planner-list-tasks-with-status.
2194 @end defun
2196 @defun planner-jump-to-linked-task task-info
2197 Display the task page linked to by the current task or
2198 @var{task-info}.
2199 @end defun
2201 @node Modifying Tasks, Carrying Over Unfinished Tasks, Viewing Tasks, Organizing Your Tasks
2202 @comment  node-name,  next,  previous,  up
2203 @subsubsection Modifying Tasks
2204 @cindex tasks, modifying
2205 @cindex tasks, editing
2207 To select a task, move your cursor to the line containing the task.
2209 Change a task's priority (@samp{A}, @samp{B} or @samp{C}) by editing
2210 the line. @samp{#A} tasks are important. @samp{#B} are medium
2211 priority. @samp{#C} are low priority. Whenever you save the file or
2212 call @kbd{M-x planner-fix-tasks}, tasks are sorted and numbered
2213 according to priority and status.
2215 Change a task's status by calling one of the following functions:
2217 @itemize
2218 @item planner-task-in-progress @samp{o} (@kbd{C-c C-z})
2219 @item planner-task-done @samp{X} (@kbd{C-c C-x})
2220 @item planner-task-cancelled @samp{C} (@kbd{C-c C-S-x})
2221 @item planner-task-delegated @samp{D}
2222 @item planner-task-pending @samp{P}
2223 @item planner-task-open @samp{_}
2224 @end itemize
2226 After changing the status using a function, look at the
2227 @samp{TaskPool} plan page.  The task is also updated on the linked
2228 page.  If you changed the task status manually by replacing the status
2229 with another character, you will need to call
2230 @command{planner-update-task} to update the linked page.
2232 To reschedule a task, call @command{planner-copy-or-move-task} (@kbd{C-c
2233 C-c}) and choose a new date.  You can mark a region and type @kbd{M-x
2234 planner-copy-or-move-region} to reschedule all the contained tasks to a
2235 different date.  Enter @samp{nil} for the date if you don't want the
2236 task or group of tasks to appear on any date page at all anymore. This
2237 is a good way to ``de-schedule'' a task for the time being, but still
2238 keep it linked to a plan page for possible future scheduling.
2240 To change the plan page associated with a task, call
2241 @command{planner-replan-task}.  Enter @samp{nil} for the plan page if
2242 you don't want the task to appear on any plan page anymore. If you
2243 precede the command with a prefix argument, the text of the original
2244 plan page will appear in the prompt for easy editing.
2246 Since the same task may exist on two or more pages, such as a date page
2247 and a plan page, it is dangerous to edit the description of the task by
2248 hand. You should not do it unless you want to make the exact same
2249 changes on all its linked pages.
2251 Instead of doing this by hand, you should use
2252 @command{planner-edit-task-description}. This will prompt you for the
2253 changes to the task description and then update all the other pages to
2254 which the task is linked.  Or, you can just use
2255 @command{planner-delete-task} to remove the task from both pages, and
2256 then create it again with the new desired description.
2258 To remind yourself to do tasks in a certain order, simply edit the
2259 lines so that they're in the order you want.
2260 @command{planner-raise-task} and @command{planner-lower-task} update
2261 the priorities on linked pages automatically. You can organize tasks
2262 into groups by putting a blank line between groups of tasks.
2263 Planner will maintain the groupings and only sort the tasks within
2264 that group.
2266 @subheading Functions
2268 @defun planner-replan-task page-name
2269 Change or assign the plan page for the current task.  @var{page-name}
2270 is the new plan page for the task. Use
2271 @code{planner-copy-or-move-task} if you want to change the date. With a
2272 prefix, provide the current link text for editing.
2273 @end defun
2275 @defun planner-raise-task-priority
2276 Change a low-priority task to a medium-priority task and a
2277 medium-priority task to a high-priority task (C to B to A).
2278 @end defun
2280 @defun planner-lower-task-priority
2281 Change a high-priority task to a medium-priority task and a
2282 medium-priority task to a low-priority task (A to B to C).
2283 @end defun
2285 @defun planner-raise-task arg
2286 Move a task up @var{arg} steps.  By default, @var{arg} is 1.
2287 @end defun
2289 @defun planner-lower-task  arg
2290 Move a task down @var{arg} steps.  By default, @var{arg} is 1.
2291 @end defun
2293 @defun planner-edit-task-description description
2294 Change the description of the current task, updating the linked page
2295 if any.
2296 @end defun
2298 @defun planner-delete-task
2299 Delete this task from the current page and the linked page.
2300 @end defun
2302 @defun planner-update-task
2303 Update the current task's priority and status on the linked page.
2304 Tasks are considered the same if they have the same description.
2305 This function allows you to force a task to be recreated if it
2306 disappeared from the associated page.
2307   
2308 Note that the text of the task must not change. If you want to be able
2309 to update the task description, see @code{planner-edit-task-description}
2310 or @file{planner-id.el}.
2311 @end defun
2313 See @command{planner-install-extra-task-keybindings} for additional
2314 task-related shortcuts.
2316 @node Carrying Over Unfinished Tasks, Task Numbering, Modifying Tasks, Organizing Your Tasks
2317 @comment  node-name,  next,  previous,  up
2318 @subsubsection Carrying Over Unfinished Tasks
2319 @cindex tasks, carrying over
2321 Sometimes you won't be able to cross off all the tasks on your list.
2322 Planner makes it easy for you to keep track of things you still have
2323 to do by automatically rescheduling unfinished tasks from the past few
2324 days. By default, the @command{plan} command searches for unfinished
2325 tasks from the last three days and reschedules them onto today. If you
2326 open Planner every day, this should cover weekends easily.
2328 It's a good idea to start Planner whenever you start Emacs. That way,
2329 Planner can help remind you about today's tasks, appointments, and other
2330 things. To automatically start Planner whenever you start up Emacs, add
2331 the following code to the end of your @file{~/.emacs}:
2333 @example
2334 (plan)
2335 @end example
2337 Now, every time you start Emacs (which should be more or less once a
2338 day), you'll see today's page. If you don't finish all the tasks today,
2339 you'll see them again tomorrow.
2341 It's a good idea to start Planner every time you start Emacs so that
2342 you get reminded about your task list. If you prefer to start Planner
2343 manually, remember to call @kbd{M-x plan} every so often to make sure
2344 that you don't forget any unfinished tasks. Safe in the knowledge that
2345 Planner tasks won't slip through the cracks (unlike little slips of
2346 paper that will invariably get mislaid), you can then get on with the
2347 rest of your life.
2349 If your increased productivity with Planner leads to a well-deserved
2350 two-week vacation, then you'll need to tell Planner to search more days
2351 for unfinished tasks. By using @kbd{M-x plan}, you can automatically
2352 bring forward tasks over a given number of days or even scan all the
2353 days since time immemorial. @kbd{C-u 15 M-x plan} reschedules all
2354 unfinished tasks from the last 15 days. @kbd{C-u -1 M-x plan} checks all
2355 of your past day pages for unfinished tasks.
2357 Like everything else in Planner, you can adapt @kbd{M-x plan} to your
2358 particular way of life. For example, if you find yourself starting up
2359 Emacs and Planner every day--including weekends--because it's just so
2360 much fun, you can set the @code{planner-carry-tasks-forward} to 1.
2361 This can make your Emacs startup marginally faster. On the other hand,
2362 if you normally start Emacs once a week, you can set it to 7 or 8. If
2363 you're worried about tasks dropping off your radar, you can set it to
2364 0. You can set the value of @var{planner-carry-tasks-forward} either
2365 with @key{M-x customize-variable RET planner-carry-tasks-forward RET},
2366 or by putting @code{(setq planner-carry-tasks-forward 3)} (replacing
2367 @code{3} with the value appropriate for what you want) in your
2368 @file{~/.emacs} file.
2370 On the other hand, you might prefer to reschedule tasks yourself. If
2371 you set @code{planner-carry-tasks-forward} to @code{nil}, then
2372 @command{M-x plan} and @code{(plan)} will bring you to the most recent
2373 page with unfinished tasks if there is no page for today. You can then
2374 use @command{planner-copy-or-move-task} and
2375 @command{planner-copy-or-move-region} to reschedule tasks. This is
2376 probably more hassle than it's worth, though, so let Planner take care
2377 of this for you.
2379 @subheading Options
2381 @defopt planner-carry-tasks-forward
2382 If non-nil, carry unfinished tasks forward automatically.
2383 If a positive integer, scan that number of days in the past.
2384 If 0, scan all days for unfinished tasks.
2385 If t, scan one day in the past (old behavior).
2386 If nil, do not carry unfinished tasks forward.
2387 @end defopt
2389 @subheading Functions
2391 @defun plan &optional force-days
2392 Start your planning for the day, carrying unfinished tasks forward.
2394 If @var{force-days} is a positive integer, search that many days in the
2395 past for unfinished tasks.
2396 If @var{force-days} is @code{0} or @code{t}, scan all days.
2397 If @var{force-days} is @code{nil}, use the value of
2398 @code{planner-carry-tasks-forward} instead, except t means scan only
2399 yesterday
2401 @end defun
2403 @defun planner-copy-or-move-task date force
2404 Reschedule the task for @var{date}. If @var{force} is non-nil, the
2405 task is moved regardless of status. It also works for creating tasks
2406 from a Note. Use @code{planner-replan-task} if you want to change the
2407 plan page in order to get better completion.
2408 @end defun
2410 @defun planner-copy-or-move-region beg end date muffle-errors
2411 Move all tasks from @var{beg} to @var{end} to @var{date}.
2412 @code{planner-copy-or-move-region} will copy or move all tasks from
2413 the line containing @var{beg} to the line just before @var{end}. If
2414 @var{muffle-errors} is non-nil, no errors will be reported.
2415 @end defun
2417 @node Task Numbering, Task Ranks, Carrying Over Unfinished Tasks, Organizing Your Tasks
2418 @comment  node-name,  next,  previous,  up
2419 @subsubsection Task Numbering
2421 By default, tasks are numbered according to their position on the
2422 page.  Task numbers allow you to refer to tasks using Muse links.
2423 For example, the @samp{#A1} task in @file{2004.08.16} can be referred to
2424 as @samp{2004.08.16#A1}.
2426 Note that task numbers change every time you re-sort and re-number tasks
2427 with @code{planner-fix-tasks}.  As a result, they are only reliable for
2428 references to past tasks.
2430 If you find yourself not using this functionality, you can turn off task
2431 numbers by using the following option.
2433 @subheading Options
2435 @defopt planner-use-task-numbers
2436 Non-nil means use task numbers when creating tasks.  This allows you
2437 to refer to past tasks if your tasks are numbered appropriately.
2438 If you set this to nil, you can save space in your plan files.
2439 @end defopt
2441 @node Task Ranks, Grouping Tasks, Task Numbering, Organizing Your Tasks
2442 @comment  node-name,  next,  previous,  up
2443 @subsubsection Task Ranks
2444 @cindex ranking tasks
2445 @cindex tasks, ranking
2446 @cindex @file{planner-rank.el}, using
2448 @file{planner-rank.el} models Franklin Covey's Urgency and Importance
2449 principle. When you think about a task, there are two aspects in
2450 consideration: Urgency and Importance. You may want to do the most
2451 urgent things first, like answering an email, or you may want to do
2452 the most important things first, like reading this manual. Or much
2453 better, balance Urgency and Importance and decide what to do.
2455 @file{planner-rank.el} can help you balance.
2457 Urgency and Importance are both measured by scores from 0-9. The
2458 higher the score, the more you want to do it first. 9 stands for ``I
2459 should have done this'' and 0 stands for ``I can forget this''.
2461 If you are using the planner @ref{Deadlines} feature, the Urgency
2462 score is automatically calculated from how many days are left to meet
2463 the deadline. By default, it will score 9 if the task is overdue and 0
2464 if the deadline is years away. Please refer to the docstring of
2465 @code{planner-rank-deadline-urgency-map-list} for detail.
2467 The task rank is calculated from Urgency and Importance scores. As
2468 different people balance urgency and importance differently, a number
2469 of @code{planner-rank-calculate-rank-*} functions are provided. The
2470 algorithms vary from a simple average to something like a weighted
2471 root mean square deviation.
2473 The aggressive versions of these functions
2474 (@code{planner-rank-calculate-rank-*-aggressive}) will make sure if
2475 one of Urgency and Importance is high, the resulting rank will be high
2476 as well. @code{planner-rank-calculate-rank-weighted-*} functions weigh
2477 the Urgency and Important scores depending on
2478 @code{planner-rank-importance-vs-urgency-factor}.
2480 Call @code{planner-rank-test-algorithm} on each of the functions and
2481 check the result tables to see which one you like most, and set it to
2482 @code{planner-rank-rank-calculate-function}. Alternatively, accept the
2483 defaults and tweak them when you get a better feel for ranking.
2485 Once the Rank is calculated, the @ref{Task Priorities} will be
2486 automatically reset. If the Rank is greater than or equal to
2487 @code{planner-rank-priority-A-valve}, the task priority will be
2488 @samp{A}, if the Rank is between @code{planner-rank-priority-A-valve}
2489 and @code{planner-rank-priority-B-valve}, the priority will be @samp{B},
2490 else it will be @samp{C}.
2492 After setting the task importance and deadline, you can leave it as
2493 is. As the deadline approaches, the task priority will automatically
2494 be raised and the task re-colored to catch your eyes.
2496 If you are using @code{planner-sort-tasks} (see @pxref{Making Files
2497 Pretty}), you can set @code{planner-sort-tasks-key-function} to one of
2498 @code{planner-sort-tasks-by-rank},
2499 @code{planner-sort-tasks-by-importance}, and
2500 @code{planner-sort-tasks-by-urgency}.
2502 @subheading Options
2504 @defopt planner-rank-change-hook
2505 Functions to run after @code{planner-rank-change}.
2506 @end defopt
2508 @defopt planner-rank-priority-A-valve
2509 Tasks with rank greater than or equal to this value will be set to
2510 priority @samp{A}.
2511 @end defopt
2513 @defopt planner-rank-priority-B-valve
2514 Tasks with rank greater than or equal to this value and less than
2515 @code{planner-rank-priority-A-valve} will be set to priority
2516 @samp{B}. Tasks with rank less than this value will be set to priority
2517 @samp{C}.
2518 @end defopt
2520 @defopt planner-rank-deadline-urgency-map-list
2521 Defines how to calculate the Urgency score according to how many days
2522 are left to meet the deadline.
2523 @end defopt
2525 @defopt planner-rank-default-importance
2526 Default importance value for newly added rank.
2527 @end defopt
2529 @defopt planner-rank-default-urgency
2530 Default urgency value for newly added rank.
2531 @end defopt
2533 @defopt planner-rank-importance-vs-urgency-factor
2534 How much do you think importance is more ``important'' than urgency.
2535 This will be used in @code{planner-rank-calculate-rank-weighted-*}
2536 functions.
2537 @end defopt
2539 @defopt planner-rank-rank-calculate-function
2540 Define the function called to calculate rank.
2541 @end defopt
2543 @subheading Functions
2545 @defun planner-rank-change &optional importance urgency
2546 Set the Importance and Urgency of the current task.
2547 @end defun
2549 @defun planner-rank-update-current-task
2550 Recalculate rank for the current task.
2551 @end defun
2553 @defun planner-rank-update-all
2554 Recalculate rank for all tasks in the current page
2555 @end defun
2557 @defun planner-rank-update-all
2558 Recalculate rank for all tasks in the current page
2559 @end defun
2561 @node Grouping Tasks,  , Task Ranks, Organizing Your Tasks
2562 @comment  node-name,  next,  previous,  up
2563 @subsubsection Grouping Tasks with planner-trunk.el
2564 @cindex grouping tasks
2565 @cindex tasks, grouping
2566 @cindex @file{planner-trunk.el}, using
2568 @file{planner-trunk.el} helps you automatically group tasks according
2569 to a set of rules. It sorts and splits your tasks, adding a blank line
2570 between groups of tasks. For example, if today's page looks like this:
2572 @example
2573 * Tasks
2575 #B   _ Buy milk (GroceryShopping)
2576 #B   _ Learn how to use planner-trunk (PlannerMode)
2577 #B   _ Buy a notebook (Bookstore)
2578 #B   _ Buy cereal (GroceryShopping)
2579 #B   _ Set up my own planner-trunk rules (PlannerMode)
2580 #B   _ Customize my stylesheet (MuseMode)
2581 #B   _ Go for a health checkup (BetterHealth)
2582 @end example
2584 @noindent
2585 then you might want to group the tasks into: planner and muse,
2586 shopping list, and other items. If you set up the appropriate rules by
2587 customizing @code{planner-trunk-rule-list}, @file{planner-trunk.el}
2588 can automatically rewrite that section line this:
2590 @example
2591 * Tasks
2593 #B   _ Learn how to use planner-trunk (PlannerMode)
2594 #B   _ Set up my own planner-trunk rules (PlannerMode)
2595 #B   _ Customize my stylesheet (MuseMode)
2597 #B   _ Buy milk (GroceryShopping)
2598 #B   _ Buy a notebook (BookstoreShopping)
2599 #B   _ Buy cereal (GroceryShopping)
2601 #B   _ Go for a health checkup
2602 @end example
2604 @noindent
2605 In this case, you would set @code{planner-trunk-rule-list}
2606 to @code{(("." nil ("PlannerMode\\|MuseMode" "Shopping")))}.
2608 You can load @file{planner-trunk} with @kbd{M-x load-library RET
2609 planner-trunk RET} or add @code{(require 'planner-trunk)}. If you're
2610 not yet comfortable with Emacs Lisp, you can use @kbd{M-x
2611 customize-variable RET planner-trunk-rule-list RET} to edit this rule
2612 using an easy-to-use interface.
2614 WARNING: Do not keep non-task information in the Tasks section.
2615 planner-trunk will delete @strong{all} non-task lines from the Tasks
2616 section of your plan page in the process of grouping the tasks.
2618 After you set up @code{planner-trunk-rule-list}, use @command{M-x
2619 planner-trunk-tasks} to try out your rules until you're satistfied.
2621 If you want to do this automatically, you can use @code{(add-hook
2622 'planner-mode-hook 'planner-trunk-tasks)} to trigger it automatically
2623 whenever you open a Planner page.
2625 @node Task Reports and Overviews,  , Organizing Your Tasks, More about Tasks
2626 @subsection Task Reports and Overviews
2627 @cindex task reports
2628 @cindex task overviews
2629 @cindex reports, task
2630 @cindex overviews, task
2631 @cindex reports, accomplishment
2632 @cindex tasks, overview of
2634 Planner provides a number of different ways to generate different
2635 presentations of your tasks.
2637 @menu
2638 * Accomplishments::             
2639 * Task Overviews::              
2640 * <tasks> tag::                 
2641 @end menu
2643 @node Accomplishments, Task Overviews, Task Reports and Overviews, Task Reports and Overviews
2644 @comment  node-name,  next,  previous,  up
2645 @subsubsection Generating Daily Accomplishment Reports
2646 @cindex reports, accomplishment
2647 @cindex @file{planner-accomplishments.el}, using
2648 @cindex tasks, overview of
2649 @cindex task reports
2650 @cindex reports, task
2651 @cindex overviews, task
2652 @cindex task overviews
2654 You can use @file{planner-accomplishments.el} to get a summary of your
2655 task activity for a particular day. The report is grouped by status
2656 and plan (on day pages) or date (on plan pages). An example report
2657 follows:
2659 @example
2660 Link        | Unfinished | In progress | Delegated | Completed | Total
2661 nil         | 1          | 0           | 0         | 6         | 7
2662 TaskPool    | 1          | 1           | 0         | 3         | 5
2663 Planner     | 0          | 0           | 1         | 1         | 2
2664 SchoolWork  | 0          | 0           | 0         | 1         | 1
2665 Total       | 2          | 1           | 1         | 11        | 15
2666 @end example
2668 This lets you see how you balance your time between your projects.
2670 @itemize
2672 There are currently two ways to use @file{planner-accomplishments.el}.
2674 @item Displaying a temporary buffer
2676 You can call @code{planner-accomplishments-show} to display a buffer
2677 containing the current page's accomplishment report.
2679 @item Rewriting sections of your planner
2681 Choose this approach if you want accomplishment reports to be in
2682 their own section and you would like them to be readable in your
2683 plain text files even outside Emacs. Caveat: The accomplishment
2684 section should already exist in your template and will be rewritten
2685 when updated.
2687 To use, set @code{planner-accomplishments-section} to the name of the
2688 section to rewrite (default: @samp{Accomplishments}). If you want
2689 rewriting to be automatically performed, call
2690 @code{planner-accomplishments-insinuate}. The accomplishments will be
2691 rewritten whenever you save a planner page. If you want rewriting to
2692 be manual, call @code{planner-accomplishments-update}.
2694 @end itemize
2696 @subheading Options
2698 @defopt planner-accomplishments-section
2699 Header for the accomplishments section in a plan page.
2700 Used by @code{planner-accomplishments-update}.
2701 @end defopt
2703 @defopt planner-accomplishments-status-display
2704 Alist of status-label maps also defining the order of display.
2705 Used by @code{planner-accomplishments-format-table}.
2706 @end defopt
2708 @subheading Functions
2710 @defun planner-accomplishments-insinuate ()
2711 Automatically call @code{planner-accomplishments-update} when saving
2712 tasks in @code{planner-mode} buffers.
2713 @end defun
2715 @defun planner-accomplishments-update ()
2716 Rewrite @code{planner-accomplishments-section} with a summary of tasks
2717 on this page.
2718 @end defun
2720 @defun planner-accomplishments-show ()
2721 Display a buffer with the current page's accomplishment report.
2722 @end defun
2724 @node Task Overviews, <tasks> tag, Accomplishments, Task Reports and Overviews
2725 @comment  node-name,  next,  previous,  up
2726 @subsubsection Seeing an Overview of Tasks
2727 @cindex tasks, overview of
2728 @cindex task reports
2729 @cindex reports, task
2730 @cindex overviews, task
2731 @cindex task overviews
2732 @cindex @file{planner-tasks-overview.el}, using
2734 You can see a list of tasks with @file{planner-tasks-overview.el}.
2735 Seeing how you've scheduled tasks over the next few days can help you
2736 decide when to schedule another task. Table entries will be of the form
2738 @var{date} | @var{link} | @var{priority} @var{status} | @var{task-description}
2740 @subheading Functions
2742 To display the tasks between a set of day pages, use
2744 @defun planner-tasks-overview start end
2745 Display an overview of your tasks from @var{start} to @var{end}. If
2746 @var{start} is nil, start from the very first day page. If @var{end}
2747 is nil, include the very last day page. You can use
2748 @code{planner-expand-name} shortcuts here, like @kbd{+1} or @kbd{-1}.
2749 Pressing @key{RET} at the prompt will use today.
2751 Once in a @code{planner-tasks-overview} buffer, you can use
2752 the keyboard shortcut @key{o} to change the overview period.
2753 @end defun
2755 You can sort the task display with the following functions:
2757 @defun planner-tasks-overview-sort-by-date
2758 Sort the tasks by date. Keyboard shortcut: @key{1}
2759 @end defun
2761 @defun planner-tasks-overview-sort-by-plan
2762 Sort the tasks by associated plan page. Keyboard shortcut: @key{2}
2763 @end defun
2765 @defun planner-tasks-overview-sort-by-priority
2766 Sort the tasks by priority. Keyboard shortcut: @key{3}
2767 @end defun
2769 @defun planner-tasks-overview-sort-by-status
2770 Sort the tasks by status. Keyboard shortcut: @key{4}
2771 @end defun
2773 You can jump to linked tasks with
2775 @defun planner-tasks-overview-jump other-window
2776 Display the current task. If a prefix argument is supplied, show the
2777 task in another window. Keyboard shortcut: @key{j}
2778 @end defun
2780 @defun planner-tasks-overview-jump-other-window
2781 Display the current task in another window. Keyboard shortcut: @kbd{C-u j}
2782 @end defun
2784 You can view a summary of the tasks in your plan pages with
2786 @defun planner-tasks-overview-show-summary &optional file-list
2787 Count unscheduled, scheduled, and completed tasks for FILE-LIST. If
2788 called with an interactive prefix, prompt for the plan page(s) to
2789 display. Load @file{planner-multi.el} to be able to specify multiple
2790 pages.
2791 @end defun
2793 @subheading Keys
2795 @key{TAB}, @kbd{SHIFT-TAB} and @key{RET} navigate links in the usual
2796 fashion.
2798 @node <tasks> tag,  , Task Overviews, Task Reports and Overviews
2799 @subsubsection <tasks> tag
2800 @cindex <tasks> tag
2801 @cindex task reports
2802 @cindex reports, task
2803 @cindex overviews, task
2804 @cindex task overviews
2805 @cindex tasks, overview of
2807 @samp{<tasks>} is replaced by a report of tasks over all day pages in
2808 published pages (@pxref{Publishing}).
2810 @example
2811 All incomplete tasks
2813 <tasks status="^X">
2815 All completed tasks
2817 <tasks status="X">
2819 All tasks
2821 <tasks>
2822 @end example
2824 Warning: this function can be slow, as it checks all the day pages!
2826 @node More about Notes, Making Files Pretty, More about Tasks, More about Planner
2827 @section More about Notes
2828 @cindex notes, more about
2829 You can put anything in this section. Notes added by
2830 @file{remember-planner.el} look like this:
2832 @example
2833 .#1 Headline
2834 Body
2835 @end example
2837 and are outlined at the @code{H3} level. If you want to take notes
2838 conveniently, check out @file{remember-planner.el}.
2840 Planner by default organizes the notes on a planner page so that
2841 the most recent note is first. Each note is numbered, with the oldest
2842 note labeled @samp{.#1}. If you would like to reverse this behavior,
2843 look at @kbd{C-h v planner-reverse-chronological-notes}.
2845 Notes are associated with day pages, but can also be associated with
2846 plan pages when they are created.  A linked note looks like this:
2848 @example
2849 .#1 Headline (LinkedNote#1)
2850 Text
2851 @end example
2853 You can jump to the linked note with
2854 @command{planner-jump-to-linked-note}.
2856 Deleting a note can be dangerous, as the notes are automatically
2857 numbered.  Removing a note could break links in other pages.
2859 @subheading Functions
2861 @defun planner-create-note page
2862 Create a note to be remembered in @var{page} (today if @var{page} is
2863 nil).  If @code{planner-reverse-chronological-notes} is non-nil, create
2864 the note at the beginning of the notes section; otherwise, add it to
2865 the end.  Position point after the anchor.
2866 @end defun
2868 @defun planner-create-note-from-task
2869 Create a note based on the current task and update the current task to
2870 link to the note.
2871 @end defun
2873 @defun planner-renumber-notes
2874 Update note numbering.
2875 @end defun
2877 @defun planner-jump-to-linked-note note-info
2878 Display the note linked to by the current note or @var{note-info} if
2879 non-nil.
2880 @end defun
2882 @defun planner-search-notes regexp limit
2883 Return a buffer with all the notes returned by the query for
2884 @var{regexp}.  If called with a prefix argument, prompt for
2885 @var{limit} and search days on or after @var{limit}.
2886 @end defun
2888 The following sections include instructions for displaying,
2889 manipulating, and navigating your notes efficiently.
2891 @menu
2892 * Using Allout Mode::           Quickly navigating your notes
2893 * <notes>::                     Note headlines
2894 * <past-notes>::                Index of past notes
2895 * Note Indices::                
2896 @end menu
2898 @node Using Allout Mode, <notes>, More about Notes, More about Notes
2899 @subsection Using Allout Mode
2900 @cindex Allout mode
2901 @cindex notes, navigating
2902 @cindex notes, formatting
2903 @cindex notes, displaying
2905 The format of the notes in Planner works well with Allout mode, which
2906 provides helpful commands for navigating and formatting outlines. You
2907 can, for example, hide the bodies of all the notes on a page so you can
2908 see just their headlines. You can also jump easily from headline to
2909 headline, skipping over the bodies in between.
2911 The commands for using Allout mode vary depending on which Emacs version
2912 you are using. In either case, type @kbd{M-x load-library @key{RET}
2913 allout @key{RET}} to start. If you are using CVS Emacs, type @kbd{M-x
2914 allout-mode @key{RET}}. If you are using an earlier version of Emacs,
2915 type @kbd{M-x outline-mode @key{RET}}.
2917 The exact commands then available to you differ depending on your Emacs
2918 version, but you can view the commands and their keybindings by typing
2919 @kbd{C-h m}. In CVS Emacs, they will start with @command{allout-}, while
2920 in previous versions, they will start with @command{outline-}.
2922 @node <notes>, <past-notes>, Using Allout Mode, More about Notes
2923 @subsection <notes>
2925 @samp{<notes>} is replaced by a list of note headlines when the page
2926 is published. For example, the notes tag in the following example will
2927 be replaced by the two headlines when published. (@pxref{Publishing})
2929 @example
2930 <notes>
2932 * Notes
2934 .#1 This is a headline
2936 and this is body text
2938 .#2 This is another headline
2940 and this is more body text
2941 @end example
2943 @samp{<notes>} is useful if you want to provide a quick summary of
2944 blog entries at the top of your page. Just add it to your
2945 @code{planner-day-page-template}.
2947 @node <past-notes>, Note Indices, <notes>, More about Notes
2948 @subsection <past-notes>
2950 @samp{<past-notes>} is replaced by an index of note headlines.
2951 If @var{start} is specified, it lists notes starting from that date.
2952 If @var{directory} is specified, you can index notes in another
2953 planner directory.
2955 @example
2956 All the notes I've taken in 2004:
2958 <past-notes start="2004.01.01" end="2004.12.31">
2959 @end example
2961 @node Note Indices,  , <past-notes>, More about Notes
2962 @comment  node-name,  next,  previous,  up
2963 @subsection Note Indices
2964 @cindex @file{planner-notes-index.el}, using
2965 @cindex notes, indexing
2967 Make sure that @file{planner-notes-index.el} is in your load path and
2968 add this to your @file{.emacs} (or @file{_emacs}):
2970 @example
2971 (require 'planner-notes-index)
2972 @end example
2974 Then you can use tags of the form:
2976 @example
2977 <planner-notes-index page="2004.03.02">
2978 <planner-notes-index from="2004.03.01" to="2004.03.31">
2979 <planner-notes-index limit="10">
2980 <planner-notes-index page="PlanPage">
2981 <planner-notes-index-month-table month="2004.03" limit="5">
2982 <planner-notes-index-month-table month="2004.03">
2983 @end example
2985 You can also use the following interactive functions:
2987 @code{planner-notes-index}
2988 @code{planner-notes-index-days}
2989 @code{planner-notes-index-weeks}
2990 @code{planner-notes-index-months}
2991 @code{planner-notes-index-years}    (wow!)
2993 These work based on the current date (date of current buffer, or today).
2995 If a single page is specified, this page is scanned for headlines
2996 of the form:
2998 @example
2999  .#1 Headline
3000 @end example
3002 The results are presented as a bulleted list.
3004 If @var{from} and @var{to} are specified, all date pages between them
3005 (inclusive) are scanned. If @var{from} is omitted, it is assumed to be
3006 the earliest entry.  If @var{to} is omitted, it is assumed to be the
3007 latest entry.
3009 If @var{recent} is specified, the list includes only that many recent
3010 headlines.  and the results are presented as a bulleted list.
3012 To customize presentation, you can write a function that generates
3013 the appropriate @code{<planner-notes-index>} tags. You can also use
3014 @code{planner-extract-note-headlines} in your own functions.
3016 @subheading Functions
3018 The following interactive functions are defined in
3019 @file{planner-notes-index.el}:
3021 @defun planner-notes-index &optional from to limit
3022 Display a clickable notes index. If called from a Lisp program,
3023 display only dates between @var{from} and @var{to}. With a prefix arg
3024 @var{limit}, display only that number of entries.
3025 @end defun
3027 @defun planner-notes-index-days days
3028 Display an index of notes posted over the past few @var{days}. The
3029 list ends with the day of the current buffer or @code{planner-today}.
3030 @end defun
3032 @defun planner-notes-index-weeks weeks
3033 Display an index of notes posted over the past few @var{weeks}. The
3034 list ends with the week of the current buffer or
3035 @code{planner-today}. Weeks start from Sunday.
3036 @end defun
3038 @defun planner-notes-index-months months
3039 Display an index of notes posted over the past few @var{months}. The
3040 list ends with the month of the current buffer or @code{planner-today}.
3041 @end defun
3043 @defun planner-notes-index-years years
3044 Display an index of notes posted over the past few @var{years}. The
3045 current year is included.
3046 @end defun
3048 @file{planner-notes-index.el} does not define any keybindings.
3051 @node Making Files Pretty, Annotations, More about Notes, More about Planner
3052 @section Making Files Pretty
3054 By default, planner does a little bit of fancy reformatting when you
3055 save a file. Tasks are sorted by priority (ABC) and status (_oP>XC) on
3056 day pages. On plan pages, tasks are sorted by priority (ABC), status
3057 (XC), and date. Undated tasks are sorted after dated tasks.
3059 @subheading Options
3061 @defopt planner-sort-tasks-key-function
3062 Control task sorting. Some options include
3063 @code{planner-sort-tasks-default-key},
3064 @code{planner-sort-tasks-basic}, @code{planner-sort-tasks-by-date}, and
3065 @code{planner-sort-tasks-by-link}.
3066 @end defopt
3068 @defopt planner-sort-undated-tasks-equivalent
3069 This option controls the behavior of task sorting on plan pages.  By
3070 default, the value @samp{9999.99.99} causes dated tasks to be listed
3071 before undated tasks.  To sort undated tasks before dated tasks,
3072 set this to a blank string.
3073 @end defopt
3075 @defopt planner-sort-tasks-automatically
3076 Non-nil means sort tasks whenever a planner file is saved.  On day
3077 pages, tasks are sorted by status.  On plan pages, they are sorted by
3078 status and date.  Sorting can take a while.
3079 @end defopt
3081 @defopt planner-renumber-tasks-automatically
3082 Non-nil means renumber tasks from 1 to N whenever a planner file is
3083 saved. This allows you to refer to tasks in previous day pages using
3084 anchors like @samp{2003.08.12#A1}. If you use this function, make sure
3085 @code{planner-use-task-numbers} is non-nil so that new tasks are created
3086 with task numbers.
3087 @end defopt
3089 @defopt planner-align-tasks-automatically
3090 Non-nil means align tasks whenever a planner file is saved.  This
3091 causes the status to line up in a neat column if you have less than
3092 100 tasks.
3093 @end defopt
3095 @defopt planner-renumber-notes-automatically
3096 Non-nil means renumber the notes. If most of your notes are only on
3097 one page, you might like seeing the notes renumbered if you delete a
3098 note in the middle. However, if you use a lot of cross-referencing,
3099 note renumbering will break those links.
3100 @end defopt
3102 @subheading Functions
3104 @defun planner-sort-tasks
3105 Sort tasks according to planner-sort-tasks-key-function. By default,
3106 sort tasks according to priority and position on day pages, and
3107 according to status, priority, date, and position on plan pages.
3108 @end defun
3110 @defun planner-renumber-tasks
3111 Update task numbering.
3112 @end defun
3114 @defun planner-align-tasks
3115 Align tasks neatly. You can add this to @code{write-file-functions} to
3116 have the tasks automatically lined up whenever you save.  For best
3117 results, ensure @code{planner-align-tasks} is run after
3118 @code{planner-renumber-tasks}.
3119 @end defun
3121 @defun planner-fix-tasks
3122 Sort, renumber and align tasks.
3123 @end defun
3125 @node Annotations, Interactive Lisp, Making Files Pretty, More about Planner
3126 @comment  node-name,  next,  previous,  up
3127 @section Annotations
3129 The context included when you create a task and the context included
3130 when you create a note are gained the same way. It sounds like black
3131 magic, but it turns out not to be.
3133 All that happens is, Planner has a list of functions,
3134 @code{planner-annotation-functions}. When you create a task from a
3135 buffer, or remember a note from a buffer, Planner goes through
3136 this list from top to bottom. The first one that returns true is the
3137 one it uses.
3139 For example, if you're in Wanderlust, and you hit the key you've bound
3140 to @code{planner-create-task-from-buffer}, it looks at this list and
3141 does something like this.  Is it an ERC buffer? No. Is it a BBDB
3142 buffer? No. Are we in w3m? No. Are we in Wanderlust? Yes. So this
3143 function succeeds. It stops searching and runs the annotation function
3144 for Wanderlust, which in this case finds out who the message is from
3145 and what the message ID of the message is. It then takes those and
3146 constructs a link back to that message, with a link title something
3147 like @samp{Email from Joe Blogs}.
3149 So, you've read the email from Joe Blogs. He's asked you to do
3150 something and you've hit your key to add that task to your list of
3151 things to do. So what you end up with is a description of the task,
3152 and a link back to what made you create the task in the first place.
3154 The same happens with remembering notes, except that it ends up in the
3155 @samp{* Notes} section of your page instead.
3157 By default, @file{planner.el} can annotate tasks and notes based on
3158 the current filename.
3160 @subheading Options
3162 To change the behavior of annotations, customize the following options:
3164 @defopt planner-annotation-functions
3165 A list of functions tried in order by
3166 @command{planner-create-task-from-buffer} and other functions that
3167 pick up context.  The first non-nil value returned is used as the
3168 annotation.  To cause an item to @strong{not} be annotated, return the
3169 empty string @samp{""}.
3170 @end defopt
3172 @defopt planner-annotation-strip-directory
3173 File links are usually generated with the full path to the file so
3174 that you can easily tell apart files with the same base name.  If
3175 @code{planner-annotation-strip-directory} is non-nil, though, only the
3176 base name of the file will be displayed.  For example, a link to
3177 @samp{/foo/bar/baz} will be displayed as @samp{baz} and hyperlinked to
3178 the file.
3179 @end defopt
3181 @defopt planner-annotation-use-relative-file
3182 If t, always use relative filenames.
3183 @code{planner-annotation-use-relative-file} can also be a function that
3184 takes the filename and returns non-nil if the link should be relative.
3185 Filenames are resolved relative to the first directory of your Planner
3186 project in @code{muse-project-alist}.  That is, the created link will be
3187 of the form @samp{../../somefile} instead of
3188 @samp{/absolute/path/to/file}.  This can be helpful if you publish your
3189 planner files to the Net and your directory structure ensures that
3190 relative links resolve the same from your Plan pages and their
3191 respective publishing directory.
3192 @end defopt
3194 @node Interactive Lisp, Publishing, Annotations, More about Planner
3195 @comment  node-name,  next,  previous,  up
3196 @section Interactive Lisp with planner-lisp.el
3197 @cindex Lisp functions, using with Planner
3198 @cindex interactive Lisp fuctions, using with Planner
3199 @cindex @file{planner-lisp.el}, using
3201 You can include interactive Lisp functions in your planner pages.
3203 First, you need @file{planner-lisp.el}. Put this in your @file{.emacs}
3204 (or @file{_emacs}):
3206 @example
3207 (require 'planner-lisp)
3208 @end example
3210 Then, add a link to the Lisp function to your page, like:
3212 @example
3214 [[lisp:/plan][Plan]]
3216 @end example
3218 This will be rendered as @samp{Plan}. Selecting the link will run the
3219 @code{plan} function interactively.
3221 You can also execute other Lisp expressions. For example:
3223 @example
3224 [[lisp:/(planner-goto (planner-expand-name "+7"))][Next week]]
3225 @end example
3227 @file{planner-lisp.el} does not provide any interactive functions or
3228 keybindings.
3230 @node Publishing, Experimental Functions, Interactive Lisp, More about Planner
3231 @section Publishing
3233 You can publish your planner files to HTML and put them on a normal
3234 web server--no special server support required. This gives you an easy
3235 way to keep other people up to date on your tasks, keep a web log, or
3236 simply organize information.
3238 Publish your planner wiki with @kbd{C-c C-p}
3239 (@code{muse-project-publish}). You can publish individual files with
3240 @kbd{C-c C-t} (@code{muse-publish-this-file}). To automatically publish
3241 files when you save them, add the following code to your
3242 @file{~/.emacs}:
3244 @example
3245 (eval-after-load "muse-mode"
3246   (add-hook 'after-save-hook
3247             #'(lambda ()
3248                 (when (planner-derived-mode-p 'muse-mode)
3249                   (muse-project-publish nil)))
3250             nil t))
3251 @end example
3253 Published files are stored in the path specified by
3254 @code{muse-project-alist} for your Planner project.  Just copy the
3255 contents of this directory to your webserver, and you're all set! Of
3256 course, publishing is completely optional.
3258 Here are some more features related to publishing:
3260 @menu
3261 * Publishing Calendars::        planner-calendar.el
3262 * Authz Access Restriction::    planner-authz.el
3263 * RSS Publication::             Sharing notes with planner-rss.el
3264 * iCal Task Publication::       Sharing tasks with planner-ical.el
3265 * RDF Publication::             planner-rdf.el
3266 @end menu
3268 @node Publishing Calendars, Authz Access Restriction, Publishing, Publishing
3269 @comment  node-name,  next,  previous,  up
3270 @subsection Publishing Calendars
3271 @cindex calendar, publishing
3272 @cindex @file{planner-calendar.el}, using
3274 To publish calendars in your day pages, it is necessary to do two steps.
3276 @itemize
3277 @item Add @code{(require 'planner-calendar)} to your configuration.
3278 @item Add a @samp{<calendar>} tag to either your header, footer, or
3279 @var{planner-day-page-template}, depending on where you want it to
3280 appear.
3281 @end itemize
3283 To display a calendar based on a different day (given here as DAYPAGE),
3284 use @code{<calendar page="DAYPAGE">}.
3286 To get arrows to previous and next months to show up, use
3287 @code{<calendar arrows="t">}.  The text in
3288 @var{planner-calendar-prev-month-button} and
3289 @var{planner-calendar-next-month-button} will be used for the arrows to
3290 the previous and next months, respectively.
3292 By default, Muse will not display the arrows properly, due to
3293 limitations in the special-escaping algorithm.  To work around this,
3294 remove the @samp{&} rule from @var{muse-xml-markup-specials}, or from
3295 @var{muse-html-markup-specials} if you are using the 3.02.6 version of
3296 Muse.
3298 It is also possible to create a symlink from the current day page to the
3299 page name specified by @var{planner-calendar-today-page-name}.  To
3300 accomplish this, add the following to your configuration.
3302 @example
3303 (eval-after-load "muse-publish"
3304   '(add-hook 'muse-after-publish-hook
3305              'planner-calendar-create-today-link))
3306 @end example
3308 @subheading Options
3310 @defopt planner-calendar-prev-month-button
3311 HTML text used for previous month buttons.
3312 @end defopt
3314 @defopt planner-calendar-next-month-button
3315 HTML text used for next month buttons.
3316 @end defopt
3318 @defopt planner-calendar-day-header-chars
3319 Number of characters to use for day column header names.
3320 @end defopt
3322 @defopt planner-calendar-today-page-name
3323 Default name for published today page link.
3324 @end defopt
3326 @subheading Functions
3328 @defun planner-calendar-create-today-link
3329 Add this function to @code{muse-after-publish-hook} to
3330 create a ``today'' soft-link to the newest published planner day page,
3331 on operating systems that support POSIX @command{ln}.
3332 @end defun
3334 @node Authz Access Restriction, RSS Publication, Publishing Calendars, Publishing
3335 @comment  node-name,  next,  previous,  up
3336 @subsection Authz Access Restriction
3337 @cindex @file{planner-authz.el}, using
3338 @cindex Mason, restricting portions with
3339 @cindex access, restricting
3341 @file{planner-authz.el} was written by Andrew J. Korty in order to
3342 allow the easy restriction of portions of published pages.  It uses
3343 the HTML::Mason module available on CPAN
3344 (@url{http://www.cpan.org}).  Setting up HTML::Mason is
3345 outside the scope of this document.  Make sure that it works before
3346 trying out @file{planner-authz.el}.
3348 @file{planner-authz.el} modifies the behavior of
3349 @command{muse-project-publish} so that published pages follow access
3350 modifiers.
3352 This library lets you publish your planner pages while controlling
3353 access to certain portions of them to users you specify.  When you
3354 load this library, you gain access to two additional markup directives
3355 to use in your planner pages.  The @samp{<authz>} tag lets you
3356 restrict access to arbitrary content as follows:
3358 @example
3359 Here is a sentence everyone should see.  This sentence also
3360 contains no sensitive data whatsoever.  <authz users="ajk">This
3361 sentence, however, talks about my predilection for that French
3362 vanilla instant coffee that comes in the little tin, and I'm
3363 embarrassed for anyone else to know about that.</authz> And
3364 here's some more perfectly innocuous content.
3365 @end example
3367 You can use @samp{<authz>} tags to mark up entire paragraphs, tasks,
3368 notes, and anything else.  The tags are replaced with Mason code in
3369 the published pages.
3371 The @samp{#authz} directive restricts access to an entire page.  A Mason
3372 call is added to this page to generate a 403 error when someone not
3373 listed tries to access it.  Any notes or tasks on a
3374 @samp{#authz}-protected page are also wrapped in Mason code on linked
3375 pages. To add a @samp{#authz} directive to a Muse page, place
3376 @samp{#authz} followed by a space-delimited list of users on one
3377 line. For example:
3379 @example
3380 #authz ajk sacha
3381 @end example
3383 @subheading Options
3385 @defopt planner-authz-project-default
3386 Default access list for project pages (not day pages).  If a given
3387 project page doesn't contain a @samp{#authz} tag, it will receive the
3388 access list defined here.  If this variable is nil, all users will be
3389 allowed to view the page.  No corresponding variable is provided for
3390 day pages because it doesn't seem like you'd ever want to control
3391 access based on what day it was.  (But I will accept patches. :) Notes
3392 and tasks referencing pages without @samp{#authz} tags will also be
3393 restricted to the users listed here.
3394 @end defopt
3396 @defopt planner-authz-day-note-default
3397 Default access list for notes on day pages not associated with
3398 any project.  There is way to set a default for notes on project
3399 pages for the reason above; they would only be associated with
3400 date pages anyway.
3401 @end defopt
3403 @defopt planner-authz-day-task-default
3404 Same as @kbd{planner-authz-day-note-default}, but for tasks.
3405 @end defopt
3407 @subheading Functions
3409 @defun planner-authz-publish-index
3410 Publish an index for the planner marked up with Mason code.
3411 Only those links to pages which the remote user is authorized to
3412 access will be shown.
3413 @end defun
3415 @node RSS Publication, iCal Task Publication, Authz Access Restriction, Publishing
3416 @comment  node-name,  next,  previous,  up
3417 @subsection RSS Publication
3418 @cindex @file{planner-rss.el}, using
3419 @cindex notes, RSS
3420 @cindex RSS
3422 @file{planner-rss.el} allows you to publish your notes in the RSS 2.0
3423 XML format for blog syndication. You will also want to customize the
3424 following variables:
3426 To manually add the current note to all the matching RSS feeds, invoke
3427 @command{planner-rss-add-note}. You can specify a filename with the
3428 universal prefix, like this: @kbd{C-u M-x planner-rss-add-note}.
3430 If you use the @file{remember-planner.el} module to create notes, you
3431 can automatically publish new notes to RSS feeds by adding the
3432 following code to your @file{.emacs} (or @file{_emacs}).
3434 @example
3435 (add-to-list 'remember-planner-append-hook 'planner-rss-add-note t)
3436 @end example
3438 @subheading Options
3440 @defopt planner-rss-base-url
3441 Base absolute URL for published blog entries. Should include trailing
3442 @samp{/}.
3443 @end defopt
3445 @defopt planner-rss-category-feeds
3446 Rules for automatic categorization of posts and publishing to RSS
3447 files. A blog entry is matched against each condition. If it matches
3448 the regular expression or the function returns a non-nil value, the
3449 blog entry is copied into the specified file.
3450 @end defopt
3452 @defopt planner-rss-feed-limits
3453 A list of regular expressions that match feed filenames and the size
3454 and item limits for feeds that match. For example, you can use
3455 @samp{(("." nil 10))} to ensure that all feeds are limited to the 10
3456 most recent items.
3457 @end defopt
3459 @subheading Functions
3461 @file{planner-rss.el} defines the following interactive functions:
3463 @defun planner-rss-add-note @var{feed}
3464 Export the current note using @code{planner-add-item}. If @var{feed}
3465 is specified, add the entry to the specified file. Else, add the entry
3466 to all matching RSS feeds specified by
3467 @code{planner-rss-category-feeds}.
3468 @end defun
3470 @node iCal Task Publication, RDF Publication, RSS Publication, Publishing
3471 @comment  node-name,  next,  previous,  up
3472 @subsection iCal Publication
3474 iCal is an Internet Engineering Task Force (IETF) standard for
3475 calendaring and scheduling. @uref{http://www.ietf.org/rfc/rfc2445.txt}
3477 You can export your tasks to the iCal format using
3478 @file{planner-ical}. Add @code{(require 'planner-ical)} to your
3479 @file{~/.emacs}. Then you can use @kbd{M-x planner-ical-export-page}
3480 to display the iCal equivalent of tasks on a page, which you can then
3481 save to a file.
3483 To export today's tasks to a file in your publishing directory, add
3484 the following to your @file{~/.emacs}.
3486 @example
3487 (planner-ical-export-file
3488  (planner-today)
3489  (expand-file-name
3490    "tasks.ics"
3491    (muse-style-element :path (car (cddr (muse-project planner-project))))))
3492 @end example
3494 @subheading Functions
3496 @defun planner-ical-export-page page &optional file
3497 Export PAGE's tasks in the iCal format.
3498 If FILE is non-nil, results are saved to that file.
3499 If FILE is nil, results are displayed in a `planner-ical-export-buffer'.
3500 @end defun
3502 @defun planner-ical-export-this-page
3503 Display the tasks on the current page in iCal format.
3504 @end defun
3506 @node RDF Publication,  , iCal Task Publication, Publishing
3507 @comment  node-name,  next,  previous,  up
3508 @subsection RDF Publication
3509 @cindex @file{planner-rdf.el}, using
3510 @cindex RDF, publishing to
3512 Put planner-rdf.el in a directory that is in your Emacs load-path and
3513 the following into your ~/.emacs file:
3515 @example
3516 (require 'planner-rdf)
3517 (eval-after-load "muse-publish"
3518   '(progn
3519      (add-hook 'muse-after-publish-hook
3520                'planner-rdf-publish-file)
3521      (add-hook 'muse-after-publish-hook
3522                'planner-rdf-publish-index)))
3523 @end example
3525 @menu
3526 * Publishing with planner-rdf::  
3527 * planner-rdf Tags::            
3528 * planner-rdf Usage Examples::  
3529 @end menu
3531 @node Publishing with planner-rdf, planner-rdf Tags, RDF Publication, RDF Publication
3532 @subsubsection Publishing with planner-rdf
3534 Planner-rdf is now included in the normal Planner publishing process.
3535 Pressing @key{C-p} will create a .owl and a .rdf file for every planner
3536 file. Additionally it creates an index, @file{index.rdf}.
3538 By default all generated files will be stored in the normal Planner
3539 publishing directory, where the HTML files end up. If you would ike to
3540 change that, set the variable @code{planner-rdf-directory} to the desired
3541 location.
3543 The generated files:
3545 @itemize
3546 @item
3547 @file{index.rdf} - a collection with pointers to the
3548 @file{<plan-page>.rdf} files.
3549 @item
3550 @file{<plan-page>.rdf} - contains Dublin Core metadata about the files
3551 related to the current Planner page. Currently it contains metadata
3552 about the source file, the Emacs plan page, the generated HTML page, and
3553 the generated OWL file.
3554 @item
3555 @file{<plan-page>.owl} - contains task and note data from the Planner
3556 file. Task information is stored completely. For notes, the note
3557 headline is stored.
3558 @end itemize
3560 @node planner-rdf Tags, planner-rdf Usage Examples, Publishing with planner-rdf, RDF Publication
3561 @subsubsection planner-rdf Tags
3563 Besides the factual information, e.g. the task status or description,
3564 planner-rdf extracts links (in the format @samp{[[...][...]]} or
3565 @samp{[[...]]}) and tags (@samp{@{@{...:...}@}@}) from tasks and notes
3566 (including the notes text). Links and tags provide context for the plan
3567 elements and so are stored and linked with the containing elements.
3569 Links point to locations that can be used to enrich the information in
3570 the Planner pages (e.g, by retrieving data from them and adding it),
3571 tags -- like the one for the task ids @samp{@{@{Tasks:198@}@}} -- can be
3572 used to express abstract qualities. Some examples:
3574 @itemize
3575 @item
3576 an @samp{@{@{audience:myteam@}@}} tag, can be used to restrict
3577 publishing of items to a certain user group;
3578 @item a @samp{@{@{lang:de@}@}} tag, signifying the language of the text;
3579 @item
3580 a @samp{@{@{location:Hamburg@}@}} tag, can be used to make geographic
3581 reference to an entity that is not stored in your address book, bbdb.
3582 @end itemize
3584 What tags to use is up to the user. Planner-rdf makes no assumptions
3585 about them, it just extracts and stores them. Only the applications
3586 using the data know what to do with them.
3588 @node planner-rdf Usage Examples,  , planner-rdf Tags, RDF Publication
3589 @subsubsection Usage Examples
3591 Report generation with OpenOffice
3593 The Perl file @file{this-week.pl}
3594 (@url{http://www.rainervolz.de/planner-rdf/this-week.pl}) creates a
3595 simple report for the current week. The script extracts task and note
3596 information from the generated OWL files and inserts it into a simple
3597 OpenOffice Writer document. Nothing fancy, just a proof of concept, to
3598 show how planner-rdf can be used to integrate Planner Mode with other
3599 applications.
3601 Besides Perl and OpenOffice you'll need the Redland RDF Application
3602 Framework (@url{http://www.redland.opensource.ac.uk/}). It is used to
3603 process the RDF data. Redland is small, but powerful, and available
3604 for many platforms and languages.
3606 As an example the application loads the RDF data each time it is run.
3607 In the real world you probably would use Redland to store the Planner
3608 data in a database, to save the loading step each time you access the
3609 data.
3611 Importing Planner data into Protege
3613 Protege is a popular ontology editor and knowledge management
3614 application. A simple way to import data into it, is to provide a OWL
3615 file that contains the data as well as the schema. To do this:
3617 @itemize
3618 @item
3619 Use @file{planner2protege.pl}
3620 (@url{http://www.rainervolz.de/planner-rdf/planner2protege.pl}) to
3621 combine all OWL files into a single one.
3622 @item
3623 Use CWM (@url{http://www.w3.org/2000/10/swap/doc/cwm.html}) to combine
3624 schema and data, with @code{python cmw --rdf planner-rdf.owl
3625 planner-data.owl --think --rdf >planner2.owl}
3626 @end itemize
3628 Not the most straightforward process, but it works. The resulting file,
3629 here planner2.owl, can then be loaded into Protege.
3631 @node Experimental Functions,  , Publishing, More about Planner
3632 @comment  node-name,  next,  previous,  up
3633 @section Experimental Functions
3634 @cindex @file{planner-experimental.el}, using
3635 @cindex experimental functions, Planner
3637 These functions are experimental. This means that they may not do
3638 exactly what you expect them to do, so keep backups, be careful, and
3639 don't blame us.
3641 To use these functions, make sure that @file{planner-experimental.el} is
3642 in your load path, and add this to your @file{.emacs} (or
3643 @file{_emacs}):
3645 @example
3646 (require 'planner-experimental)
3647 @end example
3649 @subheading Functions
3651 @file{planner-experimental.el} defines the following interactive
3652 functions:
3654 @defun planner-search-notes-next-match
3655 Jump to the next matching entry.  Call after
3656 @code{planner-search-notes}.
3657 @end defun
3659 @defun planner-search-notes-previous-match
3660 Jump to the previous matching entry.  Call after
3661 @code{planner-search-notes}.
3662 @end defun
3664 @defun planner-remove-duplicates
3665 Remove duplicate tasks.
3666 @end defun
3668 @file{planner-experimental.el} does not define any keybindings.
3670 @node Managing Your Information, Advanced Configuration, More about Planner, Top
3671 @comment  node-name,  next,  previous,  up
3672 @chapter Managing Your Information
3674 Planner can be integrated with other Emacs and even some non-Emacs
3675 programs by loading additional modules. You can pick and choose from
3676 these modules, choosing those that work with programs you use and that
3677 produce information you want to have included in your Planner pages.
3679 @menu
3680 * E-mail::                      Linking notes and tasks to messages
3681 * Scheduling and Time::         Tracking appointments and where your time goes
3682 * Finances::                    Display your account balances and more
3683 * Contacts and Conversations::  BBDB and ERC
3684 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
3685 * Tracking Development::        
3686 @end menu
3688 @node E-mail, Scheduling and Time, Managing Your Information, Managing Your Information
3689 @comment  node-name,  next,  previous,  up
3690 @section E-mail
3692 Planner can work together with several different Emacs e-mail
3693 clients. If you load the appropriate module for the e-mail client you
3694 use, then your notes and tasks can be annotated with information
3695 pointing to the specific e-mail message you were reading when you
3696 created that note or task. When you are looking at the note or task, you
3697 will be able to jump straight to that message.
3699 @menu
3700 * Unix mail::                   Unix mailboxes: planner-unix-mail.el              
3701 * Gnus::                        Gnus mail and news reader: planner-gnus.el
3702 * VM::                          VM mail reader: planner-vm.el
3703 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
3704 * MH-E::                        MH-E mail reader: planner-mhe.el
3705 * Rmail::                       Rmail: planner-rmail.el
3706 @end menu
3709 @node Unix mail, Gnus, E-mail, E-mail
3710 @comment  node-name,  next,  previous,  up
3711 @subsection Unix mail
3712 @cindex mbox, using Planner with
3713 @cindex Unix mail, using Planner with
3714 @cindex mail client, using Planner with
3716 This module supports links from any kind of Unix mailbox (mbox). To
3717 use this module, make sure that @file{planner-unix-mail.el} is in your
3718 load path and add this to your @file{.emacs} (or @file{_emacs}):
3720 @example
3721 (require 'planner-unix-mail)
3722 @end example
3724 Unix mail URLs are of the form:
3726 @example
3727 ;; mail://PATH/TO/INBOX/message-id
3728 @end example
3730 Annotations will be of the form:
3732 @smallexample
3733 [[mail://PATH/TO/INBOX/E1AyTpt-0000JR-LU%40sacha.ateneo.edu][E-mail from Sacha Chua]]
3734 @end smallexample
3736 @file{planner-unix-mail.el} does not define any interactive functions or
3737 create any new keybindings.
3739 @node Gnus, VM, Unix mail, E-mail
3740 @comment  node-name,  next,  previous,  up
3741 @subsection Gnus
3742 @cindex Gnus, using Planner with
3743 @cindex mail client, using Planner with, Gnus
3745 To use this module, make sure that it is in your load path and put
3746 this in your @file{.emacs} (or @file{_emacs}):
3748 @example
3749 (require 'planner-gnus)
3750 (planner-gnus-insinuate)
3751 @end example
3753 With this module loaded, when you create tasks from Gnus summary or
3754 message buffers, the tasks will be annotated with information from the
3755 message you were looking at when you created each task. A link will also
3756 be created on your planner page that you can select in order to return
3757 to the message.
3759 So, the created task will look something like this:
3761 @smallexample
3762 #A34 _ Send writing to publishme.com from
3763 [[gnus://alt.books.beatgeneration/<Ifo5c.24632$F9.9567@@nwrddc01.gnilink.net>][E-Mail
3764 from editor@@verizon.net]] @{@{Tasks:71@}@} ([[Writing]])
3765 @end smallexample
3767 This module also binds @kbd{C-c C-t} in the Gnus summary and article
3768 views to the command to create a new task.
3770 @file{planner-gnus.el} does not define any interactive functions.
3772 For more information about Gnus, see @inforef{Top, The Gnus Newsreader,
3773 gnus}.
3775 @node VM, Wanderlust, Gnus, E-mail
3776 @comment  node-name,  next,  previous,  up
3777 @subsection VM
3778 @cindex VM, using Planner with
3779 @cindex mail client, using Planner with, VM
3781 To use this module, make sure that @file{planner-vm.el} is in your load
3782 path and add this to your @file{.emacs} (or @file{_emacs}):
3784 @example
3785 (require 'planner-vm)
3786 @end example
3788 VM URLs are of the form:
3790 @example
3791 vm://path/to/inbox/message-id
3792 @end example
3794 Annotations will be of the form:
3796 @smallexample
3797 [[vm://home/test/INBOX/<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
3798 @end smallexample
3800 @file{planner-vm.el} does not define any interactive functions or
3801 keybindings.
3804 @node Wanderlust, MH-E, VM, E-mail
3805 @comment  node-name,  next,  previous,  up
3806 @subsection Wanderlust
3807 @cindex Wanderlust, using Planner with
3808 @cindex mail client, using Planner with, Wanderlust
3810 To use this module, make sure that @file{planner-wl.el} is in your
3811 load path and add this to your @file{.emacs} (or @file{_emacs}):
3813 @example
3814 (require 'planner-wl)
3815 @end example
3817 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
3818 Wanderlust summary or message buffers, the task will be created with
3819 the correct annotation.
3821 @file{planner-wl} does not define any interactive functions.
3823 @subheading Keys
3825 To add keybindings to Wanderlust, call:
3827 @example
3828 (planner-wl-insinuate)
3829 @end example
3831 This binds @kbd{F} to @command{planner-create-task-from-buffer}.
3833 @node MH-E, Rmail, Wanderlust, E-mail
3834 @comment  node-name,  next,  previous,  up
3835 @subsection MH-E
3836 @cindex MH-E, using Planner with
3837 @cindex mail client, using Planner with, MH-E
3839 To use this module, make sure that @file{planner-mhe.el} is in your
3840 load path and add this to your @file{.emacs} (or @file{_emacs}):
3842 @example
3843 (require 'planner-mhe)
3844 @end example
3846 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
3847 MH-E summary or message buffers, the task will be created with
3848 the correct annotation.
3850 @file{planner-mhe} does not define any interactive functions.
3852 @node Rmail,  , MH-E, E-mail
3853 @comment  node-name,  next,  previous,  up
3854 @subsection Rmail
3855 @cindex Rmail, using Planner with
3856 @cindex mail client, using Planner with, Rmail
3858 To use this module, make sure that @file{planner-rmail.el} is in your
3859 load path and add this to your @file{.emacs} (or @file{_emacs}):
3861 @example
3862 (require 'planner-rmail)
3863 @end example
3865 Rmail URLs are of the form:
3867 @example
3868 rmail://message-id
3869 @end example
3871 Annotations will be of the form:
3873 @smallexample
3874 [[rmail://<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
3875 @end smallexample
3877 @file{planner-rmail.el} does not define any interactive functions or
3878 create any new keybindings.
3880 For more information about Rmail, see @inforef{Rmail, Reading Mail With
3881 Rmail, Emacs}.
3883 @node Scheduling and Time, Finances, E-mail, Managing Your Information
3884 @comment  node-name,  next,  previous,  up
3885 @section Scheduling and Time
3887 @menu
3888 * Diary::                       Using the Emacs diary
3889 * Appointments::                Appointments in plan pages: planner-appt.el
3890 * Timeclock::                   Time tracking: planner-timeclock.el
3891 * schedule.el::                 Project completion: planner-schedule.el
3892 @end menu
3895 @node Diary, Appointments, Scheduling and Time, Scheduling and Time
3896 @comment  node-name,  next,  previous,  up
3897 @subsection Diary
3898 @cindex diary, using Planner with
3899 @cindex @file{planner-diary.el}, using
3901 If you use Emacs's diary feature, Planner-Diary could be helpful for
3902 you. It puts all diary entries for the current day in the @samp{*
3903 Diary} section of your day plan page. This section is updated every
3904 time you display the file in Emacs. By default the diary section of
3905 past pages is not updated; it's pretty unlikely that you want to add
3906 new diary entries for the past. (@pxref{Diary, , , Emacs, GNU Emacs
3907 Manual})
3909 If you want to use @file{planner-diary.el}, make sure the file is in
3910 your load path and add this to your @file{.emacs} (or @file{_emacs}):
3912 @example
3913 (require 'planner-diary)
3914 @end example
3916 @file{planner-diary.el} needs @command{fancy-diary-display}.  To use
3917 @command{fancy-diary-display}, add this to your @file{.emacs} (or
3918 @file{_emacs}):
3920 @example
3921 (add-hook 'diary-display-hook 'fancy-diary-display)
3922 @end example
3924 You can use Planner-Diary in two different ways:
3926 @enumerate
3928 @item
3929 If you want the saved files to contain your entries and not just a line
3930 of Lisp, add the following lines to your @file{.emacs} (or @file{_emacs}):
3932 @example
3933 (setq planner-diary-use-diary t)
3934 (planner-diary-insinuate)
3935 @end example
3937 You should also customize or set @code{planner-day-page-template} to
3938 include a @samp{* Diary}:
3940 @example
3941 (setq planner-day-page-template
3942  "* Tasks\n\n\n* Schedule\n\n\n* Diary\n\n\n* Notes")
3943 @end example
3945 @item
3946 (GNU EMACS ONLY) You can put the following line of Lisp code in your
3947 day plan pages to display your diary entries:
3949 @example
3950 <lisp>(planner-diary-entries-here)</lisp>
3951 @end example
3953 You can do this automatically for all day plan pages:
3955 @smallexample
3956 (setq planner-day-page-template
3957   "* Tasks\n\n\n* Diary\n\n<lisp>(planner-diary-entries-here)</lisp>
3958 \n* Notes")
3959 @end smallexample
3961 When you open a day plan page outside Emacs, you will see the line of
3962 Lisp code and not your diary entries.
3964 @end enumerate
3966 If you want to see your diary entries for more than just one day, set
3967 @code{planner-diary-number-of-days} accordingly.  This works for either
3968 of the two approaches.
3970 @kbd{C-c C-e} updates the diary sections.  @kbd{C-u C-c C-e} forces an
3971 update---it inserts the diary section for the day, even if the day is in
3972 the past or if there is no @samp{Diary} section in the buffer.
3974 If you want to use the Cal-Desk package, simply follow the instructions
3975 in @file{cal-desk.el}.  If you get the Cal-Desk layout from the Calendar
3976 buffer, you get it in the day plan buffer, too.
3978 If you use Planner-Diary, you might consider using the Calendar support
3979 of Planner. (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) To get
3980 Calendar integration, add this to your @file{.emacs} (or @file{_emacs}):
3982 @example
3983 (planner-insinuate-calendar)
3984 @end example
3986 If @code{planner-diary-create-section-flag} is non-nil, sections are
3987 always inserted if necessary.
3989 @subheading Options
3991 @defopt planner-diary-create-section-flag
3992 Non-nil means create the requested diary sections if they do not
3993 exist. By default, planner-diary tries to create the section. If you
3994 want more control over your pages, you can set this to nil. Trying to
3995 write a diary section to a page that does not have it yet will then
3996 result in an error.
3997 @end defopt
3999 By default, planner-diary lists only the appointments you have on that
4000 day. If you want the date headers included even when showing the diary
4001 entries for a single day, set planner-diary-include-all-output to
4002 non-nil.
4004 @defopt planner-diary-include-all-output-flag
4005 Non-nil means don't omit any data when copying diary entries into day
4006 pages.
4007 @end defopt
4009 @subheading Functions
4011 @file{planner-diary.el} defines the following interactive functions:
4013 @defun planner-diary-add-entry date time text
4014 Prompt for a diary entry to add to @code{diary-file} on @var{date}.
4015 Uses @code{planner-annotation-functions} to make hyperlinks.
4016 @var{time} and @var{text} are used in the description."
4017 @end defun
4019 @defun planner-diary-insert-diary force
4020 Insert the fancy diary for the day into the day plan file. If
4021 @var{force} is non-nil, insert a diary section even if there is no
4022 @var{planner-diary-string} in the buffer.
4023 @end defun
4025 @defun planner-diary-insert-diary-maybe force
4026 Maybe insert the fancy diary for the day into the day plan file. If the
4027 current day is in the past and @var{force} is nil, don't do anything. If
4028 @var{force} is non-nil, insert a diary section even if there is no
4029 @code{planner-diary-string} in the buffer.
4030 @end defun
4032 @defun planner-diary-insert-appts force
4033 Insert the diary appointments for the day into the day plan file.  If
4034 @var{force} is non-nil, insert a diary appointments section even if
4035 there is no @code{planner-diary-appts-string} in the buffer.
4036 @end defun
4038 @defun planner-diary-insert-appts-maybe force
4039 Maybe insert the diary appointments for the day into the day plan file.
4040 If the current day is in the past and @var{force} is nil, don't do
4041 anything.  If @var{force} is non-nil, insert a diary appointments
4042 section even if there is no @code{planner-diary-appts-string} in the
4043 buffer.
4044 @end defun
4046 @defun planner-diary-insert-cal-desk force
4047 Insert the cal-desk diary for the day into the day plan file.  If
4048 @var{force} is non-nil, insert a cal-desk diary section even if there is
4049 no @code{planner-diary-cal-desk-string} in the buffer.
4050 @end defun
4052 @defun planner-diary-insert-cal-desk-maybe force
4053 Maybe insert the cal-desk diary for the day into the day plan file.  If
4054 the current day is in the past and @var{force} is nil, don't do
4055 anything.  If @var{force} is non-nil, insert a cal-desk appointments
4056 section even if there is no @code{planner-diary-cal-desk-string} in the
4057 buffer.
4058 @end defun
4060 @defun planner-diary-insert-public force
4061 Insert the public diary for the day into the day plan file.  If
4062 @var{force} is non-nil, insert a public diary section even if there is
4063 no @code{planner-diary-public-string} in the buffer.
4064 @end defun
4066 @defun planner-diary-insert-public-maybe force
4067 Maybe insert the public diary for the day into the day plan file.  If
4068 the current day is in the past and @var{force} is nil, don't do
4069 anything.  If @var{force} is non-nil, insert a public appointments
4070 section even if there is no @code{planner-diary-public-string} in the
4071 buffer.
4072 @end defun
4074 @defun planner-diary-insert-private force
4075 Insert the private diary for the day into the day plan file.  If
4076 @var{force} is non-nil, insert a private diary section even if there is
4077 no @code{planner-diary-private-string} in the buffer.
4078 @end defun
4080 @defun planner-diary-insert-private-maybe force
4081 Maybe insert the private diary for the day into the day plan file.  If
4082 the current day is in the past and @var{force} is nil, don't do
4083 anything.  If @var{force} is non-nil, insert a private appointments
4084 section even if there is no @code{planner-diary-private-string} in the
4085 buffer.
4086 @end defun
4088 @defun planner-diary-insert-all-diaries force
4089 Update all diary sections in a day plan file.  If @var{force} is
4090 non-nil, insert a diary section even if there is no section header.  It
4091 only inserts diaries if the corresponding @code{planner-diary-use-}*
4092 variable is @samp{t}.
4093 @end defun
4095 @defun planner-diary-insert-all-diaries-maybe force
4096 Update all diary sections in a day plan file.  If the current day is in
4097 the past and @var{force} is nil, don't do anything.  If @var{force} is
4098 non-nil, insert a diary section even if there is no section header.  It
4099 only inserts diaries if the corresponding @code{planner-diary-use-}*
4100 variable is @samp{t}.
4101 @end defun
4103 @defun planner-diary-show-day-plan-or-diary
4104 Show the day plan or diary entries for the date under point in calendar.
4105 Add this to @code{calendar-move-hook} if you want to use it.  In that
4106 case, you should also @command{remove-hook} @samp{planner-calendar-show}
4107 from @code{calendar-move-hook}.
4108 @end defun
4110 @subheading Keys
4112 @file{planner-diary.el} adds the following keybinding to Planner, if
4113 @command{planner-diary-insinuate} is in your @file{.emacs} (or
4114 @file{_emacs}):
4116 @itemize
4118 @item
4119 @kbd{C-c C-e} updates the diary sections.
4121 @end itemize
4123 @menu
4124 * Planner-Diary Advanced Features::  
4125 @end menu
4127 @node Planner-Diary Advanced Features,  , Diary, Diary
4128 @comment  node-name,  next,  previous,  up
4129 @subsubsection Planner-Diary Advanced Features
4130 @cindex diary, using Planner with
4131 @cindex @file{planner-diary.el}, advanced features
4133 The features described here are part of the development version.  They
4134 are subject to change without notice.  They may be buggy.  The
4135 documentation may be inaccurate.  Use at your own risk.
4137 There is a lot of code redundancy in the development version.  This is
4138 intentional and makes it easier to change the code for one type of diary
4139 section without breaking others.
4141 Currently Planner-Diary supports six different views of your diary
4142 entries:
4144 @enumerate
4145 @item
4146 Ordinary fancy diary display (what you get by pressing @kbd{d} in the
4147 calendar buffer with @code{fancy-diary-display} switched on)
4149 @item
4150 Schedule/Appointments (all entries from 1 that have a time assigned to
4151 them
4153 @item
4154 Diary without appts (1 without 2)
4156 @item
4157 cal-desk display (appts on top, non appts entries at bottom)
4159 @item
4160 A private diary (same as 1, but uses a different diary-file)
4162 @item
4163 A public diary (same as 1, but uses a different diary-file)
4164 @end enumerate
4166 Put the following line of Lisp code in your day plan pages to display
4167 your diary entries:
4169 @example
4170 <lisp>(planner-diary-entries-here)</lisp>
4171 @end example
4173 The function @code{planner-diary-entries-here} takes two optional
4174 arguments---the diary file you want to use and the number of days you
4175 want to display.
4177 @node Appointments, Timeclock, Diary, Scheduling and Time
4178 @comment  node-name,  next,  previous,  up
4179 @subsection Appointments
4180 @cindex appointments
4181 @cindex @file{planner-appt.el}, using
4183 If you would like to use planner for your appointment alerts
4184 instead of using the diary system, you might like to try
4185 @file{planner-appt}.
4187 According to your preferences, you may choose from two different
4188 approaches. Appointments in task descriptions on today's plan
4189 page are like this:
4191 @example
4192 #A   _ @@12:45 Do something (TaskPool)
4193 @end example
4195 @noindent
4196 and appointments in today's schedule section are like this:
4198 @example
4199 * Schedule
4201   9:00 | 12:00 | Read Simmel's Philosophy of Money
4202 @@12:45 |       | Do Something Else
4203 @@13:00 | 14:00 | lunch
4204 @end example
4206 @noindent
4207 You can even use both at the same time if you like.
4209 @c Jim Ottaway <j.ottaway@lse.ac.uk>: Changed these kinds of heading
4210 @c back to @unnumberedsec, but left the originals commented out in
4211 @c case there was a good reason for the @strong formatting.
4213 @c @noindent
4214 @c @strong{Usage}
4215 @unnumberedsubsubsec Usage
4217 In the file where you configure Planner, add one of the following.
4219 @itemize
4220 @item
4221 For task-based appointments: @code{(planner-appt-use-tasks)}
4222 @item
4223 For schedule-based appointments: @code{(planner-appt-use-schedule)}
4224 @item
4225 For both task- and schedule-based appointments:
4226 @code{(planner-appt-use-tasks-and-schedule)}
4227 @end itemize
4229 @noindent
4230 And finally if you want everything to be updated automatically add:
4232 @example
4233 (planner-appt-insinuate)
4234 @end example
4236 If you don't want to do the insinuation then you can call:
4238 @example
4239 M-x planner-appt-update
4240 @end example
4242 @noindent
4243 after editing appointments on the page (note that this is not
4244 necessary if you use tasks for the appointments and you don't edit
4245 the task descriptions outside of @code{planner-edit-task-description}).
4247 Try both methods; if you find that you prefer one over the
4248 other, use one of the specific @code{planner-appt-use-} functions, as
4249 there are some performance gains when using one method exclusively.
4251 @menu
4252 * Task-based Appointments::     
4253 * Schedule-based Appointments::  
4254 * Viewing Appointments::        
4255 * Appointment Updating on Save::  
4256 * Appointment and Calendar Integration::  
4257 * Appointment Hooks::           
4258 @end menu
4261 @node Task-based Appointments, Schedule-based Appointments, Appointments, Appointments
4262 @comment  node-name,  next,  previous,  up
4263 @subsubsection Task-based Appointments
4264 @cindex appointments, task-based
4265 @cindex task-based appointments
4267 A task has an appointment if it looks like this:
4269 @example
4270 #A   _ @@12:45 Do something (TaskPool)
4271 @end example
4273 @noindent
4274 i.e., if it has @@ followed by a time at the beginning.  This means
4275 the task is a regular appointment, and will not be carried forward
4276 at the start of a new day.
4278 Alternatively, it may have a !, like this:
4280 @example
4281 #A   _ !12:45 Do something else (TaskPool)
4282 @end example
4284 @noindent
4285 This makes it a "nagging" appointment, which @emph{will} be carried
4286 forward.  It will, however, lose the appointment time in the
4287 process.
4289 This may seem like a strange feature, but here is Henrik's
4290 reasoning:
4292 @quotation
4293 Sometimes I have a task that I want to do at a certain time, so I
4294 make it an appointment.  If I don't get around to doing it anyway,
4295 I want it to be carried forward.  Basically, I sometimes use
4296 appointments on tasks to annoy me until I get them done. :)
4297 @end quotation
4299 You can edit, move and delete tasks with the usual functions, and
4300 appointments will be updated automatically.
4302 You can update all task appointments on your page with
4304 @example
4305 M-x planner-appt-update
4306 @end example
4308 @c @noindent
4309 @c @strong{Cyclic Entries}
4311 @unnumberedsubsubsec Cyclic Entries
4312 @cindex appointments, cyclic task entries
4314 If you have @file{planner-cyclic} (@pxref{Cyclic Tasks}) loaded, entries
4315 in your cyclical tasks file such as
4317 @example
4318 Friday #A _ @@12:45 staff meeting
4319 @end example
4321 @noindent
4322 will appear every Friday and there will be an appointment alert set
4325 @c @noindent
4326 @c @strong{Appointments Section}
4327 @unnumberedsubsubsec Appointments Section
4328 @cindex appointments, appointments section
4330 You can have all task-based appointments copied to a separate section,
4331 providing an overview of your appointments.
4333 To do this, add
4335 @example
4336 (setq planner-appt-task-use-appointments-section-flag t)
4337 @end example
4339 @noindent to your configuration, or use @kbd{M-x customize-variable}.
4341 The variable @code{planner-appt-task-appointments-section} is the name
4342 of the section where the appointments will be copied.  By default, it is
4343 set to @code{"Schedule"}, which means that task appointments will be
4344 intermingled with schedule entries.
4346 It is also a good idea to add the section you wish to use to
4347 @code{planner-day-page-template} in order to control where that section
4348 will appear on the page (otherwise it will appear at the top).
4350 The format of the appointments follows that of a schedule; if you
4351 don't like the way it looks, you can write something different and set
4352 @code{planner-appt-format-appt-section-line-function} appropriately.
4353 See the documentation for
4354 @code{planner-appt-format-appt-section-line-function} for details.  It
4355 should be fairly easy to see what needs to be done if you look at the
4356 source for the default function (which is
4357 @code{planner-appt-format-appt-section-line}).
4359 If the section specified in
4360 @code{planner-appt-task-appointments-section} is the same as the
4361 schedule section specified in @code{planner-appt-schedule-section} (by
4362 default @code{"Schedule"}), the default formatting function adds a
4363 @samp{#} to the description so that one can visually distinguish
4364 appointments from the task list from those that have been added to the
4365 schedule.
4367 @node Schedule-based Appointments, Viewing Appointments, Task-based Appointments, Appointments
4368 @comment node-name,  next,  previous,  up
4369 @subsubsection Schedule-Based Appointments
4370 @cindex appointments, schedule-based
4371 @cindex schedule-based appointments
4373 Some scheduled tasks require reminders, others don't.  In this
4374 schedule:
4376 @example
4377 * Schedule
4379 9:00   | 12:00 | Read Simmel's Philosophy of Money
4380 @@12:45          Do Something Else
4381 @@13:00 | 14:00 | lunch
4382 @@14:30 |       | Meet jrs to discuss his dissertation
4383 @@16:00           Test Society seminar
4384 18:00            go home
4385 @end example
4387 @noindent
4388 those that have an @@ prefix will be added to the appointment
4389 reminder list; the others will not.  The formats that are
4390 recognized are fairly flexible, as you can see from the example.
4392 If you change your schedule, you can update the appointment list
4393 with
4395 @example
4396 M-x planner-appt-update
4397 @end example
4399 @noindent You can also have the schedule sorted as part of the update,
4400 if you have this in your configuration:
4402 @example
4403 (setq planner-appt-sort-schedule-on-update-flag t)
4404 @end example
4406 @c @noindent 
4407 @c @strong{Cyclical Entries}
4408 @unnumberedsubsubsec Cyclical Entries
4409 @cindex appointments, cyclic schedule entries
4411 You can also have cyclical schedule entries(@pxref{Cyclic Tasks}) if you
4414 @example
4415 (planner-appt-schedule-cyclic-insinuate)
4416 @end example
4418 @noindent to your configuration.
4420 If you put an entry in your cyclical task file like this
4422 @example
4423 Friday @@12:45 | 13:45 | Staff Meeting
4424 @end example
4426 @noindent
4427 then it will appear in your schedule every Friday, and an
4428 appointment alert will be set up.
4430 @node Viewing Appointments, Appointment Updating on Save, Schedule-based Appointments, Appointments
4431 @comment  node-name,  next,  previous,  up
4432 @subsubsection Viewing Appointments
4433 @cindex appointments, viewing
4435 The command @command{planner-appt-show-alerts} will show all appointment
4436 alerts currently scheduled.
4438 @subheading Functions
4440 There are two commands that show appointments in the future; the one
4441 displays them in a pop-up buffer, the other puts the information into
4442 the current day page.
4444 @deffn {Command} planner-appt-forthcoming-display &optional days
4445 Display a buffer of appointments for today and the next
4446 @var{days}. Optional prefix argument @var{days} is the number of days
4447 ahead to look. Its default value is defined by
4448 @code{planner-appt-forthcoming-days}.
4449 @end deffn
4451 @deffn {Command} planner-appt-forthcoming-update-section &optional days
4452 In today's plan page, add or update a list of forthcoming
4453 appointments. Optional prefix argument @var{days} is the number of
4454 days ahead to look. Its default value is defined by
4455 @code{planner-appt-forthcoming-days}.  The section heading to use is
4456 defined by @code{planner-appt-forthcoming-appt-section}.
4457 @end deffn
4459 @subheading Options
4461 @defopt planner-appt-forthcoming-days
4462 The number of days to look ahead for forthcoming appointments.  The
4463 default value is seven days.
4464 @end defopt
4466 @defopt planner-appt-forthcoming-appt-section
4467 The name of the section to use for inserting a list of forthcoming
4468 appts.  The default value is @code{"Forthcoming Appointments"}.
4469 @end defopt
4471 @defopt planner-appt-forthcoming-show-day-names-flag
4472 When non-nil (the default), day names will be shown in forthcoming
4473 appointments.
4474 @end defopt
4476 @defopt planner-appt-forthcoming-repeat-date-string
4477 String to insert for repeated dates.
4479 When there are multiple appointments for a date, the date is inserted
4480 in the first appointment and the others have this string in their date
4481 cell.
4483 If the string consists of anything other than whitespace, then a link
4484 to the day page for the appoinment is created.
4485 @end defopt
4487 @defopt planner-appt-forthcoming-look-at-cyclic-flag
4488 When non-nil, find forthcoming appointments in the cyclic diary file
4489 (@pxref{Cyclic Tasks}) as well as in plan pages. Default is @samp{t}.
4490 @end defopt
4492 @node Appointment Updating on Save, Appointment and Calendar Integration, Viewing Appointments, Appointments
4493 @comment  node-name,  next,  previous,  up
4494 @subsubsection Appointment Updating on Save
4495 @cindex appointments, updating on save
4497 @subheading Options
4499 @defopt planner-appt-update-appts-on-save-flag
4500 When non-nil, update appointment reminders whenever today's plan page is
4501 saved. Default value is @samp{nil}.
4502 @end defopt
4504 @node Appointment and Calendar Integration, Appointment Hooks, Appointment Updating on Save, Appointments
4505 @comment  node-name,  next,  previous,  up
4506 @subsubsection Appointment and Calendar Integration
4508 Not strictly part of appointment handling, but if one isn't using
4509 the diary, marking dates with plan pages seems to make sense.
4511 @subheading Functions
4513 @defun planner-appt-calendar-insinuate
4514 Add a hook to diary display so that dates in the calendar that have day
4515 pages are highlighted
4516 @end defun
4518 @node Appointment Hooks,  , Appointment and Calendar Integration, Appointments
4519 @comment  node-name,  next,  previous,  up
4520 @subsubsection Appointment Hooks
4522 @subheading Options
4524 @defvr {Hook} planner-appt-update-hook
4525 Hook run after @code{planner-appt-update} has updated the appointment
4526 list.
4527 @end defvr
4529 @node Timeclock, schedule.el, Appointments, Scheduling and Time
4530 @comment  node-name,  next,  previous,  up
4531 @subsection Timeclock
4532 @cindex @file{planner-timeclock.el}, using
4533 @cindex @file{planner-timeclock-summary.el}, using
4534 @cindex @file{planner-timeclock-summary-proj.el}, using
4535 @cindex timeclock, using Planner with
4537 This module allows you to clock in and clock out of your projects
4538 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual}). You can also
4539 generate reports with the @code{<timeclock-report>} tag. You may want
4540 to read the @ref{Keeping Track of Time} page to see how you can use
4541 planner-timeclock to produce detailed reports.
4543 @file{timeclock.el} is part of GNU Emacs.  If you are using XEmacs,
4544 please use the version of @file{timeclock.el} the comes with Planner in
4545 the @file{contrib} directory.
4547 With @file{planner-timeclock.el} loaded,
4548 @command{planner-task-in-progress} clocks in a task.  To clock out,
4549 use @command{planner-task-done} or @command{timeclock-out}.
4551 @file{planner-timeclock.el} defines the following keybindings:
4553 @itemize
4554 @item @kbd{C-c C-i}: @code{planner-task-in-progress}.
4555 @item @kbd{C-c C-o}: @code{timeclock-out}.
4556 @item @kbd{C-c C-T C-i}: @code{planner-timeclock-in}. (XEmacs)
4557 @item @kbd{C-c C-T C-o}: @code{timeclock-out}. (XEmacs)
4558 @item @kbd{C-c C-S-t C-i}: @code{planner-timeclock-in}. (GNU Emacs)
4559 @item @kbd{C-c C-S-t C-o}: @code{timeclock-out}. (GNU Emacs)
4560 @end itemize
4562 If you use @code{timeclock} a lot, you may also be interested in
4563 Dryice Liu's @file{planner-timeclock-summary.el}, which produces
4564 timeclock reports for planner files.
4566 Here is a sample report:
4568 @example
4569 Project               |     Time| Ratio| Task
4570 PlannerMaintenance    |  0:03:58|  1.1%| Merge doc patch
4571                       |  0:17:09|  5.0%| Track down subdirectories
4572                       |  0:18:11|  5.3%| Merge planner-timeclock-summary-proj.el
4573                Total: |  0:39:18| 11.4%|
4574 JapanCaseStudy        |  2:37:56| 45.6%| Prototype search result page
4575                       |  0:31:50|  9.2%| Update design documents
4576                Total: |  3:09:46| 54.8%|
4577 ChristmasLetter       |  1:46:37| 30.8%| Write and send my Christmas letters
4578                Total: |  1:46:37| 30.8%|
4579 LinuxPeople           |  0:10:29|  3.0%| Send questions for Linux in Education
4580                Total: |  0:10:29|  3.0%|
4581 @end example
4583 If you add @code{(require 'planner-timeclock-summary)} to your
4584 @file{~/.emacs}, you can then use it in two ways.
4586 @itemize
4588 @item Display a temporary buffer
4590 Call @code{planner-timeclock-summary-show} and Emacs will ask you which
4591 day's summary do you want. Choose the date as anywhere else of
4592 Emacs planner, and a tempory buffer will be displayed with the
4593 timeclock summary of that day.
4595 To review tasks over a date range, use
4596 @code{planner-timeclock-summary-show-range}. You can use a regexp or a
4597 function to filter tasks by calling
4598 @code{planner-timeclock-summary-show-range-filter}.
4600 @item Rewrite sections of your planner
4602 Choose this approach if you want timeclock summary to be in their
4603 own section and you would like them to be readable in your plain
4604 text files even outside Emacs. Caveat: The timeclock summary
4605 section should already exist in your template and will be rewritten
4606 when updated. Tip: Add @code{planner-timeclock-summary-section}
4607 (default: @samp{"Timeclock"}) to your @code{planner-day-page-template}.
4609 To use, call @code{planner-timeclock-summary-update} in the planner
4610 day page to update the section. If you want rewriting to be
4611 automatically performed, call
4612 @code{planner-timeclock-summary-insinuate} in your @file{.emacs} file.
4613 @end itemize
4615 @file{planner-timeclock-summary-proj.el} produces task / time
4616 breakdowns on plan pages. Reports are of the form:
4618 @example
4619 TASK 0 | duration
4620 TASK 1 | duration
4621  TOTAL | duration.
4622 @end example
4624 To use, add @code{(require 'planner-timeclock-summary)} to your
4625 @file{~/.emacs}. Call @code{planner-timeclock-summary-proj-current}
4626 from a project page. The report is inserted at the current position in
4627 the buffer. The function @code{planner-timeclock-summary-proj-section}
4628 does the same but the report is inserted inside a section called
4629 @samp{* Report}.
4631 @node schedule.el,  , Timeclock, Scheduling and Time
4632 @comment  node-name,  next,  previous,  up
4633 @subsection @file{schedule.el}
4634 @cindex @file{planner-schedule.el}, using
4635 @cindex @file{schedule.el}, using Planner with
4637 @file{planner-schedule.el} allows you to project task completion time.
4638 Tasks should be of the form:
4640 @example
4641 #A0 _ 2h Do something
4642 #B0 _ 1h30m Do something
4643 #B0 _ 2d Do something
4644 #B0 _ 2w Do something
4645 #B0 _ 10s Do something
4647 s: seconds, m: minutes, h: hours, d: days, w: weeks
4648 @end example
4650 @file{schedule.el} is included with Planner in the @file{contrib}
4651 directory, but you can alternatively get it from
4652 @url{http://www.newartisans.com/johnw/Emacs/schedule.el} if desired.
4654 @file{schedule.el} provides a single Lisp function,
4655 @code{schedule-completion-time}. It takes an Emacs time object and a
4656 quantity of seconds. It returns an Emacs time object that represents
4657 when the given number of seconds will be completed, assuming that work
4658 can only be done during work hours.
4660 The available work hours are affected by several factors:
4662 @enumerate
4664 @item
4665 If @file{timeclock.el} is being used, the amount of time left in the
4666 current work day (@code{timeclock-workday-remaining})
4667 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual})
4669 @item
4670 The amount of time in each work day (@code{schedule-workday})
4672 @item
4673 The definition of a work week (@code{schedule-week})
4675 @item
4676 Any holidays defined in the Emacs calendar
4677 (@pxref{Holidays, , , Emacs, GNU Emacs Manual})
4679 @item
4680 Any appointments in the Emacs diary
4681 (@pxref{Appointments, , , Emacs, GNU Emacs Manual})
4683 @end enumerate
4685 Taking all of the ``block out'' periods into account,
4686 @code{schedule-completion-time} will compute when the given number of
4687 seconds will be done, based on your current definitions of time
4688 available.
4690 As an example, here's a function which, given a list of durations
4691 in seconds, will return a list of completion times starting from
4692 the current moment:
4694 @example
4696   (defun compute-completion-times (&rest durations)
4697     ``Compute completion times for a list of DURATIONS (in seconds).''
4698     (let ((now (current-time)))
4699       (mapcar
4700        (function
4701         (lambda (dura)
4702           (setq now (schedule-completion-time now dura))))
4703        durations)))
4705 @end example
4707 To call this function, do:
4709 @example
4711 (compute-completion-times 3600 7200 3600)
4713 @end example
4715 @subheading Keys
4717 @file{planner-schedule.el} defines the following keybindings:
4719 @kbd{C-c RET} is bound to @command{planner-schedule-show-end-project}.
4720 @kbd{C-c C-m} is also bound to
4721 @command{planner-schedule-show-end-project}.
4723 In XEmacs, @command{planner-schedule-show-end-project} is bound to
4724 @kbd{C-c C-T c-e} and @kbd{C-c C-S-t C-e}.
4726 @subheading Functions
4728 @file{planner-schedule.el} defines the following interactive
4729 functions:
4731 @defun planner-schedule-show-end-project
4732 Display the estimated project completion time.
4733 @end defun
4735 @file{schedule.el} does not define any interactive functions, or
4736 keybindings.
4738 @node Finances, Contacts and Conversations, Scheduling and Time, Managing Your Information
4739 @comment  node-name,  next,  previous,  up
4740 @section Finances
4741 @cindex finances
4743 Currently, Planner provides one module dedicated to tracking your
4744 finances. This module works with a program called Ledger.
4746 @menu
4747 * Ledger::                      Personal finances: planner-ledger.el
4748 @end menu
4750 @node Ledger,  , Finances, Finances
4751 @comment  node-name,  next,  previous,  up
4752 @subsection Ledger
4753 @cindex finances
4754 @cindex @file{planner-ledger.el}, using
4755 @cindex @file{ledger}, using Planner with
4757 @file{planner-ledger.el} provides integration between planner and John
4758 Wiegley's ledger accounting program, which can be found at
4759 @url{http://newartisans.com/johnw/ledger.tar.gz}.
4761 To use planner-ledger to insert a ledger balance overview and a list
4762 of pending transactions into planner day pages, make sure that your
4763 day page includes sections that match
4764 @code{planner-ledger-balance-regexp} and
4765 @code{planner-ledger-pending-regexp}. Example:
4767 @example
4768 * Tasks
4770 * Ledger
4772 ** Pending transactions
4774 * Notes
4776 @end example
4778 You can manually update ledger sections with the
4779 @command{planner-ledger-insert-maybe} command.
4781 You can also automatically update ledger sections with the following
4782 hook:
4784 @example
4785 (add-hook 'planner-goto-hook 'planner-ledger-insert-maybe)
4786 @end example
4788 You can create ledger entries from specially-formatted tasks using
4789 @command{planner-ledger-add-entry-from-task}.  Tasks should be of the
4790 form @samp{payment due: payee, amount [comment]}.  Example:
4792 @example
4793 #A1 _ payment due: foobar, $1000.00 some comment here
4794 #A2 _ payment due: baz, 1000.00
4795 @end example
4797 @subheading Options
4799 @defopt planner-ledger-balance-accounts
4800 List of accounts to be included or excluded from the balance overview.
4801 @samp{+} includes all matching accounts, and @samp{-} excludes
4802 matching accounts.  See the documentation for
4803 @command{ledger-run-ledger} for more details.
4804 @end defopt
4806 @defopt planner-ledger-balance-regexp
4807 Regular expression matching section for ledger balance.  Do not store
4808 other data in this section, as it will be overwritten.
4809 @end defopt
4811 @defopt planner-ledger-pending-regexp
4812 Regular expression matching section for ledger balance.  Do not store
4813 other data in this section, as it will be overwritten.
4814 @end defopt
4816 @defopt planner-ledger-payment-task-regexp
4817 Regular expression matching special ledger tasks.
4818 @end defopt
4820 @subheading Functions
4822 @defun planner-ledger-insert-maybe
4823 Update any ledger sections on the current page.
4824 @end defun
4826 @defun planner-ledger-add-entry-from-task
4827 Create a ledger entry based on the task at point.  Task should match
4828 @code{planner-ledger-payment-task-regexp}.
4829 @end defun
4831 @node Contacts and Conversations, Tracking Research and Resources, Finances, Managing Your Information
4832 @comment  node-name,  next,  previous,  up
4833 @section Contacts and Conversations
4834 @cindex contacts
4835 @cindex conversations
4837 Planner has two modules available for keeping track of contact and
4838 conversation information. The first uses the Big Brother Database
4839 (BBDB), and the second uses Emacs Relay Chat (ERC). BBDB is a full
4840 contact database. ERC is a client for chatting online on Internet Relay
4841 Chat (IRC) networks. The ERC module for Planner will help you keep
4842 track of online conversations you have if you use ERC for those
4843 conversations, but does not by itself store contact information other
4844 than the time you had the conversation, the network and channel you were
4845 on when you had it, and maybe who you had it with. If you are looking
4846 for a way to manage your full address book, then @file{planner-bbdb.el}
4847 in combination with BBDB is what you are looking for.
4849 @menu
4850 * BBDB::                        Contacts: planner-bbdb.el
4851 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
4852 @end menu
4854 @node BBDB, Emacs Relay Chat, Contacts and Conversations, Contacts and Conversations
4855 @comment  node-name,  next,  previous,  up
4856 @subsection BBDB
4857 @cindex @file{planner-bbdb.el}, using
4858 @cindex BBDB, using Planner with
4860 @file{planner-bbdb.el} allows you to refer to your contacts easily
4861 from within a planner page. @inforef{Top, the BBDB Manual, bbdb}.
4863 @samp{[[bbdb://Sacha.*Chua][Sacha]]}, for example, will be linked to
4864 the blog, web or net fields of the first matching BBDB record.
4866 @file{planner-bbdb.el} does not define any interactive functions, or
4867 keybindings.
4869 @node Emacs Relay Chat,  , BBDB, Contacts and Conversations
4870 @comment  node-name,  next,  previous,  up
4871 @subsection Emacs Relay Chat
4872 @cindex @file{planner-erc.el}, using
4873 @cindex ERC, using Planner with
4874 @cindex Emacs Relay Chat, using Planner with
4875 @cindex IRC, using Planner with
4876 @cindex Internet Relay Chat, using Planner with
4878 To use planner-erc, place @file{planner-erc.el} in your load path
4879 and add this to your @file{.emacs} (or @file{_emacs}):
4881 @example
4883 (require 'planner-erc)
4885 @end example
4887 ERC URLs are of the form, @samp{irc://server/nick/#channel},
4888 @samp{irc://server/nick} or @samp{irc://server/nick}.
4890 Annotations will be of the form:
4892 @example
4894 [[irc://server/nick/#channel][Chat with nick on server#channel]]
4895 [[irc://server/nick][Chat with nick on server]]
4896 [[irc://server][Chat on server]]
4898 @end example
4900 @file{planner-erc.el} does not define any interactive functions, or
4901 keybindings.
4903 @node Tracking Research and Resources, Tracking Development, Contacts and Conversations, Managing Your Information
4904 @comment  node-name,  next,  previous,  up
4905 @section Tracking Research and Resources
4907 Planner provides three modules for keeping track of information
4908 involving three specific tools: w3m, BibTeX, and @file{bookmark.el}.
4910 @menu
4911 * W3m::                         Web browser: planner-w3m.el
4912 * BibTeX::                      Bibliographies: planner-bibtex.el
4913 * Bookmark::                    Bookmarks: planner-bookmark.el
4914 @end menu
4916 @node W3m, BibTeX, Tracking Research and Resources, Tracking Research and Resources
4917 @comment node-name,  next,  previous,  up
4918 @subsection W3m
4919 @cindex @file{planner-w3m.el}, using
4920 @cindex w3m, using Planner with
4922 This module allows you to create tasks from a w3m buffer.
4924 @file{planner-w3m.el} does not define any interactive functions, or
4925 keybindings.
4927 @node BibTeX, Bookmark, W3m, Tracking Research and Resources
4928 @comment node-name,  next,  previous,  up
4929 @subsection BibTeX
4930 @cindex @file{planner-bibtex.el}, using
4932 BibTeX URLs are of the form @samp{bibtex:file/name:key}.
4934 @file{planner-bibtex.el} does not define any interactive functions.
4936 @node Bookmark,  , BibTeX, Tracking Research and Resources
4937 @comment  node-name,  next,  previous,  up
4938 @subsection Bookmark
4939 @cindex bookmarks
4940 @cindex @file{bookmark.el}, using Planner with
4941 @cindex @file{planner-bookmark.el}, using
4943 @file{planner-bookmark.el} uses the @file{remember} package to create a
4944 note whenever you create a bookmark (see @inforef{Bookmarks, Bookmarks,
4945 Emacs}). For more information about @file{remember}, please check out
4947 @itemize
4948 @item
4949 @uref{http://www.emacswiki.org/cgi-bin/wiki/RememberMode} -
4950 EmacsWiki.org page
4951 @item
4952 @uref{http://sacha.free.net.ph/notebook/doc/dev/remember/remember.html}
4953 - Online info documentation
4954 @end itemize
4956 Configure remember according to the instructions in
4957 @file{remember-planner.el} so that notes are saved to your planner
4958 pages.
4960 @defopt planner-bookmark-take-note-after-set-bookmark-flag
4961 Non-nil means show a @code{remember} buffer after setting a new
4962 bookmark.
4963 @end defopt
4965 When you create a bookmark, Emacs will open a buffer for your notes.
4966 @kbd{C-c C-c} saves the buffer to today's page. If you don't want to
4967 save a note, you can kill the buffer.
4969 Bookmark URLs are of the form @samp{bookmark://bookmark-name}.
4971 @file{planner-bookmark.el} does not define any interactive functions.
4973 @node Tracking Development,  , Tracking Research and Resources, Managing Your Information
4974 @comment  node-name,  next,  previous,  up
4975 @section Tracking Development
4976 @cindex version control, using Planner with
4978 Planner has three modules geared toward programmers. Two modules deal
4979 with version control and integrating information from those projects
4980 into the planner page. One module deals with the Gnats bug-tracking
4981 system.
4983 @menu
4984 * Log Edit::                    Changelogs: planner-log-edit.el
4985 * XTLA::                        TLA changesets: planner-xtla.el
4986 * Gnats::                       Gnats: The GNU bug reporting system
4987 @end menu
4989 @node Log Edit, XTLA, Tracking Development, Tracking Development
4990 @comment  node-name,  next,  previous,  up
4991 @subsection Log Edit
4992 @cindex cvs, using Planner with
4993 @cindex @file{planner-log-edit}, using
4994 @cindex version control, using Planner with
4996 This module allows you to automatically record CVS (and VC) commits
4997 in today's page.
4999 You can load the module with @code{(require 'planner-log-edit)}. When
5000 you load the module, @code{planner-log-edit-add-note} will be added to
5001 @code{log-edit-done-hook}.  A note containing the text of the commit
5002 and optionally a list of modified files will be added to today's page
5003 if you use the the Emacs version control interface. (@pxref{Version
5004 Control, , , Emacs, GNU Emacs Manual})
5006 @subheading Options
5008 @defopt planner-log-edit-include-files-flag
5009 Non-nil means include a list of committed files in the note.
5010 @end defopt
5012 @defopt planner-log-edit-notice-commit-function
5013 Non-nil means include a list of committed files in the note. If you
5014 want to enable this feature for some projects but not for others, set
5015 this to a function that returns t only for the commits you want to
5016 note.
5017 @end defopt
5019 @file{planner-log-edit.el} does not define any interactive functions.
5021 @node XTLA, Gnats, Log Edit, Tracking Development
5022 @comment  node-name,  next,  previous,  up
5023 @subsection XTLA
5024 @cindex XTLA
5025 @cindex @file{planner-xtla.el}, using
5027 This module allows you to refer to changesets in Tom Lord's Arch (tla)
5028 version control system. You can load the module with @code{(require
5029 'planner-xtla)}. When you load the module, you can create tasks from
5030 XTLA windows by positioning point on a revision.
5032 XTLA URLs are of the form
5033 @samp{xtla://miles@@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-19}
5035 @file{planner-xtla.el} does not define any interactive functions.
5037 @node Gnats,  , XTLA, Tracking Development
5038 @comment  node-name,  next,  previous,  up
5039 @subsection Gnats
5041 @cindex Gnats
5042 @cindex @file{planner-gnats.el}, using
5043 @cindex bug reports, tracking
5045 @file{planner-gnats.el} provides support for the GNU problem report
5046 management system Gnats. This module allows you to refer to problem
5047 reports using hyperlinks.
5049 Configure your Emacs for Gnats access, then add @samp{(require
5050 'planner-gnats)} to your @file{.emacs}. You can then create tasks from
5051 Gnats edit or view buffers.
5053 To add keybindings to Gnats, use @samp{(planner-gnats-insinuate)}.
5055 Gnats URLs are of the form @samp{gnats:pr-number}.
5057 @file{planner-gnats.el} does not define any interactive functions.
5059 @node Advanced Configuration, Reference Material, Managing Your Information, Top
5060 @comment  node-name,  next,  previous,  up
5061 @chapter Advanced Configuration
5062 @cindex configuration, advanced
5064 @menu
5065 * Customizing Your Day Pages::  Change your templates
5066 * Variables to Customize::      Change various aspects of Planner behavior
5067 * Ideas for Other Keybindings::  Add to and change the default keybindings
5068 @end menu
5070 @node Customizing Your Day Pages, Variables to Customize, Advanced Configuration, Advanced Configuration
5071 @comment  node-name,  next,  previous,  up
5072 @section Customizing Your Day Pages
5074 With the variable @code{planner-day-page-template}, you can define how
5075 you want any newly created day planner pages to look.
5077 You might want to include a section for your diary entries. For how to
5078 do this, see @ref{Diary}.
5080 You can add interactive Lisp buttons with the @file{planner-lisp.el}
5081 module. (@pxref{Interactive Lisp})
5083 Your @code{planner-day-page-template} can also include @samp{|<lisp>|}
5084 tags.
5086 For more complex day pages, you can set
5087 @code{planner-day-page-template} to a function that will be called
5088 from an empty day page buffer. The function should initialize the
5089 contents of the day page.
5091 @node Variables to Customize, Ideas for Other Keybindings, Customizing Your Day Pages, Advanced Configuration
5092 @comment  node-name,  next,  previous,  up
5093 @section Variables to Customize
5094 @cindex customize, variables to
5095 @cindex variables, customization of
5096 @cindex configuration, advanced, variables
5098 If you want to change @code{planner-directory} and some other
5099 variables, either use Customize (@kbd{M-x customize-group RET planner
5100 RET}) or use @code{setq}.  An example of the latter follows.
5102 @example
5103 (setq planner-directory "~/Plans")
5104 @end example
5106 Other user options are:
5108 @vindex planner-use-day-pages
5109 @defopt planner-use-day-pages
5110 If you really don't like day pages, you can set this variable to nil
5111 and you won't be prompted for dates for tasks (and notes, if using
5112 @file{remember-planner}).
5113 @end defopt
5115 @vindex planner-use-plan-pages
5116 @defopt planner-use-plan-pages
5117 If you really don't like plan pages, you can set this variable to nil
5118 and you won't be prompted for plan pages for tasks (and notes, if
5119 using @file{remember-planner}).
5120 @end defopt
5122 @vindex planner-mode-hook
5123 @defopt planner-mode-hook
5124 List of functions to run after @code{planner-mode} is initialized.
5125 @end defopt
5127 @vindex planner-tasks-file-behavior
5128 @defopt planner-tasks-file-behavior
5129 This variable controls what happens to files Planner opens by itself.
5130 If your tasks are associated with plan pages, the plan pages are
5131 updated whenever a task is rescheduled.  This could lead to a lot of
5132 open buffers as Planner applies updates to all linked files.
5133 By default, Planner is configured to do nothing.
5134 A value of @samp{save} means save but do not close buffers, and a
5135 value of @samp{nil} means do not save any of the buffers.
5136 @end defopt
5138 @vindex planner-add-task-at-end-flag
5139 @defopt planner-add-task-at-end-flag
5140 This variable controls where new tasks are created.  Non-nil means
5141 create tasks at the bottom of the first task block.  If you set this
5142 to non-nil, new tasks will be listed in order of creation (oldest).
5143 Tasks carried over from previous days will appear at the bottom of the
5144 list.
5146 Nil means create tasks at the top of the first task block.
5147 Carried-over tasks and newly created tasks are prominently placed on
5148 top of the list of tasks for the day.
5149 @end defopt
5151 @vindex planner-default-page
5152 @defopt planner-default-page
5153 Default page for created tasks.  This is used as the initial value for
5154 tasks.  After you create a task, it will be set to the previous page
5155 used.
5156 @end defopt
5158 @vindex planner-hide-task-status-when-highlighting
5159 @defopt planner-hide-task-status-when-highlighting
5160 Font-locking for tasks may be enough for you to determine status and
5161 priority.  Set this to non-nil if you want to hide the status marker
5162 and rely on font-locking instead.
5163 @end defopt
5165 @vindex planner-create-task-hook
5166 @defopt planner-create-task-hook
5167 Functions run after creating a task. @code{planner-id} hooks into
5168 this.
5169 @end defopt
5171 @vindex planner-expand-name-favor-future-p
5172 @defopt planner-expand-name-favor-future-p
5173 If non-nil, partial dates (ex: @kbd{2} or @kbd{5.2}) are completed to
5174 dates in the future instead of using the current year and month.
5175 @end defopt
5177 @vindex planner-task-dates-favor-future-p
5178 @defopt planner-task-dates-favor-future-p
5179 Like @code{planner-expand-name-favor-future-p}, but only for tasks.
5180 @end defopt
5182 @vindex planner-publish-dates-first-p
5183 @defopt planner-publish-dates-first-p
5184 Non-nil means list day pages first in the planner index.
5185 @end defopt
5187 @node Ideas for Other Keybindings,  , Variables to Customize, Advanced Configuration
5188 @comment  node-name,  next,  previous,  up
5189 @section Ideas for Other Keybindings
5190 @cindex keybindings, customization of
5191 @cindex configuration, advanced, keybindings
5192 @cindex customize, keybindings to
5194 By default and for backward compatibility, the following operations
5195 do not have keybindings, and are only accessible from the Planner
5196 menu:
5198 @itemize @bullet
5200 @item
5201 @code{planner-copy-or-move-region}
5203 @item
5204 @code{planner-delete-task}
5206 @item
5207 @code{planner-task-delegated}
5209 @item
5210 @code{planner-task-pending}
5212 @item
5213 @code{planner-task-open}
5215 @item
5216 @code{planner-renumber-tasks}
5218 @end itemize
5220 You may find it easier to install keybindings for those operations by
5221 inserting the following in your @file{.emacs} (or @file{_emacs}).
5222 Note: This changes some of the default keybindings for Planner.
5224 @example
5225 (planner-install-extra-task-keybindings)
5226 @end example
5228 If you install the extra task keybindings, your keybindings will
5229 include:
5231 @itemize @bullet
5233 @item
5234 @kbd{C-c C-t} will be unbound from the default and will serve as the
5235 prefix for the other task keybindings.
5237 @item
5238 @kbd{C-c C-t C-t}: @code{planner-create-task-from-buffer}.
5240 @item
5241 @kbd{C-c C-t C-k}: @code{planner-delete-task}.
5243 @item
5244 @kbd{C-c C-t C-u}: @code{planner-update-task}.
5246 @item
5247 @kbd{C-c C-t C-c}: @code{planner-copy-or-move-task}.
5249 @item
5250 @kbd{C-c C-t C-S-c}: @code{planner-copy-or-move-region}.
5252 @item
5253 @kbd{C-c C-t C-x}: @code{planner-task-done}.
5255 @item
5256 @kbd{C-c C-t C-S-x}: @code{planner-task-cancelled}.
5258 @item
5259 @kbd{C-c C-t C-d}: @code{planner-task-delegated}.
5261 @item
5262 @kbd{C-c C-t C-p}: @code{planner-task-pending}.
5264 @item
5265 @kbd{C-c C-t C-o}: @code{planner-task-in-progress}.
5267 @item
5268 @kbd{C-c C-t C-r}: @code{planner-raise-task}.
5270 @item
5271 @kbd{C-c C-t C-l}: @code{planner-lower-task}.
5273 @item
5274 @kbd{C-c C-t C-n}: @code{planner-renumber-tasks}.
5276 @end itemize
5278 Other keybindings can be configured by adding this to your
5279 @file{.emacs} (or @file{_emacs}):
5281 @example
5282 (planner-install-extra-context-keybindings)
5283 @end example
5285 This will set up the following keybindings:
5287 @itemize @bullet
5289 @item
5290 @kbd{shift up} @code{planner-move-up}
5292 @item
5293 @kbd{shift down} @code{planner-move-down}
5295 @item
5296 @kbd{shift right} @code{planner-jump-to-link}
5298 @end itemize
5300 @node Reference Material, Getting Help, Advanced Configuration, Top
5301 @comment  node-name,  next,  previous,  up
5302 @chapter Reference Material
5304 @menu
5305 * Keeping Track of Time::       
5306 * Other Interactive Functions::  
5307 * Planner Keybindings::         Default keybindings for Planner
5308 * Sample Configuration Files::  
5309 @end menu
5311 @node Keeping Track of Time, Other Interactive Functions, Reference Material, Reference Material
5312 @section Keeping Track of Time
5314 One of the coolest things you can do with Planner is keep track of how
5315 much time you spend not only on projects but even on particular tasks.
5316 @file{planner-timeclock.el} makes it as easy and natural as marking a
5317 task as in progress, postponed, or done. This can help you determine
5318 just how much time you spend working each day. If you add estimates to
5319 your task descriptions, you'll also be able to use this information to
5320 improve your time estimation skills.
5322 Here's how you can keep track of the time you
5325 Then the fun began. I wanted to see if I could match my estimates.
5326 Before I started working on a task, I used @kbd{C-c TAB} to mark it
5327 @code{in progress} and start the clock. If I decided to work on
5328 something else, I used @kbd{C-c TAB} to clock out of the previous task
5329 and clock into the new one.
5331 When I finished it, I used @kbd{C-c C-x} (@code{planner-task-done}) to
5332 mark it completed and automatically clock out. This is not yet done
5333 for cancelled tasks, so I clocked out of those manually with @kbd{C-c
5334 C-o} (@code{timeclock-out}). I also clocked out whenever I caught
5335 myself being distracted so that the totals wouldn't include the time I
5336 spent chatting on #emacs or checking out del.icio.us links. =) At the
5337 end of the day, I used
5338 @code{planner-timeclock-summary-show-range-filter} to show me the time
5339 elapsed for all of the tasks I'd worked on over the past two days.
5340 Here's the report for that project, edited to reflect how it looks on
5341 my screen and annotated with comments:
5343 @example
5344 Timeclock summary report for 2004.12.28 - 2004.12.29
5346 Project     |     Time| Ratio| Task
5347 JapanProject|  0:23:17|  3.6%| Translate javadoc comment for Messages.java
5348             |  0:33:48|  5.3%| Translate javadoc comment for LoginAction.java
5349             |  1:54:07| 17.8%| Study Struts in Japanese
5350             |  0:46:08|  7.2%| Add javadoc tags for input, output and forwards
5351             |  1:03:48|  9.9%| Help review code
5352             |  0:04:14|  0.7%| Import todo list
5353             |  0:00:37|  0.1%| 2min       Fix Menu Action's unnecessary code - delegated
5354             |  0:01:01|  0.2%| 2min       Remove unnecessary list in UserRemoveSetupAction - cancelled
5355             |  0:02:10|  0.3%| 2min       Remove hard-coded database path from MenuAction
5356             |  0:02:46|  0.4%| 30min      Create a superclass for our action classes that handles initialization of database and handling of privileges - remove all privilege handling in logic classes. ...
5357             |  0:07:32|  1.2%| 5min       Add a method that returns the validity of a user in MUserPeer.
5358             |  0:08:28|  1.3%| 5min       Fix indentation
5359             |  0:03:52|  0.6%| 10min      Fix UserPeer so that it doesn't get null pointer exceptions
5360             |  0:04:34|  0.7%| 5min       Add current password field in user_modify page
5361             |  0:21:56|  3.4%| 15min      Make a super class for our service classes that will receive the database connection. (cancelled)
5362             |  0:06:05|  0.9%| 10min      Remove hard-coded constants from the Logic classes
5363             |  0:10:55|  1.7%| 10min      Move logic from UserBean.checkPassword to UserListLogic
5364             |  0:01:20|  0.2%| 20min      Guard against null pointer exceptions in peer classes
5365             |  0:04:57|  0.8%| 10min      Instead of displaying uneditable data with bean:write, just disable the html:text element
5366             |  0:25:03|  3.9%| 10min      Deploy 10:00 version
5367             |  0:04:46|  0.7%| 5min       Separate the configuration file of database and system into another uninternationalized property file.
5368             |  2:09:48| 20.2%| 1h         Decide on a naming convention for localized messages and update files
5369             |  0:00:07|  0.0%| 20min      Explain what is happening in UserModifyAction's nested ifs - pending
5370             |  1:50:23| 17.2%| 2h         Write Javadoc comments in English and Japanese to explain bean structure
5371             |  0:04:19|  0.7%| 2h         Write Javadoc comments in English and Japanese to explain peer operations (pending)
5372             |  0:05:40|  0.9%| 20min      Make a factory class for the database - pending
5373      Total: | 10:41:41|100.0%|      
5375 Day began: 13:03:58, Day ended: 20:51:46
5376 Time elapsed: 31:47:48, Time clocked: 10:41:41
5377 Time clocked ratio: 33.6%
5378 @end example
5380 The time record isn't perfect. I cancelled some tasks after thinking
5381 about them a little and did some tasks simultaneously. Sometimes I
5382 didn't notice that I was getting distracted, too. Still, having all of
5383 that time information neatly summarized made me realize a number of
5384 things.
5386 First, I goof off much less when I have a nice, broken-down task list
5387 in front of me. There's just something about knowing there's a five-
5388 or ten-minute hack you can get out of the way. I found myself looking
5389 forward to getting to the next task just to see if I could make my
5390 estimate. That said, seeing a five-minute task stretch and stretch due
5391 to unforeseen problems did make me a little nervous. I should probably
5392 just make generous estimates so that I don't end up with bugs because
5393 of haste.
5395 Second, I don't goof off as much as I thought I did, although there's
5396 still room for improvement. Yesterday's workday was 9:00 - 12:00, 1:00
5397 - 5:30--7.5 hours. Today was the last day of work, so cleaning and
5398 celebration interrupted my hacking at around 3:00--5 hours of work.
5399 According to my task list, 10:41/12:30 was productive work. Hmm. 1:49
5400 hours unclocked time when I was thinking or goofing off.
5401 planner-timeclock-summary-show for today reveals that I actually
5402 clocked 5:30 today, which means the goofing off happened yesterday.
5403 That makes sense; I remember a pretty long unclocked segment
5404 recuperating from Japanese overload. (This was before we came up with
5405 the task list.)
5407 Third, keeping track of time is way, way cool even if you don't bill
5408 anyone for your time.
5410 Like the idea? It's easy to try out. Just add
5412 @example
5413 (require 'planner-timeclock)
5414 (require 'planner-timeclock-summary)
5415 @end example
5417 to your ~/.emacs. If you want to try it out now, eval those statements
5418 in your Emacs session. After that, simply use @kbd{C-c TAB} to ``clock
5419 in'' a task before you start working on it and @kbd{C-c C-x}
5420 (@code{planner-task-done}) to mark it completed. @kbd{M-x
5421 planner-task-pending} also clocks out the current task if it was
5422 clocked in. To see a summary of how you spent your day, check out the
5423 different functions in @file{planner-timeclock-summary}.
5425 See @ref{Timeclock} for more details.
5427 Happy hacking!
5429 @node Other Interactive Functions, Planner Keybindings, Keeping Track of Time, Reference Material
5430 @comment  node-name,  next,  previous,  up
5431 @section Other Interactive Functions
5433 With @file{planner.el} loaded, you can use any of the functions in this
5434 section by typing @kbd{M-x} followed by the name of the function. Many
5435 of these functions are also bound to keys.
5437 For a list of Planner keybindings, see @ref{Planner Keybindings}.
5439 They are listed in no particular order.
5441 @file{planner.el} defines the following interactive functions:
5444 @defun planner-create-high-priority-task-from-buffer
5445 Create a high priority task based on this buffer.  Do not use this in
5446 LISP programs. Instead, set the value of
5447 @var{planner-default-task-priority} and call @code{planner-create-task}
5448 or @code{planner-create-task-from-buffer}.
5449 @end defun
5451 @defun defun planner-create-medium-priority-task-from-buffer
5452 Create a medium-priority task based on this buffer.  Do not use this in
5453 LISP programs. Instead, set the value of
5454 @var{planner-default-task-priority} and call @code{planner-create-task}
5455 or @code{planner-create-task-from-buffer}.
5456 @end defun
5458 @defun planner-create-low-priority-task-from-buffer
5459 Create a high-priority task based on this buffer.
5460 Do not use this in LISP programs. Instead, set the value of
5461 @var{planner-default-task-priority} and call @code{planner-create-task} or
5462 @code{planner-create-task-from-buffer}.
5463 @end defun
5465 @defun planner-install-extra-context-keybindings
5466 Install extra context-sensitive keybindings. These keybindings
5467 conflict with @file{windmove.el}, but might be useful.
5468 @end defun
5470 @defun planner-narrow-to-section section &optional create
5471 Widen to the whole page and narrow to the section labelled
5472 @var{section}.  If @var{create} is non-nil and the section is not found,
5473 the section is created.  Return non-nil if @var{section} was found or
5474 created.
5475 @end defun
5477 @defun planner-save-buffers
5478 Save all planner-mode buffers.
5479 @end defun
5481 @defun planner-seek-to-first section
5482 Positions the point at the specified @var{section}, or @samp{Tasks} if
5483 not specified.
5484 @end defun
5486 @defun planner-save-buffers
5487 Save all planner buffers.
5488 @end defun
5490 @defun planner-calendar-insinuate
5491 This hooks Planner into  Emacs Calendar (@pxref{Calendar/Diary, ,
5492 , Emacs, GNU Emacs Manual}).
5494 It adds special planner key bindings to @code{calendar-mode-map}.
5495 After this function is evaluated, you can use the following
5496 planner-related keybindings in @code{calendar-mode-map}:
5498 @table @kbd
5500 @item  n
5501 Jump to the planner page for the current day.
5503 @item  N
5504 Display the planner page for the current day.
5505 @end table
5507 @end defun
5509 @defun planner-kill-calendar-files
5510 Remove planner files shown from Calendar (@pxref{Calendar/Diary, , ,
5511 Emacs, GNU Emacs Manual}).
5513 @end defun
5515 @defun planner-calendar-goto
5516 Goto the plan page corresponding to the calendar date
5517 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
5518 @end defun
5520 @defun planner-calendar-show
5521 Show the plan page for the calendar date under point in another window
5522 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
5523 @end defun
5525 @defun planner-calendar-select
5526 Return to @code{planner-read-date} with the date currently selected
5527 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
5528 @end defun
5530 @defun planner-jump-to-link
5531 Jump to the item linked to by the current item.
5532 @end defun
5534 @defun planner-move-up
5535 Move a task up. You can use this to indicate that you will do a task
5536 before another one. On a note, go to the previous note. On a headline,
5537 go to the previous headline of the same depth.
5538 @end defun
5540 @defun planner-move-down 
5541 Move down. You can use this to indicate that you will do a task after
5542 another one. On a note, go to the next note. On a headline, go to the
5543 next headline of the same depth.
5544 @end defun
5546 @node Planner Keybindings, Sample Configuration Files, Other Interactive Functions, Reference Material
5547 @comment  node-name,  next,  previous,  up
5548 @section Planner Keybindings
5549 @cindex keybindings, list
5551 In order to refresh and renumber all of your tasks according to their
5552 actual order in the buffer, simply save the file or call
5553 @kbd{M-x planner-renumber-tasks}.
5555 Here is a summary of the keystrokes available:
5557 @table @kbd
5559 @item M-x plan
5560 Begin your planning session.  This goes to the last day for which
5561 there is any planning info (or today if none), allowing you to review,
5562 and create/move tasks from that day.
5564 @item C-c C-u
5565 Move a task up.
5567 @item C-c C-d
5568 Move a task down.
5570 @item C-c C-s
5571 Mark the task as in progress or delegated.
5573 @item C-c C-x
5574 Mark the task as finished.
5576 @item C-c C-t
5577 Create a task associated with the current Wiki page. If you are on the
5578 opening line of a Note entry, it is assumed that the note itself is the
5579 origin of the task.
5581 @item C-c C-c
5582 Move or copy the current task to another date. If the current task is
5583 an original (meaning you are in the buffer where's defined, hopefully
5584 a planning page) then it will be copied, and the original task will
5585 also now point to the copy.  If the current task is a copy, it will
5586 just be moved to the new day, and the original task's link will be
5587 updated.
5589 @item C-c C-n
5590 Jump to today's task page.  If you call
5591 @code{(planner-calendar-insinuate)}, typing @kbd{n} in the Emacs
5592 calendar (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) will jump
5593 to today's task page.
5595 @item C-c C-x
5596 @code{planner-task-done}
5598 @item C-c C-z
5599 @code{planner-task-in-progress}
5601 @item C-c C-d
5602 @code{planner-lower-task}
5604 @item C-c C-u
5605 @code{planner-raise-task}
5607 @item C-c C-c
5608 @code{planner-copy-or-move-task}
5610 @item C-c C-t
5611 @code{planner-create-task-from-buffer}
5613 @item C-c C-j
5614 This is a prefix command.
5616 @item C-c C-n
5617 @code{planner-goto-today}
5619 @item C-c C-j C-r
5620 @code{planner-goto-most-recent}
5622 @item C-c C-j C-t
5623 @code{planner-goto-tomorrow}
5625 @item C-c C-j C-y
5626 @code{planner-goto-yesterday}
5628 @item C-c C-j C-j
5629 @code{planner-goto-today}
5631 @item C-c C-j C-n
5632 @code{planner-goto-next-daily-page}
5634 @item C-c C-j C-p
5635 @code{planner-goto-previous-daily-page}
5637 @item C-c C-j C-d
5638 @code{planner-goto}
5640 @end table
5642 @node Sample Configuration Files,  , Planner Keybindings, Reference Material
5643 @comment  node-name,  next,  previous,  up
5644 @section Sample Configuration Files
5645 @cindex configuration, sample
5647 This section includes some sample configuration files. This way, once
5648 you've got the hang of the basics, you can see some different, more
5649 advanced, setups.
5651 There is no One True Way to plan. Every person is different. We hope
5652 you'll find a good starting point among the example configurations
5653 below. If what you want to do does not perfectly fit under one of
5654 these examples, please post a description of the way you plan to the
5655 emacs-wiki-discuss mailing list. We look forward to helping you
5656 customizing planner to fit your needs.
5658 @menu
5659 * File Organization::           
5660 * Bare-Bones Planning::         
5661 * Bare-Bones Planning with Plan Pages::  
5662 * Tasks on Plan Pages with Some Day Pages::  
5663 * Hierarchical Tasks::          
5664 @end menu
5666 @node File Organization, Bare-Bones Planning, Sample Configuration Files, Sample Configuration Files
5667 @subsection File Organization
5669 @itemize
5670 @item @strong{Tasks, schedule and notes on day pages.}
5672 By default, tasks, schedule entries and notes are filed on day pages.
5673 This makes it easy for you to see all the entries relevant to a single
5674 day without becoming overwhelmed with information. Unfinished tasks
5675 are carried over to the next day when you use @kbd{M-x plan}, so it's
5676 always kept up to date. Completed tasks are left on the day page you
5677 finished them on, which helps when reviewing one's progress and writing
5678 accomplishment reports.
5680 @item @strong{Cross-referenced with plan pages.}
5682 You can associate your tasks with projects either when you create the
5683 task or later, with @kbd{M-x planner-replan-task}. This makes it easy
5684 for you to see all the information associated with a particular
5685 project. If you use RememberMode to create notes, you will also be
5686 able to associate notes with a plan page.
5688 @item @strong{Just plan pages.}
5690 If your tasks don't usually have dates, you can turn day pages off by
5691 customizing @code{planner-use-day-pages}. If so, then all of your
5692 tasks and notes will be stored on the WelcomePage and/or a plan page.
5694 @end itemize
5696 @node Bare-Bones Planning, Bare-Bones Planning with Plan Pages, File Organization, Sample Configuration Files
5697 @subsection Bare-Bones Planning
5699 You can keep all of your tasks, notes and schedules in a single file:
5700 WelcomePage.  This is good for people who are used to storing all of
5701 their information in a flat text file.  By storing your information in
5702 planner, you'll be able to take advantage of automatic hyperlinking to
5703 files and other resources.  You can also sort your tasks by priority
5704 and status.
5706 To set your system up for bare-bones planning, set the
5707 @code{planner-use-day-pages} variable to nil before loading planner.
5708 For example, you can put this in your @file{~/.emacs} (or @file{_emacs}):
5710 @example
5711 (setq planner-use-day-pages nil)
5712 (setq planner-default-page nil)
5713 (require 'planner)
5714 @end example
5716 When you create a task or note, planner will not prompt you for a
5717 date.  If you press @key{RET} when prompted for a plan page, it will
5718 accept the default of nil, so no other plan pages will be used.  All
5719 of your data will be kept in one file, which can then be easily backed
5722 You can use commands like @command{planner-create-task-from-buffer} to
5723 create tasks, or you can type tasks in manually.  You can edit or
5724 delete anything in the page without having to update other files.
5726 @node Bare-Bones Planning with Plan Pages, Tasks on Plan Pages with Some Day Pages, Bare-Bones Planning, Sample Configuration Files
5727 @subsection Bare-Bones Planning with Plan Pages
5729 When you create a task or note, Planner.el can copy this to a plan
5730 page. Plan pages allow you to see an overview of all the data for a
5731 project.
5733 For convenience, the @command{planner-create-task-from-buffer} command
5734 prompts you for a plan page when you create a task.
5738 @node Tasks on Plan Pages with Some Day Pages, Hierarchical Tasks, Bare-Bones Planning with Plan Pages, Sample Configuration Files
5739 @subsection Tasks on Plan Pages with Some Day Pages
5741 If most of your tasks are associated with plan pages but you want to
5742 schedule some tasks on day pages, you can leave day pages on (default)
5743 and then write a function that turns off day pages. For example, the
5744 following code snippet turns off day pages for task creation from
5745 buffers.
5747 @example
5748 (require 'planner)
5750 (defun my-planner-create-task-from-buffer ()
5751   "Call `planner-create-task-from-buffer', but without dates."
5752   (interactive)
5753   (let ((planner-use-day-pages nil))
5754     (call-interactively 'planner-create-task-from-buffer)))
5755 @end example
5757 @node Hierarchical Tasks,  , Tasks on Plan Pages with Some Day Pages, Sample Configuration Files
5758 @subsection Hierarchical Tasks
5759 @cindex hierarchical tasks
5760 @cindex tasks, hierarchy of
5762 You can use @file{allout.el} or other modes for outlining to support
5763 hierarchical tasks in plan pages. No special support is needed.
5765 Tasks created by @command{planner-create-task-from-buffer} and
5766 @code{planner-create-task} are created in the @samp{* Tasks} section.
5767 If @code{planner-add-task-at-end-flag} is non-nil, tasks are added to
5768 the end of the first task block, else they are added to the beginning.
5769 You can then copy and paste tasks into your preferred hierarchy.
5770 Blank lines delimit blocks of tasks upon which automatic sorting is
5771 performed.
5773 You can also type in tasks manually. You may find this approach faster
5774 when you are comfortable with planner.
5776 For example, a @file{LearnPlanner} plan page might contain the
5777 following lines:
5779 @example
5780 * Learn how to use planner.el
5782 ** Installation
5784 #C0 _ Decide where to put Planner
5785 #C0 _ Download the archives
5787 ** Configuration
5789 *** Load path
5791 #C0 _ Figure out how to add things to my load path
5792 #C0 _ Actually add it to my load path
5795 @end example
5797 If you create tasks for the finest level of detail available at the
5798 moment, you can schedule them onto day pages with @kbd{C-c C-c}
5799 (@command{planner-copy-or-move-task}). Then you can use
5800 @command{planner-jump-to-link} to switch between the day page and the
5801 plan page link.
5804 @node Getting Help, Acknowledgements, Reference Material, Top
5805 @comment  node-name,  next,  previous,  up
5806 @chapter Getting Help
5807 @cindex help, getting
5808 @cindex bugs, reporting
5810 After you have read this guide, if you still have questions about
5811 Planner, or if you have bugs to report, there are several places
5812 you can go.
5814 Planner has an official website at @url{http://www.plannerlove.com/}.
5815 It is a collaborative wiki.
5817 Bugs may be reported using the Planner Bug-Tracker at
5818 @url{https://gna.org/bugs/?group=planner-el}.
5820 You can join the mailing list at
5821 @email{emacs-wiki-discuss@@nongnu.org} using the subscription form at
5822 @url{http:// mail.nongnu.org/ mailman/ listinfo/
5823 emacs-wiki-discuss}. This mailing list is also available via Gmane
5824 (@url{http://gmane.org/}). The group is called
5825 @samp{gmane.emacs.wiki.general}.
5827 You can also contact the maintainer of Planner, Michael Olson, at
5828 @email{mwolson@@gnu.org}, but it is better to use the other options.
5830 You can explore the relevant sections of the EmacsWiki.org:
5832 @itemize @bullet
5834 @item
5835 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}
5837 @item
5838 @url{http://www.emacswiki.org/cgi-bin/wiki/MuseMode}
5840 @item
5841 @url{http://www.emacswiki.org/cgi-bin/wiki/RememberMode}
5843 @end itemize
5845 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
5846 contributors are frequently around and willing to answer your
5847 questions.
5849 There is an Orkut community called PlannerMode.
5851 For issues relating to this documentation, please contact John
5852 Sullivan at @email{johnsu01@@yahoo.com}.
5854 @node Acknowledgements, GNU General Public License, Getting Help, Top
5855 @comment  node-name,  next,  previous,  up
5856 @chapter Acknowledgements
5857 @itemize
5858 @item Maintainers
5860 @cindex maintainers
5862 @itemize
5863 @item 2005
5865 Michael Olson, Sacha Chua, and several others from the Planner community
5866 ported Planner to use Muse instead of emacs-wiki.  Michael Olson became
5867 the maintainer of Planner.
5869 @item 2004
5871 Damien Elmes handed EmacsWikiMode to Mark Triggs for a short period of
5872 time.  Mark Triggs deferred to Sacha Chua as official maintainer of
5873 Planner.  Sacha Chua volunteered to maintain RememberMode.
5874 Michael Olson became the maintainer of both emacs-wiki and Muse.
5876 @item 2003
5878 Sacha Chua volunteered to maintain Planner.  Damien Elmes
5879 volunteered to maintain EmacsWikiMode.
5881 @item 2001
5883 John Wiegley wrote EmacsWikiMode and Planner.
5884 @end itemize
5886 @item Contributors
5887 @cindex contributors
5889 For a complete list of people who have helped out with Planner, please
5890 check out the @file{AUTHORS} file that is included with Planner.
5892 @end itemize
5894 @node GNU General Public License, Concept Index, Acknowledgements, Top
5895 @comment  node-name,  next,  previous,  up
5896 @appendix GNU GENERAL PUBLIC LICENSE
5897 @center Version 2, June 1991
5898 @cindex GPL
5899 @cindex GNU General Public License
5901 @c This file is intended to be included in another file.
5903 @display
5904 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
5905 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5907 Everyone is permitted to copy and distribute verbatim copies
5908 of this license document, but changing it is not allowed.
5909 @end display
5911 @appendixsec Preamble
5913   The licenses for most software are designed to take away your
5914 freedom to share and change it.  By contrast, the GNU General Public
5915 License is intended to guarantee your freedom to share and change free
5916 software---to make sure the software is free for all its users.  This
5917 General Public License applies to most of the Free Software
5918 Foundation's software and to any other program whose authors commit to
5919 using it.  (Some other Free Software Foundation software is covered by
5920 the GNU Library General Public License instead.)  You can apply it to
5921 your programs, too.
5923   When we speak of free software, we are referring to freedom, not
5924 price.  Our General Public Licenses are designed to make sure that you
5925 have the freedom to distribute copies of free software (and charge for
5926 this service if you wish), that you receive source code or can get it
5927 if you want it, that you can change the software or use pieces of it
5928 in new free programs; and that you know you can do these things.
5930   To protect your rights, we need to make restrictions that forbid
5931 anyone to deny you these rights or to ask you to surrender the rights.
5932 These restrictions translate to certain responsibilities for you if you
5933 distribute copies of the software, or if you modify it.
5935   For example, if you distribute copies of such a program, whether
5936 gratis or for a fee, you must give the recipients all the rights that
5937 you have.  You must make sure that they, too, receive or can get the
5938 source code.  And you must show them these terms so they know their
5939 rights.
5941   We protect your rights with two steps: (1) copyright the software, and
5942 (2) offer you this license which gives you legal permission to copy,
5943 distribute and/or modify the software.
5945   Also, for each author's protection and ours, we want to make certain
5946 that everyone understands that there is no warranty for this free
5947 software.  If the software is modified by someone else and passed on, we
5948 want its recipients to know that what they have is not the original, so
5949 that any problems introduced by others will not reflect on the original
5950 authors' reputations.
5952   Finally, any free program is threatened constantly by software
5953 patents.  We wish to avoid the danger that redistributors of a free
5954 program will individually obtain patent licenses, in effect making the
5955 program proprietary.  To prevent this, we have made it clear that any
5956 patent must be licensed for everyone's free use or not licensed at all.
5958   The precise terms and conditions for copying, distribution and
5959 modification follow.
5961 @iftex
5962 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5963 @end iftex
5964 @ifinfo
5965 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5966 @end ifinfo
5968 @enumerate 0
5969 @item
5970 This License applies to any program or other work which contains
5971 a notice placed by the copyright holder saying it may be distributed
5972 under the terms of this General Public License.  The ``Program'', below,
5973 refers to any such program or work, and a ``work based on the Program''
5974 means either the Program or any derivative work under copyright law:
5975 that is to say, a work containing the Program or a portion of it,
5976 either verbatim or with modifications and/or translated into another
5977 language.  (Hereinafter, translation is included without limitation in
5978 the term ``modification''.)  Each licensee is addressed as ``you''.
5980 Activities other than copying, distribution and modification are not
5981 covered by this License; they are outside its scope.  The act of
5982 running the Program is not restricted, and the output from the Program
5983 is covered only if its contents constitute a work based on the
5984 Program (independent of having been made by running the Program).
5985 Whether that is true depends on what the Program does.
5987 @item
5988 You may copy and distribute verbatim copies of the Program's
5989 source code as you receive it, in any medium, provided that you
5990 conspicuously and appropriately publish on each copy an appropriate
5991 copyright notice and disclaimer of warranty; keep intact all the
5992 notices that refer to this License and to the absence of any warranty;
5993 and give any other recipients of the Program a copy of this License
5994 along with the Program.
5996 You may charge a fee for the physical act of transferring a copy, and
5997 you may at your option offer warranty protection in exchange for a fee.
5999 @item
6000 You may modify your copy or copies of the Program or any portion
6001 of it, thus forming a work based on the Program, and copy and
6002 distribute such modifications or work under the terms of Section 1
6003 above, provided that you also meet all of these conditions:
6005 @enumerate a
6006 @item
6007 You must cause the modified files to carry prominent notices
6008 stating that you changed the files and the date of any change.
6010 @item
6011 You must cause any work that you distribute or publish, that in
6012 whole or in part contains or is derived from the Program or any
6013 part thereof, to be licensed as a whole at no charge to all third
6014 parties under the terms of this License.
6016 @item
6017 If the modified program normally reads commands interactively
6018 when run, you must cause it, when started running for such
6019 interactive use in the most ordinary way, to print or display an
6020 announcement including an appropriate copyright notice and a
6021 notice that there is no warranty (or else, saying that you provide
6022 a warranty) and that users may redistribute the program under
6023 these conditions, and telling the user how to view a copy of this
6024 License.  (Exception: if the Program itself is interactive but
6025 does not normally print such an announcement, your work based on
6026 the Program is not required to print an announcement.)
6027 @end enumerate
6029 These requirements apply to the modified work as a whole.  If
6030 identifiable sections of that work are not derived from the Program,
6031 and can be reasonably considered independent and separate works in
6032 themselves, then this License, and its terms, do not apply to those
6033 sections when you distribute them as separate works.  But when you
6034 distribute the same sections as part of a whole which is a work based
6035 on the Program, the distribution of the whole must be on the terms of
6036 this License, whose permissions for other licensees extend to the
6037 entire whole, and thus to each and every part regardless of who wrote it.
6039 Thus, it is not the intent of this section to claim rights or contest
6040 your rights to work written entirely by you; rather, the intent is to
6041 exercise the right to control the distribution of derivative or
6042 collective works based on the Program.
6044 In addition, mere aggregation of another work not based on the Program
6045 with the Program (or with a work based on the Program) on a volume of
6046 a storage or distribution medium does not bring the other work under
6047 the scope of this License.
6049 @item
6050 You may copy and distribute the Program (or a work based on it,
6051 under Section 2) in object code or executable form under the terms of
6052 Sections 1 and 2 above provided that you also do one of the following:
6054 @enumerate a
6055 @item
6056 Accompany it with the complete corresponding machine-readable
6057 source code, which must be distributed under the terms of Sections
6058 1 and 2 above on a medium customarily used for software interchange; or,
6060 @item
6061 Accompany it with a written offer, valid for at least three
6062 years, to give any third party, for a charge no more than your
6063 cost of physically performing source distribution, a complete
6064 machine-readable copy of the corresponding source code, to be
6065 distributed under the terms of Sections 1 and 2 above on a medium
6066 customarily used for software interchange; or,
6068 @item
6069 Accompany it with the information you received as to the offer
6070 to distribute corresponding source code.  (This alternative is
6071 allowed only for noncommercial distribution and only if you
6072 received the program in object code or executable form with such
6073 an offer, in accord with Subsection b above.)
6074 @end enumerate
6076 The source code for a work means the preferred form of the work for
6077 making modifications to it.  For an executable work, complete source
6078 code means all the source code for all modules it contains, plus any
6079 associated interface definition files, plus the scripts used to
6080 control compilation and installation of the executable.  However, as a
6081 special exception, the source code distributed need not include
6082 anything that is normally distributed (in either source or binary
6083 form) with the major components (compiler, kernel, and so on) of the
6084 operating system on which the executable runs, unless that component
6085 itself accompanies the executable.
6087 If distribution of executable or object code is made by offering
6088 access to copy from a designated place, then offering equivalent
6089 access to copy the source code from the same place counts as
6090 distribution of the source code, even though third parties are not
6091 compelled to copy the source along with the object code.
6093 @item
6094 You may not copy, modify, sublicense, or distribute the Program
6095 except as expressly provided under this License.  Any attempt
6096 otherwise to copy, modify, sublicense or distribute the Program is
6097 void, and will automatically terminate your rights under this License.
6098 However, parties who have received copies, or rights, from you under
6099 this License will not have their licenses terminated so long as such
6100 parties remain in full compliance.
6102 @item
6103 You are not required to accept this License, since you have not
6104 signed it.  However, nothing else grants you permission to modify or
6105 distribute the Program or its derivative works.  These actions are
6106 prohibited by law if you do not accept this License.  Therefore, by
6107 modifying or distributing the Program (or any work based on the
6108 Program), you indicate your acceptance of this License to do so, and
6109 all its terms and conditions for copying, distributing or modifying
6110 the Program or works based on it.
6112 @item
6113 Each time you redistribute the Program (or any work based on the
6114 Program), the recipient automatically receives a license from the
6115 original licensor to copy, distribute or modify the Program subject to
6116 these terms and conditions.  You may not impose any further
6117 restrictions on the recipients' exercise of the rights granted herein.
6118 You are not responsible for enforcing compliance by third parties to
6119 this License.
6121 @item
6122 If, as a consequence of a court judgment or allegation of patent
6123 infringement or for any other reason (not limited to patent issues),
6124 conditions are imposed on you (whether by court order, agreement or
6125 otherwise) that contradict the conditions of this License, they do not
6126 excuse you from the conditions of this License.  If you cannot
6127 distribute so as to satisfy simultaneously your obligations under this
6128 License and any other pertinent obligations, then as a consequence you
6129 may not distribute the Program at all.  For example, if a patent
6130 license would not permit royalty-free redistribution of the Program by
6131 all those who receive copies directly or indirectly through you, then
6132 the only way you could satisfy both it and this License would be to
6133 refrain entirely from distribution of the Program.
6135 If any portion of this section is held invalid or unenforceable under
6136 any particular circumstance, the balance of the section is intended to
6137 apply and the section as a whole is intended to apply in other
6138 circumstances.
6140 It is not the purpose of this section to induce you to infringe any
6141 patents or other property right claims or to contest validity of any
6142 such claims; this section has the sole purpose of protecting the
6143 integrity of the free software distribution system, which is
6144 implemented by public license practices.  Many people have made
6145 generous contributions to the wide range of software distributed
6146 through that system in reliance on consistent application of that
6147 system; it is up to the author/donor to decide if he or she is willing
6148 to distribute software through any other system and a licensee cannot
6149 impose that choice.
6151 This section is intended to make thoroughly clear what is believed to
6152 be a consequence of the rest of this License.
6154 @item
6155 If the distribution and/or use of the Program is restricted in
6156 certain countries either by patents or by copyrighted interfaces, the
6157 original copyright holder who places the Program under this License
6158 may add an explicit geographical distribution limitation excluding
6159 those countries, so that distribution is permitted only in or among
6160 countries not thus excluded.  In such case, this License incorporates
6161 the limitation as if written in the body of this License.
6163 @item
6164 The Free Software Foundation may publish revised and/or new versions
6165 of the General Public License from time to time.  Such new versions will
6166 be similar in spirit to the present version, but may differ in detail to
6167 address new problems or concerns.
6169 Each version is given a distinguishing version number.  If the Program
6170 specifies a version number of this License which applies to it and ``any
6171 later version'', you have the option of following the terms and conditions
6172 either of that version or of any later version published by the Free
6173 Software Foundation.  If the Program does not specify a version number of
6174 this License, you may choose any version ever published by the Free Software
6175 Foundation.
6177 @item
6178 If you wish to incorporate parts of the Program into other free
6179 programs whose distribution conditions are different, write to the author
6180 to ask for permission.  For software which is copyrighted by the Free
6181 Software Foundation, write to the Free Software Foundation; we sometimes
6182 make exceptions for this.  Our decision will be guided by the two goals
6183 of preserving the free status of all derivatives of our free software and
6184 of promoting the sharing and reuse of software generally.
6186 @iftex
6187 @heading NO WARRANTY
6188 @end iftex
6189 @ifinfo
6190 @center NO WARRANTY
6191 @end ifinfo
6193 @item
6194 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
6195 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
6196 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
6197 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
6198 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
6199 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
6200 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
6201 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
6202 REPAIR OR CORRECTION.
6204 @item
6205 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
6206 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
6207 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
6208 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
6209 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
6210 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
6211 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
6212 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
6213 POSSIBILITY OF SUCH DAMAGES.
6214 @end enumerate
6216 @iftex
6217 @heading END OF TERMS AND CONDITIONS
6218 @end iftex
6219 @ifinfo
6220 @center END OF TERMS AND CONDITIONS
6221 @end ifinfo
6223 @page
6224 @appendixsec Appendix: How to Apply These Terms to Your New Programs
6226   If you develop a new program, and you want it to be of the greatest
6227 possible use to the public, the best way to achieve this is to make it
6228 free software which everyone can redistribute and change under these terms.
6230   To do so, attach the following notices to the program.  It is safest
6231 to attach them to the start of each source file to most effectively
6232 convey the exclusion of warranty; and each file should have at least
6233 the ``copyright'' line and a pointer to where the full notice is found.
6235 @smallexample
6236 @var{one line to give the program's name and a brief idea of what it does.}
6237 Copyright (C) @var{yyyy}  @var{name of author}
6239 This program is free software; you can redistribute it and/or modify
6240 it under the terms of the GNU General Public License as published by
6241 the Free Software Foundation; either version 2 of the License, or
6242 (at your option) any later version.
6244 This program is distributed in the hope that it will be useful,
6245 but WITHOUT ANY WARRANTY; without even the implied warranty of
6246 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6247 GNU General Public License for more details.
6249 You should have received a copy of the GNU General Public License
6250 along with this program; if not, write to the Free Software
6251 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
6252 @end smallexample
6254 Also add information on how to contact you by electronic and paper mail.
6256 If the program is interactive, make it output a short notice like this
6257 when it starts in an interactive mode:
6259 @smallexample
6260 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
6261 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
6262 This is free software, and you are welcome to redistribute it
6263 under certain conditions; type `show c' for details.
6264 @end smallexample
6266 The hypothetical commands @samp{show w} and @samp{show c} should show
6267 the appropriate parts of the General Public License.  Of course, the
6268 commands you use may be called something other than @samp{show w} and
6269 @samp{show c}; they could even be mouse-clicks or menu items---whatever
6270 suits your program.
6272 You should also get your employer (if you work as a programmer) or your
6273 school, if any, to sign a ``copyright disclaimer'' for the program, if
6274 necessary.  Here is a sample; alter the names:
6276 @example
6277 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
6278 `Gnomovision' (which makes passes at compilers) written by James Hacker.
6280 @var{signature of Ty Coon}, 1 April 1989
6281 Ty Coon, President of Vice
6282 @end example
6284 This General Public License does not permit incorporating your program into
6285 proprietary programs.  If your program is a subroutine library, you may
6286 consider it more useful to permit linking proprietary applications with the
6287 library.  If this is what you want to do, use the GNU Library General
6288 Public License instead of this License.
6290 @node Concept Index,  , GNU General Public License, Top
6291 @comment  node-name,  next,  previous,  up
6292 @unnumbered Index
6294 @printindex cp
6296 @bye