Fix Bookmarks cross-reference.
[planner-el.git] / planner-el.texi
blobd319e429327695be9be1ca41c0d69bcf44537307
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.42.
17 Copyright @copyright{} 2001, 2004, 2005, 2006, 2007, 2008, 2009, 2014 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 3.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 git::         
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::            planner-lisp.el
106 * Publishing::                  planner-publish.el
107 * Experimental Functions::      planner-experimental.el
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::                    planner-id.el
120 * Cyclic Tasks::                planner-cyclic.el
121 * Task Detail::                 
122 * Deadlines::                   planner-deadline.el
124 Organizing Your Tasks
126 * Multiple Projects::           
127 * Viewing Tasks::               
128 * Modifying Tasks::             
129 * Carrying Over Unfinished Tasks::  
130 * Task Numbering::              
131 * Task Ranks::                  planner-rank.el
132 * Grouping Tasks::              planner-trunk.el
134 Task Reports and Overviews
136 * Accomplishments::             planner-accomplishments.el
137 * Status Reports::              planner-report.el
138 * Task Overviews::              planner-tasks-overview.el
139 * <tasks> tag::                 
140 * planner-registry::            Keep track of annotations
141 * planner-zoom::                View and navigate tasks by time period
143 More about Notes
145 * Using Allout Mode::           Quickly navigating your notes
146 * <notes>::                     Note headlines
147 * <past-notes>::                Index of past notes
148 * Note Indices::                planner-notes-index.el
150 Publishing
152 * Publishing Planner pages::    planner-publish.el
153 * Publishing Calendars::        planner-calendar.el
154 * Authz Access Restriction::    planner-authz.el
155 * RSS Publication::             Sharing notes with planner-rss.el
156 * iCal Task Publication::       Sharing tasks with planner-ical.el
157 * RDF Publication::             planner-rdf.el
159 RDF Publication
161 * Publishing with planner-rdf::  
162 * planner-rdf Tags::            
163 * planner-rdf Usage Examples::  
165 Managing Your Information
167 * E-mail::                      Linking notes and tasks to messages
168 * Scheduling and Time::         Tracking appointments and where your time goes
169 * Finances::                    Display your account balances and more
170 * Contacts and Conversations::  BBDB and ERC
171 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
172 * Tracking Development::        
174 E-mail
176 * Unix mail::                   Unix mailboxes: planner-unix-mail.el
177 * Gnus::                        Gnus mail and news reader: planner-gnus.el
178 * VM::                          VM mail reader: planner-vm.el
179 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
180 * MH-E::                        MH-E mail reader: planner-mhe.el
181 * Rmail::                       Rmail: planner-rmail.el
183 Scheduling and Time
185 * Diary::                       Using the Emacs diary: planner-diary.el
186 * Appointments::                Appointments in plan pages: planner-appt.el
187 * Timeclock::                   Time tracking: planner-timeclock.el
188 * schedule.el::                 Project completion: planner-schedule.el
190 Diary
192 * Planner-Diary Advanced Features::  
194 Usage
196 * Task-based Appointments::     
197 * Schedule-based Appointments::  
198 * Viewing Appointments::        
199 * Appointment Updating on Save::  
200 * Appointment and Calendar Integration::  
201 * Appointment Hooks::           
203 Finances
205 * Ledger::                      Personal finances: planner-ledger.el
207 Contacts and Conversations
209 * BBDB::                        Contacts: planner-bbdb.el
210 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
212 Tracking Research and Resources
214 * W3m::                         Web browser: planner-w3m.el
215 * BibTeX::                      Bibliographies: planner-bibtex.el
216 * Bookmark::                    Bookmarks: planner-bookmark.el
218 Tracking Development
220 * Log Edit::                    Changelogs: planner-log-edit.el
221 * PSVN::                        svn changesets: planner-psvn.el
222 * XTLA::                        TLA changesets: planner-xtla.el
223 * Gnats::                       Gnats: The GNU bug reporting system
225 Advanced Configuration
227 * Customizing Your Day Pages::  Change your templates
228 * Variables to Customize::      Change various aspects of Planner behavior
229 * Ideas for Other Keybindings::  Add to and change the default keybindings
231 Reference Material
233 * Keeping Track of Time::       
234 * Other Interactive Functions::  
235 * Planner Keybindings::         Default keybindings for Planner
236 * Sample Configuration Files::  
238 Sample Configuration Files
240 * File Organization::           
241 * Bare-Bones Planning::         
242 * Bare-Bones Planning with Plan Pages::  
243 * Tasks on Plan Pages with Some Day Pages::  
244 * Hierarchical Tasks::          
246 @end detailmenu
247 @end menu
249 @node Preface, Introduction, Top, Top
250 @comment  node-name,  next,  previous,  up
251 @chapter Preface
253 This document describes Planner, which was written by John Wiegley and
254 is now maintained by John Sullivan (@pxref{Acknowledgements}).
256 This document is a work in progress, and your contribution will be
257 greatly appreciated. Please e-mail comments and suggestions to the
258 mailing list (@pxref{Getting Help}). In the subject line of your
259 e-mail, include the word @samp{Planner}.
261 This documentation is available in eye-pleasing formats including PDF
262 and HTML at @url{http://wjsullivan.net/static/doc/planner/}.
264 Documentation author and maintainer: John Sullivan
265 @email{john@@wjsullivan.net}
268 John Sullivan (johnsu01)@*
269 April 25, 2004
271 @node Introduction, Installation, Preface, Top
272 @comment  node-name,  next,  previous,  up
273 @chapter Introduction
275 Planner is an organizer and day planner for Emacs.  It helps you keep
276 track of your pending and completed tasks, daily schedule, dates to
277 remember, notes and inspirations. It is a powerful tool not only for
278 managing your time and productivity, but also for keeping within easy
279 keystroke reach all of the information you need to be productive. It can
280 even publish reports charting your work for your personal web page, your
281 conscience, or your soon-to-be-impressed boss.
283 In fact, because it uses as its building blocks simple plain-text files,
284 it is an incredibly modular and flexible tool capable of shaping and
285 handling your personal information in ways whose variety is limited only
286 by your imagination. Because of this, Planner has a very active and
287 generous community who regularly share their innovations with each
288 other. Many of these modules and extensions are included in the archive
289 that you will download. Once you get the basics down, you'll probably
290 want to explore some of them. But as you read this manual and work with
291 Planner, keep in mind that the basic core is actually very simple, and
292 it might be worth spending time with just that before delving into the
293 customizations.
295 Because they are plain text with very few requirements, the organizer
296 pages kept by Planner can be as basic or as detailed as you
297 like. Your pages can be simple to-do lists with no more additional
298 information than what you would scrawl on a napkin, or they can be a
299 highly technical affair involving hyperlinks, embedded Lisp code,
300 appointment schedules and RSS feeds. As with so much in Emacs, it's
301 all up to you.
303 To get started with Planner, you first need to download it, and possibly
304 also the packages it depends on (@pxref{Installation}).
306 @node Installation, Overview, Introduction, Top
307 @comment  node-name,  next,  previous,  up
308 @chapter Installation
309 @cindex installation
311 Planner depends on Muse. Information for downloading and installing
312 Muse can be found at
313 @url{http://mwolson.org/static/doc/muse.html}.
315 Planner and Muse are intended to work with version 21 or later of Emacs
316 and XEmacs.
318 Make sure that you use the latest Muse release.  Development code might
319 prove unstable.
321 @menu
322 * Getting the Files::           
323 * Creating Your Planner::       
324 * Components::                  
325 * Advanced Installation::       
326 @end menu
328 @node Getting the Files, Creating Your Planner, Installation, Installation
329 @comment node-name,  next,  previous,  up
330 @section Getting the Files
332 Currently, there are three ways to obtain and install Planner. You can
333 install it from a source archive, git, or Debian package.
335 @menu
336 * Installing from a Source Archive::  
337 * Installing from git::         
338 * Installing from Debian::      
339 @end menu
341 @node Installing from a Source Archive, Installing from git, Getting the Files, Getting the Files
342 @comment node-name,  next,  previous,  up
343 @subsection Installing from a Source Archive
344 @cindex source code archive, installing from
346 You can install Planner from the source archive packaged and
347 distributed directly by the maintainer. This archive is provided in
348 both @file{.tar.gz} and @file{.zip} format.  If you don't know where to
349 extract these archives, create a @file{~/elisp} directory, and extract
350 them there.
352 @enumerate
353 @item
354 Download and unpack either
355 @url{http://mwolson.org/static/dist/planner-latest.tar.gz} or
356 @url{http://mwolson.org/static/dist/planner-latest.zip}.
358 @item
359 Likewise for
360 @url{http://mwolson.org/static/dist/muse-latest.tar.gz} or
361 @url{http://mwolson.org/static/dist/muse-latest.zip}.
363 @item
364 Likewise for
365 @url{http://mwolson.org/static/dist/remember-latest.tar.gz} or
366 @url{http://mwolson.org/static/dist/remember-latest.zip}.
368 @item Edit your @file{~/.emacs} (@file{_emacs} on Microsoft Windows).
370 Replace @file{/path/to} with wherever you extracted the files.
372 @example
373 ;; Add the directories to your load path
374 (add-to-list 'load-path "/path/to/muse/lisp")
375 (add-to-list 'load-path "/path/to/planner")
376 (add-to-list 'load-path "/path/to/remember")
378 ;; Load planner
379 (require 'planner)
380 @end example
381 @end enumerate
383 @subheading Updating Your Version
385 Download a new version and extract it over the old directory. Don't
386 forget to delete any byte-compiled files (@file{*.elc}) in the
387 directories (which can be accomplished by running ``make clean'') so
388 that the new code will be used.
390 @node Installing from git, Installing from Debian, Installing from a Source Archive, Getting the Files
391 @comment node-name,  next,  previous,  up
392 @subsection Installing from git
394 @cindex git version control system, using
395 The git version control system allows you to keep up-to-date with the
396 latest changes to the development version of Planner.  It also allows
397 you to contribute changes (via commits, if you are have developer access
398 to the repository, or via patches, otherwise).  If you would like to
399 contribute to Muse development, it is highly recommended that you use
400 git.
402 Debian users can install git with @kbd{apt-get install git-core}.
404 If you are new to git, you might find this tutorial helpful:
405 @uref{http://www.kernel.org/pub/software/scm/git/docs/tutorial.html}.
407 Downloading Planner with git and staying up-to-date involves the
408 following steps.
410 @example
411 # Retrieve Muse
412 git clone git://repo.or.cz/muse-el.git muse
414 # Retrieve Planner
415 git clone git://repo.or.cz/planner-el.git planner
417 # Retrieve Remember
418 git clone git://repo.or.cz/remember-el.git remember
420 # If that didn't work (due to a restrictive firewall), then try the
421 # following instead:
423 # git clone http://repo.or.cz/r/muse-el.git muse
424 # git clone http://repo.or.cz/r/planner-el.git planner
425 # git clone http://repo.or.cz/r/remember-el.git remember
426 @end example
428 Then add the following lines to your @code{~/.emacs}:
430 @example
431 ;; Add the directories to your load path
432 (add-to-list 'load-path "/path/to/muse/lisp")
433 (add-to-list 'load-path "/path/to/planner")
434 (add-to-list 'load-path "/path/to/remember")
436 ;; Load planner
437 (require 'planner)
438 @end example
440 You can also browse Planner's git repository on the web at
441 @url{http://repo.or.cz/w/planner-el.git}.
443 @subheading Updating Your Version
444 @cindex git, updating with
446 To stay up-to-date using git, here are some commands that might be
447 useful.
449 To list upstream changes not in local copy:
451 Do this whenever you want to see whether new changes have been committed
452 to Planer.  If you wish, you may skip this step and proceed directly to
453 the ``update'' step.
455 @example
456 # Change to the source directory you are interested in. Example:
457 cd muse/
459 # Fetch new changes from the repository, but don't apply them yet
460 git fetch origin
462 # Display log messages for the new changes
463 git log HEAD..origin
464 @end example
466 ``origin'' is git's name for the location where you originally got Muse
467 from.  You can change this location at any time by editing the
468 @file{.git/config} file in the directory where the Planner source was
469 placed.
471 To update to the latest version:
473 @example
474 cd muse; git pull
475 cd ../planner; git pull
476 cd ../remember; git pull
477 @end example
479 Don't forget to either rerun the @command{make} command or delete the
480 byte-compiled files (@file{*.elc}) in the directories, so that the new
481 code will be used.
483 @node Installing from Debian, , Installing from git, Getting the Files
484 @comment node-name,  next,  previous,  up
485 @subsection Installing from Debian
486 @cindex Debian package
488 Debian packages for Planner, Muse, and Remember are available in
489 Debian proper as the @code{planner-el} and @code{muse-el} packages,
490 respectively.
492 If you wish to try experimental packages, add the following lines to
493 your @file{/etc/apt/sources.list}
495 @example
496 deb http://mwolson.org/debian/ ./
497 @end example
499 Then, do the following steps as root:
501 @example
502 apt-get update
503 apt-get install muse-el
504 apt-get install planner-el
505 @end example
507 If you get some warning about the key not being trusted, you can either
508 ignore it or do the following.
510 @example
511 gpg --keyserver pgpkeys.mit.edu --recv-key f3a8d319
512 gpg -a --export f3a8d319 | sudo apt-key add -
513 @end example
515 @subheading Updating Your Version
516 @cindex Debian package, updating
518 If you installed Planner from Debian, do @kbd{apt-get update; apt-get
519 upgrade} to upgrade all packages that can be upgraded, or @kbd{apt-get
520 update; apt-get install planner-el} to upgrade just planner-el.
522 @node Creating Your Planner, Components, Getting the Files, Installation
523 @section Creating Your Planner
525 Now that you have installed the files for Planner and Muse, you need
526 to set some options to create your first planner.
528 Muse thinks in terms of projects. Each project consists of a group of
529 documents and certain information associated with these
530 documents. Planner is organized as a project within Muse. So, you need
531 to tell Muse a bit about it.
533 Add something like the following code to your @file{.emacs} file.
535 First, give your new Planner project a name. In this case, we use the
536 name, ``WikiPlanner''.
538 @example
539 (setq planner-project "WikiPlanner")
540 @end example
542 Next, add an entry for your project to Muse's master list of
543 projects. Don't forget to use your own name here in place of
544 ``WikiPlanner'' if you have chosen something different.
546 @example
547 (setq muse-project-alist
548       '(("WikiPlanner"
549          ("~/Plans"           ;; where your Planner pages are located
550           :default "TaskPool" ;; use value of `planner-default-page'
551           :major-mode planner-mode
552           :visit-link planner-visit-link)
554          ;; This next part is for specifying where Planner pages
555          ;; should be published and what Muse publishing style to
556          ;; use.  In this example, we will use the XHTML publishing
557          ;; style.
559          (:base "planner-xhtml"
560                 ;; where files are published to
561                 ;; (the value of `planner-publishing-directory', if
562                 ;;  you have a configuration for an older version
563                 ;;  of Planner)
564                 :path "~/public_html/Plans"))))
565 @end example
567 This code should work fine as-is for you as long as the directories
568 you see exist, and as long as you have no other Muse projects besides
569 your planner.
571 The first directory (@file{~/Plans}) is the directory where the
572 source files for your planner will reside. This is the directory where
573 you will actually visit files and edit them.  These files must have a
574 ``.muse'' extension.
576 The second directory (@file{~/public_html/Plans}) is the directory
577 where your planner files will be published by Muse as XHTML
578 (@pxref{Publishing}).
580 After you have added this code, make sure to either evaluate it or
581 restart Emacs.
583 @node Components, Advanced Installation, Creating Your Planner, Installation
584 @comment node-name,  next,  previous,  up
585 @section Components
587 Now that you have the archive, let's look at what's in it.
589 There should be three directories, named @file{planner}, @file{muse} and
590 @file{remember}.
592 In the @file{planner/} directory, you'll see many files with names like
593 @file{planner-gnus.el}. These are extra modules and extensions for
594 Planner, which you can use to tailor Planner to fit your desired
595 planning and information management habits.
597 In the @file{muse/lisp} directory, you'll see many files with names like
598 @file{muse-blosxom.el}. As in @file{planner/}, these are optional
599 modules and extensions.
601 A minimal working installation includes just @file{planner/planner.el}.
603 You need @file{planner.el} because it provides the core functions for
604 handling tasks, notes, and page navigation. You need @file{Emacs Muse}
605 because it provides the functions used to display your pages (both in an
606 emacs buffer and as HTML), and for connecting them to each other. More
607 specifically, it enables you to have hyperlinks and formatting in your
608 emacs buffers even though the actual files you are working with are
609 saved in plain text. These abilities are used in Planner to format your
610 planner pages the way you like, to create links from your tasks and
611 notes to the materials and projects they refer to, and to optionally
612 ``publish'' your pages in different formats, including HTML.
614 In the @file{remember/} directory are files related to
615 RememberMode. RememberMode does not depend on Planner or Muse, but works
616 best with Planner installed. It is not required in order to use Planner,
617 but it is used by many Planner users to record notes and information to
618 their planner pages.
620 If you are curious, you can open each file in these directories and read
621 the comments at the top, to get an idea of what each extension is used
622 for. They are also all detailed later in this manual.
624 @node Advanced Installation,  , Components, Installation
625 @comment  node-name,  next,  previous,  up
626 @section Advanced Installation
628 Once you decide you want to keep Planner around for a while, there
629 are two additional steps you can take to make using it easier and more
630 efficient. These steps are optional.
632 @itemize
633 @cindex installing the info file
634 @cindex @file{planner-el.texi}, installing
635 @cindex @file{planner-el.info}, installing
636 @item You can make this document, the Planner info file, appear in
637 the index of info files you see when you type @command{M-x info} or
638 @kbd{C-h i} in Emacs. The instructions for doing this vary depending
639 on whether you have permission to edit certain files on your
640 system. Follow the instructions in @ref{Installing an Info File, ,
641 ,texinfo, Texinfo}, using something like:
643 @example
644 * Planner: (path/to/planner/Planner). Organizer/day planner
645 for Emacs.
646 @end example
648 for the new entry in the info @file{dir} file.
650 @cindex byte compiling
651 @item You can byte-compile @file{planner.el}, @file{Muse},
652 @file{remember.el}, or any of the optional modules you frequently use,
653 in order to improve the speed of their execution.  Basically, all you
654 need to do is (1) change the directory for each project listed in
655 @file{scripts/planner-build.el}, (2) copy @file{Makefile.defs.default}
656 to @file{Makefile.defs} and edit it as needed, and (3) run
657 @command{make} from the command line. To read more detail about byte
658 compilation, see @ref{Byte Compilation, , ,elisp, Emacs Lisp Reference
659 Manual}.
661 @end itemize
663 @node Overview, Getting Started, Installation, Top
664 @comment node-name,  next,  previous,  up
665 @chapter Overview
667 Planner is a plain-text hyperlinked personal information manager
668 for Emacs that helps you keep track of tasks, notes, and other
669 information. People use Planner to support different ways of planning
670 one's day, from Franklin-Covey and David Allen's Getting Things Done
671 to home-brew hacks. Planner is even used to manage information not
672 normally handled by a personal information manager, like bugtracking,
673 time tracking, and team data. If you start by using Planner as a basic
674 TODO and notes manager, you might find other ways it can help you
675 improve your process.
677 You can use Planner to keep track of your tasks, schedule, notes,
678 and other information you want to store in hyperlinkable text files.
679 You can get the most benefit out of a personal information manager if
680 you use it everyday. Most people add @code{(plan)} to the end of their
681 @file{~/.emacs} so that Planner shows today's schedule and
682 unfinished tasks whenever Emacs starts. If you leave your Emacs
683 running for more than 24 hours, try to get into the habit of running
684 @code{plan} at least once a day.
686 Because your time is important, Planner tries to minimize
687 distractions, making it easier for you to jot down tasks and notes
688 without being distracted from your work. People often make tasks based
689 on the current buffer, so Planner tries to create hyperlinks to
690 whatever you're looking at so that you can jump back to it easily. The
691 @ref{Getting Started} tutorial will show you how to set that up for
692 both tasks and notes.
694 The customizability of Planner means you can make your personal
695 information manager truly personal. Planner strives to be as flexible
696 as possible, and we would love to adapt Planner to fit your needs.
697 Browse through our mailing list (@pxref{Getting Help}) to
698 find out how other people are using Planner, and post your feature
699 requests and bug reports there!
701 Planner is just a tool. It does not dictate a particular way of
702 planning, although it supports some ways better than it supports
703 others. If you want to take some time thinking about planning, read
704 the following reflections for inspiration and ideas. On the other
705 hand, if you want to hit the ground running, see @ref{Getting
706 Started}. If you already have a specific way of planning in mind,
707 check out @ref{Sample Configuration Files}.
709 @menu
710 * Planning based on the Franklin-Covey Approach::  
711 * Why Use Planner::             
712 @end menu
714 @node Planning based on the Franklin-Covey Approach, Why Use Planner, Overview, Overview
715 @comment  node-name,  next,  previous,  up
716 @section Planning Based on the Franklin-Covey Approach
717 @cindex philosophy of planning
719 (This is an edited and updated version of an essay originally by John
720 Wiegley. Read it if you want to get some insights into one way of
721 planning. You can skip this if you want to go straight to planning your
722 day.)
724 What is planning?  It can be a nebulous thing to define.  In its
725 essence, however, it is very simple: it's how we achieve our dreams.
727 Our days are filled with time, and hence with actions, whether they
728 be of a mental or physical sort.  But there are two kinds of
729 action: reactive and creative.  Reactive action is a response to
730 the environment, a reaction to stimulus.  Had we enough instincts
731 to ensure survival, we could live according to this kind of action
732 alone.  It is a mode of behavior we share with every living
733 species.
735 The opposite to reactivity is creativity, when we decide upon a
736 course of action that is a wholly a product of personal choice.  We
737 then make decisions as to the steps needed to make this wish a
738 reality.  This is planning.  Planning is essentially a creative
739 endeavor at every step.
741 First, create the idea, what you want to achieve.  Very short-term
742 ideas do not need much more than thinking about how to do it.  But
743 long-term ideas require planning, since the mind cannot contain all
744 of the details.
746 Second, decide how the idea maps into the circumstances you find
747 yourself in.  Some environments will assist your plan, others
748 hinder it.  But step by step, identify every barrier to the
749 realization of your idea, and devise a countermeasure to overcome
750 it.  Once you've mapped things out from beginning to end,
751 accounting for unknowables as best you can, you now have your plan.
753 Third is to break the stages of the plan into parts that are not
754 overwhelming in their complexity.  It is at during this phase that
755 a plan is turned into task items, each to be accomplished within
756 the span of one day's time.  If a task requires several days, break
757 it up further.  The smaller it is, the less your mind will recoil
758 from attempting it.
760 Fourth is to monitor your progress, identifying problems and
761 correcting for them as you go.  Some plans start out unachievable,
762 and remain that way indefinitely, due to a simple lack of
763 observation.  If nothing is working for you, change it.  Otherwise,
764 your plan is merely a well-crafted wish.
766 Fifth is just to do the work, and be patient.  All good plans take a
767 great deal of time, and *cannot* happen immediately.  The groundwork
768 must be laid for each step, or else it will rest on an insecure
769 foundation.  If you follow your plan doggedly, applying some time to
770 it each day or week, it @emph{will} happen.  Remember the story of the
771 tortoise and the hare.  I've even written a short essay on the
772 necessity of gradual accomplishment, which can be found at
773 @url{http://www.johnwiegley.com/2004/03/advancing-the-process.html}.
775 How can this software help?  Computers are ideal for manipulating
776 information, since they allow you to change things without erasing
777 or rewriting.  And since all plans change quite a bit during their
778 implementation, a planning program can be very helpful.
780 Start by installing Planner and Muse (@pxref{Installation}).
782 Now, conceive your idea.  I can't believe there's nothing you want
783 from life.  More peace, time to enjoy the world, an end to war?
784 Everyone wants something.  Search deeply, and you will find
785 countless unhoped wishes lurking therein.  Choose one for now, and
786 think on it for a while.
788 Then open a file (using @kbd{C-x C-f}) within the directory you named in
789 your @code{muse-project-alist}. Make sure the file has a @file{.muse}
790 extension so that Emacs will automatically recognize it as a planner
791 file. Name the file after your plan, such as @file{BetterHealth.muse}.
793 Choose an idea you really want to accomplish.  Struggle to
794 differentiate between the things you want because others want them,
795 and the things you want for yourself.  It takes quite an effort, and
796 may require a long time before you notice the difference.  Many people
797 want to be more healthy to be more attractive, which is an externally
798 driven goal.  Unless @emph{you} really want to accomplish what you
799 envision, the odds are you will fail.  Only our own wishes and dreams
800 possess enough personal energy to see themselves to fruition.  What
801 happens to many of us is simply that we never become conscious of
802 these dreams: what we love, what we desire most.  When I talk to
803 friends, so much of what I hear is things they want because they feel
804 they should want them.  There's just not enough energy there to pursue
805 a good plan, because nearly all of it is negative energy.
807 Do you know what you really want?  Don't worry, many people don't.
808 It's not a question anyone really wants us to pursue, because often
809 we don't want what others do; it doesn't contribute to the social
810 welfare, and all that nonsense.  Somehow we always forget that
811 what's good for the social welfare now, was someone else's crazy
812 dream a hundred years ago.  The human aversion to fundamental
813 change is always one's greatest enemy, so don't waste any time
814 getting bitter about it.
816 For the sake of argument I assume you really do want to be
817 healthier, because you've fallen in love with the ideal of purity,
818 or you understand the connection between your physical self and the
819 world around you, and how this can open up your spirit to desiring
820 more.  I assume.  :)
822 So you're in a Wiki file called @file{BetterHealth}.  Start typing.
823 Type anything related to your idea: what you think about it, your
824 ideas on it, @emph{and especially what the end will look like}.  If
825 you can't visualize the end, you can't plan, since planning is about
826 drawing a line between now and then.
828 When you've typed enough to gain a vision of your goal, start
829 drafting what the possible intermediate steps might be.  Then stop,
830 get up, walk around, enjoy life, and come back to it.  Taking a
831 long time at the beginning is not a bad idea at all, as long as
832 it's not forever.
834 As you chew on your idea, it will begin to become more and more
835 concrete.  You'll have ideas about the smallest pieces, and ideas
836 about the biggest pieces.  Keep going until it starts to take shape
837 before you, and you can see yourself in your mind's eye moving from
838 the present into the future.  Write down this progression, and the
839 sorts of things you might encounter along the way.
841 As you continue, you'll naturally discover discrete phases, or
842 ``milestones'' as managers love to call them.  These are very
843 important, because they let you know you're making progress.  I
844 recommend having a big party with friends every time you achieve a
845 milestone.  A typical plan might have between three and ten.
847 Between the milestones are the bigger pieces of your plan. You might
848 find it convenient to name these pieces using MixedCase words. Try
849 adding these lines to your @file{.emacs} or @file{_emacs} file.
851 @example
852 (require 'muse-wiki)
853 (setq muse-wiki-allow-nonexistent-wikiword t)
854 @end example
856 You'll notice that Emacs colors and underlines them for you. Like,
857 FindGoodGym. Hit return on this highlighted word, and you'll find
858 yourself in another, blank file. In this file, start drafting your
859 sub-plan, just as you did with the larger plan. You should find it
860 easier now, since the scope is smaller.
862 As you break down further, you'll notice simple little things that
863 need to get done.  These are your tasks.  Every plan is a
864 succession of tasks.  The difference from reactivity is that each
865 task is part of the larger plan. This is what it means to be
866 systematic: that everything you do helps further your plan.  If you
867 have tasks in your day that contribute to no plan, they are
868 reactive.  Of course, life is full of these, but don't let them
869 take up more than 20% of your day.  If you allow yourself to be
870 dominated by reactive tasks, you'll regret it at the end of your
871 life.  I don't know this personally, but I do know that striving
872 for one's dreams -- and seeing them come to fruition -- is the
873 greatest joy a man can possess.  It is the essence of freedom, of
874 living, of creation.  Reactivity is the opposite of this, and
875 serves only to drain our energy and slacken our spirits.
877 Now that you've thought of a simple task, type @kbd{C-c C-t}. This
878 will ask for a brief description of the task, and when you plan to do
879 it. If you hit @key{RETURN} at the question @samp{When}, it assumes
880 you mean today. It will also pop up a three-month calendar at this
881 question, so you can see where your free days are. Make sure you set
882 the variable @code{mark-diary-entries-in-calendar} to @samp{t} in your
883 @file{.emacs} (or @file{_emacs}) file. This way, you can see which
884 days your appointments fall on. (Read about the Emacs Calendar and
885 Diary in @ref{Calendar/Diary, , , Emacs, GNU Emacs Manual}.)
887 @example
888 (setq mark-diary-entries-in-calendar t)
889 @end example
891 Once your task is in there, go back to your plan and keep
892 generating more tasks.  Generate them all!  Fully describe---as
893 tasks---everything necessary to bring your sub-plan to completion.
894 Don't create tasks for the other sub-plans.  You may have good idea
895 of what they'll look like, but don't bother rendering them into
896 tasks just yet.  Things will change too much between now and then,
897 for that to be a good use of your time.
899 Is your sub-plan now rendered into all of the tasks necessary to
900 reach your first milestone?  Great!  That is the purpose of
901 planner.el.  The rest is really up to you.  If you find that you
902 keep putting things off, and never do them, that's the surest sign
903 you're planning for someone else's dream, and not your own.
905 Here are some of the things planner.el can do, to help you manage
906 and track your tasks:
908 At the beginning of every day, type @kbd{M-x plan}.  This will jump
909 you to the top of the most recent task list before today.  If you
910 skipped a bunch of days, you'll have to open up those files on your
911 own.
913 Probably some of the tasks that day won't be finished -- that's OK.
914 Learning to properly estimate time is a magical, mystical art that few
915 have mastered.  Put your cursor on those undone tasks, and type
916 @kbd{C-c C-c}.  This will move them into today's task page.  You can
917 jump to today's task page at any time by typing @kbd{C-c C-n} (from a
918 Wiki or planning page).  I heartily recommend binding @kbd{C-c n}, to
919 jump you to this page from anywhere:
921 @example
922 (define-key mode-specific-map [?n] 'planner-goto-today)
923 @end example
925 As you look at your task sheet each day, the first thing to do is to
926 ``clock in'' to one of them. This isn't necessary, and is only helpful
927 if you're around your computer a lot. But by typing @kbd{C-c C-i}
928 (assuming you have @file{timeclock.el} on your load-path), it will log
929 the time you spend working on your sub-plan (@pxref{Time Intervals, , ,
930 Emacs, GNU Emacs Manual}). This is helpful for viewing your progress.
931 Type @kbd{C-c C-o} to clock out.
933 @kbd{C-M-p} and @kbd{C-M-n} will move a task up and down in priority.
934 Priority is represented by a letter A through C.  'A' tasks mean they
935 must be done that day, or else your plan is compromised and you will
936 have to replan.  'B' means they should be done that day, to further the
937 plan, otherwise things will be delayed.  'C' means you can put off the
938 task if you need to, although ultimately it will have to be done.
940 For reactive tasks, the letters mean something different: 'A' means
941 you must do it today, or somebody will roast your chestnuts over an
942 open fire.  'B' means you should do it today, or else someone will
943 be practicing patience at the day's end.  'C' means no one will
944 notice if you don't do it.
946 Again, reactive tasks are ENEMIES OF PLANNING.  Really, until you
947 see them that way, circumstances will push you around and steal
948 your life away.  We have only so many years to use, and everyone is
949 greedy to take them.  It's insidious, almost invisible.  A healthy
950 dislike of reactivity will do wonders for organizing your affairs
951 according to their true priority.
953 The last word that needs to be said concerns ``roles''.  Every person
954 stands in several positions in his life: husband, employee, manager,
955 etc.  These roles will tend to generate tasks not associated with any
956 immediate plan, but necessary to maintain the health and functioning
957 of the role.  My suggestion is to keep this the smallest possible
958 number, and fulfill those that remain well.  How you decide to
959 apportion your time between pursuing grand designs, and fostering deep
960 relationships, is a personal matter.  If you choose well, each will
961 feed the other.
963 I mention this to point that reactivity is something not
964 exclusively associated with tasks that have no master plan, because
965 being a father, for example, is something that rarely proceeds
966 according to orderly plans.  But the role of father itself is its
967 own plan, whose goal is ``to be the best one can'', and whose
968 component tasks are spending time on whatever comes up.  It is, in
969 a sense, an implicit plan.  But reactive tasks follow no plan at
970 all; they are parasites of time that suck the spirit away, whereas
971 properly chose roles actually help fulfill one's own inner needs.
972 At least, this is what I believe.
974 @defun plan force-days
975 Start your planning for the day, beginning with the last day's tasks.
977 If @code{planner-carry-tasks-forward} is non-nil, find the most recent
978 daily page with unfinished tasks and reschedule those tasks to
979 the current day.  If @var{force} is non-nil, examine all past daily
980 pages for unfinished tasks.
982 If @code{planner-carry-tasks-forward} is nil, visit the most recent
983 daily page.  If a daily page for today exists, visit that instead.
985 If @var{force-days} is a positive integer, scan that number of days.
986 If @var{force-days} is @samp{t}, scan all days.
988 @end defun
990 @node Why Use Planner,  , Planning based on the Franklin-Covey Approach, Overview
991 @comment  node-name,  next,  previous,  up
992 @section Why Use Planner?
993 @cindex Planner, why use
995 You can skip this essay if you just want to get started, or read it
996 for some insights into why the previous maintainer is crazy about it.
998 Why I Use Planner, by Sacha Chua
1000 I thought about why I liked Planner. Planner as a TODO manager
1001 isn't particularly special. Although I can assign tasks to categories
1002 and see a breakdown of what projects are taking up my time, Evolution
1003 and Microsoft Outlook provide more powerful task support. In other
1004 task managers, you can e-mail tasks, assign multiple categories and
1005 fill in all sorts of metadata. You can even synchronize your tasks
1006 with devices like a phone or PDA. So why use Planner?
1008 I realized that integration into my way of life and automatic context
1009 clues are what really make planner tasks worth it for me. I don't have
1010 to switch to another application to create a task. I can just hit a
1011 keyboard shortcut. Planner uses a minibuffer to get the task
1012 description. My windows are not rearranged in any way, and I can look
1013 at the data that's relevant to a task. Not only that, tasks
1014 automatically pick up context clues, like whom I'm talking to on IRC
1015 or the file I'm editing at the moment. This cuts down on the explicit
1016 context I need to include and makes it easier for me to bring up the
1017 task again.
1019 As a scheduler, Planner is also not particularly distinguished.
1020 Sure, it can display my @file{~/diary}, but for that matter so can
1021 @kbd{M-x diary}. Evolution and Outlook can give me a more graphical
1022 view of my time, sync with my PDA, and coordinate my schedule with
1023 other people. Those applications support detailed schedule entries
1024 with powerful cyclic options. On the other hand, Planner gives me
1025 a personal, plain text view and (at least the way I use it) requires
1026 me to edit a separate file to add new appointments. (I've defined a
1027 few shortcut keys to deal with this.) However, it does have one
1028 advantage---my schedule is always loaded. I used to use Outlook on
1029 Windows, but having my schedule in a separate application meant that I
1030 actually looked at it very rarely, as I had turned off reminders
1031 because they got annoying.
1033 Planner's notes, however, are what really convinced me. I can hit
1034 a keyboard shortcut from anywhere and type my notes into a buffer
1035 which automatically keeps context information. After typing the note,
1036 I can then categorize it. I think that the critical thing here is that
1037 interruptions---fleeting thoughts---don't break my flow. I can just
1038 pop up a remember buffer, stow that thought away somewhere, and go
1039 back to it whenever I want. In contrast, creating a note in Outlook
1040 means switching out of my application, making a couple of keystrokes,
1041 typing the note in, and then switching back. The context switches make
1042 it hard to keep track of where I am and what I'm supposed to remember.
1043 Not only that, I need to enter context by hand. Even though I can
1044 color my notes and reorganize them in Outlook, I find the context
1045 switch too expensive. I used to keep notes in other knowledge
1046 management tools as well. Some applications allowed me to
1047 drag-and-drop links into the current note, and that was cool. But that
1048 required a manual action, and those applications didn't feel
1049 integrated into my way of working. (Note: You'll need remember.el for
1050 this.)
1052 I guess that's why I like Planner. Unlike other organizers which
1053 don't know anything about the applications I use, Planner tries
1054 its best to integrate into the way I work, and it's easy to extend.
1055 Fortunately I do almost all my work in Emacs, so I can think of my
1056 organizer as integrated into my e-mail client, Internet Relay Chat
1057 client, web browser, file editor and even games. It automatically
1058 picks up context clues from these applications and allows me to easily
1059 jump back to relevant files. It doesn't distract me. It allows me to
1060 key in data and then it gets out of my way.
1062 (That said, it's perfectly okay to use Planner even if you don't live
1063 in Emacs.)
1065 The processing that happens in the background is a bonus, and
1066 publishing my task list and notes online has greatly helped me. It
1067 gives other people a way to see what I'm working on and what I've
1068 planned for the future. Occasionally people write in with additional
1069 resources and helpful tips. (Again, this is purely optional. Many
1070 people don't publish their planner pages. Other people use really
1071 fine-grained access control.)
1073 I think the greatest feature of Planner, though, is its user
1074 community. Because Planner can be easily modified, we can experiment
1075 with a lot of new ideas quickly, and we can tailor Planner to fit our
1076 needs. I love checking my @samp{planner-el-discuss} mail and finding
1077 out how people have tweaked Planner or would like to tweak Planner,
1078 and I've learned a lot by exchanging reflections on organizing one's
1079 life.
1081 I really wasn't an organization freak before I started using Planner.
1082 I often forgot to do my homework or answer important mail. I still
1083 procrastinate now, but at least it's all being kept track of
1084 somewhere! I also really like how Planner lets me to gradually improve
1085 how I'm doing things, and I feel I've come a long way.
1087 Please try it out! We'd love to hear how Planner can become
1088 @emph{your} personal information manager.
1090 @node Getting Started, More about Planner, Overview, Top
1091 @comment  node-name,  next,  previous,  up
1092 @chapter Getting Started
1094 At the end of this tutorial, you will be able to use Planner and
1095 related modules to keep track of your tasks, schedules and notes, all
1096 within the convenience of Emacs.
1098 There are two kinds of pages in a Planner wiki. Day pages show tasks,
1099 schedule, and notes for the day, while plan pages organize related tasks
1100 and notes into a single page.
1102 If you have not yet added planner to your @file{~/.emacs}, add the
1103 following lines:
1105 @example
1106 (add-to-list 'load-path "/path/to/muse/lisp")
1107 (add-to-list 'load-path "/path/to/planner")
1108 (add-to-list 'load-path "/path/to/remember")
1109 (require 'planner)
1110 @end example
1112 This will bring up the most recent day page with unfinished tasks or
1113 create a new day page if necessary. By default, planner pages are
1114 stored in @samp{~/Plans}.
1116 @menu
1117 * Tasks::                       
1118 * Schedule::                    
1119 * Notes::                       
1120 * Hyperlinks::                  
1121 * Example Page::                
1122 * Review::                      
1123 @end menu
1125 @node Tasks, Schedule, Getting Started, Getting Started
1126 @section Tasks
1128 Let us start by creating a task labelled
1130 @example
1131 Join http://mail.gna.org/listinfo/planner-el-discuss/
1132 @end example
1134 From anywhere (even this info buffer!), call @kbd{M-x
1135 planner-create-task-from-buffer} to create a new task. Fill in the
1136 description and choose a date by:
1138 @itemize
1139 @item typing 1 - 31 to put the task on that day of the month,
1140 @item accepting the default (today) by pressing RET,
1141 @item selecting the date with mouse-1,
1142 @item
1143 typing +n (where in is an integer) to schedule the task in n days time,
1145 @item typing nil to make an undated task.
1146 @end itemize
1148 For now, accept the default (@samp{today}) by pressing @key{RET}.
1150 You will then be prompted for a plan page. Plan pages gather related
1151 tasks and notes, giving you an overview of what you've done so far.
1152 You can accept the default TaskPool, create your own plan page, or
1153 specify nil to make a task that is not associated with a plan page.
1154 For now, accept the default (@samp{TaskPool}) by pressing RET.
1156 You have created your first task. View today's page with
1157 @kbd{M-x planner-goto-today}. You will see a line of the form
1159 @example
1160 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1161 @end example
1163 If you created the task from this page, then there will be an additional
1164 annotation:
1166 @example
1167 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ : Tasks (TaskPool)
1168 @end example
1170 The URL, @samp{TaskPool} and @samp{Getting Started} are
1171 hyperlinks. You can use TAB and S-TAB to navigate between them and RET
1172 to follow the link.
1174 Create more tasks using @kbd{M-x planner-create-task-from-buffer}.
1175 This is bound to @kbd{C-c C-t} in @code{planner-mode} pages
1176 for your convenience. For example, create the following tasks:
1178 @itemize
1179 @item
1180 @samp{Describe my current way of working and how I would like to work},
1181 for three days from now (@samp{+3}),
1182 @item
1183 @samp{Learn how to schedule a task}, an undated task (@kbd{nil}) on the
1184 TaskPool page,
1185 @item
1186 @samp{Browse through the Planner info manual} for today (@kbd{.} or
1187 accept the defaults), and
1188 @item
1189 @samp{Add (plan) to the end of my [[~/.emacs]]} for today, but without a
1190 plan page (specify @kbd{nil} at the plan page prompt)
1191 @end itemize
1193 Tip: I bind planner-create-task-from-buffer to "F9 t" so that I can
1194 easily call it from anywhere. You can do that with this elisp fragment:
1195 @code{(global-set-key (kbd "<f9> t") 'planner-create-task-from-buffer)}
1197 Next, visit the TaskPool by:
1199 @itemize
1200 @item
1201 @key{TAB}-bing or using the cursor and typing @key{RET} to follow the
1202 link,
1203 @item @kbd{C-x C-f TaskPool RET} to use @code{find-file}, or
1204 @item @kbd{C-c C-f TaskPool RET} to use @code{muse-project-find-file}
1205 @end itemize
1207 You can see an overview of the tasks as scheduled on different days.
1208 Unlike many personal information managers that store all of your data
1209 in one file and then perform magic in order to present different
1210 views, Planner uses plain text files. The data is duplicated and kept
1211 updated by functions. This makes it simpler and easier to modify,
1212 because what you see is (almost) what you get. On the other hand,
1213 you'll need to get used to either editing both files, or using the
1214 built-in functions for editing and updating files. If you prefer not
1215 to work with linked tasks, you can configure Planner to use only plan
1216 pages or use only day pages.
1218 The TaskPool page should list the tasks you created earlier. Go to the
1219 one named Learn how to schedule a task . Type @kbd{C-c C-c}
1220 (@code{planner-copy-or-move-task}) to schedule the task. Type RET to
1221 accept the default (today). Go to the day page by following the link
1222 or calling @kbd{M-x planner-goto} (@kbd{C-c C-j C-d} or the menu bar);
1223 you will see the newly-created task there. You can also use @kbd{C-c
1224 C-c} (@kbd{planner-copy-or-move-task}) to reschedule a task to an
1225 earlier or later date.
1227 Well, that task is done. To mark the task as completed, type @kbd{C-c
1228 C-x} (@code{planner-task-done}). You can also edit the status manually
1229 (change _ to X) as long as you remember to call @kbd{M-x
1230 planner-update-task} to update the link page as well. Updating relies on
1231 the task description being the same, so do not edit this manually.
1233 Quick summary of commands:
1235 @itemize
1236 @item
1237 Go to today's page: @kbd{M-x plan} to carry unfinished tasks forward, or
1238 @kbd{M-x planner-goto-today} to just go to today's page.
1239 @item
1240 Create a task: @kbd{C-c C-t} (@code{planner-create-task-from-buffer}),
1241 or type a task manually (call M-x planner-update-task if the task is
1242 linked)
1243 @item
1244 Mark a task as done: @kbd{C-c C-x} (@code{planner-task-done}), or edit
1245 the task and call @kbd{M-x planner-update-task}
1246 @item Edit a task description: @kbd{M-x planner-edit-task-description}
1247 @item Reschedule a task: @kbd{C-c C-c} (@code{planner-copy-or-move-task})
1248 @item
1249 Reschedule many tasks: Mark a region and use @kbd{M-x
1250 planner-copy-or-move-region}
1251 @item
1252 Change the plan of a task: @kbd{M-x planner-replan-task}, or do
1253 @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and type in a
1254 plan page rather than a date
1255 @item Delete a task: @kbd{M-x planner-delete-task}
1256 @item
1257 Reorder tasks: @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1258 (@code{planner-lower-task}), or normal editing commands like kill and
1259 yank
1260 @item Change task priorities (@samp{#A} > @samp{#B} > @samp{#C}):
1261       @key{C-M-p} (@code{planner-raise-task-priority}) and
1262       @key{C-M-n} (@code{planner-lower-task-priority}),
1263       or edit the task and call @kbd{M-x planner-update-task}.
1264 @end itemize
1266 You can save your tasks with @kbd{C-x C-s} the same way you save any
1267 other file, or Emacs will prompt you to save it when you exit.
1269 @node Schedule, Notes, Tasks, Getting Started
1270 @comment  node-name,  next,  previous,  up
1271 @section Schedule
1273 This is free-form. You can put anything you want into this, or remove
1274 it from @code{planner-day-page-template} entirely. Some people use it
1275 to keep track of their plans for the day with tables like this:
1277 @example
1278 hh:mm | hh:mm | activity
1279 hh:mm | hh:mm | activity
1280 hh:mm | hh:mm | activity
1281 @end example
1283 Remember, Planner files are just plain text. You can add new sections
1284 or remove old ones, or use the suggested sections for entirely
1285 different activities.
1287 @node Notes, Hyperlinks, Schedule, Getting Started
1288 @comment  node-name,  next,  previous,  up
1289 @section Notes
1290 @cindex @file{remember.el}
1291 @cindex @file{remember-planner.el}
1292 @cindex notes
1294 By default, your Planner pages will have a Notes section. You can put
1295 anything you want in this section, or remove it from your
1296 @code{planner-day-page-template} entirely.
1298 You may be interested in @file{remember-planner.el}, part of the
1299 Remember package (see @inforef{Top, remember, remember}).
1301 @code{remember-planner.el} makes it easy to create notes from anywhere
1302 in Emacs, and it uses the same context-sensing code that Planner uses.
1303 Notes added by @code{remember-planner.el} look like this:
1305 @example
1306 .#1 Headline 00:00
1307 Body
1309 [[context hyperlink]]
1310 @end example
1312 and are outlined at the H2 level in published HTML.
1314 You can easily create context-aware notes if you include the following
1315 in your @file{~/.emacs}:
1317 @example
1318 (require 'remember-planner)
1319 (setq remember-handler-functions '(remember-planner-append))
1320 (setq remember-annotation-functions planner-annotation-functions)
1321 @end example
1323 Then @kbd{M-x remember} will open a dedicated buffer for you to write
1324 your note. If Planner recognizes your current buffer as one with
1325 context then it will include a hyperlink at the bottom of the note.
1326 The first line of the note is used as a title, so make it short and
1327 meaningful. The rest of the text will be used as the body. Try it now
1328 by creating a note, perhaps about things you'd like to remember from
1329 this tutorial.
1331 Typing @kbd{C-c C-c} after composing will prompt for a plan page to
1332 put the note on, with auto-completion. If you don't enter a page, the
1333 note will just be saved on today's page. If you do specify a plan
1334 page, the note will go on both today's page and on the specified page.
1335 Let's try specifying @samp{TaskPool} for the note.
1337 If you look at today's page, you'll find a timestamped note that links
1338 to @samp{TaskPool}. Likewise, @samp{TaskPool} contains a note that
1339 links to today's page. To change the plan page of a note, use
1340 @kbd{planner-replan-note}.
1342 If you decide to edit the note on one of these pages after it has been
1343 saved, be aware that your changes will not be automatically reflected
1344 on the linked page. To update the linked page after editing a note,
1345 use @kbd{M-x planner-update-note}.
1347 @node Hyperlinks, Example Page, Notes, Getting Started
1348 @section Hyperlinks
1349 @cindex hyperlinks
1351 Planner automatically creates context-sensitive hyperlinks for your
1352 tasks and notes when you use @code{planner-create-task-from-buffer}
1353 and @code{remember}.
1355 Blue links indicate URLs and Planner pages that already exist. Red links
1356 indicate Planner pages that have not yet been created.
1358 Middle-click or type @key{RET} on any link to view the link in the
1359 current window. Shift-middle-click or type @key{S-RET} to view the
1360 link in another window. @key{TAB} goes to the next link, while
1361 @key{S-TAB} goes to the previous one.
1363 You can pick up hyperlinks using the @code{planner-annotation-as-kill}
1364 function.
1366 @defun planner-annotation-as-kill
1367 Create a context-sensitive hyperlink for the current buffer and copy
1368 it to the kill ring. When called with a prefix argument, prompt for
1369 the link display name.
1370 @end defun
1372 You can then paste it into any Planner buffer by using @kbd{M-x yank}
1373 or the keyboard shortcut.
1375 Alternatively, you can create hyperlinks by typing them directly, using
1376 the syntax defined by Muse. Anything inside double square brackets will
1377 be treated as a link. For example, if you type @samp{[[GroceryList]]} in
1378 a Planner buffer, you will end up with a link to a page called
1379 @samp{GroceryList}. @inforef{Implicit Links, Bare URLs WikiNames and
1380 InterWiki links, muse}, for more information about Muse syntax.
1382 Hyperlinks are a powerful feature of Planner. You can use them to
1383 hyperlink to mail, news, Web pages, and even IRC connections. See the
1384 section on @ref{Managing Your Information} to find out how to enable
1385 support for various parts of Emacs. Want to add a new hyperlink
1386 scheme? Check out the source code for examples or ask on the mailing
1387 list for help.
1389 @node Example Page, Review, Hyperlinks, Getting Started
1390 @comment  node-name,  next,  previous,  up
1391 @section Example Page
1392 @cindex example page
1393 @cindex planning page, example
1395 An example planner file is given below. You'll notice that Planner
1396 does not have a well-defined user interface. Rather, it's free-form
1397 and open, allowing you to adapt it to your preferences.
1399 @example
1400 ----------------------------------------------------------------------
1401 * Tasks
1403 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1404 #B  _ Browse through the Planner info manual (TaskPool)
1405 #B  _ Add (plan) to the end of my ~/.emacs
1406 #B  X Learn how to schedule a task (TaskPool)
1408 * Schedule
1410 18:00 | 19:00 | Learn how to use Planner
1412 * Notes
1414 Notes are free-form. You can put anything you want into this.
1416 .#1 This is note number one
1418 Notes on note number one!
1420 .#2 This weird ".#2" syntax is used for allout.el enumerated lists
1422 It makes using allout-mode very handy.
1424 @end example
1426 @node Review,  , Example Page, Getting Started
1427 @comment  node-name,  next,  previous,  up
1428 @section Review
1430 @itemize
1432 @item @emph{Ideas for using planner more effectively:}
1434 @itemize
1435 @item
1436 Add @code{(plan)} to the end of your @file{~/.emacs} so that you are
1437 reminded about your tasks every day.
1439 @item
1440 Bind useful functions to shortcut keys and get used to creating tasks
1441 and notes from anywhere.
1443 @item
1444 Think about how you plan your day and look for ways to improve it. Ask
1445 the mailing list (@pxref{Getting Help}) for tips.
1447 @item
1448 Browse the rest of this manual, the source code, and other resources on
1449 the Net for tidbits you can use.
1451 @item Have fun!
1452 @end itemize
1454 @item @emph{Useful functions outside planner buffers:}
1456 @itemize
1457 @item @code{planner-create-task-from-buffer}
1458 @item @code{remember}
1459 @item @code{planner-goto-today}
1460 @item @code{planner-goto}
1461 @item @code{plan}
1462 @end itemize
1464 @item @emph{Useful functions inside planner buffers:}
1466 @itemize
1467 @item @kbd{C-c C-t} (@code{planner-create-task-from-buffer})
1468 @item @kbd{C-c C-x} (@code{planner-task-done})
1469 @item @kbd{M-x planner-edit-task-description}
1471 @item
1472 @kbd{C-c C-c} (@code{planner-copy-or-move-task}), @kbd{M-x
1473 planner-copy-or-move-region}
1475 @item @kbd{M-x planner-replan-task}
1476 @item @kbd{M-x planner-delete-task}
1478 @item
1479 @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1480 (@code{planner-lower-task})
1482 @item @key{C-M-p} (@code{planner-raise-task-priority}) and
1483       @key{C-M-n} (@code{planner-lower-task-priority}),
1484 @item @code{planner-replan-note}
1485 @item @code{planner-update-note}
1486 @end itemize
1488 @end itemize
1490 That's all you need to know in order to use Planner as a basic TODO and
1491 notes manager, but there's a whole lot more. Read through this manual
1492 and our mailing list archives (@pxref{Getting Help}) for lots of
1493 wonderful ideas about planning in Emacs!
1495 @node More about Planner, Managing Your Information, Getting Started, Top
1496 @comment  node-name,  next,  previous,  up
1497 @chapter More about Planner
1499 @menu
1500 * Navigation::                  
1501 * More about Tasks::            
1502 * More about Notes::            
1503 * Making Files Pretty::         
1504 * Annotations::                 
1505 * Interactive Lisp::            planner-lisp.el
1506 * Publishing::                  planner-publish.el
1507 * Experimental Functions::      planner-experimental.el
1508 @end menu
1510 @node Navigation, More about Tasks, More about Planner, More about Planner
1511 @comment  node-name,  next,  previous,  up
1512 @section Starting with Day Pages
1514 @command{planner-goto-today} opens today's page. Day pages are named
1515 @samp{YYYY.MM.DD} and contain your notes for the day. They can also be
1516 named @samp{YYYY-MM-DD} if you prefer -- just customize the value of
1517 @var{planner-date-separator}.
1519 You should see a file that looks like this:
1521 @example
1522 * Tasks
1525 * Schedule
1527 * Notes
1528 @end example
1530 You can type anything you want into this file.  You can add or delete
1531 sections.  
1533 Use the following commands to navigate through day pages:
1535 @defun plan
1536 Start planning the day.  If @code{planner-carry-tasks-forward} is
1537 non-nil, copy the most recent unfinished tasks to today's page, else
1538 open the most recent page.
1539 @end defun
1541 @defun planner-goto (@kbd{C-c C-j C-d})
1542 Prompt for a date using a calendar pop-up and display the
1543 corresponding day page.  You can specify dates partially.  The current
1544 year and month are used if omitted from the input.  For example, if
1545 today is 2004.05.05, then
1547 @itemize
1548 @item @kbd{+1} is one day from now, or @samp{2004.05.06}
1549 @item @kbd{-1} is one day before now, or @samp{2004.05.04}
1550 @item @kbd{12} is equivalent to @samp{2004.05.12}
1551 @item @kbd{8.12} is equivalent to @samp{2004.08.12}
1552 @item @kbd{2005.08.12} is a full date specification
1553 @end itemize
1555 In the calendar buffer, you can also left-click or press @key{RET} on
1556 a date to select it.
1557 @end defun
1559 @defun planner-goto-today (@kbd{C-c C-j C-j})
1560 Display today's page. Create the page if it does not yet exist.
1561 @end defun
1563 @defun planner-goto-tomorrow (@kbd{C-c C-j C-t})
1564 Goto the planner page days @var{after} the currently displayed date.
1565 If @var{days} is nil, go to the day immediately after the currently
1566 displayed date.  If the current buffer is not a daily planner page,
1567 calculate date based on today.
1568 @end defun
1570 @defun planner-goto-yesterday (@kbd{C-c C-j C-y})
1571 Goto the planner page @var{days} before the currently displayed date.
1572 If @var{days} is nil, go to the day immediately before the currently
1573 displayed date.  If the current buffer is not a daily planner page,
1574 calculate date based on today.
1575 @end defun
1577 @defun planner-goto-most-recent
1578 Go to the most recent day with planning info.
1579 @end defun
1581 @defun planner-goto-previous-daily-page
1582 Goto the last plan page before the current date.
1583 The current date is taken from the day page in the current
1584 buffer, or today if the current buffer is not a planner page.
1585 Do not create pages if they do not yet exist.
1586 @end defun
1588 @defun planner-goto-next-daily-page
1589 Goto the first plan page after the current date.
1590 The current date is taken from the day page in the current
1591 buffer, or today if the current buffer is not a planner page.
1592 Do not create pages if they do not yet exist.
1593 @end defun
1595 @defun planner-goto-plan-page page
1596 Opens @var{page} in the the @code{planner-project} Wiki.  Use
1597 @code{planner-goto} if you want fancy calendar completion.
1598 @end defun
1600 @defun planner-show date
1601 Show the plan page for @var{date} in another window, but don't select
1602 it.  If no page for @var{date} exists, return nil.
1603 @end defun
1606 @node More about Tasks, More about Notes, Navigation, More about Planner
1607 @comment  node-name,  next,  previous,  up
1608 @section More about Tasks
1609 @cindex tasks, more about
1611 This section is divided into three parts. In the first part, you can
1612 read about all the options, strategies and commands to help you
1613 efficiently add new tasks to your planner. In the second part, we'll go
1614 over all of the aspects of Planner that relate to organizing, editing,
1615 rescheduling and viewing the tasks you've already created. Finally,
1616 we'll cover some ways to step back and look at various reports and
1617 overviews that can be generated from your planner pages.
1619 You may also be interested in tracking time spent on tasks with
1620 @ref{Timeclock} and estimating project completion time with
1621 @ref{Schedule} (also see @pxref{schedule.el}).
1623 @menu
1624 * Creating New Tasks::          
1625 * Organizing Your Tasks::       
1626 * Task Reports and Overviews::  
1627 @end menu
1629 @node Creating New Tasks, Organizing Your Tasks, More about Tasks, More about Tasks
1630 @comment  node-name,  next,  previous,  up
1631 @subsection Creating New Tasks
1632 @cindex tasks, creating
1634 Planner makes it very easy to quickly add something to your list of
1635 tasks. Once you get used to the basics of
1636 @command{planner-create-task-from-buffer}, you might want to take a
1637 closer look at some things in Planner that can help you create new tasks
1638 in a way that fits with your system.
1640 @menu
1641 * Creating a Task::             
1642 * Task Priorities::             
1643 * Task IDs::                    planner-id.el
1644 * Cyclic Tasks::                planner-cyclic.el
1645 * Task Detail::                 
1646 * Deadlines::                   planner-deadline.el
1647 @end menu
1649 @node Creating a Task, Task Priorities, Creating New Tasks, Creating New Tasks
1650 @comment  node-name,  next,  previous,  up
1651 @subsubsection Creating a Task
1652 @cindex tasks, creating
1654 You can create a task from any buffer in Emacs by invoking
1655 @command{M-x planner-create-task-from-buffer}.
1657 This command does more than just add an item to your list of tasks. It
1658 also connects that item to some useful context information.
1660 If you create a task while viewing any buffer other than a Planner
1661 day page, Planner will associate the task with a hyperlink to that
1662 buffer. Try it now by creating a task from this Info buffer.
1664 @enumerate
1665 @item @kbd{M-x planner-create-task-from-buffer}
1666 @item
1667 When prompted for the task name, enter @kbd{Learn how to change a task's
1668 status} and press @key{RET}.
1670 @item
1671 When prompted for the date, press @key{RET} to schedule the task for
1672 today.
1674 @item
1675 When prompted for the project page, press @key{RET} to accept the
1676 default page of @samp{TaskPool}. This is a page for tasks not connected
1677 to a larger plan.
1679 @end enumerate
1681 Planner prompts you for two pieces of information when you ask it
1682 to create a task. First, it asks you when you would like to have the
1683 task show up in your planner. If you would like it to be scheduled for
1684 today, you can just hit @key{RET}. If you would like it to be
1685 scheduled for some day during the current month, you can just enter
1686 the date, without the month, like @samp{16}. If you would like it to
1687 be scheduled for some day in a future month of the current year, you
1688 can enter just the month and date, like @samp{06.16}. If you would
1689 like to schedule something for next year, then enter the full date,
1690 like @samp{06.16.2005}. If you do not want this task to appear on a
1691 day page at all, you can enter @samp{nil}.
1693 The second piece of information Planner asks for is the name of
1694 the project to associate the task with. In the above example, you
1695 associated the task with the project ``TaskPool'', which means that
1696 you did not want to associate the task with a particular project or
1697 goal in your life. Another way to do this is to answer the project
1698 prompt by entering @samp{nil}. But instead, you might enter
1699 @samp{LearnPlanner} as the project. This creates a new page called
1700 ``LearnPlanner'' in your planner directory and places an entry for the
1701 task on that page.
1703 The task then exists in two places: once on your day page, to show how
1704 it fits into your daily work; and once on a project page, to show how
1705 it fits into your larger projects and goals. In the future you might
1706 add related tasks like, ``Memorize Planner keybindings''. These
1707 tasks might be scattered over weeks or months worth of day pages, but
1708 as long as you enter the same project name for each, you will have a
1709 way to look at them all together on a single project page.
1711 Planner also creates hyperlinks to enable you to easily move back
1712 and forth between the day page system and the project page
1713 system. Each task on a day page will have a hyperlink to its project
1714 page. Each task on a project page will have a hyperlink to its day
1715 page.
1717 After using Planner for a while, you may find yourself with quite
1718 a few project pages. Keep in mind that completion is enabled at the
1719 project prompt when you create a task, so hitting @kbd{SPC} or
1720 @kbd{TAB} at the prompt will show you a list of your current project
1721 pages.
1723 Once the task is created, you are returned to the buffer you were
1724 working in again, Planner gets out of your way, and you can go on
1725 about your business. Later on, when you decide to actually work on
1726 that ``Memorize Planner keybindings'' task, you will be able to
1727 follow the hyperlink from that task on your day or project page
1728 directly to the relevant node in the Planner info file!
1730 By default, @command{M-x planner-create-task-from-buffer} creates
1731 medium-priority tasks, marked with the letter @samp{B}.  But you can
1732 specify a particular priority or change the default (@pxref{Task
1733 Priorities}).
1735 You don't have to use @command{planner-create-task-from-buffer} to
1736 create tasks. You can also create new tasks manually by typing them
1737 directly on your day or project page in the format Planner expects. You
1738 can even still create hyperlinks by using Muse formatting as you
1739 manually type the new task (@pxref{Hyperlinks}). Keep in mind also that
1740 tasks do not have to be linked to any other page.
1742 For convenience, @command{planner-create-task-from-buffer} is bound to
1743 @kbd{C-c C-t} in Planner buffers.  You can bind
1744 @command{planner-create-task-buffer} to a shortcut key.  See the
1745 manual for your Emacs distribution to find out more about keybinding.
1747 @defun planner-create-task-from-buffer title date plan-page
1748 Create a new task named @var{title} on @var{date} based on the current
1749 buffer.
1751 With a prefix, associate the task with the current planner page.  If
1752 you create a task on a date page, you will be prompted for a plan
1753 page.  If you create a task on a plan page, you will be prompted for a
1754 day page.  If nil is specified, the task is created only on the
1755 current page.
1757 See @code{planner-create-task} for more information.
1759 The new task is created at the top or bottom of the first block of
1760 tasks on the scheduled day page (if any), depending on the value of
1761 @code{planner-add-task-at-end-flag}.
1762 @end defun
1764 @defun planner-create-task title date annotation plan-page
1765 Create a new task named @var{title} based on the current Wiki page.
1766 If @var{date} is non-nil, makes a daily entry on @var{date}, else
1767 makes an entry in today's planner page. It's assumed that the current
1768 Wiki page is the page you're using to plan an activity. Any time
1769 accrued to this task will be applied to that page's name in the
1770 timelog file, assuming you use timeclock (@pxref{Time Intervals, , ,
1771 Emacs, GNU Emacs Manual}). If @var{annotation} is non-nil, it will be
1772 used for the page annotation. If @var{plan-page} is non-nil, the task
1773 is associated with the given page.
1775 With a prefix, associate the task with the current planner page.  If
1776 you create a task on a date page, you will be prompted for a plan
1777 page.  If you create a task on a plan page, you will be prompted for a
1778 day page.  If nil is specified, the task is created only on the
1779 current page.
1781 You probably want to call @code{planner-create-task-from-buffer}
1782 instead.
1784 The new task is created at the top or bottom of the first block of
1785 tasks on the scheduled day page (if any), depending on the value of
1786 @code{planner-add-task-at-end-flag}.
1787 @end defun
1789 @node Task Priorities, Task IDs, Creating a Task, Creating New Tasks
1790 @comment  node-name,  next,  previous,  up
1791 @subsubsection Task Priorities
1793 You can set the priority of a task when you create it, rather than
1794 waiting to adjust it after the fact. In order to do this, call the
1795 function corresponding to the priority you want. You probably want to
1796 bind these functions to some keys if you intend to use them much.
1798 @itemize
1799 @item @code{planner-create-high-priority-task-from-buffer}
1800 creates a task with priority @samp{A}.
1802 @item @code{planner-create-medium-priority-task-from-buffer}
1803 creates a task with priority @samp{B}.
1805 @item @code{planner-create-low-priority-task-from-buffer}
1806 creates a task with priority @samp{C}.
1807 @end itemize
1809 Or, you can change the default priority of
1810 @command{planner-create-task-from-buffer} by customizing
1811 @var{planner-default-task-priority}.
1813 You can actually use just one general priority, but using more than
1814 one color-codes your tasks and gives you a better overview of your
1815 day.
1818 @node Task IDs, Cyclic Tasks, Task Priorities, Creating New Tasks
1819 @comment  node-name,  next,  previous,  up
1820 @subsubsection Task IDs
1821 @cindex @file{planner-id.el}, using
1822 @cindex tasks, IDs
1824 After loading @file{planner.el}, make sure that @file{planner-id.el} is
1825 in your load path and add this to your @file{.emacs} (or @file{_emacs}):
1827 @example
1828 (require 'planner-id)
1829 @end example
1831 This module modifies the behavior of @file{planner.el}, adding global
1832 task IDs so that tasks can be edited and updated. Planner IDs are of
1833 the form @samp{@{@{Identifier:Number@}@}}.
1835 @subheading Options
1837 @defopt planner-id-add-task-id-flag
1838 Non-nil means automatically add global task IDs to newly-created
1839 tasks. If nil, use @command{planner-id-add-task-id} to add IDs to
1840 existing tasks, or @command{planner-id-add-task-id-to-all} to add to
1841 all tasks on the current page.
1842 @end defopt
1844 @defopt planner-id-update-automatically
1845 Non-nil means automatically update linked tasks whenever a page is
1846 saved. If nil, use @command{planner-update-task} to update the linked
1847 task. By default, linked tasks are automatically updated.
1848 @end defopt
1850 @defopt planner-id-tracking-file
1851 File that contains ID tracking data. This file is automatically
1852 overwritten.
1853 @end defopt
1855 @subheading Functions
1857 The following interactive functions are defined in @file{planner-id.el}:
1859 @defun planner-id-jump-to-linked-task &optional info
1860 Display the linked task page. If @var{info} is specified, follow that
1861 task instead.
1862 @end defun
1864 @defun planner-id-add-task
1865 Add a task ID for the current task if it does not have one
1866 yet. Update the linked task page, if any.
1867 @end defun
1869 @defun planner-id-update-tasks-on-page &optional force
1870 Update all tasks on this page. Completed or cancelled tasks are not
1871 updated. This can be added to @code{write-file-functions}. If
1872 @var{force} is non-nil, completed and cancelled tasks are also
1873 updated.
1874 @end defun
1876 @defun planner-id-add-task-id-to-all
1877 Add a task ID for all the tasks on the page. Update the linked page,
1878 if any.
1879 @end defun
1881 @defun planner-id-search-id id
1882 Search for all occurrences of @var{id}.
1883 @end defun
1885 @defun planner-id-follow-id-at-point
1886 Display a list of all pages containing the ID at point.
1887 @end defun
1889 @defun planner-id-follow-id-at-mouse event
1890 Display a list of all pages containing the ID at mouse. @var{event} is
1891 the mouse event.
1892 @end defun
1894 @node Cyclic Tasks, Task Detail, Task IDs, Creating New Tasks
1895 @comment  node-name,  next,  previous,  up
1896 @subsubsection Cyclic Tasks
1897 @cindex @file{planner-cyclic.el}, using
1898 @cindex tasks, cyclic
1899 @cindex cyclic tasks
1900 @cindex recurring tasks
1902 If there are tasks that you have to do regularly, you can have Planner
1903 schedule those tasks automatically.
1905 Make sure that @file{planner-cyclic.el} is in your load path and add
1906 this to your @file{.emacs} (or @file{_emacs}):
1908 @example
1909 (require 'planner-cyclic)
1910 @end example
1912 Create a diary file named @file{~/.diary.cyclic-tasks}
1913 (or the value of @code{planner-cyclic-diary-file}). Here is an example:
1915 @example
1916 Tuesday #B0 _ Study Japanese
1917 Friday #B0 _ Study Japanese (JapaneseStudies)
1918 @end example
1920 The first will be a plain task, the second will be linked.  The first
1921 line will automatically create its task every Tuesday, while the
1922 second will create it every Friday.
1924 You can schedule tasks in a variety of ways. This module uses the same
1925 syntax for specifying when tasks will be scheduled as the Emacs diary
1926 uses for appointments and events. See @ref{Date Formats, the GNU Emacs
1927 Manual, Date Formats,emacs, the GNU Emacs Manual}, and @ref{Sexp Diary
1928 Entries, the GNU Emacs Lisp Reference Manual, Sexp Diary
1929 Entries,elisp, the GNU Emacs Lisp Reference Manual}, for a full
1930 description of the possibilities.
1932 By default, planner-cyclic creates multiple tasks if you let tasks build
1933 up (that is, the next Tuesday rolls around and you @emph{still} haven't
1934 marked the task as done.) To turn off this behavior:
1936 @example
1937 (setq planner-cyclic-diary-nag nil)
1938 @end example
1940 @subheading Functions
1942 @file{planner-cyclic-diary} includes the following interactive
1943 functions:
1945 @defun planner-cyclic-create-tasks-maybe
1946 Maybe create cyclic tasks. This will only create tasks for future
1947 dates or today.
1948 @end defun
1950 @node Task Detail, Deadlines, Cyclic Tasks, Creating New Tasks
1951 @comment  node-name,  next,  previous,  up
1952 @subsubsection Task Detail
1953 @cindex tasks
1955 You may find your planner pages getting very full, so that you want to
1956 have one broad task entry be linked to a more specific list of
1957 sub-tasks. Or, maybe you want to have a number of notes linked to a
1958 particular task.
1959 @cindex tasks, sub-
1960 @cindex tasks, meta-
1961 @cindex meta-tasks
1962 @cindex sub-tasks
1964 This can be done with targets.  You can have a task that is really a
1965 meta-task:
1967 @example
1968 #A1  _ Do things in RevelleLog#13 @{@{Tasks:101@}@} (RevelleLog)
1969 @end example
1971 @samp{RevelleLog#13} could then be a list of sub-tasks in the form of
1972 a note, or any kind of note.
1974 Or, instead of pointing to a particular note on @samp{RevelleLog}, you
1975 could have the whole page be tasks that you enter in manually, without
1976 linking them to another page. You can just type them in like this:
1978 @example
1979 #A1  _ First specific thing to do
1980 @end example
1982 This way, the tasks will only appear on this specific project page,
1983 and not on any daily page, so you only see them when you want to look
1984 up all of the specific tasks associated with @samp{#A1  _ Do things in
1985 RevelleLog @{@{Tasks:101@}@} (RevelleLog)}.
1987 As you can see, the ability to manually enter tasks is one of
1988 Planner's nicest features. It allows you to create tasks that are
1989 not assigned to a specific date (by manually entering them on a
1990 project page with no date) or to a specific project (by manually
1991 entering them on a day page with no project). Yet as long as you enter
1992 them using the syntax it understands, Planner will continue to
1993 recognize them as tasks.
1995 Another way to have a task not be connected to a particular date is to
1996 do @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and specify
1997 @samp{nil} when asked for the date.
1999 If you would like to see a list of all of your unfinished scheduled
2000 tasks, do @kbd{M-x planner-list-unfinished-tasks}.  It is only intended
2001 to give you an overview.  Any editing you want to do, like marking tasks
2002 complete or editing their description, still needs to be done on one of
2003 the tasks' ``real'' planner pages.
2005 @node Deadlines,  , Task Detail, Creating New Tasks
2006 @comment  node-name,  next,  previous,  up
2007 @subsubsection Deadlines
2008 @cindex tasks, deadlines for
2009 @cindex deadlines, task
2010 @cindex @file{planner-deadline.el}, using
2012 You can use @file{planner-deadline.el} to automatically recalculate
2013 days to a deadline by adding @code{(require 'planner-deadline)} to
2014 your @file{~/.emacs}. With the default setup, make your tasks of the
2015 form
2017 @example
2018 #A0 _ Some task @{@{Deadline: 2004.09.12@}@}
2019 @end example
2021 (Note: There must be at least one space after the colon.)
2023 After you run @code{planner-deadline-update} to update task descriptions,
2024 the task will be of the form
2026 @example
2027 #A0 _ Some task @{@{Deadline: 2004.09.12 - 2 days@}@}
2028 @end example
2030 @subheading Options
2032 @defopt planner-deadline-regexp
2033 Regular expression for deadline data.
2034 The special deadline string should be regexp group 1. The
2035 date (YYYY.MM.DD) should be regexp group 2.
2036 @end defopt
2038 @subheading Functions
2040 @defun planner-deadline-update
2041 Replace the text for all tasks with deadlines. Deadlines are of the
2042 form @samp{@{@{Deadline: YYYY.MM.DD@}@}} by default.
2043 @end defun
2045 @defun planner-deadline-change &optional date
2046 Change the deadline of current task to @var{date}. If @var{date} is nil,
2047 remove deadline.
2048 @end defun
2050 @node Organizing Your Tasks, Task Reports and Overviews, Creating New Tasks, More about Tasks
2051 @comment  node-name,  next,  previous,  up
2052 @subsection Organizing Your Tasks
2053 @cindex tasks, organizing
2054 @cindex tasks, old
2056 Okay, now that you've gotten the hang of creating tasks, you're probably
2057 facing a really long list of things to do. How can you organize them so
2058 that they don't overwhelm you? Planner gives you a number of strategies
2059 for dealing with large numbers of tasks.
2061 @enumerate
2062 @item Arrange your tasks in the rough order you're going to do them.
2063 @item Use #A, #B and #C task priorities to differentiate between
2064       high-priority, normal and low-priority tasks.
2065 @item Schedule your tasks onto different days.
2066 @item Group your tasks into plan pages.
2067 @item Don't schedule all your tasks.
2068 @end enumerate
2070 @enumerate
2072 @item @emph{Task order}
2074 To remind yourself to do tasks in a certain order, simply edit the
2075 lines so that they're in the order you want. You can use normal
2076 editing commands like kill, yank and transpose-line to reorder the
2077 tasks, or use @key{M-p} (@code{planner-raise-task}) and @key{M-n}
2078 (@code{planner-lower-task}) to rearrange the tasks.
2080 @item @emph{Task priorities}
2082 By default, tasks are created with medium priority (@samp{#B}). You
2083 can make a task high-priority (@samp{#A}) or low-priority (@samp{#C})
2084 by manually editing the task and calling M-x planner-update-task to
2085 update the linked page. Alternatively, you can use @key{C-M-p}
2086 (@code{planner-raise-task-priority}) and @key{C-M-n}
2087 (@code{planner-lower-task-priority}) to modify the task and update the
2088 linked page.
2090 You can edit the priority of a task using @kbd{M-x
2091 planner-edit-task-priority}, or manually edit it and call @kbd{M-x
2092 planner-update-task} to update tasks on the linked page.
2094 @item @emph{Schedule your tasks on different days}
2096 You don't have to do everything today. Is this a task you would rather
2097 do tomorrow? Schedule it for then instead. You can specify @samp{+n}
2098 or @samp{-n} whenever you are asked for a date, where @var{n} is the
2099 number of days before or after the current file's date or today.
2100 Don't over-procrastinate things, though!
2102 @item @emph{Plan pages}
2104 Plan pages let you group related tasks and notes together for easy
2105 reference. For example, you could have a plan page for each major
2106 project or goal in your life, like @samp{GoodHealth} or
2107 @samp{FurtherStudies}.
2109 Although plan pages start by grouping everything under a @samp{*
2110 Tasks} header, you can organize your plan pages in different ways. For
2111 example, you can separate groups of tasks with blank lines, and
2112 Planner will sort tasks within each group.
2114 @item @emph{Tasks without dates}
2116 Plan pages also allow you to have undated tasks or tasks with no
2117 particular deadlines. This keeps your daily task list small and
2118 manageable while making it easier for you to find things to do if you
2119 have free time. Make sure you check your plan pages regularly so that
2120 you don't completely forget about them.
2122 For automated scheduling of the next task on a plan page after you
2123 complete a task, see the section in
2124 @uref{http://sacha.free.net.ph/notebook/emacs/planner-config.el} named
2125 ``Schedule next undated task from same project''.
2127 @end enumerate
2130 @menu
2131 * Multiple Projects::           
2132 * Viewing Tasks::               
2133 * Modifying Tasks::             
2134 * Carrying Over Unfinished Tasks::  
2135 * Task Numbering::              
2136 * Task Ranks::                  planner-rank.el
2137 * Grouping Tasks::              planner-trunk.el
2138 @end menu
2140 @node Multiple Projects, Viewing Tasks, Organizing Your Tasks, Organizing Your Tasks
2141 @comment  node-name,  next,  previous,  up
2142 @subsubsection Associating Tasks with Multiple Projects
2143 @cindex multiple projects
2144 @cindex @file{planner-multi.el}, using
2146 You can use @file{planner-multi.el} to associate a task with more than
2147 one project. That way, you can easily keep GTD-style context lists as
2148 well as project-related lists.
2150 To use multiple projects, add the following to your @samp{~/.emacs}:
2152 @example
2153 (require 'planner-multi)
2154 @end example
2156 Under GNU Emacs, you can specify multiple projects by separating them
2157 with a single space. For example, you can specify @kbd{planner doc}
2158 when creating a task to associate the task with those two projects.
2160 Under XEmacs, you can specify multiple projects by typing @kbd{RET}
2161 after each entry and terminating the list with another @kbd{RET}. For
2162 example, to specify @kbd{planner} and @kbd{doc}, you would type
2163 @kbd{planner RET doc RET RET} at the prompt.
2165 If you want to see an overview of all of your tasks as well as
2166 project- or context-specific lists, you can set
2167 @code{planner-multi-copy-tasks-to-page} to your overview page(s). For
2168 example, set it to @samp{TaskPool} to be able to see an overview of
2169 all of your unfinished tasks. You can also set this to multiple pages
2170 such as @samp{[[TasksByProject][p]] [[TasksByContext][c]]} and use
2171 @file{planner-trunk.el} to sort and organize tasks for easy reference.
2172 (@pxref{Grouping Tasks})
2174 @subheading Options
2176 @defopt planner-multi-copy-tasks-to-page
2177 Automatically copy newly-created tasks to the specified page.
2178 @end defopt
2180 By default, tasks are removed from
2181 @code{planner-multi-copy-tasks-to-page} when you call
2182 @code{planner-task-done} or @code{planner-task-cancelled}. If you
2183 prefer to keep a copy of the task, remove
2184 @code{planner-multi-remove-task-from-pool} from
2185 @code{planner-mark-task-hook}.
2187 If you want to use a different separator instead of spaces, customize
2188 the @code{planner-multi-separator} variable.
2190 @defopt planner-multi-separator
2191 String that separates multiple page references.
2193 For best results, this should be something recognized by
2194 @code{muse-link-at-point} so that links are highlighted
2195 separately.
2196 @end defopt
2198 @node Viewing Tasks, Modifying Tasks, Multiple Projects, Organizing Your Tasks
2199 @comment  node-name,  next,  previous,  up
2200 @subsubsection Viewing tasks
2201 @cindex tasks, viewing
2203 Review the tasks scheduled for today by typing @kbd{M-x
2204 planner-goto-today}.  If you created the task from the previous
2205 section in this tutorial, you should see a line that looks like
2207 @example
2208 #A _ Learn how to change a task's status from Tasks (TaskPool)
2209 @end example
2211 If you have @code{planner-use-task-numbers} set to non-nil, you will see
2212 something like the following instead.
2214 @example
2215 #A0 _ Learn how to change a task's status from Tasks (TaskPool)
2216 @end example
2218 From left to right, these are what the symbols mean:
2220 @itemize
2221 @item @samp{A} - Priority.  A (high)
2222 @item
2223 @samp{0} - Priority number.  It is calculated whenever you save the file
2224 or call @command{planner-renumber-tasks}, provided that
2225 @code{planner-use-task-numbers} is non-nil.  Tasks are numbered in
2226 ascending order according to priorities.
2227 @item @samp{_} - Status.  _ (unfinished)
2228 @end itemize
2230 If you click on @samp{Tasks} or press @key{RET} while your cursor is
2231 in the link, Emacs will display the previous info page.
2233 If you select @samp{TaskPool}, Emacs will display the @samp{TaskPool}
2234 plan page.  Plan pages organize your tasks and notes about a project
2235 in one file.
2237 @subheading Functions
2239 You can use @command{planner-seek-next-unfinished-task} to move to the
2240 next unfinished task on the current page.
2242 @defun planner-list-tasks-with-status status &optional pages
2243 Display all tasks that match the STATUS regular expression on all day
2244 pages.  The PAGES argument limits the pages to be checked in this
2245 manner:
2247 @itemize
2248 @item @code{t}: check all pages
2249 @item regexp: search all pages whose filenames match the regexp
2250 @item list of page names: limit to those pages
2251 @item alist of page/filenames: limit to those pages
2252 @end itemize
2254 Called interactively, this function will search day pages by
2255 default. You can specify the start and end dates or leave them as
2256 nil to search all days. Calling this function with an interactive
2257 prefix will prompt for a regular expression to limit pages.
2258 Specify @samp{.} or leave this blank to include all pages.
2260 This function could take a long time.
2261 @end defun
2263 @defun planner-list-unfinished-tasks &optional pages
2264 Display all unfinished tasks. @var{pages} follows
2265 planner-list-tasks-with-status.
2266 @end defun
2268 @defun planner-jump-to-linked-task task-info
2269 Display the task page linked to by the current task or
2270 @var{task-info}.
2271 @end defun
2273 @node Modifying Tasks, Carrying Over Unfinished Tasks, Viewing Tasks, Organizing Your Tasks
2274 @comment  node-name,  next,  previous,  up
2275 @subsubsection Modifying Tasks
2276 @cindex tasks, modifying
2277 @cindex tasks, editing
2279 To select a task, move your cursor to the line containing the task.
2281 Change a task's priority (@samp{A}, @samp{B} or @samp{C}) by editing
2282 the line. @samp{#A} tasks are important. @samp{#B} are medium
2283 priority. @samp{#C} are low priority. Whenever you save the file or
2284 call @kbd{M-x planner-fix-tasks}, tasks are sorted and numbered
2285 according to priority and status.
2287 Change a task's status by calling one of the following functions:
2289 @itemize
2290 @item planner-task-in-progress @samp{o} (@kbd{C-c C-z})
2291 @item planner-task-done @samp{X} (@kbd{C-c C-x})
2292 @item planner-task-cancelled @samp{C} (@kbd{C-c C-S-x})
2293 @item planner-task-delegated @samp{D}
2294 @item planner-task-pending @samp{P}
2295 @item planner-task-open @samp{_}
2296 @end itemize
2298 After changing the status using a function, look at the
2299 @samp{TaskPool} plan page.  The task is also updated on the linked
2300 page.  If you changed the task status manually by replacing the status
2301 with another character, you will need to call
2302 @command{planner-update-task} to update the linked page.
2304 To reschedule a task, call @command{planner-copy-or-move-task} (@kbd{C-c
2305 C-c}) and choose a new date.  You can mark a region and type @kbd{M-x
2306 planner-copy-or-move-region} to reschedule all the contained tasks to a
2307 different date.  Enter @samp{nil} for the date if you don't want the
2308 task or group of tasks to appear on any date page at all anymore. This
2309 is a good way to ``de-schedule'' a task for the time being, but still
2310 keep it linked to a plan page for possible future scheduling.
2312 To change the plan page associated with a task, call
2313 @command{planner-replan-task}.  Enter @samp{nil} for the plan page if
2314 you don't want the task to appear on any plan page anymore. If you
2315 precede the command with a prefix argument, the text of the original
2316 plan page will appear in the prompt for easy editing.
2318 Since the same task may exist on two or more pages, such as a date page
2319 and a plan page, it is dangerous to edit the description of the task by
2320 hand. You should not do it unless you want to make the exact same
2321 changes on all its linked pages.
2323 Instead of doing this by hand, you should use
2324 @command{planner-edit-task-description}. This will prompt you for the
2325 changes to the task description and then update all the other pages to
2326 which the task is linked.  Or, you can just use
2327 @command{planner-delete-task} to remove the task from both pages, and
2328 then create it again with the new desired description.
2330 To remind yourself to do tasks in a certain order, simply edit the
2331 lines so that they're in the order you want.
2332 @command{planner-raise-task} and @command{planner-lower-task} update
2333 the priorities on linked pages automatically. You can organize tasks
2334 into groups by putting a blank line between groups of tasks.
2335 Planner will maintain the groupings and only sort the tasks within
2336 that group.
2338 @subheading Functions
2340 @defun planner-replan-task page-name
2341 Change or assign the plan page for the current task.  @var{page-name}
2342 is the new plan page for the task. Use
2343 @code{planner-copy-or-move-task} if you want to change the date. With a
2344 prefix, provide the current link text for editing.
2345 @end defun
2347 @defun planner-raise-task-priority
2348 Change a low-priority task to a medium-priority task and a
2349 medium-priority task to a high-priority task (C to B to A).
2350 @end defun
2352 @defun planner-lower-task-priority
2353 Change a high-priority task to a medium-priority task and a
2354 medium-priority task to a low-priority task (A to B to C).
2355 @end defun
2357 @defun planner-raise-task arg
2358 Move a task up @var{arg} steps.  By default, @var{arg} is 1.
2359 @end defun
2361 @defun planner-lower-task  arg
2362 Move a task down @var{arg} steps.  By default, @var{arg} is 1.
2363 @end defun
2365 @defun planner-edit-task-description description
2366 Change the description of the current task, updating the linked page
2367 if any.
2368 @end defun
2370 @defun planner-delete-task
2371 Delete this task from the current page and the linked page.
2372 @end defun
2374 @defun planner-update-task
2375 Update the current task's priority and status on the linked page.
2376 Tasks are considered the same if they have the same description.
2377 This function allows you to force a task to be recreated if it
2378 disappeared from the associated page.
2379   
2380 Note that the text of the task must not change. If you want to be able
2381 to update the task description, see @code{planner-edit-task-description}
2382 or @file{planner-id.el}.
2383 @end defun
2385 See @command{planner-install-extra-task-keybindings} for additional
2386 task-related shortcuts.
2388 @node Carrying Over Unfinished Tasks, Task Numbering, Modifying Tasks, Organizing Your Tasks
2389 @comment  node-name,  next,  previous,  up
2390 @subsubsection Carrying Over Unfinished Tasks
2391 @cindex tasks, carrying over
2393 Sometimes you won't be able to cross off all the tasks on your list.
2394 Planner makes it easy for you to keep track of things you still have
2395 to do by automatically rescheduling unfinished tasks from the past few
2396 days. By default, the @command{plan} command searches for unfinished
2397 tasks from the last three days and reschedules them onto today. If you
2398 open Planner every day, this should cover weekends easily.
2400 It's a good idea to start Planner whenever you start Emacs. That way,
2401 Planner can help remind you about today's tasks, appointments, and other
2402 things. To automatically start Planner whenever you start up Emacs, add
2403 the following code to the end of your @file{~/.emacs}:
2405 @example
2406 (plan)
2407 @end example
2409 Now, every time you start Emacs (which should be more or less once a
2410 day), you'll see today's page. If you don't finish all the tasks today,
2411 you'll see them again tomorrow.
2413 It's a good idea to start Planner every time you start Emacs so that
2414 you get reminded about your task list. If you prefer to start Planner
2415 manually, remember to call @kbd{M-x plan} every so often to make sure
2416 that you don't forget any unfinished tasks. Safe in the knowledge that
2417 Planner tasks won't slip through the cracks (unlike little slips of
2418 paper that will invariably get mislaid), you can then get on with the
2419 rest of your life.
2421 If your increased productivity with Planner leads to a well-deserved
2422 two-week vacation, then you'll need to tell Planner to search more days
2423 for unfinished tasks. By using @kbd{M-x plan}, you can automatically
2424 bring forward tasks over a given number of days or even scan all the
2425 days since time immemorial. @kbd{C-u 15 M-x plan} reschedules all
2426 unfinished tasks from the last 15 days. @kbd{C-u -1 M-x plan} checks all
2427 of your past day pages for unfinished tasks.
2429 Like everything else in Planner, you can adapt @kbd{M-x plan} to your
2430 particular way of life. For example, if you find yourself starting up
2431 Emacs and Planner every day--including weekends--because it's just so
2432 much fun, you can set the @code{planner-carry-tasks-forward} to 1.
2433 This can make your Emacs startup marginally faster. On the other hand,
2434 if you normally start Emacs once a week, you can set it to 7 or 8. If
2435 you're worried about tasks dropping off your radar, you can set it to
2436 0. You can set the value of @var{planner-carry-tasks-forward} either
2437 with @key{M-x customize-variable RET planner-carry-tasks-forward RET},
2438 or by putting @code{(setq planner-carry-tasks-forward 3)} (replacing
2439 @code{3} with the value appropriate for what you want) in your
2440 @file{~/.emacs} file.
2442 On the other hand, you might prefer to reschedule tasks yourself. If
2443 you set @code{planner-carry-tasks-forward} to @code{nil}, then
2444 @command{M-x plan} and @code{(plan)} will bring you to the most recent
2445 page with unfinished tasks if there is no page for today. You can then
2446 use @command{planner-copy-or-move-task} and
2447 @command{planner-copy-or-move-region} to reschedule tasks. This is
2448 probably more hassle than it's worth, though, so let Planner take care
2449 of this for you.
2451 @subheading Options
2453 @defopt planner-carry-tasks-forward
2454 If non-nil, carry unfinished tasks forward automatically.
2455 If a positive integer, scan that number of days in the past.
2456 If 0, scan all days for unfinished tasks.
2457 If t, scan one day in the past (old behavior).
2458 If nil, do not carry unfinished tasks forward.
2459 @end defopt
2461 @subheading Functions
2463 @defun plan &optional force-days
2464 Start your planning for the day, carrying unfinished tasks forward.
2466 If @var{force-days} is a positive integer, search that many days in the
2467 past for unfinished tasks.
2468 If @var{force-days} is @code{0} or @code{t}, scan all days.
2469 If @var{force-days} is @code{nil}, use the value of
2470 @code{planner-carry-tasks-forward} instead, except t means scan only
2471 yesterday
2473 @end defun
2475 @defun planner-copy-or-move-task date force
2476 Reschedule the task for @var{date}. If @var{force} is non-nil, the
2477 task is moved regardless of status. It also works for creating tasks
2478 from a Note. Use @code{planner-replan-task} if you want to change the
2479 plan page in order to get better completion.
2480 @end defun
2482 @defun planner-copy-or-move-region beg end date muffle-errors
2483 Move all tasks from @var{beg} to @var{end} to @var{date}.
2484 @code{planner-copy-or-move-region} will copy or move all tasks from
2485 the line containing @var{beg} to the line just before @var{end}. If
2486 @var{muffle-errors} is non-nil, no errors will be reported.
2487 @end defun
2489 @node Task Numbering, Task Ranks, Carrying Over Unfinished Tasks, Organizing Your Tasks
2490 @comment  node-name,  next,  previous,  up
2491 @subsubsection Task Numbering
2493 By default, tasks are numbered according to their position on the
2494 page.  Task numbers allow you to refer to tasks using Muse links.
2495 For example, the @samp{#A1} task in @file{2004.08.16} can be referred to
2496 as @samp{2004.08.16#A1}.
2498 Note that task numbers change every time you re-sort and re-number tasks
2499 with @code{planner-fix-tasks}.  As a result, they are only reliable for
2500 references to past tasks.
2502 If you find yourself not using this functionality, you can turn off task
2503 numbers by using the following option.
2505 @subheading Options
2507 @defopt planner-use-task-numbers
2508 Non-nil means use task numbers when creating tasks.  This allows you
2509 to refer to past tasks if your tasks are numbered appropriately.
2510 If you set this to nil, you can save space in your plan files.
2511 @end defopt
2513 @node Task Ranks, Grouping Tasks, Task Numbering, Organizing Your Tasks
2514 @comment  node-name,  next,  previous,  up
2515 @subsubsection Task Ranks
2516 @cindex ranking tasks
2517 @cindex tasks, ranking
2518 @cindex @file{planner-rank.el}, using
2520 @file{planner-rank.el} models Franklin Covey's Urgency and Importance
2521 principle. When you think about a task, there are two aspects in
2522 consideration: Urgency and Importance. You may want to do the most
2523 urgent things first, like answering an email, or you may want to do
2524 the most important things first, like reading this manual. Or much
2525 better, balance Urgency and Importance and decide what to do.
2527 @file{planner-rank.el} can help you balance.
2529 Urgency and Importance are both measured by scores from 0-9. The
2530 higher the score, the more you want to do it first. 9 stands for ``I
2531 should have done this'' and 0 stands for ``I can forget this''.
2533 If you are using the planner @ref{Deadlines} feature, the Urgency
2534 score is automatically calculated from how many days are left to meet
2535 the deadline. By default, it will score 9 if the task is overdue and 0
2536 if the deadline is years away. Please refer to the docstring of
2537 @code{planner-rank-deadline-urgency-map-list} for detail.
2539 The task rank is calculated from Urgency and Importance scores. As
2540 different people balance urgency and importance differently, a number
2541 of @code{planner-rank-calculate-rank-*} functions are provided. The
2542 algorithms vary from a simple average to something like a weighted
2543 root mean square deviation.
2545 The aggressive versions of these functions
2546 (@code{planner-rank-calculate-rank-*-aggressive}) will make sure if
2547 one of Urgency and Importance is high, the resulting rank will be high
2548 as well. @code{planner-rank-calculate-rank-weighted-*} functions weigh
2549 the Urgency and Important scores depending on
2550 @code{planner-rank-importance-vs-urgency-factor}.
2552 Call @code{planner-rank-test-algorithm} on each of the functions and
2553 check the result tables to see which one you like most, and set it to
2554 @code{planner-rank-rank-calculate-function}. Alternatively, accept the
2555 defaults and tweak them when you get a better feel for ranking.
2557 Once the Rank is calculated, the @ref{Task Priorities} will be
2558 automatically reset. If the Rank is greater than or equal to
2559 @code{planner-rank-priority-A-valve}, the task priority will be
2560 @samp{A}, if the Rank is between @code{planner-rank-priority-A-valve}
2561 and @code{planner-rank-priority-B-valve}, the priority will be @samp{B},
2562 else it will be @samp{C}.
2564 After setting the task importance and deadline, you can leave it as
2565 is. As the deadline approaches, the task priority will automatically
2566 be raised and the task re-colored to catch your eyes.
2568 If you are using @code{planner-sort-tasks} (see @pxref{Making Files
2569 Pretty}), you can set @code{planner-sort-tasks-key-function} to one of
2570 @code{planner-sort-tasks-by-rank},
2571 @code{planner-sort-tasks-by-importance}, and
2572 @code{planner-sort-tasks-by-urgency}.
2574 @subheading Options
2576 @defopt planner-rank-change-hook
2577 Functions to run after @code{planner-rank-change}.
2578 @end defopt
2580 @defopt planner-rank-priority-A-valve
2581 Tasks with rank greater than or equal to this value will be set to
2582 priority @samp{A}.
2583 @end defopt
2585 @defopt planner-rank-priority-B-valve
2586 Tasks with rank greater than or equal to this value and less than
2587 @code{planner-rank-priority-A-valve} will be set to priority
2588 @samp{B}. Tasks with rank less than this value will be set to priority
2589 @samp{C}.
2590 @end defopt
2592 @defopt planner-rank-deadline-urgency-map-list
2593 Defines how to calculate the Urgency score according to how many days
2594 are left to meet the deadline.
2595 @end defopt
2597 @defopt planner-rank-default-importance
2598 Default importance value for newly added rank.
2599 @end defopt
2601 @defopt planner-rank-default-urgency
2602 Default urgency value for newly added rank.
2603 @end defopt
2605 @defopt planner-rank-importance-vs-urgency-factor
2606 How much do you think importance is more ``important'' than urgency.
2607 This will be used in @code{planner-rank-calculate-rank-weighted-*}
2608 functions.
2609 @end defopt
2611 @defopt planner-rank-rank-calculate-function
2612 Define the function called to calculate rank.
2613 @end defopt
2615 @subheading Functions
2617 @defun planner-rank-change &optional importance urgency
2618 Set the Importance and Urgency of the current task.
2619 @end defun
2621 @defun planner-rank-update-current-task
2622 Recalculate rank for the current task.
2623 @end defun
2625 @defun planner-rank-update-all
2626 Recalculate rank for all tasks in the current page
2627 @end defun
2629 @defun planner-rank-update-all
2630 Recalculate rank for all tasks in the current page
2631 @end defun
2633 @node Grouping Tasks,  , Task Ranks, Organizing Your Tasks
2634 @comment  node-name,  next,  previous,  up
2635 @subsubsection Grouping Tasks with planner-trunk.el
2636 @cindex grouping tasks
2637 @cindex tasks, grouping
2638 @cindex @file{planner-trunk.el}, using
2640 @file{planner-trunk.el} helps you automatically group tasks according
2641 to a set of rules. It sorts and splits your tasks, adding a blank line
2642 between groups of tasks. For example, if today's page looks like this:
2644 @example
2645 * Tasks
2647 #B   _ Buy milk (GroceryShopping)
2648 #B   _ Learn how to use planner-trunk (PlannerMode)
2649 #B   _ Buy a notebook (Bookstore)
2650 #B   _ Buy cereal (GroceryShopping)
2651 #B   _ Set up my own planner-trunk rules (PlannerMode)
2652 #B   _ Customize my stylesheet (MuseMode)
2653 #B   _ Go for a health checkup (BetterHealth)
2654 @end example
2656 @noindent
2657 then you might want to group the tasks into: planner and muse,
2658 shopping list, and other items. If you set up the appropriate rules by
2659 customizing @code{planner-trunk-rule-list}, @file{planner-trunk.el}
2660 can automatically rewrite that section line this:
2662 @example
2663 * Tasks
2665 #B   _ Learn how to use planner-trunk (PlannerMode)
2666 #B   _ Set up my own planner-trunk rules (PlannerMode)
2667 #B   _ Customize my stylesheet (MuseMode)
2669 #B   _ Buy milk (GroceryShopping)
2670 #B   _ Buy a notebook (BookstoreShopping)
2671 #B   _ Buy cereal (GroceryShopping)
2673 #B   _ Go for a health checkup
2674 @end example
2676 @noindent
2677 In this case, you would set @code{planner-trunk-rule-list}
2678 to @code{(("." nil ("PlannerMode\\|MuseMode" "Shopping")))}.
2680 You can load @file{planner-trunk} with @kbd{M-x load-library RET
2681 planner-trunk RET} or add @code{(require 'planner-trunk)}. If you're
2682 not yet comfortable with Emacs Lisp, you can use @kbd{M-x
2683 customize-variable RET planner-trunk-rule-list RET} to edit this rule
2684 using an easy-to-use interface.
2686 WARNING: Do not keep non-task information in the Tasks section.
2687 planner-trunk will delete @strong{all} non-task lines from the Tasks
2688 section of your plan page in the process of grouping the tasks.
2690 After you set up @code{planner-trunk-rule-list}, use @command{M-x
2691 planner-trunk-tasks} to try out your rules until you're satistfied.
2693 If you want to do this automatically, you can use @code{(add-hook
2694 'planner-mode-hook 'planner-trunk-tasks)} to trigger it automatically
2695 whenever you open a Planner page.
2697 @node Task Reports and Overviews,  , Organizing Your Tasks, More about Tasks
2698 @subsection Task Reports and Overviews
2699 @cindex task reports
2700 @cindex task overviews
2701 @cindex reports, task
2702 @cindex overviews, task
2703 @cindex reports, accomplishment
2704 @cindex tasks, overview of
2706 Planner provides a number of different ways to generate different
2707 presentations of your tasks.
2709 @menu
2710 * Accomplishments::             planner-accomplishments.el
2711 * Status Reports::              planner-report.el
2712 * Task Overviews::              planner-tasks-overview.el
2713 * <tasks> tag::             
2714 * planner-registry::            Keep track of annotations
2715 * planner-zoom::                View and navigate tasks by time period
2716 @end menu
2718 @node Accomplishments, Status Reports, Task Reports and Overviews, Task Reports and Overviews
2719 @comment  node-name,  next,  previous,  up
2720 @subsubsection Generating Daily Accomplishment Reports
2721 @cindex reports, accomplishment
2722 @cindex @file{planner-accomplishments.el}, using
2723 @cindex tasks, overview of
2724 @cindex task reports
2725 @cindex reports, task
2726 @cindex overviews, task
2727 @cindex task overviews
2729 You can use @file{planner-accomplishments.el} to get a summary of your
2730 task activity for a particular day. The report is grouped by status
2731 and plan (on day pages) or date (on plan pages). An example report
2732 follows:
2734 @example
2735 Link        | Unfinished | In progress | Delegated | Completed | Total
2736 nil         | 1          | 0           | 0         | 6         | 7
2737 TaskPool    | 1          | 1           | 0         | 3         | 5
2738 Planner     | 0          | 0           | 1         | 1         | 2
2739 SchoolWork  | 0          | 0           | 0         | 1         | 1
2740 Total       | 2          | 1           | 1         | 11        | 15
2741 @end example
2743 This lets you see how you balance your time between your projects.
2745 @itemize
2747 There are currently two ways to use @file{planner-accomplishments.el}.
2749 @item Displaying a temporary buffer
2751 You can call @code{planner-accomplishments-show} to display a buffer
2752 containing the current page's accomplishment report.
2754 @item Rewriting sections of your planner
2756 Choose this approach if you want accomplishment reports to be in
2757 their own section and you would like them to be readable in your
2758 plain text files even outside Emacs. Caveat: The accomplishment
2759 section should already exist in your template and will be rewritten
2760 when updated.
2762 To use, set @code{planner-accomplishments-section} to the name of the
2763 section to rewrite (default: @samp{Accomplishments}). If you want
2764 rewriting to be automatically performed, call
2765 @code{planner-accomplishments-insinuate}. The accomplishments will be
2766 rewritten whenever you save a planner page. If you want rewriting to
2767 be manual, call @code{planner-accomplishments-update}.
2769 @end itemize
2771 @subheading Options
2773 @defopt planner-accomplishments-section
2774 Header for the accomplishments section in a plan page.
2775 Used by @code{planner-accomplishments-update}.
2776 @end defopt
2778 @defopt planner-accomplishments-status-display
2779 Alist of status-label maps also defining the order of display.
2780 Used by @code{planner-accomplishments-format-table}.
2781 @end defopt
2783 @subheading Functions
2785 @defun planner-accomplishments-insinuate ()
2786 Automatically call @code{planner-accomplishments-update} when saving
2787 tasks in @code{planner-mode} buffers.
2788 @end defun
2790 @defun planner-accomplishments-update ()
2791 Rewrite @code{planner-accomplishments-section} with a summary of tasks
2792 on this page.
2793 @end defun
2795 @defun planner-accomplishments-show ()
2796 Display a buffer with the current page's accomplishment report.
2797 @end defun
2799 @node Status Reports, Task Overviews, Accomplishments, Task Reports and Overviews
2800 @comment  node-name,  next,  previous,  up
2801 @subsubsection Status Reports
2802 @cindex status reports
2803 @cindex reports, status
2804 @cindex @file{planner-report.el}, using
2806 @file{planner-report.el} creates a status report for a given timespan.
2807 The report itself is just another Planner page in your planner
2808 directory.  Once generated, it contains tasks and notes culled from
2809 active project pages.  Tasks are only shown if they are incomplete or
2810 were completed within the timespan.  Notes are shown if they were
2811 created during the timespan.  Tasks and notes are grouped together under
2812 a heading for their corresponding project.
2814 The idea is you have one of these status reports generated periodically
2815 (say, every couple of weeks).  Perhaps you use cron to run them
2816 automatically and then mail you a reminder that they've been done.  Then
2817 you can edit the page, adding verbiage where it is needed and removing
2818 irrelevant items.  This editing process is as easy as editing any other
2819 Planner page.  Finally, you can publish the page along with the rest of
2820 your planner using @kbd{M-x muse-project-publish}.
2822 If you use planner-authz.el, you can tell planner-report.el only to
2823 consult project pages that a given list of users
2824 (@var{planner-report-authz}) can access when generating the report.  For
2825 example, if you're preparing a status report for your boss, add yourself
2826 and him to @var{planner-report-authz}.  The resulting status report will
2827 only contain information the two of you are supposed to have access to,
2828 and the report itself will be similarly restricted.
2830 @subheading Getting started
2832 Add the following to your .emacs file:
2834 @example
2835 (require 'planner-report)
2836 @end example
2838 Then you can use the following command to generate a status report:
2840 @example
2841 M-x planner-report-generate
2842 @end example
2844 You will be prompted for a beginning and ending date, and then the
2845 status report will be generated.  You can then edit it to your liking
2846 and publish it just like you would the rest of your planner.
2848 @subheading Options
2850 @defopt planner-report-authz
2851 List of users a status report should be restricted to.
2852 When status reports are generated, only planner pages accessible
2853 by these users will be consulted, and the resulting status report
2854 will be similarly restricted.
2855 @end defopt
2857 @defopt planner-report-pretty-print-plan-pages
2858 If non-nil, pretty print plan pages.
2859 If nil, leave page names as-is.
2860 This requires that @file{muse-wiki.el} be loaded to work properly.
2861 @end defopt
2863 @defopt planner-report-remove-task-numbers
2864 Remove task numbers when generating status reports.
2865 @end defopt
2867 @defopt planner-report-replace-note-numbers
2868 If non-nil, a string with which to replace note numbers when
2869 generating status reports.
2870 @end defopt
2872 @defopt planner-report-unfinished-offset
2873 If non-nil, the offset in days from the current date of
2874 unfinished tasks to include in the status report.  If nil,
2875 include all unfinished tasks.
2876 @end defopt
2878 @subheading Functions
2880 @defun planner-report-generate begin end
2881 Generate a status report spanning a period from @var{begin} to @var{end}.
2882 @var{begin} and @var{end} are in the format YYYY.MM.DD.
2883 @end defun
2885 @node Task Overviews, <tasks> tag, Status Reports, Task Reports and Overviews
2886 @comment  node-name,  next,  previous,  up
2887 @subsubsection Seeing an Overview of Tasks
2888 @cindex tasks, overview of
2889 @cindex task reports
2890 @cindex reports, task
2891 @cindex overviews, task
2892 @cindex task overviews
2893 @cindex @file{planner-tasks-overview.el}, using
2895 You can see a list of tasks with @file{planner-tasks-overview.el}.
2896 Seeing how you've scheduled tasks over the next few days can help you
2897 decide when to schedule another task. Table entries will be of the form
2899 @var{date} | @var{link} | @var{priority} @var{status} | @var{task-description}
2901 @subheading Functions
2903 To display the tasks between a set of day pages, use
2905 @defun planner-tasks-overview start end
2906 Display an overview of your tasks from @var{start} to @var{end}. If
2907 @var{start} is nil, start from the very first day page. If @var{end}
2908 is nil, include the very last day page. You can use
2909 @code{planner-expand-name} shortcuts here, like @kbd{+1} or @kbd{-1}.
2910 Pressing @key{RET} at the prompt will use today.
2912 Once in a @code{planner-tasks-overview} buffer, you can use
2913 the keyboard shortcut @key{o} to change the overview period.
2914 @end defun
2916 You can sort the task display with the following functions:
2918 @defun planner-tasks-overview-sort-by-date
2919 Sort the tasks by date. Keyboard shortcut: @key{1}
2920 @end defun
2922 @defun planner-tasks-overview-sort-by-plan
2923 Sort the tasks by associated plan page. Keyboard shortcut: @key{2}
2924 @end defun
2926 @defun planner-tasks-overview-sort-by-priority
2927 Sort the tasks by priority. Keyboard shortcut: @key{3}
2928 @end defun
2930 @defun planner-tasks-overview-sort-by-status
2931 Sort the tasks by status. Keyboard shortcut: @key{4}
2932 @end defun
2934 You can jump to linked tasks with
2936 @defun planner-tasks-overview-jump other-window
2937 Display the current task. If a prefix argument is supplied, show the
2938 task in another window. Keyboard shortcut: @key{j}
2939 @end defun
2941 @defun planner-tasks-overview-jump-other-window
2942 Display the current task in another window. Keyboard shortcut: @kbd{C-u j}
2943 @end defun
2945 You can view a summary of the tasks in your plan pages with
2947 @defun planner-tasks-overview-show-summary &optional file-list
2948 Count unscheduled, scheduled, and completed tasks for FILE-LIST. If
2949 called with an interactive prefix, prompt for the plan page(s) to
2950 display. Load @file{planner-multi.el} to be able to specify multiple
2951 pages.
2952 @end defun
2954 @subheading Keys
2956 @key{TAB}, @kbd{SHIFT-TAB} and @key{RET} navigate links in the usual
2957 fashion.
2959 @node <tasks> tag, planner-registry, Task Overviews, Task Reports and Overviews
2960 @subsubsection <tasks> tag
2961 @cindex <tasks> tag
2962 @cindex task reports
2963 @cindex reports, task
2964 @cindex overviews, task
2965 @cindex task overviews
2966 @cindex tasks, overview of
2968 @samp{<tasks>} is replaced by a report of tasks over all day pages in
2969 published pages (@pxref{Publishing}).
2971 @example
2972 All incomplete tasks
2974 <tasks status="^X">
2976 All completed tasks
2978 <tasks status="X">
2980 All tasks
2982 <tasks>
2983 @end example
2985 Warning: this function can be slow, as it checks all the day pages!
2987 @node planner-registry, planner-zoom ,<tasks> tag, Task Reports and Overviews
2988 @comment  node-name,  next,  previous,  up
2989 @section planner-registry
2990 @cindex @file{planner-registry.el}, using
2992 The @file{planner-registry} module provides a way to keep track of all
2993 the URLs in your projects, and to list them depending on the current
2994 buffer.  The URLs are defined in @code{muse-url-protocols} module from
2995 Muse.
2997 If a URL has been created by @code{planner-create-task-from-buffer},
2998 going to that buffer and calling @code{planner-registry-show} will show
2999 you where Planner put the URL.
3001 @subheading Getting started
3003 To begin using @file{planner-registry}, add the following to your
3004 Planner configuration file.
3006 @example
3007 (require 'planner-registry)
3008 (planner-registry-initialize)
3009 @end example
3011 You must put it after the place where Planner has been loaded in your
3012 configuration file.
3014 If you want the registry to be updated each time you save a Planner
3015 file, add the following to your Planner configuration.
3017 @example
3018 (planner-registry-insinuate)
3019 @end example
3021 If you don't want to update the registry each time a file is written,
3022 you can do it manually with @code{planner-registry-update}: it will
3023 update the registry for saved Planner/Muse buffers only.
3025 @file{planner-registry} does not define any keybindings by default.  Its
3026 most useful interactive function is @code{planner-registry-show}.
3028 @subheading Example usage
3030 Say for example that you created a task from an e-mail.  Go to that
3031 e-mail and call @code{planner-registry-show}: it will open a new buffer
3032 displaying the files (in a muse links format) where a link to this
3033 e-mail has been added.
3035 @subheading Options
3037 @file{planner-registry} defines the following options.
3039 @defopt planner-registry-file
3040 The file where @file{planner-registry} stores its URL registry.
3041 @end defopt
3043 @defopt planner-registry-min-keyword-size
3044 The minimum size for keywords.
3045 @end defopt
3047 @defopt planner-registry-max-keyword-size
3048 The maximum size for keywords.
3049 @end defopt
3051 @defopt planner-registry-max-number-of-keywords
3052 The maximum number of keywords.
3053 @end defopt
3055 @defopt planner-registry-ignore-keywords
3056 A list of keywords to ignore.
3057 @end defopt
3059 @defopt planner-registry-show-level
3060 Level used by the @code{planner-registry-show} function.
3061 0 means that this function shows only exact matches.
3062 1 means that this function also shows descriptive matches.
3063 2 (or more) means that this function also shows fuzzy matches.
3064 @end defopt
3066 @node planner-zoom, , planner-registry, Task Reports and Overviews
3067 @comment  node-name,  next,  previous,  up
3068 @section planner-zoom
3069 @cindex @file{planner-zoom.el}, using
3070 @cindex view, weekly
3071 @cindex view, quarterly
3072 @cindex view, monthly
3073 @cindex view, yearly
3075 When assessing where you stand in relation to the tasks you have set
3076 out for yourself, you might want a way to survey those tasks in groups
3077 divided by time periods, like by the week or by the month. You could
3078 create all of these overview pages by hand, but if you like to have
3079 this kind of overview frequently, you might find manually creating
3080 such pages to be tedious and time consuming.
3082 @file{planner-zoom} is an optional module designed to make it easy to
3083 view your task information grouped by year, quarter, month, week or
3084 day.
3086 To install this module, just load it in your @file{.emacs} (or
3087 @file{_emacs}):
3089 @example
3090 (require 'planner-zoom)
3091 @end example
3093 This module will recognize planner pages named according to the
3094 following scheme:
3096 @table @asis
3098 @item year view
3099 @file{2006.Year}
3101 @item quarter view
3102 @file{2006.Quarter2}
3104 @item month view
3105 @file{2006.January}
3107 @item week view
3108 @file{2006.January.Week3}
3110 @item day view
3111 @file{2006.01.02}
3113 @end table
3115 @subheading Keybindings
3117 This module also adds key bindings that you can use when looking at a
3118 Planner page to easily jump between the different time-period views.
3120 @table @kbd
3122 @item S-up
3123 Move to the view corresponding to the time period one step larger than
3124 the current one. For example, it moves from the weekly view to the
3125 monthly view. It calls @code{planner-zoom-iup}.
3127 @item S-down 
3128 Move to the view corresponding to the time period one step smaller
3129 than the current one. For example, it moves from the weekly view to
3130 the daily view. It calls @code{planner-zoom-idown}.
3132 @item S-left
3133 Stay in the same time-period view as the current one, but move one
3134 interval earlier. For example, it moves from @file{2006.January.Week3}
3135 to @file{2006.January.Week2}. It calls @code{planner-zoom-iprev}.
3137 @item S-right
3138 Stay in the same time-period view as the current one, but move one
3139 interval later. For example, it moves from @file{2006.January.Week3}
3140 to @file{2006.January.Week4}. It calls @code{planner-zoom-inext}.
3142 @end table
3144 @subheading Example usage
3146 Look at the page named @file{2006.January} and then hit @kbd{S-down}
3147 which will show @file{2006.January.Week1}. Then hit @kbd{S-left} and
3148 @kbd{S-right} to look at @file{2006.January.Week2},
3149 @file{2006.January.Week3}, etc.
3151 @subheading Advanced tips and options
3153 You can use any prefix argument with @code{planner-zoom-iup} and
3154 @code{planner-zoom-idown} to have the new view display in a window
3155 other than the current one. This also works with a nonnumeric prefix
3156 argument and @code{planner-zoom-inext} or @code{planner-zoom-iprev}.
3157 For these two functions, a numeric prefix will specify the number of
3158 intervals to move.
3160 If you don't like the default patterns for naming the time-period view
3161 pages, you can change them by customizing @code{planner-zoom-regexps}.
3163 Some people believe weeks start with Sunday, and some believe they
3164 start with Monday. To accommodate both of these colliding worldviews,
3165 @code{planner-zoom-first-day-of-week} can be customized. Its default
3166 value is @samp{1}, which is Monday. If you would prefer Sunday, change
3167 it to @samp{0}. The month to which a week belongs is the month in
3168 which the first day of the week falls.
3170 @subheading Command reference
3172 @defun planner-zoom-iup name other-window
3173 Move to the next higher level in the hierarchy. With a prefix
3174 argument, show the desired page in the other window.
3175 @end defun
3177 @defun planner-zoom-idown name other-window
3178 Move to the next lower level in the hierarchy. If the current date is
3179 within the higher-level time range, zoom to the lower level time range
3180 that also contains today. Otherwise, just go to the first lower-level
3181 time range. With a prefix argument, show the desired page in the other
3182 window.
3183 @end defun
3185 @defun panner-zoom-inext name num other-window
3186 Move to the next time range at the same level in the hierarchy. With a
3187 numeric prefix argument, move by that number of time ranges. With a
3188 non-numeric prefix argument, show the desired page in the other window.
3189 @end defun
3191 @defun planner-zoom-iprev name num other-window
3192 Move to the previous time range at the same level in the hierarchy.
3193 With a numeric prefix argument, move by that number of time ranges.
3194 With a non-numeric prefix argument, show the desired page in the other
3195 window.
3196 @end defun
3198 @node More about Notes, Making Files Pretty, More about Tasks, More about Planner
3199 @section More about Notes
3200 @cindex notes, more about
3202 Planner by default organizes the notes on a planner page so that
3203 the most recent note is first. Each note is numbered, with the oldest
3204 note labeled @samp{.#1}. If you would like to reverse this behavior,
3205 look at @kbd{C-h v planner-reverse-chronological-notes}.
3207 Notes are associated with day pages, but can also be associated with
3208 plan pages when they are created.  A linked note looks like this:
3210 @example
3211 .#1 Headline (LinkedNote#1)
3212 Text
3213 @end example
3215 You can jump to the linked note with
3216 @command{planner-jump-to-linked-note}.
3218 Deleting a note can be dangerous, as the notes are automatically
3219 numbered.  Removing a note could break links in other pages.
3221 @subheading Functions
3223 @defun planner-create-note page
3224 Create a note to be remembered in @var{page} (today if @var{page} is
3225 nil).  If @code{planner-reverse-chronological-notes} is non-nil, create
3226 the note at the beginning of the notes section; otherwise, add it to
3227 the end.  Position point after the anchor.
3228 @end defun
3230 @defun planner-create-note-from-task
3231 Create a note based on the current task and update the current task to
3232 link to the note.
3233 @end defun
3235 @defun planner-renumber-notes
3236 Update note numbering.
3237 @end defun
3239 @defun planner-jump-to-linked-note note-info
3240 Display the note linked to by the current note or @var{note-info} if
3241 non-nil.
3242 @end defun
3244 @defun planner-search-notes regexp limit
3245 Return a buffer with all the notes returned by the query for
3246 @var{regexp}.  If called with a prefix argument, prompt for
3247 @var{limit} and search days on or after @var{limit}.
3248 @end defun
3250 The following sections include instructions for displaying,
3251 manipulating, and navigating your notes efficiently.
3253 @menu
3254 * Using Allout Mode::           Quickly navigating your notes
3255 * <notes>::                     Note headlines
3256 * <past-notes>::                Index of past notes
3257 * Note Indices::                planner-notes-index.el
3258 @end menu
3260 @node Using Allout Mode, <notes>, More about Notes, More about Notes
3261 @subsection Using Allout Mode
3262 @cindex Allout mode
3263 @cindex notes, navigating
3264 @cindex notes, formatting
3265 @cindex notes, displaying
3267 The format of the notes in Planner works well with Allout mode, which
3268 provides helpful commands for navigating and formatting outlines. You
3269 can, for example, hide the bodies of all the notes on a page so you can
3270 see just their headlines. You can also jump easily from headline to
3271 headline, skipping over the bodies in between.
3273 The commands for using Allout mode vary depending on which Emacs
3274 version you are using. In either case, type @kbd{M-x load-library
3275 @key{RET} allout @key{RET}} to start. If you are using Emacs 22 or
3276 later, type @kbd{M-x allout-mode @key{RET}}. If you are using an
3277 earlier version of Emacs, type @kbd{M-x outline-mode @key{RET}}.
3279 The exact commands then available to you differ depending on your
3280 Emacs version, but you can view the commands and their keybindings by
3281 typing @kbd{C-h m}. In Emacs 22 or later, they will start with
3282 @command{allout-}, while in previous versions, they will start with
3283 @command{outline-}.
3285 For more information about using Allout mode, see @kbd{C-h f
3286 allout-mode @key{RET}}.
3288 @node <notes>, <past-notes>, Using Allout Mode, More about Notes
3289 @subsection <notes>
3291 @samp{<notes>} is replaced by a list of note headlines when the page
3292 is published. For example, the notes tag in the following example will
3293 be replaced by the two headlines when published. (@pxref{Publishing})
3295 @example
3296 <notes>
3298 * Notes
3300 .#1 This is a headline
3302 and this is body text
3304 .#2 This is another headline
3306 and this is more body text
3307 @end example
3309 @samp{<notes>} is useful if you want to provide a quick summary of
3310 blog entries at the top of your page. Just add it to your
3311 @code{planner-day-page-template}.
3313 @node <past-notes>, Note Indices, <notes>, More about Notes
3314 @subsection <past-notes>
3316 @samp{<past-notes>} is replaced by an index of note headlines.
3317 If @var{start} is specified, it lists notes starting from that date.
3318 If @var{directory} is specified, you can index notes in another
3319 planner directory.
3321 @example
3322 All the notes I've taken in 2004:
3324 <past-notes start="2004.01.01" end="2004.12.31">
3325 @end example
3327 @node Note Indices,  , <past-notes>, More about Notes
3328 @comment  node-name,  next,  previous,  up
3329 @subsection Note Indices
3330 @cindex @file{planner-notes-index.el}, using
3331 @cindex notes, indexing
3333 Make sure that @file{planner-notes-index.el} is in your load path and
3334 add this to your @file{.emacs} (or @file{_emacs}):
3336 @example
3337 (require 'planner-notes-index)
3338 @end example
3340 Then you can use tags of the form:
3342 @example
3343 <planner-notes-index page="2004.03.02">
3344 <planner-notes-index from="2004.03.01" to="2004.03.31">
3345 <planner-notes-index limit="10">
3346 <planner-notes-index page="PlanPage">
3347 <planner-notes-index-month-table month="2004.03" limit="5">
3348 <planner-notes-index-month-table month="2004.03">
3349 @end example
3351 You can also use the following interactive functions:
3353 @code{planner-notes-index}
3354 @code{planner-notes-index-days}
3355 @code{planner-notes-index-weeks}
3356 @code{planner-notes-index-months}
3357 @code{planner-notes-index-years}    (wow!)
3359 These work based on the current date (date of current buffer, or today).
3361 If a single page is specified, this page is scanned for headlines
3362 of the form:
3364 @example
3365  .#1 Headline
3366 @end example
3368 The results are presented as a bulleted list.
3370 If @var{from} and @var{to} are specified, all date pages between them
3371 (inclusive) are scanned. If @var{from} is omitted, it is assumed to be
3372 the earliest entry.  If @var{to} is omitted, it is assumed to be the
3373 latest entry.
3375 If @var{recent} is specified, the list includes only that many recent
3376 headlines.  and the results are presented as a bulleted list.
3378 To customize presentation, you can write a function that generates
3379 the appropriate @code{<planner-notes-index>} tags. You can also use
3380 @code{planner-extract-note-headlines} in your own functions.
3382 @subheading Functions
3384 The following interactive functions are defined in
3385 @file{planner-notes-index.el}:
3387 @defun planner-notes-index &optional from to limit
3388 Display a clickable notes index. If called from a Lisp program,
3389 display only dates between @var{from} and @var{to}. With a prefix arg
3390 @var{limit}, display only that number of entries.
3391 @end defun
3393 @defun planner-notes-index-days days
3394 Display an index of notes posted over the past few @var{days}. The
3395 list ends with the day of the current buffer or @code{planner-today}.
3396 @end defun
3398 @defun planner-notes-index-weeks weeks
3399 Display an index of notes posted over the past few @var{weeks}. The
3400 list ends with the week of the current buffer or
3401 @code{planner-today}. Weeks start from Sunday.
3402 @end defun
3404 @defun planner-notes-index-months months
3405 Display an index of notes posted over the past few @var{months}. The
3406 list ends with the month of the current buffer or @code{planner-today}.
3407 @end defun
3409 @defun planner-notes-index-years years
3410 Display an index of notes posted over the past few @var{years}. The
3411 current year is included.
3412 @end defun
3414 @file{planner-notes-index.el} does not define any keybindings.
3417 @node Making Files Pretty, Annotations, More about Notes, More about Planner
3418 @section Making Files Pretty
3420 By default, planner does a little bit of fancy reformatting when you
3421 save a file. Tasks are sorted by priority (ABC) and status (_oP>XC) on
3422 day pages. On plan pages, tasks are sorted by priority (ABC), status
3423 (XC), and date. Undated tasks are sorted after dated tasks.
3425 @subheading Options
3427 @defopt planner-sort-tasks-key-function
3428 Control task sorting. Some options include
3429 @code{planner-sort-tasks-default-key},
3430 @code{planner-sort-tasks-basic}, @code{planner-sort-tasks-by-date}, and
3431 @code{planner-sort-tasks-by-link}.
3432 @end defopt
3434 @defopt planner-sort-undated-tasks-equivalent
3435 This option controls the behavior of task sorting on plan pages.  By
3436 default, the value @samp{9999.99.99} causes dated tasks to be listed
3437 before undated tasks.  To sort undated tasks before dated tasks,
3438 set this to a blank string.
3439 @end defopt
3441 @defopt planner-sort-tasks-automatically
3442 Non-nil means sort tasks whenever a planner file is saved.  On day
3443 pages, tasks are sorted by status.  On plan pages, they are sorted by
3444 status and date.  Sorting can take a while.
3445 @end defopt
3447 @defopt planner-renumber-tasks-automatically
3448 Non-nil means renumber tasks from 1 to N whenever a planner file is
3449 saved. This allows you to refer to tasks in previous day pages using
3450 anchors like @samp{2003.08.12#A1}. If you use this function, make sure
3451 @code{planner-use-task-numbers} is non-nil so that new tasks are created
3452 with task numbers.
3453 @end defopt
3455 @defopt planner-align-tasks-automatically
3456 Non-nil means align tasks whenever a planner file is saved.  This
3457 causes the status to line up in a neat column if you have less than
3458 100 tasks.
3459 @end defopt
3461 @defopt planner-renumber-notes-automatically
3462 Non-nil means renumber the notes. If most of your notes are only on
3463 one page, you might like seeing the notes renumbered if you delete a
3464 note in the middle. However, if you use a lot of cross-referencing,
3465 note renumbering will break those links.
3466 @end defopt
3468 @subheading Functions
3470 @defun planner-sort-tasks
3471 Sort tasks according to planner-sort-tasks-key-function. By default,
3472 sort tasks according to priority and position on day pages, and
3473 according to status, priority, date, and position on plan pages.
3474 @end defun
3476 @defun planner-renumber-tasks
3477 Update task numbering.
3478 @end defun
3480 @defun planner-align-tasks
3481 Align tasks neatly. You can add this to @code{write-file-functions} to
3482 have the tasks automatically lined up whenever you save.  For best
3483 results, ensure @code{planner-align-tasks} is run after
3484 @code{planner-renumber-tasks}.
3485 @end defun
3487 @defun planner-fix-tasks
3488 Sort, renumber and align tasks.
3489 @end defun
3491 @node Annotations, Interactive Lisp, Making Files Pretty, More about Planner
3492 @comment  node-name,  next,  previous,  up
3493 @section Annotations
3495 The context included when you create a task and the context included
3496 when you create a note are gained the same way. It sounds like black
3497 magic, but it turns out not to be.
3499 All that happens is, Planner has a list of functions,
3500 @code{planner-annotation-functions}. When you create a task from a
3501 buffer, or remember a note from a buffer, Planner goes through
3502 this list from top to bottom. The first one that returns true is the
3503 one it uses.
3505 For example, if you're in Wanderlust, and you hit the key you've bound
3506 to @code{planner-create-task-from-buffer}, it looks at this list and
3507 does something like this.  Is it an ERC buffer? No. Is it a BBDB
3508 buffer? No. Are we in w3m? No. Are we in Wanderlust? Yes. So this
3509 function succeeds. It stops searching and runs the annotation function
3510 for Wanderlust, which in this case finds out who the message is from
3511 and what the message ID of the message is. It then takes those and
3512 constructs a link back to that message, with a link title something
3513 like @samp{Email from Joe Blogs}.
3515 So, you've read the email from Joe Blogs. He's asked you to do
3516 something and you've hit your key to add that task to your list of
3517 things to do. So what you end up with is a description of the task,
3518 and a link back to what made you create the task in the first place.
3520 The same happens with remembering notes, except that it ends up in the
3521 @samp{* Notes} section of your page instead.
3523 @subheading Options
3525 To change the behavior of annotations, customize the following options:
3527 @defopt planner-annotation-functions
3528 A list of functions tried in order by
3529 @command{planner-create-task-from-buffer} and other functions that
3530 pick up context.  The first non-nil value returned is used as the
3531 annotation.  To cause an item to @strong{not} be annotated, return the
3532 empty string @samp{""}.
3533 @end defopt
3535 @defopt planner-annotation-strip-directory
3536 File links are usually generated with the full path to the file so
3537 that you can easily tell apart files with the same base name.  If
3538 @code{planner-annotation-strip-directory} is non-nil, though, only the
3539 base name of the file will be displayed.  For example, a link to
3540 @samp{/foo/bar/baz} will be displayed as @samp{baz} and hyperlinked to
3541 the file.
3542 @end defopt
3544 @defopt planner-annotation-use-relative-file
3545 If t, always use relative filenames.
3546 @code{planner-annotation-use-relative-file} can also be a function that
3547 takes the filename and returns non-nil if the link should be relative.
3548 Filenames are resolved relative to the first directory of your Planner
3549 project in @code{muse-project-alist}.  That is, the created link will be
3550 of the form @samp{../../somefile} instead of
3551 @samp{/absolute/path/to/file}.  This can be helpful if you publish your
3552 planner files to the Net and your directory structure ensures that
3553 relative links resolve the same from your Plan pages and their
3554 respective publishing directory.
3555 @end defopt
3557 @node Interactive Lisp, Publishing, Annotations, More about Planner
3558 @comment  node-name,  next,  previous,  up
3559 @section Interactive Lisp with planner-lisp.el
3560 @cindex Lisp functions, using with Planner
3561 @cindex interactive Lisp fuctions, using with Planner
3562 @cindex @file{planner-lisp.el}, using
3564 You can include interactive Lisp functions in your planner pages.
3566 First, you need @file{planner-lisp.el}. Put this in your @file{.emacs}
3567 (or @file{_emacs}):
3569 @example
3570 (require 'planner-lisp)
3571 @end example
3573 Then, add a link to the Lisp function to your page, like:
3575 @example
3577 [[lisp:/plan][Plan]]
3579 @end example
3581 This will be rendered as @samp{Plan}. Selecting the link will run the
3582 @code{plan} function interactively.
3584 You can also execute other Lisp expressions. For example:
3586 @example
3587 [[lisp:/(planner-goto (planner-expand-name "+7"))][Next week]]
3588 @end example
3590 @file{planner-lisp.el} does not provide any interactive functions or
3591 keybindings.
3593 @node Publishing, Experimental Functions, Interactive Lisp, More about Planner
3594 @section Publishing
3595 @cindex publishing
3597 You can publish your planner files to a variety of different formats.
3598 For example, you can publish your planner in HTML and put it on a
3599 normal web server. No special server support is required. This gives
3600 you an easy way to keep other people up to date on your tasks, keep a
3601 web log, or simply organize information.
3603 Published files are stored in the path specified by
3604 @code{muse-project-alist} for your Planner project. Just copy the
3605 contents of this directory to your web server, and you're all set! Of
3606 course, publishing is completely optional.
3608 Here are some more features related to publishing:
3610 @menu
3611 * Publishing Planner pages::    planner-publish.el
3612 * Publishing Calendars::        planner-calendar.el
3613 * Authz Access Restriction::    planner-authz.el
3614 * RSS Publication::             Sharing notes with planner-rss.el
3615 * iCal Task Publication::       Sharing tasks with planner-ical.el
3616 * RDF Publication::             planner-rdf.el
3617 @end menu
3619 @node Publishing Planner pages, Publishing Calendars, Publishing, Publishing
3620 @comment  node-name,  next,  previous,  up
3621 @subsection Publishing Planner pages
3622 @cindex publishing
3623 @cindex @file{planner-publish.el}, using
3625 Publishing works by providing Muse with the settings and environment for
3626 Planner publishing.
3628 First, make sure that you have set up a proper
3629 @code{muse-project-alist} (@pxref{Creating Your Planner}).
3631 Second, add:
3633 @example
3634 (require 'planner-publish)
3635 @end example
3637 to your @file{.emacs} (or @file{_emacs}).
3639 To publish your entire Planner project, hit @kbd{C-c C-p}
3640 (@code{muse-project-publish}). To publish just the current buffer, hit
3641 @kbd{C-c C-t} (@code{muse-publish-this-file}).
3643 To automatically publish files when you save them, add the following
3644 code to your @file{~/.emacs} (or @file{_emacs}):
3646 @example
3647 (eval-after-load "muse-mode"
3648   '(add-hook 'after-save-hook
3649             #'(lambda ()
3650                 (when (planner-derived-mode-p 'muse-mode)
3651                   (muse-project-publish nil)))
3652             nil t))
3653 @end example
3655 @subheading Styles provided
3657 The following publishing styles are available.
3659 @table @code
3661 @cindex publishing styles, planner-html
3662 @item planner-html
3663 Publish Planner pages to HTML.
3665 @cindex publishing styles, planner-xhtml
3666 @item planner-xhtml
3667 Publish Planner pages to XHTML.
3669 @cindex publishing styles, planner-xml
3670 @item planner-xml
3671 Publish Planner pages to XML.
3673 @end table
3675 @subheading Options provided
3677 The following options may be customized to enhance your publishing
3678 experience.
3680 @table @code
3682 @item planner-publish-markup-regexps
3683 List of markup rules for publishing Planner pages.
3685 @item planner-publish-markup-functions
3686 Specify which function to use for publishing different kinds of markup.
3688 @item planner-publish-markup-tags
3689 A list of custom HTML-like tags to recognize when publishing.
3691 @item planner-xml-markup-strings
3692 Strings that are inserted to publish XML markup.
3694 @item planner-xml-header
3695 Header used when publishing Planner XML files.
3696 This may be text or a filename.
3698 @item planner-xml-footer
3699 Footer used when publishing Planner XML files.
3700 This may be text or a filename.
3702 @item planner-html-markup-strings
3703 Strings that are inserted to publish HTML markup.
3705 @item planner-html-style-sheet
3706 CSS stylesheet elements used in Planner HTML and XHTML files.
3707 This can also be one or more @samp{<link>} tags.
3709 @item planner-html-header
3710 Header used when publishing Planner HTML files.
3711 This may be text or a filename.
3713 @item planner-html-footer
3714 Footer used when publishing Planner HTML files.
3715 This may be text or a filename.
3717 @item planner-xhtml-header
3718 Header used when publishing Planner XHTML files.
3719 This may be text or a filename.
3721 @item planner-xhtml-footer
3722 Footer used when publishing Planner XHTML files.
3723 This may be text or a filename.
3725 @item planner-html-inner-header
3726 Extra header section that can be embedded within
3727 @code{planner-html-header} and @code{planner-xhtml-header}.
3729 @item planner-html-inner-footer
3730 Extra header section that can be embedded within
3731 @code{planner-html-footer} and @code{planner-xhtml-footer}.
3733 @item planner-publish-prepare-regexps
3734 List of markup rules to apply before publishing a page with Planner.
3736 @item planner-publish-finalize-regexps
3737 List of markup rules to apply after publishing a page with Planner.
3739 @end table
3741 @node Publishing Calendars, Authz Access Restriction, Publishing Planner pages, Publishing
3742 @comment  node-name,  next,  previous,  up
3743 @subsection Publishing Calendars
3744 @cindex calendar, publishing
3745 @cindex @file{planner-calendar.el}, using
3747 To publish calendars in your day pages, it is necessary to do two steps.
3749 @itemize
3750 @item Add @code{(require 'planner-calendar)} to your configuration.
3751 @item Add a @samp{<calendar>} tag to either your header, footer, or
3752 @var{planner-day-page-template}, depending on where you want it to
3753 appear.
3754 @end itemize
3756 To display a calendar based on a different day (given here as DAYPAGE),
3757 use @code{<calendar page="DAYPAGE">}.
3759 To get arrows to previous and next months to show up, use
3760 @code{<calendar arrows="t">}.  The text in
3761 @var{planner-calendar-prev-month-button} and
3762 @var{planner-calendar-next-month-button} will be used for the arrows to
3763 the previous and next months, respectively.
3765 By default, Muse will not display the arrows properly, due to
3766 limitations in the special-escaping algorithm.  To work around this,
3767 remove the @samp{&} rule from @var{muse-xml-markup-specials}, or from
3768 @var{muse-html-markup-specials} if you are using the 3.02.6 version of
3769 Muse.
3771 It is also possible to create a symlink from the current day page to the
3772 page name specified by @var{planner-calendar-today-page-name}.  To
3773 accomplish this, add the following to your configuration.
3775 @example
3776 (eval-after-load "muse-publish"
3777   '(add-hook 'muse-after-publish-hook
3778              'planner-calendar-create-today-link))
3779 @end example
3781 @subheading Options
3783 @defopt planner-calendar-prev-month-button
3784 HTML text used for previous month buttons.
3785 @end defopt
3787 @defopt planner-calendar-next-month-button
3788 HTML text used for next month buttons.
3789 @end defopt
3791 @defopt planner-calendar-day-header-chars
3792 Number of characters to use for day column header names.
3793 @end defopt
3795 @defopt planner-calendar-today-page-name
3796 Default name for published today page link.
3797 @end defopt
3799 @subheading Functions
3801 @defun planner-calendar-create-today-link
3802 Add this function to @code{muse-after-publish-hook} to
3803 create a ``today'' soft-link to the newest published planner day page,
3804 on operating systems that support POSIX @command{ln}.
3805 @end defun
3807 @node Authz Access Restriction, RSS Publication, Publishing Calendars, Publishing
3808 @comment  node-name,  next,  previous,  up
3809 @subsection Authz Access Restriction
3810 @cindex @file{planner-authz.el}, using
3811 @cindex Mason, restricting portions with
3812 @cindex access, restricting
3814 @file{planner-authz.el} was written by Andrew J. Korty in order to
3815 allow the easy restriction of portions of published pages.  It uses
3816 the HTML::Mason module available on CPAN
3817 (@url{http://www.cpan.org}).  Setting up HTML::Mason is
3818 outside the scope of this document.  Make sure that it works before
3819 trying out @file{planner-authz.el}.
3821 @file{planner-authz.el} modifies the behavior of
3822 @command{muse-project-publish} so that published pages follow access
3823 modifiers.
3825 This library lets you publish your planner pages while controlling
3826 access to certain portions of them to users you specify.  When you
3827 load this library, you gain access to two additional markup directives
3828 to use in your planner pages.  The @samp{<authz>} tag lets you
3829 restrict access to arbitrary content as follows:
3831 @example
3832 Here is a sentence everyone should see.  This sentence also
3833 contains no sensitive data whatsoever.  <authz users="ajk">This
3834 sentence, however, talks about my predilection for that French
3835 vanilla instant coffee that comes in the little tin, and I'm
3836 embarrassed for anyone else to know about that.</authz> And
3837 here's some more perfectly innocuous content.
3838 @end example
3840 You can use @samp{<authz>} tags to mark up entire paragraphs, tasks,
3841 notes, and anything else.  The tags are replaced with Mason code in
3842 the published pages.
3844 The @samp{#authz} directive restricts access to an entire page.  A Mason
3845 call is added to this page to generate a 403 error when someone not
3846 listed tries to access it.  Any notes or tasks on a
3847 @samp{#authz}-protected page are also wrapped in Mason code on linked
3848 pages. To add a @samp{#authz} directive to a Muse page, place
3849 @samp{#authz} followed by a space-delimited list of users on one
3850 line. For example:
3852 @example
3853 #authz ajk sacha
3854 @end example
3856 @subheading Getting started
3858 Add the following to your .emacs file to cause @kbd{M-x
3859 muse-project-publish} to automatically use planner-authz features.
3861 @example
3862 (require 'planner-authz)
3863 @end example
3865 @subheading Diary markup
3867 If your pages have a section with diary entries maintained by
3868 planner-appt.el (or by any other means), you can control access to these
3869 entries.  First, customize @code{planner-section-tagnames} to map your
3870 diary section ("* Schedule", in this example) to a tag called
3871 "diary-section".  An example follows.
3873 @example
3874 (add-to-list 'planner-section-tagnames '("Schedule" . "diary-section"))
3875 @end example
3877 If the name of your diary section is "* Diary", you will not need to
3878 customize @code{planner-section-tagnames} by default.
3880 Then make sure the diary entries you want restricted contain a
3881 corresponding plan page name in parentheses, as in the following
3882 example.
3884 @example
3885 10:00 10:30 Meeting with boss (WorkStuff)
3886 @end example
3888 @subheading Options
3890 @defopt planner-authz-project-default
3891 Default access list for project pages (not day pages).  If a given
3892 project page doesn't contain a @samp{#authz} tag, it will receive the
3893 access list defined here.  If this variable is nil, all users will be
3894 allowed to view the page.  No corresponding variable is provided for
3895 day pages because it doesn't seem like you'd ever want to control
3896 access based on what day it was.  (But I will accept patches. :) Notes
3897 and tasks referencing pages without @samp{#authz} tags will also be
3898 restricted to the users listed here.
3899 @end defopt
3901 @defopt planner-authz-day-note-default
3902 Default access list for notes on day pages not associated with
3903 any project.  There is way to set a default for notes on project
3904 pages for the reason above; they would only be associated with
3905 date pages anyway.
3906 @end defopt
3908 @defopt planner-authz-day-task-default
3909 Same as @kbd{planner-authz-day-note-default}, but for tasks.
3910 @end defopt
3912 @subheading Functions
3914 @defun planner-authz-publish-index
3915 Publish an index for the planner marked up with Mason code.
3916 Only those links to pages which the remote user is authorized to
3917 access will be shown.
3918 @end defun
3920 @node RSS Publication, iCal Task Publication, Authz Access Restriction, Publishing
3921 @comment  node-name,  next,  previous,  up
3922 @subsection RSS Publication
3923 @cindex @file{planner-rss.el}, using
3924 @cindex notes, RSS
3925 @cindex RSS
3927 @file{planner-rss.el} allows you to publish your notes in the RSS 2.0
3928 XML format for blog syndication. You will also want to customize the
3929 following variables:
3931 To manually add the current note to all the matching RSS feeds, invoke
3932 @command{planner-rss-add-note}. You can specify a filename with the
3933 universal prefix, like this: @kbd{C-u M-x planner-rss-add-note}.
3935 If you use the @file{remember-planner.el} module to create notes, you
3936 can automatically publish new notes to RSS feeds by adding the
3937 following code to your @file{.emacs} (or @file{_emacs}).
3939 @example
3940 (add-to-list 'remember-planner-append-hook 'planner-rss-add-note t)
3941 @end example
3943 @subheading Options
3945 @defopt planner-rss-base-url
3946 Base absolute URL for published blog entries. Should include trailing
3947 @samp{/}.
3948 @end defopt
3950 @defopt planner-rss-category-feeds
3951 Rules for automatic categorization of posts and publishing to RSS
3952 files. A blog entry is matched against each condition. If it matches
3953 the regular expression or the function returns a non-nil value, the
3954 blog entry is copied into the specified file.
3955 @end defopt
3957 @defopt planner-rss-feed-limits
3958 A list of regular expressions that match feed filenames and the size
3959 and item limits for feeds that match. For example, you can use
3960 @samp{(("." nil 10))} to ensure that all feeds are limited to the 10
3961 most recent items.
3962 @end defopt
3964 @subheading Functions
3966 @file{planner-rss.el} defines the following interactive functions:
3968 @defun planner-rss-add-note @var{feed}
3969 Export the current note using @code{planner-add-item}. If @var{feed}
3970 is specified, add the entry to the specified file. Else, add the entry
3971 to all matching RSS feeds specified by
3972 @code{planner-rss-category-feeds}.
3973 @end defun
3975 @node iCal Task Publication, RDF Publication, RSS Publication, Publishing
3976 @comment  node-name,  next,  previous,  up
3977 @cindex @file{planner-ical.el}, using
3978 @subsection iCal Publication
3980 iCal is an Internet Engineering Task Force (IETF) standard for
3981 calendaring and scheduling. @uref{http://www.ietf.org/rfc/rfc2445.txt}
3983 You can export your tasks to the iCal format using
3984 @file{planner-ical}. Add @code{(require 'planner-ical)} to your
3985 @file{~/.emacs}. Then you can use @kbd{M-x planner-ical-export-page}
3986 to display the iCal equivalent of tasks on a page, which you can then
3987 save to a file.
3989 To export today's tasks to a file in your publishing directory, add
3990 the following to your @file{~/.emacs}.
3992 @example
3993 (planner-ical-export-file
3994  (planner-today)
3995  (expand-file-name
3996    "tasks.ics"
3997    (muse-style-element :path (car (cddr (muse-project planner-project))))))
3998 @end example
4000 @subheading Functions
4002 @defun planner-ical-export-page page &optional file
4003 Export PAGE's tasks in the iCal format.
4004 If FILE is non-nil, results are saved to that file.
4005 If FILE is nil, results are displayed in a `planner-ical-export-buffer'.
4006 @end defun
4008 @defun planner-ical-export-this-page
4009 Display the tasks on the current page in iCal format.
4010 @end defun
4012 @node RDF Publication,  , iCal Task Publication, Publishing
4013 @comment  node-name,  next,  previous,  up
4014 @subsection RDF Publication
4015 @cindex @file{planner-rdf.el}, using
4016 @cindex RDF, publishing to
4018 Put planner-rdf.el in a directory that is in your Emacs load-path and
4019 the following into your ~/.emacs file:
4021 @example
4022 (require 'planner-rdf)
4023 (eval-after-load "muse-publish"
4024   '(progn
4025      (add-hook 'muse-after-publish-hook
4026                'planner-rdf-publish-file)
4027      (add-hook 'muse-after-publish-hook
4028                'planner-rdf-publish-index)))
4029 @end example
4031 @menu
4032 * Publishing with planner-rdf::  
4033 * planner-rdf Tags::            
4034 * planner-rdf Usage Examples::  
4035 @end menu
4037 @node Publishing with planner-rdf, planner-rdf Tags, RDF Publication, RDF Publication
4038 @subsubsection Publishing with planner-rdf
4040 Planner-rdf is now included in the normal Planner publishing process.
4041 Pressing @key{C-p} will create a .owl and a .rdf file for every planner
4042 file. Additionally it creates an index, @file{index.rdf}.
4044 By default all generated files will be stored in the normal Planner
4045 publishing directory, where the HTML files end up. If you would ike to
4046 change that, set the variable @code{planner-rdf-directory} to the desired
4047 location.
4049 The generated files:
4051 @itemize
4052 @item
4053 @file{index.rdf} - a collection with pointers to the
4054 @file{<plan-page>.rdf} files.
4055 @item
4056 @file{<plan-page>.rdf} - contains Dublin Core metadata about the files
4057 related to the current Planner page. Currently it contains metadata
4058 about the source file, the Emacs plan page, the generated HTML page, and
4059 the generated OWL file.
4060 @item
4061 @file{<plan-page>.owl} - contains task and note data from the Planner
4062 file. Task information is stored completely. For notes, the note
4063 headline is stored.
4064 @end itemize
4066 @node planner-rdf Tags, planner-rdf Usage Examples, Publishing with planner-rdf, RDF Publication
4067 @subsubsection planner-rdf Tags
4069 Besides the factual information, e.g. the task status or description,
4070 planner-rdf extracts links (in the format @samp{[[...][...]]} or
4071 @samp{[[...]]}) and tags (@samp{@{@{...:...}@}@}) from tasks and notes
4072 (including the notes text). Links and tags provide context for the plan
4073 elements and so are stored and linked with the containing elements.
4075 Links point to locations that can be used to enrich the information in
4076 the Planner pages (e.g, by retrieving data from them and adding it),
4077 tags -- like the one for the task ids @samp{@{@{Tasks:198@}@}} -- can be
4078 used to express abstract qualities. Some examples:
4080 @itemize
4081 @item
4082 an @samp{@{@{audience:myteam@}@}} tag, can be used to restrict
4083 publishing of items to a certain user group;
4084 @item a @samp{@{@{lang:de@}@}} tag, signifying the language of the text;
4085 @item
4086 a @samp{@{@{location:Hamburg@}@}} tag, can be used to make geographic
4087 reference to an entity that is not stored in your address book, bbdb.
4088 @end itemize
4090 What tags to use is up to the user. Planner-rdf makes no assumptions
4091 about them, it just extracts and stores them. Only the applications
4092 using the data know what to do with them.
4094 @node planner-rdf Usage Examples,  , planner-rdf Tags, RDF Publication
4095 @subsubsection Usage Examples
4097 Report generation with OpenOffice
4099 The Perl file @file{this-week.pl}
4100 (@url{http://www.rainervolz.de/planner-rdf/this-week.pl}) creates a
4101 simple report for the current week. The script extracts task and note
4102 information from the generated OWL files and inserts it into a simple
4103 OpenOffice Writer document. Nothing fancy, just a proof of concept, to
4104 show how planner-rdf can be used to integrate Planner Mode with other
4105 applications.
4107 Besides Perl and OpenOffice you'll need the Redland RDF Application
4108 Framework (@url{http://www.redland.opensource.ac.uk/}). It is used to
4109 process the RDF data. Redland is small, but powerful, and available
4110 for many platforms and languages.
4112 As an example the application loads the RDF data each time it is run.
4113 In the real world you probably would use Redland to store the Planner
4114 data in a database, to save the loading step each time you access the
4115 data.
4117 Importing Planner data into Protege
4119 Protege is a popular ontology editor and knowledge management
4120 application. A simple way to import data into it, is to provide a OWL
4121 file that contains the data as well as the schema. To do this:
4123 @itemize
4124 @item
4125 Use @file{planner2protege.pl}
4126 (@url{http://www.rainervolz.de/planner-rdf/planner2protege.pl}) to
4127 combine all OWL files into a single one.
4128 @item
4129 Use CWM (@url{http://www.w3.org/2000/10/swap/doc/cwm.html}) to combine
4130 schema and data, with @code{python cmw --rdf planner-rdf.owl
4131 planner-data.owl --think --rdf >planner2.owl}
4132 @end itemize
4134 Not the most straightforward process, but it works. The resulting file,
4135 here planner2.owl, can then be loaded into Protege.
4137 @node Experimental Functions,  , Publishing, More about Planner
4138 @comment  node-name,  next,  previous,  up
4139 @section Experimental Functions
4140 @cindex @file{planner-experimental.el}, using
4141 @cindex experimental functions, Planner
4143 These functions are experimental. This means that they may not do
4144 exactly what you expect them to do, so keep backups, be careful, and
4145 don't blame us.
4147 To use these functions, make sure that @file{planner-experimental.el} is
4148 in your load path, and add this to your @file{.emacs} (or
4149 @file{_emacs}):
4151 @example
4152 (require 'planner-experimental)
4153 @end example
4155 @subheading Functions
4157 @file{planner-experimental.el} defines the following interactive
4158 functions:
4160 @defun planner-search-notes-next-match
4161 Jump to the next matching entry.  Call after
4162 @code{planner-search-notes}.
4163 @end defun
4165 @defun planner-search-notes-previous-match
4166 Jump to the previous matching entry.  Call after
4167 @code{planner-search-notes}.
4168 @end defun
4170 @defun planner-remove-duplicates
4171 Remove duplicate tasks.
4172 @end defun
4174 @file{planner-experimental.el} does not define any keybindings.
4176 @node Managing Your Information, Advanced Configuration, More about Planner, Top
4177 @comment  node-name,  next,  previous,  up
4178 @chapter Managing Your Information
4180 Planner can be integrated with other Emacs and even some non-Emacs
4181 programs by loading additional modules. You can pick and choose from
4182 these modules, choosing those that work with programs you use and that
4183 produce information you want to have included in your Planner pages.
4185 @menu
4186 * E-mail::                      Linking notes and tasks to messages
4187 * Scheduling and Time::         Tracking appointments and where your time goes
4188 * Finances::                    Display your account balances and more
4189 * Contacts and Conversations::  BBDB and ERC
4190 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
4191 * Tracking Development::        
4192 @end menu
4194 @node E-mail, Scheduling and Time, Managing Your Information, Managing Your Information
4195 @comment  node-name,  next,  previous,  up
4196 @section E-mail
4198 Planner can work together with several different Emacs e-mail
4199 clients. If you load the appropriate module for the e-mail client you
4200 use, then your notes and tasks can be annotated with information
4201 pointing to the specific e-mail message you were reading when you
4202 created that note or task. When you are looking at the note or task, you
4203 will be able to jump straight to that message.
4205 @menu
4206 * Unix mail::                   Unix mailboxes: planner-unix-mail.el              
4207 * Gnus::                        Gnus mail and news reader: planner-gnus.el
4208 * VM::                          VM mail reader: planner-vm.el
4209 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
4210 * MH-E::                        MH-E mail reader: planner-mhe.el
4211 * Rmail::                       Rmail: planner-rmail.el
4212 @end menu
4215 @node Unix mail, Gnus, E-mail, E-mail
4216 @comment  node-name,  next,  previous,  up
4217 @subsection Unix mail
4218 @cindex @file{planner-unix-mail.el}, using
4219 @cindex mbox, using Planner with
4220 @cindex Unix mail, using Planner with
4221 @cindex mail client, using Planner with
4223 This module supports links from any kind of Unix mailbox (mbox). To
4224 use this module, make sure that @file{planner-unix-mail.el} is in your
4225 load path and add this to your @file{.emacs} (or @file{_emacs}):
4227 @example
4228 (require 'planner-unix-mail)
4229 @end example
4231 Unix mail URLs are of the form:
4233 @example
4234 ;; mail://PATH/TO/INBOX/message-id
4235 @end example
4237 Annotations will be of the form:
4239 @smallexample
4240 [[mail://PATH/TO/INBOX/E1AyTpt-0000JR-LU%40sacha.ateneo.edu][E-mail from Sacha Chua]]
4241 @end smallexample
4243 @file{planner-unix-mail.el} does not define any interactive functions or
4244 create any new keybindings.
4246 @node Gnus, VM, Unix mail, E-mail
4247 @comment  node-name,  next,  previous,  up
4248 @subsection Gnus
4249 @cindex Gnus, using Planner with
4250 @cindex mail client, using Planner with, Gnus
4251 @cindex @file{planner-gnus.el}, using
4253 To use this module, make sure that it is in your load path and put
4254 this in your @file{.emacs} (or @file{_emacs}):
4256 @example
4257 (require 'planner-gnus)
4258 (planner-gnus-insinuate)
4259 @end example
4261 With this module loaded, when you create tasks from Gnus summary or
4262 message buffers, the tasks will be annotated with information from the
4263 message you were looking at when you created each task. A link will also
4264 be created on your planner page that you can select in order to return
4265 to the message.
4267 So, the created task will look something like this:
4269 @smallexample
4270 #A34 _ Send writing to publishme.com from
4271 [[gnus://alt.books.beatgeneration/<Ifo5c.24632$F9.9567@@nwrddc01.gnilink.net>][E-Mail
4272 from editor@@verizon.net]] @{@{Tasks:71@}@} ([[Writing]])
4273 @end smallexample
4275 This module also binds @kbd{C-c C-t} in the Gnus summary and article
4276 views to the command to create a new task.
4278 @file{planner-gnus.el} does not define any interactive functions.
4280 For more information about Gnus, see @inforef{Top, The Gnus Newsreader,
4281 gnus}.
4283 @node VM, Wanderlust, Gnus, E-mail
4284 @comment  node-name,  next,  previous,  up
4285 @subsection VM
4286 @cindex VM, using Planner with
4287 @cindex mail client, using Planner with, VM
4288 @cindex @file{planner-vm.el}, using
4290 To use this module, make sure that @file{planner-vm.el} is in your load
4291 path and add this to your @file{.emacs} (or @file{_emacs}):
4293 @example
4294 (require 'planner-vm)
4295 @end example
4297 VM URLs are of the form:
4299 @example
4300 vm://path/to/inbox/message-id
4301 @end example
4303 Annotations will be of the form:
4305 @smallexample
4306 [[vm://home/test/INBOX/<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4307 @end smallexample
4309 @file{planner-vm.el} does not define any interactive functions or
4310 keybindings.
4313 @node Wanderlust, MH-E, VM, E-mail
4314 @comment  node-name,  next,  previous,  up
4315 @subsection Wanderlust
4316 @cindex Wanderlust, using Planner with
4317 @cindex mail client, using Planner with, Wanderlust
4318 @cindex @file{planner-wl.el}, using
4320 To use this module, make sure that @file{planner-wl.el} is in your
4321 load path and add this to your @file{.emacs} (or @file{_emacs}):
4323 @example
4324 (require 'planner-wl)
4325 @end example
4327 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4328 Wanderlust summary or message buffers, the task will be created with
4329 the correct annotation.
4331 @subheading Keys
4333 To add keybindings to Wanderlust, call:
4335 @example
4336 (planner-wl-insinuate)
4337 @end example
4339 This binds @kbd{C-c C-t} to @command{planner-create-task-from-buffer}.
4341 @node MH-E, Rmail, Wanderlust, E-mail
4342 @comment  node-name,  next,  previous,  up
4343 @subsection MH-E
4344 @cindex MH-E, using Planner with
4345 @cindex mail client, using Planner with, MH-E
4346 @cindex @file{planner-mhe.el}, using
4348 To use this module, make sure that @file{planner-mhe.el} is in your
4349 load path and add this to your @file{.emacs} (or @file{_emacs}):
4351 @example
4352 (require 'planner-mhe)
4353 @end example
4355 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4356 MH-E summary or message buffers, the task will be created with
4357 the correct annotation.
4359 @file{planner-mhe} does not define any interactive functions.
4361 @node Rmail,  , MH-E, E-mail
4362 @comment  node-name,  next,  previous,  up
4363 @subsection Rmail
4364 @cindex Rmail, using Planner with
4365 @cindex mail client, using Planner with, Rmail
4366 @cindex @file{planner-rmail.el}, using
4368 To use this module, make sure that @file{planner-rmail.el} is in your
4369 load path and add this to your @file{.emacs} (or @file{_emacs}):
4371 @example
4372 (require 'planner-rmail)
4373 @end example
4375 Rmail URLs are of the form:
4377 @example
4378 rmail://message-id
4379 @end example
4381 Annotations will be of the form:
4383 @smallexample
4384 [[rmail://<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4385 @end smallexample
4387 @file{planner-rmail.el} does not define any interactive functions or
4388 create any new keybindings.
4390 For more information about Rmail, see @inforef{Rmail, Reading Mail With
4391 Rmail, Emacs}.
4393 @node Scheduling and Time, Finances, E-mail, Managing Your Information
4394 @comment  node-name,  next,  previous,  up
4395 @section Scheduling and Time
4397 @menu
4398 * Diary::                       Using the Emacs diary: planner-diary.el
4399 * Appointments::                Appointments in plan pages: planner-appt.el
4400 * Timeclock::                   Time tracking: planner-timeclock.el
4401 * schedule.el::                 Project completion: planner-schedule.el
4402 @end menu
4405 @node Diary, Appointments, Scheduling and Time, Scheduling and Time
4406 @comment  node-name,  next,  previous,  up
4407 @subsection Diary
4408 @cindex diary, using Planner with
4409 @cindex @file{planner-diary.el}, using
4411 If you use Emacs's diary feature, Planner-Diary could be helpful for
4412 you. It puts all diary entries for the current day in the @samp{*
4413 Diary} section of your day plan page. This section is updated every
4414 time you display the file in Emacs. By default the diary section of
4415 past pages is not updated; it's pretty unlikely that you want to add
4416 new diary entries for the past. (@pxref{Diary, , , Emacs, GNU Emacs
4417 Manual})
4419 If you want to use @file{planner-diary.el}, make sure the file is in
4420 your load path and add this to your @file{.emacs} (or @file{_emacs}):
4422 @example
4423 (require 'planner-diary)
4424 @end example
4426 @file{planner-diary.el} needs @command{fancy-diary-display}.  To use
4427 @command{fancy-diary-display}, add this to your @file{.emacs} (or
4428 @file{_emacs}):
4430 @example
4431 (add-hook 'diary-display-hook 'fancy-diary-display)
4432 @end example
4434 You can use Planner-Diary in two different ways:
4436 @enumerate
4438 @item
4439 If you want the saved files to contain your entries and not just a line
4440 of Lisp, add the following lines to your @file{.emacs} (or @file{_emacs}):
4442 @example
4443 (setq planner-diary-use-diary t)
4444 (planner-diary-insinuate)
4445 @end example
4447 You should also customize or set @code{planner-day-page-template} to
4448 include a @samp{* Diary}:
4450 @example
4451 (setq planner-day-page-template
4452  "* Tasks\n\n\n* Schedule\n\n\n* Diary\n\n\n* Notes")
4453 @end example
4455 @kbd{C-c C-e} updates the diary sections.  @kbd{C-u C-c C-e} forces an
4456 update---it inserts the diary section for the day, even if the day is in
4457 the past or if there is no @samp{Diary} section in the buffer.
4459 @item
4460 (GNU EMACS ONLY) You can put the following line of Lisp code in your
4461 day plan pages to display your diary entries:
4463 @example
4464 <lisp>(planner-diary-entries-here)</lisp>
4465 @end example
4467 You can do this automatically for all day plan pages:
4469 @smallexample
4470 (setq planner-day-page-template
4471   "* Tasks\n\n\n* Diary\n\n<lisp>(planner-diary-entries-here)</lisp>
4472 \n* Notes")
4473 @end smallexample
4475 When you open a day plan page outside Emacs, you will see the line of
4476 Lisp code and not your diary entries.
4478 @end enumerate
4480 If you want to see your diary entries for more than just one day, set
4481 @code{planner-diary-number-of-days} accordingly.  This works for either
4482 of the two approaches.
4484 These diary sections are only intended for display. Editing them will
4485 not affect your diary file. If you want to add entries to your diary,
4486 you should use the usual Emacs diary and calendar methods for doing
4487 that, or call @code{planner-diary-add-entry}.
4489 If you want to use the Cal-Desk package, simply follow the instructions
4490 in @file{cal-desk.el}.  If you get the Cal-Desk layout from the Calendar
4491 buffer, you get it in the day plan buffer, too.
4493 If you use Planner-Diary, you might consider using the Calendar support
4494 of Planner. (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) To get
4495 Calendar integration, add this to your @file{.emacs} (or @file{_emacs}):
4497 @example
4498 (planner-insinuate-calendar)
4499 @end example
4501 If @code{planner-diary-create-section-flag} is non-nil, sections are
4502 always inserted if necessary.
4504 @cindex planner2diary.py, using
4505 If you want to import Planner entries into your Diary file, the
4506 @file{planner2diary.py} script will accomplish this for you.  To use it,
4507 execute @code{planner2diary.py} on the command line, specifying your
4508 planner directory as the first and only argument.
4510 @subheading Options
4512 @defopt planner-diary-create-section-flag
4513 Non-nil means create the requested diary sections if they do not
4514 exist. By default, planner-diary tries to create the section. If you
4515 want more control over your pages, you can set this to nil. Trying to
4516 write a diary section to a page that does not have it yet will then
4517 result in an error.
4518 @end defopt
4520 By default, planner-diary lists only the appointments you have on that
4521 day. If you want the date headers included even when showing the diary
4522 entries for a single day, set planner-diary-include-all-output to
4523 non-nil.
4525 @defopt planner-diary-include-all-output-flag
4526 Non-nil means don't omit any data when copying diary entries into day
4527 pages.
4528 @end defopt
4530 @subheading Functions
4532 @file{planner-diary.el} defines the following interactive functions:
4534 @defun planner-diary-add-entry date time text
4535 Prompt for a diary entry to add to @code{diary-file} on @var{date}.
4536 Uses @code{planner-annotation-functions} to make hyperlinks.
4537 @var{time} and @var{text} are used in the description."
4538 @end defun
4540 @defun planner-diary-insert-diary force
4541 Insert the fancy diary for the day into the day plan file. If
4542 @var{force} is non-nil, insert a diary section even if there is no
4543 @var{planner-diary-string} in the buffer.
4544 @end defun
4546 @defun planner-diary-insert-diary-maybe force
4547 Maybe insert the fancy diary for the day into the day plan file. If the
4548 current day is in the past and @var{force} is nil, don't do anything. If
4549 @var{force} is non-nil, insert a diary section even if there is no
4550 @code{planner-diary-string} in the buffer.
4551 @end defun
4553 @defun planner-diary-insert-appts force
4554 Insert the diary appointments for the day into the day plan file.  If
4555 @var{force} is non-nil, insert a diary appointments section even if
4556 there is no @code{planner-diary-appts-string} in the buffer.
4557 @end defun
4559 @defun planner-diary-insert-appts-maybe force
4560 Maybe insert the diary appointments for the day into the day plan file.
4561 If the current day is in the past and @var{force} is nil, don't do
4562 anything.  If @var{force} is non-nil, insert a diary appointments
4563 section even if there is no @code{planner-diary-appts-string} in the
4564 buffer.
4565 @end defun
4567 @defun planner-diary-insert-cal-desk force
4568 Insert the cal-desk diary for the day into the day plan file.  If
4569 @var{force} is non-nil, insert a cal-desk diary section even if there is
4570 no @code{planner-diary-cal-desk-string} in the buffer.
4571 @end defun
4573 @defun planner-diary-insert-cal-desk-maybe force
4574 Maybe insert the cal-desk diary for the day into the day plan file.  If
4575 the current day is in the past and @var{force} is nil, don't do
4576 anything.  If @var{force} is non-nil, insert a cal-desk appointments
4577 section even if there is no @code{planner-diary-cal-desk-string} in the
4578 buffer.
4579 @end defun
4581 @defun planner-diary-insert-public force
4582 Insert the public diary for the day into the day plan file.  If
4583 @var{force} is non-nil, insert a public diary section even if there is
4584 no @code{planner-diary-public-string} in the buffer.
4585 @end defun
4587 @defun planner-diary-insert-public-maybe force
4588 Maybe insert the public diary for the day into the day plan file.  If
4589 the current day is in the past and @var{force} is nil, don't do
4590 anything.  If @var{force} is non-nil, insert a public appointments
4591 section even if there is no @code{planner-diary-public-string} in the
4592 buffer.
4593 @end defun
4595 @defun planner-diary-insert-private force
4596 Insert the private diary for the day into the day plan file.  If
4597 @var{force} is non-nil, insert a private diary section even if there is
4598 no @code{planner-diary-private-string} in the buffer.
4599 @end defun
4601 @defun planner-diary-insert-private-maybe force
4602 Maybe insert the private diary for the day into the day plan file.  If
4603 the current day is in the past and @var{force} is nil, don't do
4604 anything.  If @var{force} is non-nil, insert a private appointments
4605 section even if there is no @code{planner-diary-private-string} in the
4606 buffer.
4607 @end defun
4609 @defun planner-diary-insert-all-diaries force
4610 Update all diary sections in a day plan file.  If @var{force} is
4611 non-nil, insert a diary section even if there is no section header.  It
4612 only inserts diaries if the corresponding @code{planner-diary-use-}*
4613 variable is @samp{t}.
4614 @end defun
4616 @defun planner-diary-insert-all-diaries-maybe force
4617 Update all diary sections in a day plan file.  If the current day is in
4618 the past and @var{force} is nil, don't do anything.  If @var{force} is
4619 non-nil, insert a diary section even if there is no section header.  It
4620 only inserts diaries if the corresponding @code{planner-diary-use-}*
4621 variable is @samp{t}.
4622 @end defun
4624 @defun planner-diary-show-day-plan-or-diary
4625 Show the day plan or diary entries for the date under point in calendar.
4626 Add this to @code{calendar-move-hook} if you want to use it.  In that
4627 case, you should also @command{remove-hook} @samp{planner-calendar-show}
4628 from @code{calendar-move-hook}.
4629 @end defun
4631 @subheading Keys
4633 @file{planner-diary.el} adds the following keybinding to Planner, if
4634 @command{planner-diary-insinuate} is in your @file{.emacs} (or
4635 @file{_emacs}):
4637 @itemize
4639 @item
4640 @kbd{C-c C-e} updates the diary sections by calling
4641 @code{planner-diary-insert-all-diaries-maybe}.
4643 @end itemize
4645 @menu
4646 * Planner-Diary Advanced Features::  
4647 @end menu
4649 @node Planner-Diary Advanced Features,  , Diary, Diary
4650 @comment  node-name,  next,  previous,  up
4651 @subsubsection Planner-Diary Advanced Features
4652 @cindex diary, using Planner with
4653 @cindex @file{planner-diary.el}, advanced features
4655 The features described here are part of the development version.  They
4656 are subject to change without notice.  They may be buggy.  The
4657 documentation may be inaccurate.  Use at your own risk.
4659 There is a lot of code redundancy in the development version.  This is
4660 intentional and makes it easier to change the code for one type of diary
4661 section without breaking others.
4663 @subheading Diary views
4665 @cindex @file{planner-diary.el}, views
4666 Currently Planner-Diary supports six different views of your diary
4667 entries:
4669 @enumerate
4670 @item
4671 Ordinary fancy diary display (what you get by pressing @kbd{d} in the
4672 calendar buffer with @code{fancy-diary-display} switched on)
4674 @item
4675 Schedule/Appointments (all entries from 1 that have a time assigned to
4676 them
4678 @item
4679 Diary without appts (1 without 2)
4681 @item
4682 cal-desk display (appts on top, non appts entries at bottom)
4684 @item
4685 A private diary (same as 1, but uses a different diary-file)
4687 @item
4688 A public diary (same as 1, but uses a different diary-file)
4689 @end enumerate
4691 Put the following line of Lisp code in your day plan pages to display
4692 your diary entries:
4694 @example
4695 <lisp>(planner-diary-entries-here)</lisp>
4696 @end example
4698 The function @code{planner-diary-entries-here} takes two optional
4699 arguments---the diary file you want to use and the number of days you
4700 want to display.
4702 @subheading Exporting Planner-specific Diary files
4704 @cindex @file{planner-diary.el}, exporting entries
4705 If you would like to export diary entries from your Planner pages to
4706 separate Diary files, add @code{(require 'planner-export-diary)} to your
4707 config.  The following steps describe the usage of the functions and
4708 options contained in this file.
4710 @enumerate
4712 @item
4713 Customize @code{planner-export-diary-file}.  The default value is
4714 ``~/diary.planner''.
4716 @item
4717 Add the following line to your main Diary file (default: ``~/diary'').
4719 @example
4720 #include ~/diary.planner
4721 @end example
4723 @item
4724 Then, call @command{M-x planner-export-diary-future} whenever you want
4725 future diary entries published. You can automatically publish entries by
4726 adding either of the following to your .emacs.
4728 @itemize
4730 @item (planner-export-diary-future)
4731 Publish future entries on startup.
4733 @item (add-hook 'planner-mode-hook 'planner-export-diary-setup)
4734 Publish future entries whenever you save a Planner file.
4736 @end itemize
4738 @end enumerate
4740 @node Appointments, Timeclock, Diary, Scheduling and Time
4741 @comment  node-name,  next,  previous,  up
4742 @subsection Appointments
4743 @cindex appointments
4744 @cindex @file{planner-appt.el}, using
4746 If you would like to use planner for your appointment alerts
4747 instead of using the diary system, you might like to try
4748 @file{planner-appt}.
4750 According to your preferences, you may choose from two different
4751 approaches. Appointments in task descriptions on today's plan
4752 page are like this:
4754 @example
4755 #A   _ @@12:45 Do something (TaskPool)
4756 @end example
4758 @noindent
4759 and appointments in today's schedule section are like this:
4761 @example
4762 * Schedule
4764   9:00 | 12:00 | Read Simmel's Philosophy of Money
4765 @@12:45 |       | Do Something Else
4766 @@13:00 | 14:00 | lunch
4767 @end example
4769 @noindent
4770 You can even use both at the same time if you like.
4772 @c Jim Ottaway <j.ottaway@lse.ac.uk>: Changed these kinds of heading
4773 @c back to @unnumberedsec, but left the originals commented out in
4774 @c case there was a good reason for the @strong formatting.
4776 @c @noindent
4777 @c @strong{Usage}
4778 @unnumberedsubsubsec Usage
4780 In the file where you configure Planner, add one of the following.
4782 @itemize
4783 @item
4784 For task-based appointments: @code{(planner-appt-use-tasks)}
4785 @item
4786 For schedule-based appointments: @code{(planner-appt-use-schedule)}
4787 @item
4788 For both task- and schedule-based appointments:
4789 @code{(planner-appt-use-tasks-and-schedule)}
4790 @end itemize
4792 @noindent
4793 And finally if you want everything to be updated automatically add:
4795 @example
4796 (planner-appt-insinuate)
4797 @end example
4799 If you don't want to do the insinuation then you can call:
4801 @example
4802 M-x planner-appt-update
4803 @end example
4805 @noindent
4806 after editing appointments on the page (note that this is not
4807 necessary if you use tasks for the appointments and you don't edit
4808 the task descriptions outside of @code{planner-edit-task-description}).
4810 Try both methods; if you find that you prefer one over the
4811 other, use one of the specific @code{planner-appt-use-} functions, as
4812 there are some performance gains when using one method exclusively.
4814 @menu
4815 * Task-based Appointments::     
4816 * Schedule-based Appointments::  
4817 * Viewing Appointments::        
4818 * Appointment Updating on Save::  
4819 * Appointment and Calendar Integration::  
4820 * Appointment Hooks::           
4821 @end menu
4824 @node Task-based Appointments, Schedule-based Appointments, Appointments, Appointments
4825 @comment  node-name,  next,  previous,  up
4826 @subsubsection Task-based Appointments
4827 @cindex appointments, task-based
4828 @cindex task-based appointments
4830 A task has an appointment if it looks like this:
4832 @example
4833 #A   _ @@12:45 Do something (TaskPool)
4834 @end example
4836 @noindent
4837 i.e., if it has @@ followed by a time at the beginning.  This means
4838 the task is a regular appointment, and will not be carried forward
4839 at the start of a new day.
4841 Alternatively, it may have a !, like this:
4843 @example
4844 #A   _ !12:45 Do something else (TaskPool)
4845 @end example
4847 @noindent
4848 This makes it a "nagging" appointment, which @emph{will} be carried
4849 forward.  It will, however, lose the appointment time in the
4850 process.
4852 This may seem like a strange feature, but here is Henrik's
4853 reasoning:
4855 @quotation
4856 Sometimes I have a task that I want to do at a certain time, so I
4857 make it an appointment.  If I don't get around to doing it anyway,
4858 I want it to be carried forward.  Basically, I sometimes use
4859 appointments on tasks to annoy me until I get them done. :)
4860 @end quotation
4862 You can edit, move and delete tasks with the usual functions, and
4863 appointments will be updated automatically.
4865 You can update all task appointments on your page with
4867 @example
4868 M-x planner-appt-update
4869 @end example
4871 @c @noindent
4872 @c @strong{Cyclic Entries}
4874 @unnumberedsubsubsec Cyclic Entries
4875 @cindex appointments, cyclic task entries
4877 If you have @file{planner-cyclic} (@pxref{Cyclic Tasks}) loaded, entries
4878 in your cyclical tasks file such as
4880 @example
4881 Friday #A _ @@12:45 staff meeting
4882 @end example
4884 @noindent
4885 will appear every Friday and there will be an appointment alert set
4888 @c @noindent
4889 @c @strong{Appointments Section}
4890 @unnumberedsubsubsec Appointments Section
4891 @cindex appointments, appointments section
4893 You can have all task-based appointments copied to a separate section,
4894 providing an overview of your appointments.
4896 To do this, add
4898 @example
4899 (setq planner-appt-task-use-appointments-section-flag t)
4900 @end example
4902 @noindent to your configuration, or use @kbd{M-x customize-variable}.
4904 The variable @code{planner-appt-task-appointments-section} is the name
4905 of the section where the appointments will be copied.  By default, it is
4906 set to @code{"Schedule"}, which means that task appointments will be
4907 intermingled with schedule entries.
4909 It is also a good idea to add the section you wish to use to
4910 @code{planner-day-page-template} in order to control where that section
4911 will appear on the page (otherwise it will appear at the top).
4913 The format of the appointments follows that of a schedule; if you
4914 don't like the way it looks, you can write something different and set
4915 @code{planner-appt-format-appt-section-line-function} appropriately.
4916 See the documentation for
4917 @code{planner-appt-format-appt-section-line-function} for details.  It
4918 should be fairly easy to see what needs to be done if you look at the
4919 source for the default function (which is
4920 @code{planner-appt-format-appt-section-line}).
4922 If the section specified in
4923 @code{planner-appt-task-appointments-section} is the same as the
4924 schedule section specified in @code{planner-appt-schedule-section} (by
4925 default @code{"Schedule"}), the default formatting function adds a
4926 @samp{#} to the description so that one can visually distinguish
4927 appointments from the task list from those that have been added to the
4928 schedule.
4930 @node Schedule-based Appointments, Viewing Appointments, Task-based Appointments, Appointments
4931 @comment node-name,  next,  previous,  up
4932 @subsubsection Schedule-Based Appointments
4933 @cindex appointments, schedule-based
4934 @cindex schedule-based appointments
4936 Some scheduled tasks require reminders, others don't.  In this
4937 schedule:
4939 @example
4940 * Schedule
4942 9:00   | 12:00 | Read Simmel's Philosophy of Money
4943 @@12:45          Do Something Else
4944 @@13:00 | 14:00 | lunch
4945 @@14:30 |       | Meet jrs to discuss his dissertation
4946 @@16:00           Test Society seminar
4947 18:00            go home
4948 @end example
4950 @noindent
4951 those that have an @@ prefix will be added to the appointment
4952 reminder list; the others will not.  The formats that are
4953 recognized are fairly flexible, as you can see from the example.
4955 If you change your schedule, you can update the appointment list
4956 with
4958 @example
4959 M-x planner-appt-update
4960 @end example
4962 @noindent You can also have the schedule sorted as part of the update,
4963 if you have this in your configuration:
4965 @example
4966 (setq planner-appt-sort-schedule-on-update-flag t)
4967 @end example
4969 @c @noindent 
4970 @c @strong{Cyclical Entries}
4971 @unnumberedsubsubsec Cyclical Entries
4972 @cindex appointments, cyclic schedule entries
4974 You can also have cyclical schedule entries(@pxref{Cyclic Tasks}) if you
4977 @example
4978 (planner-appt-schedule-cyclic-insinuate)
4979 @end example
4981 @noindent to your configuration.
4983 If you put an entry in your cyclical task file like this
4985 @example
4986 Friday @@12:45 | 13:45 | Staff Meeting
4987 @end example
4989 @noindent
4990 then it will appear in your schedule every Friday, and an
4991 appointment alert will be set up.
4993 @node Viewing Appointments, Appointment Updating on Save, Schedule-based Appointments, Appointments
4994 @comment  node-name,  next,  previous,  up
4995 @subsubsection Viewing Appointments
4996 @cindex appointments, viewing
4998 The command @command{planner-appt-show-alerts} will show all appointment
4999 alerts currently scheduled.
5001 @subheading Functions
5003 There are two commands that show appointments in the future; the one
5004 displays them in a pop-up buffer, the other puts the information into
5005 the current day page.
5007 @deffn {Command} planner-appt-forthcoming-display &optional days
5008 Display a buffer of appointments for today and the next
5009 @var{days}. Optional prefix argument @var{days} is the number of days
5010 ahead to look. Its default value is defined by
5011 @code{planner-appt-forthcoming-days}.
5012 @end deffn
5014 @deffn {Command} planner-appt-forthcoming-update-section &optional days
5015 In today's plan page, add or update a list of forthcoming
5016 appointments. Optional prefix argument @var{days} is the number of
5017 days ahead to look. Its default value is defined by
5018 @code{planner-appt-forthcoming-days}.  The section heading to use is
5019 defined by @code{planner-appt-forthcoming-appt-section}.
5020 @end deffn
5022 @subheading Options
5024 @defopt planner-appt-forthcoming-days
5025 The number of days to look ahead for forthcoming appointments.  The
5026 default value is seven days.
5027 @end defopt
5029 @defopt planner-appt-forthcoming-appt-section
5030 The name of the section to use for inserting a list of forthcoming
5031 appts.  The default value is @code{"Forthcoming Appointments"}.
5032 @end defopt
5034 @defopt planner-appt-forthcoming-show-day-names-flag
5035 When non-nil (the default), day names will be shown in forthcoming
5036 appointments.
5037 @end defopt
5039 @defopt planner-appt-forthcoming-repeat-date-string
5040 String to insert for repeated dates.
5042 When there are multiple appointments for a date, the date is inserted
5043 in the first appointment and the others have this string in their date
5044 cell.
5046 If the string consists of anything other than whitespace, then a link
5047 to the day page for the appoinment is created.
5048 @end defopt
5050 @defopt planner-appt-forthcoming-look-at-cyclic-flag
5051 When non-nil, find forthcoming appointments in the cyclic diary file
5052 (@pxref{Cyclic Tasks}) as well as in plan pages. Default is @samp{t}.
5053 @end defopt
5055 @node Appointment Updating on Save, Appointment and Calendar Integration, Viewing Appointments, Appointments
5056 @comment  node-name,  next,  previous,  up
5057 @subsubsection Appointment Updating on Save
5058 @cindex appointments, updating on save
5060 @subheading Options
5062 @defopt planner-appt-update-appts-on-save-flag
5063 When non-nil, update appointment reminders whenever today's plan page is
5064 saved. Default value is @samp{nil}.
5065 @end defopt
5067 @node Appointment and Calendar Integration, Appointment Hooks, Appointment Updating on Save, Appointments
5068 @comment  node-name,  next,  previous,  up
5069 @subsubsection Appointment and Calendar Integration
5071 Not strictly part of appointment handling, but if one isn't using
5072 the diary, marking dates with plan pages seems to make sense.
5074 @subheading Functions
5076 @defun planner-appt-calendar-insinuate
5077 Add a hook to diary display so that dates in the calendar that have day
5078 pages are highlighted
5079 @end defun
5081 @node Appointment Hooks,  , Appointment and Calendar Integration, Appointments
5082 @comment  node-name,  next,  previous,  up
5083 @subsubsection Appointment Hooks
5085 @subheading Options
5087 @defvr {Hook} planner-appt-update-hook
5088 Hook run after @code{planner-appt-update} has updated the appointment
5089 list.
5090 @end defvr
5092 @node Timeclock, schedule.el, Appointments, Scheduling and Time
5093 @comment  node-name,  next,  previous,  up
5094 @subsection Timeclock
5095 @cindex @file{planner-timeclock.el}, using
5096 @cindex @file{planner-timeclock-summary.el}, using
5097 @cindex @file{planner-timeclock-summary-proj.el}, using
5098 @cindex timeclock, using Planner with
5100 This module allows you to clock in and clock out of your projects
5101 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual}) You can also
5102 generate reports with the @code{<timeclock-report>} tag. You may want to
5103 read the ``Keeping Track of Time'' page to see how you can use
5104 planner-timeclock to produce detailed reports;
5105 @xref{Keeping Track of Time}.
5107 @file{timeclock.el} is part of GNU Emacs. If you are using XEmacs,
5108 please use the version of @file{timeclock.el} that comes with Planner in
5109 the @file{contrib} directory.
5111 With @file{planner-timeclock.el} loaded,
5112 @command{planner-task-in-progress} clocks in a task.  To clock out,
5113 use @command{planner-task-done} or @command{timeclock-out}.
5115 @file{planner-timeclock.el} defines the following keybindings:
5117 @itemize
5118 @item @kbd{C-c C-i}: @code{planner-task-in-progress}.
5119 @item @kbd{C-c C-o}: @code{timeclock-out}.
5120 @item @kbd{C-c C-T C-i}: @code{planner-timeclock-in}. (XEmacs)
5121 @item @kbd{C-c C-T C-o}: @code{timeclock-out}. (XEmacs)
5122 @item @kbd{C-c C-S-t C-i}: @code{planner-timeclock-in}. (GNU Emacs)
5123 @item @kbd{C-c C-S-t C-o}: @code{timeclock-out}. (GNU Emacs)
5124 @end itemize
5126 If you use @code{timeclock} a lot, you may also be interested in
5127 Dryice Liu's @file{planner-timeclock-summary.el}, which produces
5128 timeclock reports for planner files.
5130 Here is a sample report:
5132 @example
5133 Project               |     Time| Ratio| Task
5134 PlannerMaintenance    |  0:03:58|  1.1%| Merge doc patch
5135                       |  0:17:09|  5.0%| Track down subdirectories
5136                       |  0:18:11|  5.3%| Merge planner-timeclock-summary-proj.el
5137                Total: |  0:39:18| 11.4%|
5138 JapanCaseStudy        |  2:37:56| 45.6%| Prototype search result page
5139                       |  0:31:50|  9.2%| Update design documents
5140                Total: |  3:09:46| 54.8%|
5141 ChristmasLetter       |  1:46:37| 30.8%| Write and send my Christmas letters
5142                Total: |  1:46:37| 30.8%|
5143 LinuxPeople           |  0:10:29|  3.0%| Send questions for Linux in Education
5144                Total: |  0:10:29|  3.0%|
5145 @end example
5147 If you add @code{(require 'planner-timeclock-summary)} to your
5148 @file{~/.emacs}, you can then use it in two ways.
5150 @itemize
5152 @item Display a temporary buffer
5154 Call @code{planner-timeclock-summary-show} and Emacs will ask you which
5155 day's summary do you want. Choose the date as anywhere else of
5156 Emacs planner, and a tempory buffer will be displayed with the
5157 timeclock summary of that day.
5159 To review tasks over a date range, use
5160 @code{planner-timeclock-summary-show-range}. You can use a regexp or a
5161 function to filter tasks by calling
5162 @code{planner-timeclock-summary-show-range-filter}.
5164 @item Rewrite sections of your planner
5166 Choose this approach if you want timeclock summary to be in their
5167 own section and you would like them to be readable in your plain
5168 text files even outside Emacs. Caveat: The timeclock summary
5169 section should already exist in your template and will be rewritten
5170 when updated. Tip: Add @code{planner-timeclock-summary-section}
5171 (default: @samp{"Timeclock"}) to your @code{planner-day-page-template}.
5173 To use, call @code{planner-timeclock-summary-update} in the planner
5174 day page to update the section. If you want rewriting to be
5175 automatically performed, call
5176 @code{planner-timeclock-summary-insinuate} in your @file{.emacs} file.
5177 @end itemize
5179 @file{planner-timeclock-summary-proj.el} produces task / time
5180 breakdowns on plan pages. Reports are of the form:
5182 @example
5183 TASK 0 | duration
5184 TASK 1 | duration
5185  TOTAL | duration.
5186 @end example
5188 To use, add @code{(require 'planner-timeclock-summary)} to your
5189 @file{~/.emacs}. Call @code{planner-timeclock-summary-proj-current}
5190 from a project page. The report is inserted at the current position in
5191 the buffer. The function @code{planner-timeclock-summary-proj-section}
5192 does the same but the report is inserted inside a section called
5193 @samp{* Report}.
5195 @node schedule.el,  , Timeclock, Scheduling and Time
5196 @comment  node-name,  next,  previous,  up
5197 @subsection @file{schedule.el}
5198 @cindex @file{planner-schedule.el}, using
5199 @cindex @file{schedule.el}, using Planner with
5201 @file{planner-schedule.el} allows you to project task completion time.
5202 Tasks should be of the form:
5204 @example
5205 #A0 _ 2h Do something
5206 #B0 _ 1h30m Do something
5207 #B0 _ 2d Do something
5208 #B0 _ 2w Do something
5209 #B0 _ 10s Do something
5211 s: seconds, m: minutes, h: hours, d: days, w: weeks
5212 @end example
5214 @file{schedule.el} is included with Planner in the @file{contrib}
5215 directory, but you can alternatively get it from
5216 @url{http://www.newartisans.com/johnw/Emacs/schedule.el} if desired.
5218 @file{schedule.el} provides a single Lisp function,
5219 @code{schedule-completion-time}. It takes an Emacs time object and a
5220 quantity of seconds. It returns an Emacs time object that represents
5221 when the given number of seconds will be completed, assuming that work
5222 can only be done during work hours.
5224 The available work hours are affected by several factors:
5226 @enumerate
5228 @item
5229 If @file{timeclock.el} is being used, the amount of time left in the
5230 current work day (@code{timeclock-workday-remaining})
5231 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual})
5233 @item
5234 The amount of time in each work day (@code{schedule-workday})
5236 @item
5237 The definition of a work week (@code{schedule-week})
5239 @item
5240 Any holidays defined in the Emacs calendar
5241 (@pxref{Holidays, , , Emacs, GNU Emacs Manual})
5243 @item
5244 Any appointments in the Emacs diary
5245 (@pxref{Appointments, , , Emacs, GNU Emacs Manual})
5247 @end enumerate
5249 Taking all of the ``block out'' periods into account,
5250 @code{schedule-completion-time} will compute when the given number of
5251 seconds will be done, based on your current definitions of time
5252 available.
5254 As an example, here's a function which, given a list of durations
5255 in seconds, will return a list of completion times starting from
5256 the current moment:
5258 @example
5260   (defun compute-completion-times (&rest durations)
5261     ``Compute completion times for a list of DURATIONS (in seconds).''
5262     (let ((now (current-time)))
5263       (mapcar
5264        (function
5265         (lambda (dura)
5266           (setq now (schedule-completion-time now dura))))
5267        durations)))
5269 @end example
5271 To call this function, do:
5273 @example
5275 (compute-completion-times 3600 7200 3600)
5277 @end example
5279 @subheading Keys
5281 @file{planner-schedule.el} defines the following keybindings:
5283 @kbd{C-c RET} is bound to @command{planner-schedule-show-end-project}.
5284 @kbd{C-c C-m} is also bound to
5285 @command{planner-schedule-show-end-project}.
5287 In XEmacs, @command{planner-schedule-show-end-project} is bound to
5288 @kbd{C-c C-T c-e} and @kbd{C-c C-S-t C-e}.
5290 @subheading Functions
5292 @file{planner-schedule.el} defines the following interactive
5293 functions:
5295 @defun planner-schedule-show-end-project
5296 Display the estimated project completion time.
5297 @end defun
5299 @file{schedule.el} does not define any interactive functions, or
5300 keybindings.
5302 @node Finances, Contacts and Conversations, Scheduling and Time, Managing Your Information
5303 @comment  node-name,  next,  previous,  up
5304 @section Finances
5305 @cindex finances
5307 Currently, Planner provides one module dedicated to tracking your
5308 finances. This module works with a program called Ledger.
5310 @menu
5311 * Ledger::                      Personal finances: planner-ledger.el
5312 @end menu
5314 @node Ledger,  , Finances, Finances
5315 @comment  node-name,  next,  previous,  up
5316 @subsection Ledger
5317 @cindex finances
5318 @cindex @file{planner-ledger.el}, using
5319 @cindex @file{ledger}, using Planner with
5321 @file{planner-ledger.el} provides integration between planner and John
5322 Wiegley's ledger accounting program, which can be found at
5323 @url{http://newartisans.com/johnw/ledger.tar.gz}.
5325 To use planner-ledger to insert a ledger balance overview and a list
5326 of pending transactions into planner day pages, make sure that your
5327 day page includes sections that match
5328 @code{planner-ledger-balance-regexp} and
5329 @code{planner-ledger-pending-regexp}. Example:
5331 @example
5332 * Tasks
5334 * Ledger
5336 ** Pending transactions
5338 * Notes
5340 @end example
5342 You can manually update ledger sections with the
5343 @command{planner-ledger-insert-maybe} command.
5345 You can also automatically update ledger sections with the following
5346 hook:
5348 @example
5349 (add-hook 'planner-goto-hook 'planner-ledger-insert-maybe)
5350 @end example
5352 You can create ledger entries from specially-formatted tasks using
5353 @command{planner-ledger-add-entry-from-task}.  Tasks should be of the
5354 form @samp{payment due: payee, amount [comment]}.  Example:
5356 @example
5357 #A1 _ payment due: foobar, $1000.00 some comment here
5358 #A2 _ payment due: baz, 1000.00
5359 @end example
5361 @subheading Options
5363 @defopt planner-ledger-balance-accounts
5364 List of accounts to be included or excluded from the balance overview.
5365 @samp{+} includes all matching accounts, and @samp{-} excludes
5366 matching accounts.  See the documentation for
5367 @command{ledger-run-ledger} for more details.
5368 @end defopt
5370 @defopt planner-ledger-balance-regexp
5371 Regular expression matching section for ledger balance.  Do not store
5372 other data in this section, as it will be overwritten.
5373 @end defopt
5375 @defopt planner-ledger-pending-regexp
5376 Regular expression matching section for ledger balance.  Do not store
5377 other data in this section, as it will be overwritten.
5378 @end defopt
5380 @defopt planner-ledger-payment-task-regexp
5381 Regular expression matching special ledger tasks.
5382 @end defopt
5384 @subheading Functions
5386 @defun planner-ledger-insert-maybe
5387 Update any ledger sections on the current page.
5388 @end defun
5390 @defun planner-ledger-add-entry-from-task
5391 Create a ledger entry based on the task at point.  Task should match
5392 @code{planner-ledger-payment-task-regexp}.
5393 @end defun
5395 @node Contacts and Conversations, Tracking Research and Resources, Finances, Managing Your Information
5396 @comment  node-name,  next,  previous,  up
5397 @section Contacts and Conversations
5398 @cindex contacts
5399 @cindex conversations
5401 Planner has two modules available for keeping track of contact and
5402 conversation information. The first uses the Big Brother Database
5403 (BBDB), and the second uses Emacs Relay Chat (ERC). BBDB is a full
5404 contact database. ERC is a client for chatting online on Internet Relay
5405 Chat (IRC) networks. The ERC module for Planner will help you keep
5406 track of online conversations you have if you use ERC for those
5407 conversations, but does not by itself store contact information other
5408 than the time you had the conversation, the network and channel you were
5409 on when you had it, and maybe who you had it with. If you are looking
5410 for a way to manage your full address book, then @file{planner-bbdb.el}
5411 in combination with BBDB is what you are looking for.
5413 @menu
5414 * BBDB::                        Contacts: planner-bbdb.el
5415 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
5416 @end menu
5418 @node BBDB, Emacs Relay Chat, Contacts and Conversations, Contacts and Conversations
5419 @comment  node-name,  next,  previous,  up
5420 @subsection BBDB
5421 @cindex @file{planner-bbdb.el}, using
5422 @cindex BBDB, using Planner with
5424 @file{planner-bbdb.el} allows you to refer to your contacts easily
5425 from within a planner page. @inforef{Top, the BBDB Manual, bbdb}.
5427 @samp{[[bbdb://Sacha.*Chua][Sacha]]}, for example, will be linked to
5428 the blog, web or net fields of the first matching BBDB record.
5430 @file{planner-bbdb.el} does not define any interactive functions, or
5431 keybindings.
5433 @node Emacs Relay Chat,  , BBDB, Contacts and Conversations
5434 @comment  node-name,  next,  previous,  up
5435 @subsection Emacs Relay Chat
5436 @cindex @file{planner-erc.el}, using
5437 @cindex ERC, using Planner with
5438 @cindex Emacs Relay Chat, using Planner with
5439 @cindex IRC, using Planner with
5440 @cindex Internet Relay Chat, using Planner with
5442 To use planner-erc, place @file{planner-erc.el} in your load path
5443 and add this to your @file{.emacs} (or @file{_emacs}):
5445 @example
5447 (require 'planner-erc)
5449 @end example
5451 IRC URLs may be of the following forms.
5453 @example
5454 irc://server/nick,isnick
5455 irc://server/#channel
5456 irc://server
5457 @end example
5459 Annotations will be in the following forms.
5461 @example
5462 [[irc://server/nick,isnick][Chat with nick on server#channel]]
5463 [[irc://server/nick,isnick][Chat with nick on server]]
5464 [[irc://server/#channel][Chat on server#channel]]
5465 [[irc://server][Chat on server]]
5466 @end example
5468 @file{planner-erc.el} does not define any interactive functions, or
5469 keybindings.
5471 @node Tracking Research and Resources, Tracking Development, Contacts and Conversations, Managing Your Information
5472 @comment  node-name,  next,  previous,  up
5473 @section Tracking Research and Resources
5475 Planner provides three modules for keeping track of information
5476 involving three specific tools: w3m, BibTeX, and @file{bookmark.el}.
5478 @menu
5479 * W3m::                         Web browser: planner-w3m.el
5480 * BibTeX::                      Bibliographies: planner-bibtex.el
5481 * Bookmark::                    Bookmarks: planner-bookmark.el
5482 @end menu
5484 @node W3m, BibTeX, Tracking Research and Resources, Tracking Research and Resources
5485 @comment node-name,  next,  previous,  up
5486 @subsection W3m
5487 @cindex @file{planner-w3m.el}, using
5488 @cindex w3m, using Planner with
5490 This module allows you to create tasks from a w3m buffer.
5492 @file{planner-w3m.el} does not define any interactive functions, or
5493 keybindings.
5495 @node BibTeX, Bookmark, W3m, Tracking Research and Resources
5496 @comment node-name,  next,  previous,  up
5497 @subsection BibTeX
5498 @cindex @file{planner-bibtex.el}, using
5500 BibTeX URLs are of the form @samp{bibtex:file/name:key}.
5502 @file{planner-bibtex.el} does not define any interactive functions.
5504 @node Bookmark,  , BibTeX, Tracking Research and Resources
5505 @comment  node-name,  next,  previous,  up
5506 @subsection Bookmark
5507 @cindex bookmarks
5508 @cindex @file{bookmark.el}, using Planner with
5509 @cindex @file{planner-bookmark.el}, using
5511 @file{planner-bookmark.el} uses the @file{remember} package to create a
5512 note whenever you create a bookmark (@pxref{Bookmarks, Bookmarks,,
5513 emacs}) For more information about @file{remember}, please check out
5515 @itemize
5516 @item
5517 @uref{http://www.emacswiki.org/cgi-bin/wiki/RememberMode} -
5518 EmacsWiki.org page
5519 @end itemize
5521 Configure remember according to the instructions in
5522 @file{remember-planner.el} so that notes are saved to your planner
5523 pages.
5525 @defopt planner-bookmark-take-note-after-set-bookmark-flag
5526 Non-nil means show a @code{remember} buffer after setting a new
5527 bookmark.
5528 @end defopt
5530 When you create a bookmark, Emacs will open a buffer for your notes.
5531 @kbd{C-c C-c} saves the buffer to today's page. If you don't want to
5532 save a note, you can kill the buffer.
5534 Bookmark URLs are of the form @samp{bookmark://bookmark-name}.
5536 @file{planner-bookmark.el} does not define any interactive functions.
5538 @node Tracking Development,  , Tracking Research and Resources, Managing Your Information
5539 @comment  node-name,  next,  previous,  up
5540 @section Tracking Development
5541 @cindex version control, using Planner with
5543 Planner has three modules geared toward programmers. Two modules deal
5544 with version control and integrating information from those projects
5545 into the planner page. One module deals with the Gnats bug-tracking
5546 system.
5548 @menu
5549 * Log Edit::                    Changelogs: planner-log-edit.el
5550 * PSVN::                        svn changesets: planner-psvn.el
5551 * XTLA::                        TLA changesets: planner-xtla.el
5552 * Gnats::                       Gnats: The GNU bug reporting system
5553 @end menu
5555 @node Log Edit, PSVN, Tracking Development, Tracking Development
5556 @comment  node-name,  next,  previous,  up
5557 @subsection Log Edit
5558 @cindex cvs, using Planner with
5559 @cindex @file{planner-log-edit.el}, using
5560 @cindex version control, using Planner with
5562 This module allows you to automatically record CVS (and VC) commits
5563 in today's page.
5565 You can load the module with @code{(require 'planner-log-edit)}. When
5566 you load the module, @code{planner-log-edit-add-note} will be added to
5567 @code{log-edit-done-hook}.  A note containing the text of the commit
5568 and optionally a list of modified files will be added to today's page
5569 if you use the the Emacs version control interface. (@pxref{Version
5570 Control, , , Emacs, GNU Emacs Manual})
5572 @subheading Options
5574 @defopt planner-log-edit-include-files-flag
5575 Non-nil means include a list of committed files in the note.
5576 @end defopt
5578 @defopt planner-log-edit-notice-commit-function
5579 Non-nil means include a list of committed files in the note. If you
5580 want to enable this feature for some projects but not for others, set
5581 this to a function that returns t only for the commits you want to
5582 note.
5583 @end defopt
5585 @file{planner-log-edit.el} does not define any interactive functions.
5587 @node PSVN, XTLA, Log Edit, Tracking Development
5588 @comment  node-name,  next,  previous,  up
5589 @subsection PSVN
5590 @cindex PSVN
5591 @cindex @file{planner-psvn.el}, using
5592 @cindex Subversion, integration with
5594 This module enables you to refer to your Subversion (svn) changesets
5595 easily from within a Planner page, and to have your svn commits recorded
5596 automatically as notes in your planner.
5598 You must also have @file{psvn.el}, which is often packaged with
5599 Subversion in GNU/Linux distributions.
5601 You can then load the module by adding @code{(require 'planner-psvn)} to
5602 your @file{~/.emacs}.
5604 Once the module is loaded, Planner will pick up annotation information
5605 from any psvn *svn-log-view* buffer. If you create a task or note while
5606 in such a buffer, that task will have a hyperlink you can follow to
5607 return to the changeset later.
5609 These hyperlinks are of the form
5610 @samp{psvn://http://my.svn-repos.at/svn/project1/trunk@@39}
5612 Additionally, you can have notes for your commits automatically
5613 generated. Set @var{planner-psvn-log-edit-notice-commit-function} to t
5614 to enable this.
5616 By default, these commit notes will include a list of the files
5617 modified. If you would prefer to have this list not included, set
5618 @var{planner-psvn-log-edit-include-files-flag} to nil.
5620 @node XTLA, Gnats, PSVN, Tracking Development
5621 @comment  node-name,  next,  previous,  up
5622 @subsection XTLA
5623 @cindex XTLA
5624 @cindex @file{planner-xtla.el}, using
5626 This module allows you to refer to changesets in Tom Lord's Arch (tla)
5627 version control system. You can load the module with @code{(require
5628 'planner-xtla)}. When you load the module, you can create tasks from
5629 XTLA windows by positioning point on a revision.
5631 XTLA URLs are of the form
5632 @samp{xtla://miles@@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-19}
5634 @file{planner-xtla.el} does not define any interactive functions.
5636 @node Gnats,  , XTLA, Tracking Development
5637 @comment  node-name,  next,  previous,  up
5638 @subsection Gnats
5640 @cindex Gnats
5641 @cindex @file{planner-gnats.el}, using
5642 @cindex bug reports, tracking
5644 @file{planner-gnats.el} provides support for the GNU problem report
5645 management system Gnats. This module allows you to refer to problem
5646 reports using hyperlinks.
5648 Configure your Emacs for Gnats access, then add @samp{(require
5649 'planner-gnats)} to your @file{.emacs}. You can then create tasks from
5650 Gnats edit or view buffers.
5652 To add keybindings to Gnats, use @samp{(planner-gnats-insinuate)}.
5654 Gnats URLs are of the form @samp{gnats:pr-number}.
5656 @file{planner-gnats.el} does not define any interactive functions.
5658 @node Advanced Configuration, Reference Material, Managing Your Information, Top
5659 @comment  node-name,  next,  previous,  up
5660 @chapter Advanced Configuration
5661 @cindex configuration, advanced
5663 @menu
5664 * Customizing Your Day Pages::  Change your templates
5665 * Variables to Customize::      Change various aspects of Planner behavior
5666 * Ideas for Other Keybindings::  Add to and change the default keybindings
5667 @end menu
5669 @node Customizing Your Day Pages, Variables to Customize, Advanced Configuration, Advanced Configuration
5670 @comment  node-name,  next,  previous,  up
5671 @section Customizing Your Day Pages
5673 With the variable @code{planner-day-page-template}, you can define how
5674 you want any newly created day planner pages to look.
5676 You might want to include a section for your diary entries. For how to
5677 do this, see @ref{Diary}.
5679 You can add interactive Lisp buttons with the @file{planner-lisp.el}
5680 module. (@pxref{Interactive Lisp})
5682 Your @code{planner-day-page-template} can also include @samp{|<lisp>|}
5683 tags.
5685 For more complex day pages, you can set
5686 @code{planner-day-page-template} to a function that will be called
5687 from an empty day page buffer. The function should initialize the
5688 contents of the day page.
5690 @node Variables to Customize, Ideas for Other Keybindings, Customizing Your Day Pages, Advanced Configuration
5691 @comment  node-name,  next,  previous,  up
5692 @section Variables to Customize
5693 @cindex customize, variables to
5694 @cindex variables, customization of
5695 @cindex configuration, advanced, variables
5697 You can use Customize (@kbd{M-x customize-group RET planner RET}) to
5698 set user variables.
5700 Other user options are:
5702 @vindex planner-use-day-pages
5703 @defopt planner-use-day-pages
5704 If you really don't like day pages, you can set this variable to nil
5705 and you won't be prompted for dates for tasks (and notes, if using
5706 @file{remember-planner}).
5707 @end defopt
5709 @vindex planner-use-plan-pages
5710 @defopt planner-use-plan-pages
5711 If you really don't like plan pages, you can set this variable to nil
5712 and you won't be prompted for plan pages for tasks (and notes, if
5713 using @file{remember-planner}).
5714 @end defopt
5716 @vindex planner-mode-hook
5717 @defopt planner-mode-hook
5718 List of functions to run after @code{planner-mode} is initialized.
5719 @end defopt
5721 @vindex planner-tasks-file-behavior
5722 @defopt planner-tasks-file-behavior
5723 This variable controls what happens to files Planner opens by itself.
5724 If your tasks are associated with plan pages, the plan pages are
5725 updated whenever a task is rescheduled.  This could lead to a lot of
5726 open buffers as Planner applies updates to all linked files.
5727 By default, Planner is configured to do nothing.
5728 A value of @samp{save} means save but do not close buffers, and a
5729 value of @samp{nil} means do not save any of the buffers.
5730 @end defopt
5732 @vindex planner-add-task-at-end-flag
5733 @defopt planner-add-task-at-end-flag
5734 This variable controls where new tasks are created.  Non-nil means
5735 create tasks at the bottom of the first task block.  If you set this
5736 to non-nil, new tasks will be listed in order of creation (oldest).
5737 Tasks carried over from previous days will appear at the bottom of the
5738 list.
5740 Nil means create tasks at the top of the first task block.
5741 Carried-over tasks and newly created tasks are prominently placed on
5742 top of the list of tasks for the day.
5743 @end defopt
5745 @vindex planner-default-page
5746 @defopt planner-default-page
5747 Default page for created tasks.  This is used as the initial value for
5748 tasks.  After you create a task, it will be set to the previous page
5749 used.
5750 @end defopt
5752 @vindex planner-hide-task-status-when-highlighting
5753 @defopt planner-hide-task-status-when-highlighting
5754 Font-locking for tasks may be enough for you to determine status and
5755 priority.  Set this to non-nil if you want to hide the status marker
5756 and rely on font-locking instead.
5757 @end defopt
5759 @vindex planner-create-task-hook
5760 @defopt planner-create-task-hook
5761 Functions run after creating a task. @code{planner-id} hooks into
5762 this.
5763 @end defopt
5765 @vindex planner-expand-name-favor-future-p
5766 @defopt planner-expand-name-favor-future-p
5767 If non-nil, partial dates (ex: @kbd{2} or @kbd{5.2}) are completed to
5768 dates in the future instead of using the current year and month.
5769 @end defopt
5771 @vindex planner-task-dates-favor-future-p
5772 @defopt planner-task-dates-favor-future-p
5773 Like @code{planner-expand-name-favor-future-p}, but only for tasks.
5774 @end defopt
5776 @vindex planner-publish-dates-first-p
5777 @defopt planner-publish-dates-first-p
5778 Non-nil means list day pages first in the planner index.
5779 @end defopt
5781 @node Ideas for Other Keybindings,  , Variables to Customize, Advanced Configuration
5782 @comment  node-name,  next,  previous,  up
5783 @section Ideas for Other Keybindings
5784 @cindex keybindings, customization of
5785 @cindex configuration, advanced, keybindings
5786 @cindex customize, keybindings to
5788 By default and for backward compatibility, the following operations
5789 do not have keybindings, and are only accessible from the Planner
5790 menu:
5792 @itemize @bullet
5794 @item
5795 @code{planner-copy-or-move-region}
5797 @item
5798 @code{planner-delete-task}
5800 @item
5801 @code{planner-task-delegated}
5803 @item
5804 @code{planner-task-pending}
5806 @item
5807 @code{planner-task-open}
5809 @item
5810 @code{planner-renumber-tasks}
5812 @end itemize
5814 You may find it easier to install keybindings for those operations by
5815 inserting the following in your @file{.emacs} (or @file{_emacs}).
5816 Note: This changes some of the default keybindings for Planner.
5818 @example
5819 (planner-install-extra-task-keybindings)
5820 @end example
5822 If you install the extra task keybindings, your keybindings will
5823 include:
5825 @itemize @bullet
5827 @item
5828 @kbd{C-c C-t} will be unbound from the default and will serve as the
5829 prefix for the other task keybindings.
5831 @item
5832 @kbd{C-c C-t C-t}: @code{planner-create-task-from-buffer}.
5834 @item
5835 @kbd{C-c C-t C-k}: @code{planner-delete-task}.
5837 @item
5838 @kbd{C-c C-t C-u}: @code{planner-update-task}.
5840 @item
5841 @kbd{C-c C-t C-c}: @code{planner-copy-or-move-task}.
5843 @item
5844 @kbd{C-c C-t C-S-c}: @code{planner-copy-or-move-region}.
5846 @item
5847 @kbd{C-c C-t C-x}: @code{planner-task-done}.
5849 @item
5850 @kbd{C-c C-t C-S-x}: @code{planner-task-cancelled}.
5852 @item
5853 @kbd{C-c C-t C-d}: @code{planner-task-delegated}.
5855 @item
5856 @kbd{C-c C-t C-p}: @code{planner-task-pending}.
5858 @item
5859 @kbd{C-c C-t C-o}: @code{planner-task-in-progress}.
5861 @item
5862 @kbd{C-c C-t C-r}: @code{planner-raise-task}.
5864 @item
5865 @kbd{C-c C-t C-l}: @code{planner-lower-task}.
5867 @item
5868 @kbd{C-c C-t C-n}: @code{planner-renumber-tasks}.
5870 @end itemize
5872 Other keybindings can be configured by adding this to your
5873 @file{.emacs} (or @file{_emacs}):
5875 @example
5876 (planner-install-extra-context-keybindings)
5877 @end example
5879 This will set up the following keybindings:
5881 @itemize @bullet
5883 @item
5884 @kbd{shift up} @code{planner-move-up}
5886 @item
5887 @kbd{shift down} @code{planner-move-down}
5889 @item
5890 @kbd{shift right} @code{planner-jump-to-link}
5892 @end itemize
5894 @node Reference Material, Getting Help, Advanced Configuration, Top
5895 @comment  node-name,  next,  previous,  up
5896 @chapter Reference Material
5898 @menu
5899 * Keeping Track of Time::       
5900 * Other Interactive Functions::  
5901 * Planner Keybindings::         Default keybindings for Planner
5902 * Sample Configuration Files::  
5903 @end menu
5905 @node Keeping Track of Time, Other Interactive Functions, Reference Material, Reference Material
5906 @section Keeping Track of Time
5908 One of the coolest things you can do with Planner is keep track of how
5909 much time you spend not only on projects but even on particular tasks.
5910 @file{planner-timeclock.el} makes it as easy and natural as marking a
5911 task as in progress, postponed, or done. This can help you determine
5912 just how much time you spend working each day. If you add estimates to
5913 your task descriptions, you'll also be able to use this information to
5914 improve your time estimation skills.
5916 For example, I had converted the TODO my teammate sent me into entries
5917 in my JapanProject plan page, and before starting my work I came up
5918 with rough estimates of the time it would take me to do the tasks. I
5919 also marked which tasks I felt were best suited for my coworker so
5920 that he could get started without worrying about conflicts. I like
5921 working on little tasks first, so I estimated the time it would take
5922 me to complete each task and sorted by my estimates using the
5923 @code{sort} command and some cutting and pasting.
5925 Then the fun began. I wanted to see if I could match my estimates.
5926 Before I started working on a task, I used @kbd{C-c TAB} to mark it
5927 @code{in progress} and start the clock. If I decided to work on
5928 something else, I used @kbd{C-c TAB} to clock out of the previous task
5929 and clock into the new one.
5931 When I finished it, I used @kbd{C-c C-x} (@code{planner-task-done}) to
5932 mark it completed and automatically clock out. This is not yet done
5933 for cancelled tasks, so I clocked out of those manually with @kbd{C-c
5934 C-o} (@code{timeclock-out}). I also clocked out whenever I caught
5935 myself being distracted so that the totals wouldn't include the time I
5936 spent chatting on #emacs or checking out del.icio.us links. =) At the
5937 end of the day, I used
5938 @code{planner-timeclock-summary-show-range-filter} to show me the time
5939 elapsed for all of the tasks I'd worked on over the past two days.
5940 Here's the report for that project, edited to reflect how it looks on
5941 my screen and annotated with comments:
5943 @example
5944 Timeclock summary report for 2004.12.28 - 2004.12.29
5946 Project     |     Time| Ratio| Task
5947 JapanProject|  0:23:17|  3.6%| Translate javadoc comment for Messages.java
5948             |  0:33:48|  5.3%| Translate javadoc comment for LoginAction.java
5949             |  1:54:07| 17.8%| Study Struts in Japanese
5950             |  0:46:08|  7.2%| Add javadoc tags for input, output and forwards
5951             |  1:03:48|  9.9%| Help review code
5952             |  0:04:14|  0.7%| Import todo list
5953             |  0:00:37|  0.1%| 2min       Fix Menu Action's unnecessary code - delegated
5954             |  0:01:01|  0.2%| 2min       Remove unnecessary list in UserRemoveSetupAction - cancelled
5955             |  0:02:10|  0.3%| 2min       Remove hard-coded database path from MenuAction
5956             |  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. ...
5957             |  0:07:32|  1.2%| 5min       Add a method that returns the validity of a user in MUserPeer.
5958             |  0:08:28|  1.3%| 5min       Fix indentation
5959             |  0:03:52|  0.6%| 10min      Fix UserPeer so that it doesn't get null pointer exceptions
5960             |  0:04:34|  0.7%| 5min       Add current password field in user_modify page
5961             |  0:21:56|  3.4%| 15min      Make a super class for our service classes that will receive the database connection. (cancelled)
5962             |  0:06:05|  0.9%| 10min      Remove hard-coded constants from the Logic classes
5963             |  0:10:55|  1.7%| 10min      Move logic from UserBean.checkPassword to UserListLogic
5964             |  0:01:20|  0.2%| 20min      Guard against null pointer exceptions in peer classes
5965             |  0:04:57|  0.8%| 10min      Instead of displaying uneditable data with bean:write, just disable the html:text element
5966             |  0:25:03|  3.9%| 10min      Deploy 10:00 version
5967             |  0:04:46|  0.7%| 5min       Separate the configuration file of database and system into another uninternationalized property file.
5968             |  2:09:48| 20.2%| 1h         Decide on a naming convention for localized messages and update files
5969             |  0:00:07|  0.0%| 20min      Explain what is happening in UserModifyAction's nested ifs - pending
5970             |  1:50:23| 17.2%| 2h         Write Javadoc comments in English and Japanese to explain bean structure
5971             |  0:04:19|  0.7%| 2h         Write Javadoc comments in English and Japanese to explain peer operations (pending)
5972             |  0:05:40|  0.9%| 20min      Make a factory class for the database - pending
5973      Total: | 10:41:41|100.0%|      
5975 Day began: 13:03:58, Day ended: 20:51:46
5976 Time elapsed: 31:47:48, Time clocked: 10:41:41
5977 Time clocked ratio: 33.6%
5978 @end example
5980 The time record isn't perfect. I cancelled some tasks after thinking
5981 about them a little and did some tasks simultaneously. Sometimes I
5982 didn't notice that I was getting distracted, too. Still, having all of
5983 that time information neatly summarized made me realize a number of
5984 things.
5986 First, I goof off much less when I have a nice, broken-down task list
5987 in front of me. There's just something about knowing there's a five-
5988 or ten-minute hack you can get out of the way. I found myself looking
5989 forward to getting to the next task just to see if I could make my
5990 estimate. That said, seeing a five-minute task stretch and stretch due
5991 to unforeseen problems did make me a little nervous. I should probably
5992 just make generous estimates so that I don't end up with bugs because
5993 of haste.
5995 Second, I don't goof off as much as I thought I did, although there's
5996 still room for improvement. Yesterday's workday was 9:00 - 12:00, 1:00
5997 - 5:30--7.5 hours. Today was the last day of work, so cleaning and
5998 celebration interrupted my hacking at around 3:00--5 hours of work.
5999 According to my task list, 10:41/12:30 was productive work. Hmm. 1:49
6000 hours unclocked time when I was thinking or goofing off.
6001 planner-timeclock-summary-show for today reveals that I actually
6002 clocked 5:30 today, which means the goofing off happened yesterday.
6003 That makes sense; I remember a pretty long unclocked segment
6004 recuperating from Japanese overload. (This was before we came up with
6005 the task list.)
6007 Third, keeping track of time is way, way cool even if you don't bill
6008 anyone for your time.
6010 Like the idea? It's easy to try out. Just add
6012 @example
6013 (require 'planner-timeclock)
6014 (require 'planner-timeclock-summary)
6015 @end example
6017 to your ~/.emacs. If you want to try it out now, eval those statements
6018 in your Emacs session. After that, simply use @kbd{C-c TAB} to ``clock
6019 in'' a task before you start working on it and @kbd{C-c C-x}
6020 (@code{planner-task-done}) to mark it completed. @kbd{M-x
6021 planner-task-pending} also clocks out the current task if it was
6022 clocked in. To see a summary of how you spent your day, check out the
6023 different functions in @file{planner-timeclock-summary}.
6025 See @ref{Timeclock} for more details.
6027 Happy hacking!
6029 @node Other Interactive Functions, Planner Keybindings, Keeping Track of Time, Reference Material
6030 @comment  node-name,  next,  previous,  up
6031 @section Other Interactive Functions
6033 With @file{planner.el} loaded, you can use any of the functions in this
6034 section by typing @kbd{M-x} followed by the name of the function. Many
6035 of these functions are also bound to keys.
6037 For a list of Planner keybindings, see @ref{Planner Keybindings}.
6039 They are listed in no particular order.
6041 @file{planner.el} defines the following interactive functions:
6044 @defun planner-create-high-priority-task-from-buffer
6045 Create a high priority task based on this buffer.  Do not use this in
6046 LISP programs. Instead, set the value of
6047 @var{planner-default-task-priority} and call @code{planner-create-task}
6048 or @code{planner-create-task-from-buffer}.
6049 @end defun
6051 @defun defun planner-create-medium-priority-task-from-buffer
6052 Create a medium-priority task based on this buffer.  Do not use this in
6053 LISP programs. Instead, set the value of
6054 @var{planner-default-task-priority} and call @code{planner-create-task}
6055 or @code{planner-create-task-from-buffer}.
6056 @end defun
6058 @defun planner-create-low-priority-task-from-buffer
6059 Create a high-priority task based on this buffer.
6060 Do not use this in LISP programs. Instead, set the value of
6061 @var{planner-default-task-priority} and call @code{planner-create-task} or
6062 @code{planner-create-task-from-buffer}.
6063 @end defun
6065 @defun planner-install-extra-context-keybindings
6066 Install extra context-sensitive keybindings. These keybindings
6067 conflict with @file{windmove.el}, but might be useful.
6068 @end defun
6070 @defun planner-narrow-to-section section &optional create
6071 Widen to the whole page and narrow to the section labelled
6072 @var{section}.  If @var{create} is non-nil and the section is not found,
6073 the section is created.  Return non-nil if @var{section} was found or
6074 created.
6075 @end defun
6077 @defun planner-save-buffers
6078 Save all planner-mode buffers.
6079 @end defun
6081 @defun planner-seek-to-first section
6082 Positions the point at the specified @var{section}, or @samp{Tasks} if
6083 not specified.
6084 @end defun
6086 @defun planner-save-buffers
6087 Save all planner buffers.
6088 @end defun
6090 @defun planner-calendar-insinuate
6091 This hooks Planner into  Emacs Calendar (@pxref{Calendar/Diary, ,
6092 , Emacs, GNU Emacs Manual}).
6094 It adds special planner key bindings to @code{calendar-mode-map}.
6095 After this function is evaluated, you can use the following
6096 planner-related keybindings in @code{calendar-mode-map}:
6098 @table @kbd
6100 @item  n
6101 Jump to the planner page for the current day.
6103 @item  N
6104 Display the planner page for the current day.
6105 @end table
6107 @end defun
6109 @defun planner-kill-calendar-files
6110 Remove planner files shown from Calendar (@pxref{Calendar/Diary, , ,
6111 Emacs, GNU Emacs Manual}).
6113 @end defun
6115 @defun planner-calendar-goto
6116 Goto the plan page corresponding to the calendar date
6117 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6118 @end defun
6120 @defun planner-calendar-show
6121 Show the plan page for the calendar date under point in another window
6122 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6123 @end defun
6125 @defun planner-calendar-select
6126 Return to @code{planner-read-date} with the date currently selected
6127 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6128 @end defun
6130 @defun planner-jump-to-link
6131 Jump to the item linked to by the current item.
6132 @end defun
6134 @defun planner-move-up
6135 Move a task up. You can use this to indicate that you will do a task
6136 before another one. On a note, go to the previous note. On a headline,
6137 go to the previous headline of the same depth.
6138 @end defun
6140 @defun planner-move-down 
6141 Move down. You can use this to indicate that you will do a task after
6142 another one. On a note, go to the next note. On a headline, go to the
6143 next headline of the same depth.
6144 @end defun
6146 @node Planner Keybindings, Sample Configuration Files, Other Interactive Functions, Reference Material
6147 @comment  node-name,  next,  previous,  up
6148 @section Planner Keybindings
6149 @cindex keybindings, list
6151 In order to refresh and renumber all of your tasks according to their
6152 actual order in the buffer, simply save the file or call
6153 @kbd{M-x planner-renumber-tasks}.
6155 Here is a summary of the keystrokes available:
6157 @table @kbd
6159 @item M-x plan
6160 Begin your planning session.  This goes to the last day for which
6161 there is any planning info (or today if none), allowing you to review,
6162 and create/move tasks from that day.
6164 @item C-c C-u
6165 Move a task up.
6167 @item C-c C-d
6168 Move a task down.
6170 @item C-c C-s
6171 Mark the task as in progress or delegated.
6173 @item C-c C-x
6174 Mark the task as finished.
6176 @item C-c C-t
6177 Create a task associated with the current Wiki page. If you are on the
6178 opening line of a Note entry, it is assumed that the note itself is the
6179 origin of the task.
6181 @item C-c C-c
6182 Move or copy the current task to another date. If the current task is
6183 an original (meaning you are in the buffer where's defined, hopefully
6184 a planning page) then it will be copied, and the original task will
6185 also now point to the copy.  If the current task is a copy, it will
6186 just be moved to the new day, and the original task's link will be
6187 updated.
6189 @item C-c C-n
6190 Jump to today's task page.  If you call
6191 @code{(planner-calendar-insinuate)}, typing @kbd{n} in the Emacs
6192 calendar (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) will jump
6193 to today's task page.
6195 @item C-c C-x
6196 @code{planner-task-done}
6198 @item C-c C-z
6199 @code{planner-task-in-progress}
6201 @item C-c C-d
6202 @code{planner-lower-task}
6204 @item C-c C-u
6205 @code{planner-raise-task}
6207 @item C-c C-c
6208 @code{planner-copy-or-move-task}
6210 @item C-c C-t
6211 @code{planner-create-task-from-buffer}
6213 @item C-c C-j
6214 This is a prefix command.
6216 @item C-c C-n
6217 @code{planner-goto-today}
6219 @item C-c C-j C-r
6220 @code{planner-goto-most-recent}
6222 @item C-c C-j C-t
6223 @code{planner-goto-tomorrow}
6225 @item C-c C-j C-y
6226 @code{planner-goto-yesterday}
6228 @item C-c C-j C-j
6229 @code{planner-goto-today}
6231 @item C-c C-j C-n
6232 @code{planner-goto-next-daily-page}
6234 @item C-c C-j C-p
6235 @code{planner-goto-previous-daily-page}
6237 @item C-c C-j C-d
6238 @code{planner-goto}
6240 @end table
6242 @node Sample Configuration Files,  , Planner Keybindings, Reference Material
6243 @comment  node-name,  next,  previous,  up
6244 @section Sample Configuration Files
6245 @cindex configuration, sample
6247 This section includes some sample configuration files. This way, once
6248 you've got the hang of the basics, you can see some different, more
6249 advanced, setups.
6251 There is no One True Way to plan. Every person is different. We hope
6252 you'll find a good starting point among the example configurations
6253 below. If what you want to do does not perfectly fit under one of these
6254 examples, please post a description of the way you plan to our mailing
6255 list (@pxref{Getting Help}).  We look forward to helping you customizing
6256 planner to fit your needs.
6258 @menu
6259 * File Organization::           
6260 * Bare-Bones Planning::         
6261 * Bare-Bones Planning with Plan Pages::  
6262 * Tasks on Plan Pages with Some Day Pages::  
6263 * Hierarchical Tasks::          
6264 @end menu
6266 @node File Organization, Bare-Bones Planning, Sample Configuration Files, Sample Configuration Files
6267 @subsection File Organization
6269 @itemize
6270 @item @strong{Tasks, schedule and notes on day pages.}
6272 By default, tasks, schedule entries and notes are filed on day pages.
6273 This makes it easy for you to see all the entries relevant to a single
6274 day without becoming overwhelmed with information. Unfinished tasks
6275 are carried over to the next day when you use @kbd{M-x plan}, so it's
6276 always kept up to date. Completed tasks are left on the day page you
6277 finished them on, which helps when reviewing one's progress and writing
6278 accomplishment reports.
6280 @item @strong{Cross-referenced with plan pages.}
6282 You can associate your tasks with projects either when you create the
6283 task or later, with @kbd{M-x planner-replan-task}. This makes it easy
6284 for you to see all the information associated with a particular
6285 project. If you use RememberMode to create notes, you will also be
6286 able to associate notes with a plan page.
6288 @item @strong{Just plan pages.}
6290 If your tasks don't usually have dates, you can turn day pages off by
6291 customizing @code{planner-use-day-pages}. If so, then all of your
6292 tasks and notes will be stored on the WelcomePage and/or a plan page.
6294 @end itemize
6296 @node Bare-Bones Planning, Bare-Bones Planning with Plan Pages, File Organization, Sample Configuration Files
6297 @subsection Bare-Bones Planning
6299 You can keep all of your tasks, notes and schedules in a single file:
6300 WelcomePage.  This is good for people who are used to storing all of
6301 their information in a flat text file.  By storing your information in
6302 planner, you'll be able to take advantage of automatic hyperlinking to
6303 files and other resources.  You can also sort your tasks by priority
6304 and status.
6306 To set your system up for bare-bones planning, set the
6307 @code{planner-use-day-pages} variable to nil before loading planner.
6308 For example, you can put this in your @file{~/.emacs} (or @file{_emacs}):
6310 @example
6311 (setq planner-use-day-pages nil)
6312 (setq planner-default-page nil)
6313 (require 'planner)
6314 @end example
6316 When you create a task or note, planner will not prompt you for a
6317 date.  If you press @key{RET} when prompted for a plan page, it will
6318 accept the default of nil, so no other plan pages will be used.  All
6319 of your data will be kept in one file, which can then be easily backed
6322 You can use commands like @command{planner-create-task-from-buffer} to
6323 create tasks, or you can type tasks in manually.  You can edit or
6324 delete anything in the page without having to update other files.
6326 @node Bare-Bones Planning with Plan Pages, Tasks on Plan Pages with Some Day Pages, Bare-Bones Planning, Sample Configuration Files
6327 @subsection Bare-Bones Planning with Plan Pages
6329 When you create a task or note, Planner.el can copy this to a plan
6330 page. Plan pages allow you to see an overview of all the data for a
6331 project.
6333 For convenience, the @command{planner-create-task-from-buffer} command
6334 prompts you for a plan page when you create a task.
6338 @node Tasks on Plan Pages with Some Day Pages, Hierarchical Tasks, Bare-Bones Planning with Plan Pages, Sample Configuration Files
6339 @subsection Tasks on Plan Pages with Some Day Pages
6341 If most of your tasks are associated with plan pages but you want to
6342 schedule some tasks on day pages, you can leave day pages on (default)
6343 and then write a function that turns off day pages. For example, the
6344 following code snippet turns off day pages for task creation from
6345 buffers.
6347 @example
6348 (require 'planner)
6350 (defun my-planner-create-task-from-buffer ()
6351   "Call `planner-create-task-from-buffer', but without dates."
6352   (interactive)
6353   (let ((planner-use-day-pages nil))
6354     (call-interactively 'planner-create-task-from-buffer)))
6355 @end example
6357 @node Hierarchical Tasks,  , Tasks on Plan Pages with Some Day Pages, Sample Configuration Files
6358 @subsection Hierarchical Tasks
6359 @cindex hierarchical tasks
6360 @cindex tasks, hierarchy of
6362 You can use @file{allout.el} or other modes for outlining to support
6363 hierarchical tasks in plan pages. No special support is needed.
6365 Tasks created by @command{planner-create-task-from-buffer} and
6366 @code{planner-create-task} are created in the @samp{* Tasks} section.
6367 If @code{planner-add-task-at-end-flag} is non-nil, tasks are added to
6368 the end of the first task block, else they are added to the beginning.
6369 You can then copy and paste tasks into your preferred hierarchy.
6370 Blank lines delimit blocks of tasks upon which automatic sorting is
6371 performed.
6373 You can also type in tasks manually. You may find this approach faster
6374 when you are comfortable with planner.
6376 For example, a @file{LearnPlanner} plan page might contain the
6377 following lines:
6379 @example
6380 * Learn how to use planner.el
6382 ** Installation
6384 #C0 _ Decide where to put Planner
6385 #C0 _ Download the archives
6387 ** Configuration
6389 *** Load path
6391 #C0 _ Figure out how to add things to my load path
6392 #C0 _ Actually add it to my load path
6395 @end example
6397 If you create tasks for the finest level of detail available at the
6398 moment, you can schedule them onto day pages with @kbd{C-c C-c}
6399 (@command{planner-copy-or-move-task}). Then you can use
6400 @command{planner-jump-to-link} to switch between the day page and the
6401 plan page link.
6404 @node Getting Help, Acknowledgements, Reference Material, Top
6405 @comment  node-name,  next,  previous,  up
6406 @chapter Getting Help
6407 @cindex help, getting
6408 @cindex bugs, reporting
6410 After you have read this guide, if you still have questions about
6411 Planner, or if you have bugs to report, there are several places
6412 you can go.
6414 Planner has an official website at
6415 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}.  It is a
6416 collaborative wiki.
6418 Bugs may be reported using the Planner Bug-Tracker at
6419 @url{http://gna.org/bugs/?group=planner-el}.
6421 Planner has three mailing lists.
6423 @table @samp
6425 @item planner-el-announce
6426 Low-traffic list for planner-related announcements.
6428 You can join this mailing list (@email{planner-el-announce@@gna.org})
6429 using the subscription form at
6430 @url{http://mail.gna.org/listinfo/planner-el-announce/}.  This
6431 mailing list is also available via Gmane (@url{http://gmane.org/}). The
6432 group is called @samp{gmane.emacs.planner.announce}.
6434 @item planner-el-discuss
6435 Discussion, bugfixes, suggestions, tips, and the like for Planner.
6436 This mailing list also includes the content of planner-el-announce.
6438 You can join this mailing list (@email{planner-el-discuss@@gna.org})
6439 using the subscription form at
6440 @url{http://mail.gna.org/listinfo/planner-el-discuss/}.  This mailing
6441 list is also available via Gmane with the identifier
6442 @samp{gmane.emacs.planner.general}.
6444 @item planner-el-logs
6445 Log messages for commits made to Planner.
6447 You can join this mailing list (@email{planner-el-logs@@gna.org}) using
6448 the subscription form at
6449 @url{http://mail.gna.org/listinfo/planner-el-logs/}.  This mailing list
6450 is also available via Gmane with the identifier
6451 @samp{gmane.emacs.planner.scm}.
6453 @item planner-el-cvs
6454 Generated bug reports for Planner.
6456 You can join this mailing list (@email{planner-el-cvs@@gna.org}) using
6457 the subscription form at
6458 @url{http://mail.gna.org/listinfo/planner-el-cvs/}.  This mailing list
6459 is also available via Gmane with the identifier
6460 @samp{gmane.emacs.planner.cvs}.
6462 @end table
6464 You can also contact the maintainer of Planner, John Sullivan, at
6465 @email{john@@wjsullivan.net}, but it is better to use the other options.
6467 You can explore the relevant sections of the EmacsWiki.org:
6469 @itemize @bullet
6471 @item
6472 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}
6474 @item
6475 @url{http://www.emacswiki.org/cgi-bin/wiki/MuseMode}
6477 @item
6478 @url{http://www.emacswiki.org/cgi-bin/wiki/RememberMode}
6480 @end itemize
6482 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
6483 contributors are frequently around and willing to answer your
6484 questions.
6486 There is an Orkut community called PlannerMode.
6488 For issues relating to this documentation, please contact John
6489 Sullivan at @email{john@@wjsullivan.net}.
6491 @node Acknowledgements, GNU General Public License, Getting Help, Top
6492 @comment  node-name,  next,  previous,  up
6493 @chapter Acknowledgements
6494 @itemize
6495 @item Maintainers
6497 @cindex maintainers
6499 @itemize
6500 @item 2006
6502 John Sullivan volunteered to maintain Planner, and Michael Olson passed
6503 the maintainership on to him with the release of Planner 3.41.
6505 @item 2005
6507 Michael Olson, Sacha Chua, and several others from the Planner community
6508 ported Planner to use Muse instead of emacs-wiki.  Michael Olson became
6509 the maintainer of Planner.
6511 @item 2004
6513 Damien Elmes handed EmacsWikiMode to Mark Triggs for a short period of
6514 time.  Mark Triggs deferred to Sacha Chua as official maintainer of
6515 Planner.  Sacha Chua volunteered to maintain RememberMode.
6516 Michael Olson became the maintainer of both emacs-wiki and Muse.
6518 @item 2003
6520 Sacha Chua volunteered to maintain Planner.  Damien Elmes
6521 volunteered to maintain EmacsWikiMode.
6523 @item 2001
6525 John Wiegley wrote EmacsWikiMode and Planner.
6526 @end itemize
6528 @item Contributors
6529 @cindex contributors
6531 For a complete list of people who have helped out with Planner, please
6532 check out the @file{AUTHORS} file that is included with Planner.
6534 @end itemize
6536 @node GNU General Public License, Concept Index, Acknowledgements, Top
6537 @comment  node-name,  next,  previous,  up
6538 @appendix GNU GENERAL PUBLIC LICENSE
6539 @center Version 2, June 1991
6540 @cindex GPL
6541 @cindex GNU General Public License
6543 @c The GNU General Public License.
6544 @center Version 3, 29 June 2007
6546 @c This file is intended to be included within another document,
6547 @c hence no sectioning command or @node.  
6549 @display
6550 Copyright @copyright{} 2007 Free Software Foundation, Inc. @url{http://fsf.org/}
6552 Everyone is permitted to copy and distribute verbatim copies of this
6553 license document, but changing it is not allowed.
6554 @end display
6556 @heading Preamble
6558 The GNU General Public License is a free, copyleft license for
6559 software and other kinds of works.
6561 The licenses for most software and other practical works are designed
6562 to take away your freedom to share and change the works.  By contrast,
6563 the GNU General Public License is intended to guarantee your freedom
6564 to share and change all versions of a program---to make sure it remains
6565 free software for all its users.  We, the Free Software Foundation,
6566 use the GNU General Public License for most of our software; it
6567 applies also to any other work released this way by its authors.  You
6568 can apply it to your programs, too.
6570 When we speak of free software, we are referring to freedom, not
6571 price.  Our General Public Licenses are designed to make sure that you
6572 have the freedom to distribute copies of free software (and charge for
6573 them if you wish), that you receive source code or can get it if you
6574 want it, that you can change the software or use pieces of it in new
6575 free programs, and that you know you can do these things.
6577 To protect your rights, we need to prevent others from denying you
6578 these rights or asking you to surrender the rights.  Therefore, you
6579 have certain responsibilities if you distribute copies of the
6580 software, or if you modify it: responsibilities to respect the freedom
6581 of others.
6583 For example, if you distribute copies of such a program, whether
6584 gratis or for a fee, you must pass on to the recipients the same
6585 freedoms that you received.  You must make sure that they, too,
6586 receive or can get the source code.  And you must show them these
6587 terms so they know their rights.
6589 Developers that use the GNU GPL protect your rights with two steps:
6590 (1) assert copyright on the software, and (2) offer you this License
6591 giving you legal permission to copy, distribute and/or modify it.
6593 For the developers' and authors' protection, the GPL clearly explains
6594 that there is no warranty for this free software.  For both users' and
6595 authors' sake, the GPL requires that modified versions be marked as
6596 changed, so that their problems will not be attributed erroneously to
6597 authors of previous versions.
6599 Some devices are designed to deny users access to install or run
6600 modified versions of the software inside them, although the
6601 manufacturer can do so.  This is fundamentally incompatible with the
6602 aim of protecting users' freedom to change the software.  The
6603 systematic pattern of such abuse occurs in the area of products for
6604 individuals to use, which is precisely where it is most unacceptable.
6605 Therefore, we have designed this version of the GPL to prohibit the
6606 practice for those products.  If such problems arise substantially in
6607 other domains, we stand ready to extend this provision to those
6608 domains in future versions of the GPL, as needed to protect the
6609 freedom of users.
6611 Finally, every program is threatened constantly by software patents.
6612 States should not allow patents to restrict development and use of
6613 software on general-purpose computers, but in those that do, we wish
6614 to avoid the special danger that patents applied to a free program
6615 could make it effectively proprietary.  To prevent this, the GPL
6616 assures that patents cannot be used to render the program non-free.
6618 The precise terms and conditions for copying, distribution and
6619 modification follow.
6621 @heading TERMS AND CONDITIONS
6623 @enumerate 0
6624 @item Definitions.
6626 ``This License'' refers to version 3 of the GNU General Public License.
6628 ``Copyright'' also means copyright-like laws that apply to other kinds
6629 of works, such as semiconductor masks.
6631 ``The Program'' refers to any copyrightable work licensed under this
6632 License.  Each licensee is addressed as ``you''.  ``Licensees'' and
6633 ``recipients'' may be individuals or organizations.
6635 To ``modify'' a work means to copy from or adapt all or part of the work
6636 in a fashion requiring copyright permission, other than the making of
6637 an exact copy.  The resulting work is called a ``modified version'' of
6638 the earlier work or a work ``based on'' the earlier work.
6640 A ``covered work'' means either the unmodified Program or a work based
6641 on the Program.
6643 To ``propagate'' a work means to do anything with it that, without
6644 permission, would make you directly or secondarily liable for
6645 infringement under applicable copyright law, except executing it on a
6646 computer or modifying a private copy.  Propagation includes copying,
6647 distribution (with or without modification), making available to the
6648 public, and in some countries other activities as well.
6650 To ``convey'' a work means any kind of propagation that enables other
6651 parties to make or receive copies.  Mere interaction with a user
6652 through a computer network, with no transfer of a copy, is not
6653 conveying.
6655 An interactive user interface displays ``Appropriate Legal Notices'' to
6656 the extent that it includes a convenient and prominently visible
6657 feature that (1) displays an appropriate copyright notice, and (2)
6658 tells the user that there is no warranty for the work (except to the
6659 extent that warranties are provided), that licensees may convey the
6660 work under this License, and how to view a copy of this License.  If
6661 the interface presents a list of user commands or options, such as a
6662 menu, a prominent item in the list meets this criterion.
6664 @item Source Code.
6666 The ``source code'' for a work means the preferred form of the work for
6667 making modifications to it.  ``Object code'' means any non-source form
6668 of a work.
6670 A ``Standard Interface'' means an interface that either is an official
6671 standard defined by a recognized standards body, or, in the case of
6672 interfaces specified for a particular programming language, one that
6673 is widely used among developers working in that language.
6675 The ``System Libraries'' of an executable work include anything, other
6676 than the work as a whole, that (a) is included in the normal form of
6677 packaging a Major Component, but which is not part of that Major
6678 Component, and (b) serves only to enable use of the work with that
6679 Major Component, or to implement a Standard Interface for which an
6680 implementation is available to the public in source code form.  A
6681 ``Major Component'', in this context, means a major essential component
6682 (kernel, window system, and so on) of the specific operating system
6683 (if any) on which the executable work runs, or a compiler used to
6684 produce the work, or an object code interpreter used to run it.
6686 The ``Corresponding Source'' for a work in object code form means all
6687 the source code needed to generate, install, and (for an executable
6688 work) run the object code and to modify the work, including scripts to
6689 control those activities.  However, it does not include the work's
6690 System Libraries, or general-purpose tools or generally available free
6691 programs which are used unmodified in performing those activities but
6692 which are not part of the work.  For example, Corresponding Source
6693 includes interface definition files associated with source files for
6694 the work, and the source code for shared libraries and dynamically
6695 linked subprograms that the work is specifically designed to require,
6696 such as by intimate data communication or control flow between those
6697 subprograms and other parts of the work.
6699 The Corresponding Source need not include anything that users can
6700 regenerate automatically from other parts of the Corresponding Source.
6702 The Corresponding Source for a work in source code form is that same
6703 work.
6705 @item Basic Permissions.
6707 All rights granted under this License are granted for the term of
6708 copyright on the Program, and are irrevocable provided the stated
6709 conditions are met.  This License explicitly affirms your unlimited
6710 permission to run the unmodified Program.  The output from running a
6711 covered work is covered by this License only if the output, given its
6712 content, constitutes a covered work.  This License acknowledges your
6713 rights of fair use or other equivalent, as provided by copyright law.
6715 You may make, run and propagate covered works that you do not convey,
6716 without conditions so long as your license otherwise remains in force.
6717 You may convey covered works to others for the sole purpose of having
6718 them make modifications exclusively for you, or provide you with
6719 facilities for running those works, provided that you comply with the
6720 terms of this License in conveying all material for which you do not
6721 control copyright.  Those thus making or running the covered works for
6722 you must do so exclusively on your behalf, under your direction and
6723 control, on terms that prohibit them from making any copies of your
6724 copyrighted material outside their relationship with you.
6726 Conveying under any other circumstances is permitted solely under the
6727 conditions stated below.  Sublicensing is not allowed; section 10
6728 makes it unnecessary.
6730 @item Protecting Users' Legal Rights From Anti-Circumvention Law.
6732 No covered work shall be deemed part of an effective technological
6733 measure under any applicable law fulfilling obligations under article
6734 11 of the WIPO copyright treaty adopted on 20 December 1996, or
6735 similar laws prohibiting or restricting circumvention of such
6736 measures.
6738 When you convey a covered work, you waive any legal power to forbid
6739 circumvention of technological measures to the extent such
6740 circumvention is effected by exercising rights under this License with
6741 respect to the covered work, and you disclaim any intention to limit
6742 operation or modification of the work as a means of enforcing, against
6743 the work's users, your or third parties' legal rights to forbid
6744 circumvention of technological measures.
6746 @item Conveying Verbatim Copies.
6748 You may convey verbatim copies of the Program's source code as you
6749 receive it, in any medium, provided that you conspicuously and
6750 appropriately publish on each copy an appropriate copyright notice;
6751 keep intact all notices stating that this License and any
6752 non-permissive terms added in accord with section 7 apply to the code;
6753 keep intact all notices of the absence of any warranty; and give all
6754 recipients a copy of this License along with the Program.
6756 You may charge any price or no price for each copy that you convey,
6757 and you may offer support or warranty protection for a fee.
6759 @item Conveying Modified Source Versions.
6761 You may convey a work based on the Program, or the modifications to
6762 produce it from the Program, in the form of source code under the
6763 terms of section 4, provided that you also meet all of these
6764 conditions:
6766 @enumerate a
6767 @item 
6768 The work must carry prominent notices stating that you modified it,
6769 and giving a relevant date.
6771 @item
6772 The work must carry prominent notices stating that it is released
6773 under this License and any conditions added under section 7.  This
6774 requirement modifies the requirement in section 4 to ``keep intact all
6775 notices''.
6777 @item
6778 You must license the entire work, as a whole, under this License to
6779 anyone who comes into possession of a copy.  This License will
6780 therefore apply, along with any applicable section 7 additional terms,
6781 to the whole of the work, and all its parts, regardless of how they
6782 are packaged.  This License gives no permission to license the work in
6783 any other way, but it does not invalidate such permission if you have
6784 separately received it.
6786 @item
6787 If the work has interactive user interfaces, each must display
6788 Appropriate Legal Notices; however, if the Program has interactive
6789 interfaces that do not display Appropriate Legal Notices, your work
6790 need not make them do so.
6791 @end enumerate
6793 A compilation of a covered work with other separate and independent
6794 works, which are not by their nature extensions of the covered work,
6795 and which are not combined with it such as to form a larger program,
6796 in or on a volume of a storage or distribution medium, is called an
6797 ``aggregate'' if the compilation and its resulting copyright are not
6798 used to limit the access or legal rights of the compilation's users
6799 beyond what the individual works permit.  Inclusion of a covered work
6800 in an aggregate does not cause this License to apply to the other
6801 parts of the aggregate.
6803 @item  Conveying Non-Source Forms.
6805 You may convey a covered work in object code form under the terms of
6806 sections 4 and 5, provided that you also convey the machine-readable
6807 Corresponding Source under the terms of this License, in one of these
6808 ways:
6810 @enumerate a
6811 @item
6812 Convey the object code in, or embodied in, a physical product
6813 (including a physical distribution medium), accompanied by the
6814 Corresponding Source fixed on a durable physical medium customarily
6815 used for software interchange.
6817 @item
6818 Convey the object code in, or embodied in, a physical product
6819 (including a physical distribution medium), accompanied by a written
6820 offer, valid for at least three years and valid for as long as you
6821 offer spare parts or customer support for that product model, to give
6822 anyone who possesses the object code either (1) a copy of the
6823 Corresponding Source for all the software in the product that is
6824 covered by this License, on a durable physical medium customarily used
6825 for software interchange, for a price no more than your reasonable
6826 cost of physically performing this conveying of source, or (2) access
6827 to copy the Corresponding Source from a network server at no charge.
6829 @item
6830 Convey individual copies of the object code with a copy of the written
6831 offer to provide the Corresponding Source.  This alternative is
6832 allowed only occasionally and noncommercially, and only if you
6833 received the object code with such an offer, in accord with subsection
6836 @item
6837 Convey the object code by offering access from a designated place
6838 (gratis or for a charge), and offer equivalent access to the
6839 Corresponding Source in the same way through the same place at no
6840 further charge.  You need not require recipients to copy the
6841 Corresponding Source along with the object code.  If the place to copy
6842 the object code is a network server, the Corresponding Source may be
6843 on a different server (operated by you or a third party) that supports
6844 equivalent copying facilities, provided you maintain clear directions
6845 next to the object code saying where to find the Corresponding Source.
6846 Regardless of what server hosts the Corresponding Source, you remain
6847 obligated to ensure that it is available for as long as needed to
6848 satisfy these requirements.
6850 @item
6851 Convey the object code using peer-to-peer transmission, provided you
6852 inform other peers where the object code and Corresponding Source of
6853 the work are being offered to the general public at no charge under
6854 subsection 6d.
6856 @end enumerate
6858 A separable portion of the object code, whose source code is excluded
6859 from the Corresponding Source as a System Library, need not be
6860 included in conveying the object code work.
6862 A ``User Product'' is either (1) a ``consumer product'', which means any
6863 tangible personal property which is normally used for personal,
6864 family, or household purposes, or (2) anything designed or sold for
6865 incorporation into a dwelling.  In determining whether a product is a
6866 consumer product, doubtful cases shall be resolved in favor of
6867 coverage.  For a particular product received by a particular user,
6868 ``normally used'' refers to a typical or common use of that class of
6869 product, regardless of the status of the particular user or of the way
6870 in which the particular user actually uses, or expects or is expected
6871 to use, the product.  A product is a consumer product regardless of
6872 whether the product has substantial commercial, industrial or
6873 non-consumer uses, unless such uses represent the only significant
6874 mode of use of the product.
6876 ``Installation Information'' for a User Product means any methods,
6877 procedures, authorization keys, or other information required to
6878 install and execute modified versions of a covered work in that User
6879 Product from a modified version of its Corresponding Source.  The
6880 information must suffice to ensure that the continued functioning of
6881 the modified object code is in no case prevented or interfered with
6882 solely because modification has been made.
6884 If you convey an object code work under this section in, or with, or
6885 specifically for use in, a User Product, and the conveying occurs as
6886 part of a transaction in which the right of possession and use of the
6887 User Product is transferred to the recipient in perpetuity or for a
6888 fixed term (regardless of how the transaction is characterized), the
6889 Corresponding Source conveyed under this section must be accompanied
6890 by the Installation Information.  But this requirement does not apply
6891 if neither you nor any third party retains the ability to install
6892 modified object code on the User Product (for example, the work has
6893 been installed in ROM).
6895 The requirement to provide Installation Information does not include a
6896 requirement to continue to provide support service, warranty, or
6897 updates for a work that has been modified or installed by the
6898 recipient, or for the User Product in which it has been modified or
6899 installed.  Access to a network may be denied when the modification
6900 itself materially and adversely affects the operation of the network
6901 or violates the rules and protocols for communication across the
6902 network.
6904 Corresponding Source conveyed, and Installation Information provided,
6905 in accord with this section must be in a format that is publicly
6906 documented (and with an implementation available to the public in
6907 source code form), and must require no special password or key for
6908 unpacking, reading or copying.
6910 @item Additional Terms.
6912 ``Additional permissions'' are terms that supplement the terms of this
6913 License by making exceptions from one or more of its conditions.
6914 Additional permissions that are applicable to the entire Program shall
6915 be treated as though they were included in this License, to the extent
6916 that they are valid under applicable law.  If additional permissions
6917 apply only to part of the Program, that part may be used separately
6918 under those permissions, but the entire Program remains governed by
6919 this License without regard to the additional permissions.
6921 When you convey a copy of a covered work, you may at your option
6922 remove any additional permissions from that copy, or from any part of
6923 it.  (Additional permissions may be written to require their own
6924 removal in certain cases when you modify the work.)  You may place
6925 additional permissions on material, added by you to a covered work,
6926 for which you have or can give appropriate copyright permission.
6928 Notwithstanding any other provision of this License, for material you
6929 add to a covered work, you may (if authorized by the copyright holders
6930 of that material) supplement the terms of this License with terms:
6932 @enumerate a
6933 @item
6934 Disclaiming warranty or limiting liability differently from the terms
6935 of sections 15 and 16 of this License; or
6937 @item
6938 Requiring preservation of specified reasonable legal notices or author
6939 attributions in that material or in the Appropriate Legal Notices
6940 displayed by works containing it; or
6942 @item
6943 Prohibiting misrepresentation of the origin of that material, or
6944 requiring that modified versions of such material be marked in
6945 reasonable ways as different from the original version; or
6947 @item
6948 Limiting the use for publicity purposes of names of licensors or
6949 authors of the material; or
6951 @item
6952 Declining to grant rights under trademark law for use of some trade
6953 names, trademarks, or service marks; or
6955 @item
6956 Requiring indemnification of licensors and authors of that material by
6957 anyone who conveys the material (or modified versions of it) with
6958 contractual assumptions of liability to the recipient, for any
6959 liability that these contractual assumptions directly impose on those
6960 licensors and authors.
6961 @end enumerate
6963 All other non-permissive additional terms are considered ``further
6964 restrictions'' within the meaning of section 10.  If the Program as you
6965 received it, or any part of it, contains a notice stating that it is
6966 governed by this License along with a term that is a further
6967 restriction, you may remove that term.  If a license document contains
6968 a further restriction but permits relicensing or conveying under this
6969 License, you may add to a covered work material governed by the terms
6970 of that license document, provided that the further restriction does
6971 not survive such relicensing or conveying.
6973 If you add terms to a covered work in accord with this section, you
6974 must place, in the relevant source files, a statement of the
6975 additional terms that apply to those files, or a notice indicating
6976 where to find the applicable terms.
6978 Additional terms, permissive or non-permissive, may be stated in the
6979 form of a separately written license, or stated as exceptions; the
6980 above requirements apply either way.
6982 @item Termination.
6984 You may not propagate or modify a covered work except as expressly
6985 provided under this License.  Any attempt otherwise to propagate or
6986 modify it is void, and will automatically terminate your rights under
6987 this License (including any patent licenses granted under the third
6988 paragraph of section 11).
6990 However, if you cease all violation of this License, then your license
6991 from a particular copyright holder is reinstated (a) provisionally,
6992 unless and until the copyright holder explicitly and finally
6993 terminates your license, and (b) permanently, if the copyright holder
6994 fails to notify you of the violation by some reasonable means prior to
6995 60 days after the cessation.
6997 Moreover, your license from a particular copyright holder is
6998 reinstated permanently if the copyright holder notifies you of the
6999 violation by some reasonable means, this is the first time you have
7000 received notice of violation of this License (for any work) from that
7001 copyright holder, and you cure the violation prior to 30 days after
7002 your receipt of the notice.
7004 Termination of your rights under this section does not terminate the
7005 licenses of parties who have received copies or rights from you under
7006 this License.  If your rights have been terminated and not permanently
7007 reinstated, you do not qualify to receive new licenses for the same
7008 material under section 10.
7010 @item Acceptance Not Required for Having Copies.
7012 You are not required to accept this License in order to receive or run
7013 a copy of the Program.  Ancillary propagation of a covered work
7014 occurring solely as a consequence of using peer-to-peer transmission
7015 to receive a copy likewise does not require acceptance.  However,
7016 nothing other than this License grants you permission to propagate or
7017 modify any covered work.  These actions infringe copyright if you do
7018 not accept this License.  Therefore, by modifying or propagating a
7019 covered work, you indicate your acceptance of this License to do so.
7021 @item Automatic Licensing of Downstream Recipients.
7023 Each time you convey a covered work, the recipient automatically
7024 receives a license from the original licensors, to run, modify and
7025 propagate that work, subject to this License.  You are not responsible
7026 for enforcing compliance by third parties with this License.
7028 An ``entity transaction'' is a transaction transferring control of an
7029 organization, or substantially all assets of one, or subdividing an
7030 organization, or merging organizations.  If propagation of a covered
7031 work results from an entity transaction, each party to that
7032 transaction who receives a copy of the work also receives whatever
7033 licenses to the work the party's predecessor in interest had or could
7034 give under the previous paragraph, plus a right to possession of the
7035 Corresponding Source of the work from the predecessor in interest, if
7036 the predecessor has it or can get it with reasonable efforts.
7038 You may not impose any further restrictions on the exercise of the
7039 rights granted or affirmed under this License.  For example, you may
7040 not impose a license fee, royalty, or other charge for exercise of
7041 rights granted under this License, and you may not initiate litigation
7042 (including a cross-claim or counterclaim in a lawsuit) alleging that
7043 any patent claim is infringed by making, using, selling, offering for
7044 sale, or importing the Program or any portion of it.
7046 @item Patents.
7048 A ``contributor'' is a copyright holder who authorizes use under this
7049 License of the Program or a work on which the Program is based.  The
7050 work thus licensed is called the contributor's ``contributor version''.
7052 A contributor's ``essential patent claims'' are all patent claims owned
7053 or controlled by the contributor, whether already acquired or
7054 hereafter acquired, that would be infringed by some manner, permitted
7055 by this License, of making, using, or selling its contributor version,
7056 but do not include claims that would be infringed only as a
7057 consequence of further modification of the contributor version.  For
7058 purposes of this definition, ``control'' includes the right to grant
7059 patent sublicenses in a manner consistent with the requirements of
7060 this License.
7062 Each contributor grants you a non-exclusive, worldwide, royalty-free
7063 patent license under the contributor's essential patent claims, to
7064 make, use, sell, offer for sale, import and otherwise run, modify and
7065 propagate the contents of its contributor version.
7067 In the following three paragraphs, a ``patent license'' is any express
7068 agreement or commitment, however denominated, not to enforce a patent
7069 (such as an express permission to practice a patent or covenant not to
7070 sue for patent infringement).  To ``grant'' such a patent license to a
7071 party means to make such an agreement or commitment not to enforce a
7072 patent against the party.
7074 If you convey a covered work, knowingly relying on a patent license,
7075 and the Corresponding Source of the work is not available for anyone
7076 to copy, free of charge and under the terms of this License, through a
7077 publicly available network server or other readily accessible means,
7078 then you must either (1) cause the Corresponding Source to be so
7079 available, or (2) arrange to deprive yourself of the benefit of the
7080 patent license for this particular work, or (3) arrange, in a manner
7081 consistent with the requirements of this License, to extend the patent
7082 license to downstream recipients.  ``Knowingly relying'' means you have
7083 actual knowledge that, but for the patent license, your conveying the
7084 covered work in a country, or your recipient's use of the covered work
7085 in a country, would infringe one or more identifiable patents in that
7086 country that you have reason to believe are valid.
7088 If, pursuant to or in connection with a single transaction or
7089 arrangement, you convey, or propagate by procuring conveyance of, a
7090 covered work, and grant a patent license to some of the parties
7091 receiving the covered work authorizing them to use, propagate, modify
7092 or convey a specific copy of the covered work, then the patent license
7093 you grant is automatically extended to all recipients of the covered
7094 work and works based on it.
7096 A patent license is ``discriminatory'' if it does not include within the
7097 scope of its coverage, prohibits the exercise of, or is conditioned on
7098 the non-exercise of one or more of the rights that are specifically
7099 granted under this License.  You may not convey a covered work if you
7100 are a party to an arrangement with a third party that is in the
7101 business of distributing software, under which you make payment to the
7102 third party based on the extent of your activity of conveying the
7103 work, and under which the third party grants, to any of the parties
7104 who would receive the covered work from you, a discriminatory patent
7105 license (a) in connection with copies of the covered work conveyed by
7106 you (or copies made from those copies), or (b) primarily for and in
7107 connection with specific products or compilations that contain the
7108 covered work, unless you entered into that arrangement, or that patent
7109 license was granted, prior to 28 March 2007.
7111 Nothing in this License shall be construed as excluding or limiting
7112 any implied license or other defenses to infringement that may
7113 otherwise be available to you under applicable patent law.
7115 @item No Surrender of Others' Freedom.
7117 If conditions are imposed on you (whether by court order, agreement or
7118 otherwise) that contradict the conditions of this License, they do not
7119 excuse you from the conditions of this License.  If you cannot convey
7120 a covered work so as to satisfy simultaneously your obligations under
7121 this License and any other pertinent obligations, then as a
7122 consequence you may not convey it at all.  For example, if you agree
7123 to terms that obligate you to collect a royalty for further conveying
7124 from those to whom you convey the Program, the only way you could
7125 satisfy both those terms and this License would be to refrain entirely
7126 from conveying the Program.
7128 @item Use with the GNU Affero General Public License.
7130 Notwithstanding any other provision of this License, you have
7131 permission to link or combine any covered work with a work licensed
7132 under version 3 of the GNU Affero General Public License into a single
7133 combined work, and to convey the resulting work.  The terms of this
7134 License will continue to apply to the part which is the covered work,
7135 but the special requirements of the GNU Affero General Public License,
7136 section 13, concerning interaction through a network will apply to the
7137 combination as such.
7139 @item Revised Versions of this License.
7141 The Free Software Foundation may publish revised and/or new versions
7142 of the GNU General Public License from time to time.  Such new
7143 versions will be similar in spirit to the present version, but may
7144 differ in detail to address new problems or concerns.
7146 Each version is given a distinguishing version number.  If the Program
7147 specifies that a certain numbered version of the GNU General Public
7148 License ``or any later version'' applies to it, you have the option of
7149 following the terms and conditions either of that numbered version or
7150 of any later version published by the Free Software Foundation.  If
7151 the Program does not specify a version number of the GNU General
7152 Public License, you may choose any version ever published by the Free
7153 Software Foundation.
7155 If the Program specifies that a proxy can decide which future versions
7156 of the GNU General Public License can be used, that proxy's public
7157 statement of acceptance of a version permanently authorizes you to
7158 choose that version for the Program.
7160 Later license versions may give you additional or different
7161 permissions.  However, no additional obligations are imposed on any
7162 author or copyright holder as a result of your choosing to follow a
7163 later version.
7165 @item Disclaimer of Warranty.
7167 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
7168 APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
7169 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM ``AS IS'' WITHOUT
7170 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
7171 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7172 A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND
7173 PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
7174 DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
7175 CORRECTION.
7177 @item Limitation of Liability.
7179 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
7180 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
7181 CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
7182 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
7183 ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
7184 NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
7185 LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
7186 TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
7187 PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7189 @item Interpretation of Sections 15 and 16.
7191 If the disclaimer of warranty and limitation of liability provided
7192 above cannot be given local legal effect according to their terms,
7193 reviewing courts shall apply local law that most closely approximates
7194 an absolute waiver of all civil liability in connection with the
7195 Program, unless a warranty or assumption of liability accompanies a
7196 copy of the Program in return for a fee.
7198 @end enumerate
7200 @heading END OF TERMS AND CONDITIONS
7202 @heading How to Apply These Terms to Your New Programs
7204 If you develop a new program, and you want it to be of the greatest
7205 possible use to the public, the best way to achieve this is to make it
7206 free software which everyone can redistribute and change under these
7207 terms.
7209 To do so, attach the following notices to the program.  It is safest
7210 to attach them to the start of each source file to most effectively
7211 state the exclusion of warranty; and each file should have at least
7212 the ``copyright'' line and a pointer to where the full notice is found.
7214 @smallexample
7215 @var{one line to give the program's name and a brief idea of what it does.}  
7216 Copyright (C) @var{year} @var{name of author}
7218 This program is free software: you can redistribute it and/or modify
7219 it under the terms of the GNU General Public License as published by
7220 the Free Software Foundation, either version 3 of the License, or (at
7221 your option) any later version.
7223 This program is distributed in the hope that it will be useful, but
7224 WITHOUT ANY WARRANTY; without even the implied warranty of
7225 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7226 General Public License for more details.
7228 You should have received a copy of the GNU General Public License
7229 along with this program.  If not, see @url{http://www.gnu.org/licenses/}.
7230 @end smallexample
7232 Also add information on how to contact you by electronic and paper mail.
7234 If the program does terminal interaction, make it output a short
7235 notice like this when it starts in an interactive mode:
7237 @smallexample
7238 @var{program} Copyright (C) @var{year} @var{name of author} 
7239 This program comes with ABSOLUTELY NO WARRANTY; for details type @samp{show w}.
7240 This is free software, and you are welcome to redistribute it
7241 under certain conditions; type @samp{show c} for details.
7242 @end smallexample
7244 The hypothetical commands @samp{show w} and @samp{show c} should show
7245 the appropriate parts of the General Public License.  Of course, your
7246 program's commands might be different; for a GUI interface, you would
7247 use an ``about box''.
7249 You should also get your employer (if you work as a programmer) or school,
7250 if any, to sign a ``copyright disclaimer'' for the program, if necessary.
7251 For more information on this, and how to apply and follow the GNU GPL, see
7252 @url{http://www.gnu.org/licenses/}.
7254 The GNU General Public License does not permit incorporating your
7255 program into proprietary programs.  If your program is a subroutine
7256 library, you may consider it more useful to permit linking proprietary
7257 applications with the library.  If this is what you want to do, use
7258 the GNU Lesser General Public License instead of this License.  But
7259 first, please read @url{http://www.gnu.org/philosophy/why-not-lgpl.html}.
7261 @node Concept Index,  , GNU General Public License, Top
7262 @comment  node-name,  next,  previous,  up
7263 @unnumbered Index
7265 @printindex cp
7267 @bye