75bb20c9b5fcd9bf0162a36c4ab08375f1c726c4
[planner-el.git] / planner-el.texi
blob75bb20c9b5fcd9bf0162a36c4ab08375f1c726c4
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 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 Debian
489 proper as the @code{planner-el}, @code{muse-el}, and @code{remember-el}
490 packages, 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 apt-get install remember-el
506 @end example
508 If you get some warning about the key not being trusted, you can either
509 ignore it or do the following.
511 @example
512 gpg --keyserver pgpkeys.mit.edu --recv-key f3a8d319
513 gpg -a --export f3a8d319 | sudo apt-key add -
514 @end example
516 @subheading Updating Your Version
517 @cindex Debian package, updating
519 If you installed Planner from Debian, do @kbd{apt-get update; apt-get
520 upgrade} to upgrade all packages that can be upgraded, or @kbd{apt-get
521 update; apt-get install planner-el} to upgrade just planner-el.
523 @node Creating Your Planner, Components, Getting the Files, Installation
524 @section Creating Your Planner
526 Now that you have installed the files for Planner and Muse, you need
527 to set some options to create your first planner.
529 Muse thinks in terms of projects. Each project consists of a group of
530 documents and certain information associated with these
531 documents. Planner is organized as a project within Muse. So, you need
532 to tell Muse a bit about it.
534 Add something like the following code to your @file{.emacs} file.
536 First, give your new Planner project a name. In this case, we use the
537 name, ``WikiPlanner''.
539 @example
540 (setq planner-project "WikiPlanner")
541 @end example
543 Next, add an entry for your project to Muse's master list of
544 projects. Don't forget to use your own name here in place of
545 ``WikiPlanner'' if you have chosen something different.
547 @example
548 (setq muse-project-alist
549       '(("WikiPlanner"
550          ("~/Plans"           ;; where your Planner pages are located
551           :default "TaskPool" ;; use value of `planner-default-page'
552           :major-mode planner-mode
553           :visit-link planner-visit-link)
555          ;; This next part is for specifying where Planner pages
556          ;; should be published and what Muse publishing style to
557          ;; use.  In this example, we will use the XHTML publishing
558          ;; style.
560          (:base "planner-xhtml"
561                 ;; where files are published to
562                 ;; (the value of `planner-publishing-directory', if
563                 ;;  you have a configuration for an older version
564                 ;;  of Planner)
565                 :path "~/public_html/Plans"))))
566 @end example
568 This code should work fine as-is for you as long as the directories
569 you see exist, and as long as you have no other Muse projects besides
570 your planner.
572 The first directory (@file{~/Plans}) is the directory where the
573 source files for your planner will reside. This is the directory where
574 you will actually visit files and edit them.  These files must have a
575 ``.muse'' extension.
577 The second directory (@file{~/public_html/Plans}) is the directory
578 where your planner files will be published by Muse as XHTML
579 (@pxref{Publishing}).
581 After you have added this code, make sure to either evaluate it or
582 restart Emacs.
584 @node Components, Advanced Installation, Creating Your Planner, Installation
585 @comment node-name,  next,  previous,  up
586 @section Components
588 Now that you have the archive, let's look at what's in it.
590 There should be three directories, named @file{planner}, @file{muse} and
591 @file{remember}.
593 In the @file{planner/} directory, you'll see many files with names like
594 @file{planner-gnus.el}. These are extra modules and extensions for
595 Planner, which you can use to tailor Planner to fit your desired
596 planning and information management habits.
598 In the @file{muse/lisp} directory, you'll see many files with names like
599 @file{muse-blosxom.el}. As in @file{planner/}, these are optional
600 modules and extensions.
602 A minimal working installation includes just @file{planner/planner.el}.
604 You need @file{planner.el} because it provides the core functions for
605 handling tasks, notes, and page navigation. You need @file{Emacs Muse}
606 because it provides the functions used to display your pages (both in an
607 emacs buffer and as HTML), and for connecting them to each other. More
608 specifically, it enables you to have hyperlinks and formatting in your
609 emacs buffers even though the actual files you are working with are
610 saved in plain text. These abilities are used in Planner to format your
611 planner pages the way you like, to create links from your tasks and
612 notes to the materials and projects they refer to, and to optionally
613 ``publish'' your pages in different formats, including HTML.
615 In the @file{remember/} directory are files related to
616 RememberMode. RememberMode does not depend on Planner or Muse, but works
617 best with Planner installed. It is not required in order to use Planner,
618 but it is used by many Planner users to record notes and information to
619 their planner pages.
621 If you are curious, you can open each file in these directories and read
622 the comments at the top, to get an idea of what each extension is used
623 for. They are also all detailed later in this manual.
625 @node Advanced Installation,  , Components, Installation
626 @comment  node-name,  next,  previous,  up
627 @section Advanced Installation
629 Once you decide you want to keep Planner around for a while, there
630 are two additional steps you can take to make using it easier and more
631 efficient. These steps are optional.
633 @itemize
634 @cindex installing the info file
635 @cindex @file{planner-el.texi}, installing
636 @cindex @file{planner-el.info}, installing
637 @item You can make this document, the Planner info file, appear in
638 the index of info files you see when you type @command{M-x info} or
639 @kbd{C-h i} in Emacs. The instructions for doing this vary depending
640 on whether you have permission to edit certain files on your
641 system. Follow the instructions in @ref{Installing an Info File, ,
642 ,texinfo, Texinfo}, using something like:
644 @example
645 * Planner: (path/to/planner/Planner). Organizer/day planner
646 for Emacs.
647 @end example
649 for the new entry in the info @file{dir} file.
651 @cindex byte compiling
652 @item You can byte-compile @file{planner.el}, @file{Muse},
653 @file{remember.el}, or any of the optional modules you frequently use,
654 in order to improve the speed of their execution.  Basically, all you
655 need to do is (1) change the directory for each project listed in
656 @file{scripts/planner-build.el}, (2) copy @file{Makefile.defs.default}
657 to @file{Makefile.defs} and edit it as needed, and (3) run
658 @command{make} from the command line. To read more detail about byte
659 compilation, see @ref{Byte Compilation, , ,elisp, Emacs Lisp Reference
660 Manual}.
662 @end itemize
664 @node Overview, Getting Started, Installation, Top
665 @comment node-name,  next,  previous,  up
666 @chapter Overview
668 Planner is a plain-text hyperlinked personal information manager
669 for Emacs that helps you keep track of tasks, notes, and other
670 information. People use Planner to support different ways of planning
671 one's day, from Franklin-Covey and David Allen's Getting Things Done
672 to home-brew hacks. Planner is even used to manage information not
673 normally handled by a personal information manager, like bugtracking,
674 time tracking, and team data. If you start by using Planner as a basic
675 TODO and notes manager, you might find other ways it can help you
676 improve your process.
678 You can use Planner to keep track of your tasks, schedule, notes,
679 and other information you want to store in hyperlinkable text files.
680 You can get the most benefit out of a personal information manager if
681 you use it everyday. Most people add @code{(plan)} to the end of their
682 @file{~/.emacs} so that Planner shows today's schedule and
683 unfinished tasks whenever Emacs starts. If you leave your Emacs
684 running for more than 24 hours, try to get into the habit of running
685 @code{plan} at least once a day.
687 Because your time is important, Planner tries to minimize
688 distractions, making it easier for you to jot down tasks and notes
689 without being distracted from your work. People often make tasks based
690 on the current buffer, so Planner tries to create hyperlinks to
691 whatever you're looking at so that you can jump back to it easily. The
692 @ref{Getting Started} tutorial will show you how to set that up for
693 both tasks and notes.
695 The customizability of Planner means you can make your personal
696 information manager truly personal. Planner strives to be as flexible
697 as possible, and we would love to adapt Planner to fit your needs.
698 Browse through our mailing list (@pxref{Getting Help}) to
699 find out how other people are using Planner, and post your feature
700 requests and bug reports there!
702 Planner is just a tool. It does not dictate a particular way of
703 planning, although it supports some ways better than it supports
704 others. If you want to take some time thinking about planning, read
705 the following reflections for inspiration and ideas. On the other
706 hand, if you want to hit the ground running, see @ref{Getting
707 Started}. If you already have a specific way of planning in mind,
708 check out @ref{Sample Configuration Files}.
710 @menu
711 * Planning based on the Franklin-Covey Approach::  
712 * Why Use Planner::             
713 @end menu
715 @node Planning based on the Franklin-Covey Approach, Why Use Planner, Overview, Overview
716 @comment  node-name,  next,  previous,  up
717 @section Planning Based on the Franklin-Covey Approach
718 @cindex philosophy of planning
720 (This is an edited and updated version of an essay originally by John
721 Wiegley. Read it if you want to get some insights into one way of
722 planning. You can skip this if you want to go straight to planning your
723 day.)
725 What is planning?  It can be a nebulous thing to define.  In its
726 essence, however, it is very simple: it's how we achieve our dreams.
728 Our days are filled with time, and hence with actions, whether they
729 be of a mental or physical sort.  But there are two kinds of
730 action: reactive and creative.  Reactive action is a response to
731 the environment, a reaction to stimulus.  Had we enough instincts
732 to ensure survival, we could live according to this kind of action
733 alone.  It is a mode of behavior we share with every living
734 species.
736 The opposite to reactivity is creativity, when we decide upon a
737 course of action that is a wholly a product of personal choice.  We
738 then make decisions as to the steps needed to make this wish a
739 reality.  This is planning.  Planning is essentially a creative
740 endeavor at every step.
742 First, create the idea, what you want to achieve.  Very short-term
743 ideas do not need much more than thinking about how to do it.  But
744 long-term ideas require planning, since the mind cannot contain all
745 of the details.
747 Second, decide how the idea maps into the circumstances you find
748 yourself in.  Some environments will assist your plan, others
749 hinder it.  But step by step, identify every barrier to the
750 realization of your idea, and devise a countermeasure to overcome
751 it.  Once you've mapped things out from beginning to end,
752 accounting for unknowables as best you can, you now have your plan.
754 Third is to break the stages of the plan into parts that are not
755 overwhelming in their complexity.  It is at during this phase that
756 a plan is turned into task items, each to be accomplished within
757 the span of one day's time.  If a task requires several days, break
758 it up further.  The smaller it is, the less your mind will recoil
759 from attempting it.
761 Fourth is to monitor your progress, identifying problems and
762 correcting for them as you go.  Some plans start out unachievable,
763 and remain that way indefinitely, due to a simple lack of
764 observation.  If nothing is working for you, change it.  Otherwise,
765 your plan is merely a well-crafted wish.
767 Fifth is just to do the work, and be patient.  All good plans take a
768 great deal of time, and *cannot* happen immediately.  The groundwork
769 must be laid for each step, or else it will rest on an insecure
770 foundation.  If you follow your plan doggedly, applying some time to
771 it each day or week, it @emph{will} happen.  Remember the story of the
772 tortoise and the hare.  I've even written a short essay on the
773 necessity of gradual accomplishment, which can be found at
774 @url{http://www.johnwiegley.com/2004/03/advancing-the-process.html}.
776 How can this software help?  Computers are ideal for manipulating
777 information, since they allow you to change things without erasing
778 or rewriting.  And since all plans change quite a bit during their
779 implementation, a planning program can be very helpful.
781 Start by installing Planner and Muse (@pxref{Installation}).
783 Now, conceive your idea.  I can't believe there's nothing you want
784 from life.  More peace, time to enjoy the world, an end to war?
785 Everyone wants something.  Search deeply, and you will find
786 countless unhoped wishes lurking therein.  Choose one for now, and
787 think on it for a while.
789 Then open a file (using @kbd{C-x C-f}) within the directory you named in
790 your @code{muse-project-alist}. Make sure the file has a @file{.muse}
791 extension so that Emacs will automatically recognize it as a planner
792 file. Name the file after your plan, such as @file{BetterHealth.muse}.
794 Choose an idea you really want to accomplish.  Struggle to
795 differentiate between the things you want because others want them,
796 and the things you want for yourself.  It takes quite an effort, and
797 may require a long time before you notice the difference.  Many people
798 want to be more healthy to be more attractive, which is an externally
799 driven goal.  Unless @emph{you} really want to accomplish what you
800 envision, the odds are you will fail.  Only our own wishes and dreams
801 possess enough personal energy to see themselves to fruition.  What
802 happens to many of us is simply that we never become conscious of
803 these dreams: what we love, what we desire most.  When I talk to
804 friends, so much of what I hear is things they want because they feel
805 they should want them.  There's just not enough energy there to pursue
806 a good plan, because nearly all of it is negative energy.
808 Do you know what you really want?  Don't worry, many people don't.
809 It's not a question anyone really wants us to pursue, because often
810 we don't want what others do; it doesn't contribute to the social
811 welfare, and all that nonsense.  Somehow we always forget that
812 what's good for the social welfare now, was someone else's crazy
813 dream a hundred years ago.  The human aversion to fundamental
814 change is always one's greatest enemy, so don't waste any time
815 getting bitter about it.
817 For the sake of argument I assume you really do want to be
818 healthier, because you've fallen in love with the ideal of purity,
819 or you understand the connection between your physical self and the
820 world around you, and how this can open up your spirit to desiring
821 more.  I assume.  :)
823 So you're in a Wiki file called @file{BetterHealth}.  Start typing.
824 Type anything related to your idea: what you think about it, your
825 ideas on it, @emph{and especially what the end will look like}.  If
826 you can't visualize the end, you can't plan, since planning is about
827 drawing a line between now and then.
829 When you've typed enough to gain a vision of your goal, start
830 drafting what the possible intermediate steps might be.  Then stop,
831 get up, walk around, enjoy life, and come back to it.  Taking a
832 long time at the beginning is not a bad idea at all, as long as
833 it's not forever.
835 As you chew on your idea, it will begin to become more and more
836 concrete.  You'll have ideas about the smallest pieces, and ideas
837 about the biggest pieces.  Keep going until it starts to take shape
838 before you, and you can see yourself in your mind's eye moving from
839 the present into the future.  Write down this progression, and the
840 sorts of things you might encounter along the way.
842 As you continue, you'll naturally discover discrete phases, or
843 ``milestones'' as managers love to call them.  These are very
844 important, because they let you know you're making progress.  I
845 recommend having a big party with friends every time you achieve a
846 milestone.  A typical plan might have between three and ten.
848 Between the milestones are the bigger pieces of your plan. You might
849 find it convenient to name these pieces using MixedCase words. Try
850 adding these lines to your @file{.emacs} or @file{_emacs} file.
852 @example
853 (require 'muse-wiki)
854 (setq muse-wiki-allow-nonexistent-wikiword t)
855 @end example
857 You'll notice that Emacs colors and underlines them for you. Like,
858 FindGoodGym. Hit return on this highlighted word, and you'll find
859 yourself in another, blank file. In this file, start drafting your
860 sub-plan, just as you did with the larger plan. You should find it
861 easier now, since the scope is smaller.
863 As you break down further, you'll notice simple little things that
864 need to get done.  These are your tasks.  Every plan is a
865 succession of tasks.  The difference from reactivity is that each
866 task is part of the larger plan. This is what it means to be
867 systematic: that everything you do helps further your plan.  If you
868 have tasks in your day that contribute to no plan, they are
869 reactive.  Of course, life is full of these, but don't let them
870 take up more than 20% of your day.  If you allow yourself to be
871 dominated by reactive tasks, you'll regret it at the end of your
872 life.  I don't know this personally, but I do know that striving
873 for one's dreams -- and seeing them come to fruition -- is the
874 greatest joy a man can possess.  It is the essence of freedom, of
875 living, of creation.  Reactivity is the opposite of this, and
876 serves only to drain our energy and slacken our spirits.
878 Now that you've thought of a simple task, type @kbd{C-c C-t}. This
879 will ask for a brief description of the task, and when you plan to do
880 it. If you hit @key{RETURN} at the question @samp{When}, it assumes
881 you mean today. It will also pop up a three-month calendar at this
882 question, so you can see where your free days are. Make sure you set
883 the variable @code{mark-diary-entries-in-calendar} to @samp{t} in your
884 @file{.emacs} (or @file{_emacs}) file. This way, you can see which
885 days your appointments fall on. (Read about the Emacs Calendar and
886 Diary in @ref{Calendar/Diary, , , Emacs, GNU Emacs Manual}.)
888 @example
889 (setq mark-diary-entries-in-calendar t)
890 @end example
892 Once your task is in there, go back to your plan and keep
893 generating more tasks.  Generate them all!  Fully describe---as
894 tasks---everything necessary to bring your sub-plan to completion.
895 Don't create tasks for the other sub-plans.  You may have good idea
896 of what they'll look like, but don't bother rendering them into
897 tasks just yet.  Things will change too much between now and then,
898 for that to be a good use of your time.
900 Is your sub-plan now rendered into all of the tasks necessary to
901 reach your first milestone?  Great!  That is the purpose of
902 planner.el.  The rest is really up to you.  If you find that you
903 keep putting things off, and never do them, that's the surest sign
904 you're planning for someone else's dream, and not your own.
906 Here are some of the things planner.el can do, to help you manage
907 and track your tasks:
909 At the beginning of every day, type @kbd{M-x plan}.  This will jump
910 you to the top of the most recent task list before today.  If you
911 skipped a bunch of days, you'll have to open up those files on your
912 own.
914 Probably some of the tasks that day won't be finished -- that's OK.
915 Learning to properly estimate time is a magical, mystical art that few
916 have mastered.  Put your cursor on those undone tasks, and type
917 @kbd{C-c C-c}.  This will move them into today's task page.  You can
918 jump to today's task page at any time by typing @kbd{C-c C-n} (from a
919 Wiki or planning page).  I heartily recommend binding @kbd{C-c n}, to
920 jump you to this page from anywhere:
922 @example
923 (define-key mode-specific-map [?n] 'planner-goto-today)
924 @end example
926 As you look at your task sheet each day, the first thing to do is to
927 ``clock in'' to one of them. This isn't necessary, and is only helpful
928 if you're around your computer a lot. But by typing @kbd{C-c C-i}
929 (assuming you have @file{timeclock.el} on your load-path), it will log
930 the time you spend working on your sub-plan (@pxref{Time Intervals, , ,
931 Emacs, GNU Emacs Manual}). This is helpful for viewing your progress.
932 Type @kbd{C-c C-o} to clock out.
934 @kbd{C-M-p} and @kbd{C-M-n} will move a task up and down in priority.
935 Priority is represented by a letter A through C.  'A' tasks mean they
936 must be done that day, or else your plan is compromised and you will
937 have to replan.  'B' means they should be done that day, to further the
938 plan, otherwise things will be delayed.  'C' means you can put off the
939 task if you need to, although ultimately it will have to be done.
941 For reactive tasks, the letters mean something different: 'A' means
942 you must do it today, or somebody will roast your chestnuts over an
943 open fire.  'B' means you should do it today, or else someone will
944 be practicing patience at the day's end.  'C' means no one will
945 notice if you don't do it.
947 Again, reactive tasks are ENEMIES OF PLANNING.  Really, until you
948 see them that way, circumstances will push you around and steal
949 your life away.  We have only so many years to use, and everyone is
950 greedy to take them.  It's insidious, almost invisible.  A healthy
951 dislike of reactivity will do wonders for organizing your affairs
952 according to their true priority.
954 The last word that needs to be said concerns ``roles''.  Every person
955 stands in several positions in his life: husband, employee, manager,
956 etc.  These roles will tend to generate tasks not associated with any
957 immediate plan, but necessary to maintain the health and functioning
958 of the role.  My suggestion is to keep this the smallest possible
959 number, and fulfill those that remain well.  How you decide to
960 apportion your time between pursuing grand designs, and fostering deep
961 relationships, is a personal matter.  If you choose well, each will
962 feed the other.
964 I mention this to point that reactivity is something not
965 exclusively associated with tasks that have no master plan, because
966 being a father, for example, is something that rarely proceeds
967 according to orderly plans.  But the role of father itself is its
968 own plan, whose goal is ``to be the best one can'', and whose
969 component tasks are spending time on whatever comes up.  It is, in
970 a sense, an implicit plan.  But reactive tasks follow no plan at
971 all; they are parasites of time that suck the spirit away, whereas
972 properly chose roles actually help fulfill one's own inner needs.
973 At least, this is what I believe.
975 @defun plan force-days
976 Start your planning for the day, beginning with the last day's tasks.
978 If @code{planner-carry-tasks-forward} is non-nil, find the most recent
979 daily page with unfinished tasks and reschedule those tasks to
980 the current day.  If @var{force} is non-nil, examine all past daily
981 pages for unfinished tasks.
983 If @code{planner-carry-tasks-forward} is nil, visit the most recent
984 daily page.  If a daily page for today exists, visit that instead.
986 If @var{force-days} is a positive integer, scan that number of days.
987 If @var{force-days} is @samp{t}, scan all days.
989 @end defun
991 @node Why Use Planner,  , Planning based on the Franklin-Covey Approach, Overview
992 @comment  node-name,  next,  previous,  up
993 @section Why Use Planner?
994 @cindex Planner, why use
996 You can skip this essay if you just want to get started, or read it
997 for some insights into why the previous maintainer is crazy about it.
999 Why I Use Planner, by Sacha Chua
1001 I thought about why I liked Planner. Planner as a TODO manager
1002 isn't particularly special. Although I can assign tasks to categories
1003 and see a breakdown of what projects are taking up my time, Evolution
1004 and Microsoft Outlook provide more powerful task support. In other
1005 task managers, you can e-mail tasks, assign multiple categories and
1006 fill in all sorts of metadata. You can even synchronize your tasks
1007 with devices like a phone or PDA. So why use Planner?
1009 I realized that integration into my way of life and automatic context
1010 clues are what really make planner tasks worth it for me. I don't have
1011 to switch to another application to create a task. I can just hit a
1012 keyboard shortcut. Planner uses a minibuffer to get the task
1013 description. My windows are not rearranged in any way, and I can look
1014 at the data that's relevant to a task. Not only that, tasks
1015 automatically pick up context clues, like whom I'm talking to on IRC
1016 or the file I'm editing at the moment. This cuts down on the explicit
1017 context I need to include and makes it easier for me to bring up the
1018 task again.
1020 As a scheduler, Planner is also not particularly distinguished.
1021 Sure, it can display my @file{~/diary}, but for that matter so can
1022 @kbd{M-x diary}. Evolution and Outlook can give me a more graphical
1023 view of my time, sync with my PDA, and coordinate my schedule with
1024 other people. Those applications support detailed schedule entries
1025 with powerful cyclic options. On the other hand, Planner gives me
1026 a personal, plain text view and (at least the way I use it) requires
1027 me to edit a separate file to add new appointments. (I've defined a
1028 few shortcut keys to deal with this.) However, it does have one
1029 advantage---my schedule is always loaded. I used to use Outlook on
1030 Windows, but having my schedule in a separate application meant that I
1031 actually looked at it very rarely, as I had turned off reminders
1032 because they got annoying.
1034 Planner's notes, however, are what really convinced me. I can hit
1035 a keyboard shortcut from anywhere and type my notes into a buffer
1036 which automatically keeps context information. After typing the note,
1037 I can then categorize it. I think that the critical thing here is that
1038 interruptions---fleeting thoughts---don't break my flow. I can just
1039 pop up a remember buffer, stow that thought away somewhere, and go
1040 back to it whenever I want. In contrast, creating a note in Outlook
1041 means switching out of my application, making a couple of keystrokes,
1042 typing the note in, and then switching back. The context switches make
1043 it hard to keep track of where I am and what I'm supposed to remember.
1044 Not only that, I need to enter context by hand. Even though I can
1045 color my notes and reorganize them in Outlook, I find the context
1046 switch too expensive. I used to keep notes in other knowledge
1047 management tools as well. Some applications allowed me to
1048 drag-and-drop links into the current note, and that was cool. But that
1049 required a manual action, and those applications didn't feel
1050 integrated into my way of working. (Note: You'll need remember.el for
1051 this.)
1053 I guess that's why I like Planner. Unlike other organizers which
1054 don't know anything about the applications I use, Planner tries
1055 its best to integrate into the way I work, and it's easy to extend.
1056 Fortunately I do almost all my work in Emacs, so I can think of my
1057 organizer as integrated into my e-mail client, Internet Relay Chat
1058 client, web browser, file editor and even games. It automatically
1059 picks up context clues from these applications and allows me to easily
1060 jump back to relevant files. It doesn't distract me. It allows me to
1061 key in data and then it gets out of my way.
1063 (That said, it's perfectly okay to use Planner even if you don't live
1064 in Emacs.)
1066 The processing that happens in the background is a bonus, and
1067 publishing my task list and notes online has greatly helped me. It
1068 gives other people a way to see what I'm working on and what I've
1069 planned for the future. Occasionally people write in with additional
1070 resources and helpful tips. (Again, this is purely optional. Many
1071 people don't publish their planner pages. Other people use really
1072 fine-grained access control.)
1074 I think the greatest feature of Planner, though, is its user
1075 community. Because Planner can be easily modified, we can experiment
1076 with a lot of new ideas quickly, and we can tailor Planner to fit our
1077 needs. I love checking my @samp{planner-el-discuss} mail and finding
1078 out how people have tweaked Planner or would like to tweak Planner,
1079 and I've learned a lot by exchanging reflections on organizing one's
1080 life.
1082 I really wasn't an organization freak before I started using Planner.
1083 I often forgot to do my homework or answer important mail. I still
1084 procrastinate now, but at least it's all being kept track of
1085 somewhere! I also really like how Planner lets me to gradually improve
1086 how I'm doing things, and I feel I've come a long way.
1088 Please try it out! We'd love to hear how Planner can become
1089 @emph{your} personal information manager.
1091 @node Getting Started, More about Planner, Overview, Top
1092 @comment  node-name,  next,  previous,  up
1093 @chapter Getting Started
1095 At the end of this tutorial, you will be able to use Planner and
1096 related modules to keep track of your tasks, schedules and notes, all
1097 within the convenience of Emacs.
1099 There are two kinds of pages in a Planner wiki. Day pages show tasks,
1100 schedule, and notes for the day, while plan pages organize related tasks
1101 and notes into a single page.
1103 If you have not yet added planner to your @file{~/.emacs}, add the
1104 following lines:
1106 @example
1107 (add-to-list 'load-path "/path/to/muse/lisp")
1108 (add-to-list 'load-path "/path/to/planner")
1109 (add-to-list 'load-path "/path/to/remember")
1110 (require 'planner)
1111 @end example
1113 This will bring up the most recent day page with unfinished tasks or
1114 create a new day page if necessary. By default, planner pages are
1115 stored in @samp{~/Plans}.
1117 @menu
1118 * Tasks::                       
1119 * Schedule::                    
1120 * Notes::                       
1121 * Hyperlinks::                  
1122 * Example Page::                
1123 * Review::                      
1124 @end menu
1126 @node Tasks, Schedule, Getting Started, Getting Started
1127 @section Tasks
1129 Let us start by creating a task labelled
1131 @example
1132 Join http://mail.gna.org/listinfo/planner-el-discuss/
1133 @end example
1135 From anywhere (even this info buffer!), call @kbd{M-x
1136 planner-create-task-from-buffer} to create a new task. Fill in the
1137 description and choose a date by:
1139 @itemize
1140 @item typing 1 - 31 to put the task on that day of the month,
1141 @item accepting the default (today) by pressing RET,
1142 @item selecting the date with mouse-1,
1143 @item
1144 typing +n (where in is an integer) to schedule the task in n days time,
1146 @item typing nil to make an undated task.
1147 @end itemize
1149 For now, accept the default (@samp{today}) by pressing @key{RET}.
1151 You will then be prompted for a plan page. Plan pages gather related
1152 tasks and notes, giving you an overview of what you've done so far.
1153 You can accept the default TaskPool, create your own plan page, or
1154 specify nil to make a task that is not associated with a plan page.
1155 For now, accept the default (@samp{TaskPool}) by pressing RET.
1157 You have created your first task. View today's page with
1158 @kbd{M-x planner-goto-today}. You will see a line of the form
1160 @example
1161 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1162 @end example
1164 If you created the task from this page, then there will be an additional
1165 annotation:
1167 @example
1168 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ : Tasks (TaskPool)
1169 @end example
1171 The URL, @samp{TaskPool} and @samp{Getting Started} are
1172 hyperlinks. You can use TAB and S-TAB to navigate between them and RET
1173 to follow the link.
1175 Create more tasks using @kbd{M-x planner-create-task-from-buffer}.
1176 This is bound to @kbd{C-c C-t} in @code{planner-mode} pages
1177 for your convenience. For example, create the following tasks:
1179 @itemize
1180 @item
1181 @samp{Describe my current way of working and how I would like to work},
1182 for three days from now (@samp{+3}),
1183 @item
1184 @samp{Learn how to schedule a task}, an undated task (@kbd{nil}) on the
1185 TaskPool page,
1186 @item
1187 @samp{Browse through the Planner info manual} for today (@kbd{.} or
1188 accept the defaults), and
1189 @item
1190 @samp{Add (plan) to the end of my [[~/.emacs]]} for today, but without a
1191 plan page (specify @kbd{nil} at the plan page prompt)
1192 @end itemize
1194 Tip: I bind planner-create-task-from-buffer to "F9 t" so that I can
1195 easily call it from anywhere. You can do that with this elisp fragment:
1196 @code{(global-set-key (kbd "<f9> t") 'planner-create-task-from-buffer)}
1198 Next, visit the TaskPool by:
1200 @itemize
1201 @item
1202 @key{TAB}-bing or using the cursor and typing @key{RET} to follow the
1203 link,
1204 @item @kbd{C-x C-f TaskPool RET} to use @code{find-file}, or
1205 @item @kbd{C-c C-f TaskPool RET} to use @code{muse-project-find-file}
1206 @end itemize
1208 You can see an overview of the tasks as scheduled on different days.
1209 Unlike many personal information managers that store all of your data
1210 in one file and then perform magic in order to present different
1211 views, Planner uses plain text files. The data is duplicated and kept
1212 updated by functions. This makes it simpler and easier to modify,
1213 because what you see is (almost) what you get. On the other hand,
1214 you'll need to get used to either editing both files, or using the
1215 built-in functions for editing and updating files. If you prefer not
1216 to work with linked tasks, you can configure Planner to use only plan
1217 pages or use only day pages.
1219 The TaskPool page should list the tasks you created earlier. Go to the
1220 one named Learn how to schedule a task . Type @kbd{C-c C-c}
1221 (@code{planner-copy-or-move-task}) to schedule the task. Type RET to
1222 accept the default (today). Go to the day page by following the link
1223 or calling @kbd{M-x planner-goto} (@kbd{C-c C-j C-d} or the menu bar);
1224 you will see the newly-created task there. You can also use @kbd{C-c
1225 C-c} (@kbd{planner-copy-or-move-task}) to reschedule a task to an
1226 earlier or later date.
1228 Well, that task is done. To mark the task as completed, type @kbd{C-c
1229 C-x} (@code{planner-task-done}). You can also edit the status manually
1230 (change _ to X) as long as you remember to call @kbd{M-x
1231 planner-update-task} to update the link page as well. Updating relies on
1232 the task description being the same, so do not edit this manually.
1234 Quick summary of commands:
1236 @itemize
1237 @item
1238 Go to today's page: @kbd{M-x plan} to carry unfinished tasks forward, or
1239 @kbd{M-x planner-goto-today} to just go to today's page.
1240 @item
1241 Create a task: @kbd{C-c C-t} (@code{planner-create-task-from-buffer}),
1242 or type a task manually (call M-x planner-update-task if the task is
1243 linked)
1244 @item
1245 Mark a task as done: @kbd{C-c C-x} (@code{planner-task-done}), or edit
1246 the task and call @kbd{M-x planner-update-task}
1247 @item Edit a task description: @kbd{M-x planner-edit-task-description}
1248 @item Reschedule a task: @kbd{C-c C-c} (@code{planner-copy-or-move-task})
1249 @item
1250 Reschedule many tasks: Mark a region and use @kbd{M-x
1251 planner-copy-or-move-region}
1252 @item
1253 Change the plan of a task: @kbd{M-x planner-replan-task}, or do
1254 @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and type in a
1255 plan page rather than a date
1256 @item Delete a task: @kbd{M-x planner-delete-task}
1257 @item
1258 Reorder tasks: @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1259 (@code{planner-lower-task}), or normal editing commands like kill and
1260 yank
1261 @item Change task priorities (@samp{#A} > @samp{#B} > @samp{#C}):
1262       @key{C-M-p} (@code{planner-raise-task-priority}) and
1263       @key{C-M-n} (@code{planner-lower-task-priority}),
1264       or edit the task and call @kbd{M-x planner-update-task}.
1265 @end itemize
1267 You can save your tasks with @kbd{C-x C-s} the same way you save any
1268 other file, or Emacs will prompt you to save it when you exit.
1270 @node Schedule, Notes, Tasks, Getting Started
1271 @comment  node-name,  next,  previous,  up
1272 @section Schedule
1274 This is free-form. You can put anything you want into this, or remove
1275 it from @code{planner-day-page-template} entirely. Some people use it
1276 to keep track of their plans for the day with tables like this:
1278 @example
1279 hh:mm | hh:mm | activity
1280 hh:mm | hh:mm | activity
1281 hh:mm | hh:mm | activity
1282 @end example
1284 Remember, Planner files are just plain text. You can add new sections
1285 or remove old ones, or use the suggested sections for entirely
1286 different activities.
1288 @node Notes, Hyperlinks, Schedule, Getting Started
1289 @comment  node-name,  next,  previous,  up
1290 @section Notes
1291 @cindex @file{remember.el}
1292 @cindex @file{remember-planner.el}
1293 @cindex notes
1295 By default, your Planner pages will have a Notes section. You can put
1296 anything you want in this section, or remove it from your
1297 @code{planner-day-page-template} entirely.
1299 You may be interested in @file{remember-planner.el}, part of the
1300 Remember package (see @inforef{Top, remember-el, remember-el}). You
1301 can download Remember at @uref{http://gna.org/projects/remember-el/}).
1303 @code{remember-planner.el} makes it easy to create notes from anywhere
1304 in Emacs, and it uses the same context-sensing code that Planner uses.
1305 Notes added by @code{remember-planner.el} look like this:
1307 @example
1308 .#1 Headline 00:00
1309 Body
1311 [[context hyperlink]]
1312 @end example
1314 and are outlined at the H2 level in published HTML.
1316 You can easily create context-aware notes if you include the following
1317 in your @file{~/.emacs}:
1319 @example
1320 (require 'remember-planner)
1321 (setq remember-handler-functions '(remember-planner-append))
1322 (setq remember-annotation-functions planner-annotation-functions)
1323 @end example
1325 Then @kbd{M-x remember} will open a dedicated buffer for you to write
1326 your note. If Planner recognizes your current buffer as one with
1327 context then it will include a hyperlink at the bottom of the note.
1328 The first line of the note is used as a title, so make it short and
1329 meaningful. The rest of the text will be used as the body. Try it now
1330 by creating a note, perhaps about things you'd like to remember from
1331 this tutorial.
1333 Typing @kbd{C-c C-c} after composing will prompt for a plan page to
1334 put the note on, with auto-completion. If you don't enter a page, the
1335 note will just be saved on today's page. If you do specify a plan
1336 page, the note will go on both today's page and on the specified page.
1337 Let's try specifying @samp{TaskPool} for the note.
1339 If you look at today's page, you'll find a timestamped note that links
1340 to @samp{TaskPool}. Likewise, @samp{TaskPool} contains a note that
1341 links to today's page. To change the plan page of a note, use
1342 @kbd{planner-replan-note}.
1344 If you decide to edit the note on one of these pages after it has been
1345 saved, be aware that your changes will not be automatically reflected
1346 on the linked page. To update the linked page after editing a note,
1347 use @kbd{M-x planner-update-note}.
1349 @node Hyperlinks, Example Page, Notes, Getting Started
1350 @section Hyperlinks
1351 @cindex hyperlinks
1353 Planner automatically creates context-sensitive hyperlinks for your
1354 tasks and notes when you use @code{planner-create-task-from-buffer}
1355 and @code{remember}.
1357 Blue links indicate URLs and Planner pages that already exist. Red links
1358 indicate Planner pages that have not yet been created.
1360 Middle-click or type @key{RET} on any link to view the link in the
1361 current window. Shift-middle-click or type @key{S-RET} to view the
1362 link in another window. @key{TAB} goes to the next link, while
1363 @key{S-TAB} goes to the previous one.
1365 You can pick up hyperlinks using the @code{planner-annotation-as-kill}
1366 function.
1368 @defun planner-annotation-as-kill
1369 Create a context-sensitive hyperlink for the current buffer and copy
1370 it to the kill ring. When called with a prefix argument, prompt for
1371 the link display name.
1372 @end defun
1374 You can then paste it into any Planner buffer by using @kbd{M-x yank}
1375 or the keyboard shortcut.
1377 Alternatively, you can create hyperlinks by typing them directly, using
1378 the syntax defined by Muse. Anything inside double square brackets will
1379 be treated as a link. For example, if you type @samp{[[GroceryList]]} in
1380 a Planner buffer, you will end up with a link to a page called
1381 @samp{GroceryList}. @inforef{Implicit Links, Bare URLs WikiNames and
1382 InterWiki links, muse}, for more information about Muse syntax.
1384 Hyperlinks are a powerful feature of Planner. You can use them to
1385 hyperlink to mail, news, Web pages, and even IRC connections. See the
1386 section on @ref{Managing Your Information} to find out how to enable
1387 support for various parts of Emacs. Want to add a new hyperlink
1388 scheme? Check out the source code for examples or ask on the mailing
1389 list for help.
1391 @node Example Page, Review, Hyperlinks, Getting Started
1392 @comment  node-name,  next,  previous,  up
1393 @section Example Page
1394 @cindex example page
1395 @cindex planning page, example
1397 An example planner file is given below. You'll notice that Planner
1398 does not have a well-defined user interface. Rather, it's free-form
1399 and open, allowing you to adapt it to your preferences.
1401 @example
1402 ----------------------------------------------------------------------
1403 * Tasks
1405 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1406 #B  _ Browse through the Planner info manual (TaskPool)
1407 #B  _ Add (plan) to the end of my ~/.emacs
1408 #B  X Learn how to schedule a task (TaskPool)
1410 * Schedule
1412 18:00 | 19:00 | Learn how to use Planner
1414 * Notes
1416 Notes are free-form. You can put anything you want into this.
1418 .#1 This is note number one
1420 Notes on note number one!
1422 .#2 This weird ".#2" syntax is used for allout.el enumerated lists
1424 It makes using allout-mode very handy.
1426 @end example
1428 @node Review,  , Example Page, Getting Started
1429 @comment  node-name,  next,  previous,  up
1430 @section Review
1432 @itemize
1434 @item @emph{Ideas for using planner more effectively:}
1436 @itemize
1437 @item
1438 Add @code{(plan)} to the end of your @file{~/.emacs} so that you are
1439 reminded about your tasks every day.
1441 @item
1442 Bind useful functions to shortcut keys and get used to creating tasks
1443 and notes from anywhere.
1445 @item
1446 Think about how you plan your day and look for ways to improve it. Ask
1447 the mailing list (@pxref{Getting Help}) for tips.
1449 @item
1450 Browse the rest of this manual, the source code, and other resources on
1451 the Net for tidbits you can use.
1453 @item Have fun!
1454 @end itemize
1456 @item @emph{Useful functions outside planner buffers:}
1458 @itemize
1459 @item @code{planner-create-task-from-buffer}
1460 @item @code{remember}
1461 @item @code{planner-goto-today}
1462 @item @code{planner-goto}
1463 @item @code{plan}
1464 @end itemize
1466 @item @emph{Useful functions inside planner buffers:}
1468 @itemize
1469 @item @kbd{C-c C-t} (@code{planner-create-task-from-buffer})
1470 @item @kbd{C-c C-x} (@code{planner-task-done})
1471 @item @kbd{M-x planner-edit-task-description}
1473 @item
1474 @kbd{C-c C-c} (@code{planner-copy-or-move-task}), @kbd{M-x
1475 planner-copy-or-move-region}
1477 @item @kbd{M-x planner-replan-task}
1478 @item @kbd{M-x planner-delete-task}
1480 @item
1481 @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1482 (@code{planner-lower-task})
1484 @item @key{C-M-p} (@code{planner-raise-task-priority}) and
1485       @key{C-M-n} (@code{planner-lower-task-priority}),
1486 @item @code{planner-replan-note}
1487 @item @code{planner-update-note}
1488 @end itemize
1490 @end itemize
1492 That's all you need to know in order to use Planner as a basic TODO and
1493 notes manager, but there's a whole lot more. Read through this manual
1494 and our mailing list archives (@pxref{Getting Help}) for lots of
1495 wonderful ideas about planning in Emacs!
1497 @node More about Planner, Managing Your Information, Getting Started, Top
1498 @comment  node-name,  next,  previous,  up
1499 @chapter More about Planner
1501 @menu
1502 * Navigation::                  
1503 * More about Tasks::            
1504 * More about Notes::            
1505 * Making Files Pretty::         
1506 * Annotations::                 
1507 * Interactive Lisp::            planner-lisp.el
1508 * Publishing::                  planner-publish.el
1509 * Experimental Functions::      planner-experimental.el
1510 @end menu
1512 @node Navigation, More about Tasks, More about Planner, More about Planner
1513 @comment  node-name,  next,  previous,  up
1514 @section Starting with Day Pages
1516 @command{planner-goto-today} opens today's page. Day pages are named
1517 @samp{YYYY.MM.DD} and contain your notes for the day. They can also be
1518 named @samp{YYYY-MM-DD} if you prefer -- just customize the value of
1519 @var{planner-date-separator}.
1521 You should see a file that looks like this:
1523 @example
1524 * Tasks
1527 * Schedule
1529 * Notes
1530 @end example
1532 You can type anything you want into this file.  You can add or delete
1533 sections.  
1535 Use the following commands to navigate through day pages:
1537 @defun plan
1538 Start planning the day.  If @code{planner-carry-tasks-forward} is
1539 non-nil, copy the most recent unfinished tasks to today's page, else
1540 open the most recent page.
1541 @end defun
1543 @defun planner-goto (@kbd{C-c C-j C-d})
1544 Prompt for a date using a calendar pop-up and display the
1545 corresponding day page.  You can specify dates partially.  The current
1546 year and month are used if omitted from the input.  For example, if
1547 today is 2004.05.05, then
1549 @itemize
1550 @item @kbd{+1} is one day from now, or @samp{2004.05.06}
1551 @item @kbd{-1} is one day before now, or @samp{2004.05.04}
1552 @item @kbd{12} is equivalent to @samp{2004.05.12}
1553 @item @kbd{8.12} is equivalent to @samp{2004.08.12}
1554 @item @kbd{2005.08.12} is a full date specification
1555 @end itemize
1557 In the calendar buffer, you can also left-click or press @key{RET} on
1558 a date to select it.
1559 @end defun
1561 @defun planner-goto-today (@kbd{C-c C-j C-j})
1562 Display today's page. Create the page if it does not yet exist.
1563 @end defun
1565 @defun planner-goto-tomorrow (@kbd{C-c C-j C-t})
1566 Goto the planner page days @var{after} the currently displayed date.
1567 If @var{days} is nil, go to the day immediately after the currently
1568 displayed date.  If the current buffer is not a daily planner page,
1569 calculate date based on today.
1570 @end defun
1572 @defun planner-goto-yesterday (@kbd{C-c C-j C-y})
1573 Goto the planner page @var{days} before the currently displayed date.
1574 If @var{days} is nil, go to the day immediately before the currently
1575 displayed date.  If the current buffer is not a daily planner page,
1576 calculate date based on today.
1577 @end defun
1579 @defun planner-goto-most-recent
1580 Go to the most recent day with planning info.
1581 @end defun
1583 @defun planner-goto-previous-daily-page
1584 Goto the last plan page before the current date.
1585 The current date is taken from the day page in the current
1586 buffer, or today if the current buffer is not a planner page.
1587 Do not create pages if they do not yet exist.
1588 @end defun
1590 @defun planner-goto-next-daily-page
1591 Goto the first plan page after the current date.
1592 The current date is taken from the day page in the current
1593 buffer, or today if the current buffer is not a planner page.
1594 Do not create pages if they do not yet exist.
1595 @end defun
1597 @defun planner-goto-plan-page page
1598 Opens @var{page} in the the @code{planner-project} Wiki.  Use
1599 @code{planner-goto} if you want fancy calendar completion.
1600 @end defun
1602 @defun planner-show date
1603 Show the plan page for @var{date} in another window, but don't select
1604 it.  If no page for @var{date} exists, return nil.
1605 @end defun
1608 @node More about Tasks, More about Notes, Navigation, More about Planner
1609 @comment  node-name,  next,  previous,  up
1610 @section More about Tasks
1611 @cindex tasks, more about
1613 This section is divided into three parts. In the first part, you can
1614 read about all the options, strategies and commands to help you
1615 efficiently add new tasks to your planner. In the second part, we'll go
1616 over all of the aspects of Planner that relate to organizing, editing,
1617 rescheduling and viewing the tasks you've already created. Finally,
1618 we'll cover some ways to step back and look at various reports and
1619 overviews that can be generated from your planner pages.
1621 You may also be interested in tracking time spent on tasks with
1622 @ref{Timeclock} and estimating project completion time with
1623 @ref{Schedule} (also see @pxref{schedule.el}).
1625 @menu
1626 * Creating New Tasks::          
1627 * Organizing Your Tasks::       
1628 * Task Reports and Overviews::  
1629 @end menu
1631 @node Creating New Tasks, Organizing Your Tasks, More about Tasks, More about Tasks
1632 @comment  node-name,  next,  previous,  up
1633 @subsection Creating New Tasks
1634 @cindex tasks, creating
1636 Planner makes it very easy to quickly add something to your list of
1637 tasks. Once you get used to the basics of
1638 @command{planner-create-task-from-buffer}, you might want to take a
1639 closer look at some things in Planner that can help you create new tasks
1640 in a way that fits with your system.
1642 @menu
1643 * Creating a Task::             
1644 * Task Priorities::             
1645 * Task IDs::                    planner-id.el
1646 * Cyclic Tasks::                planner-cyclic.el
1647 * Task Detail::                 
1648 * Deadlines::                   planner-deadline.el
1649 @end menu
1651 @node Creating a Task, Task Priorities, Creating New Tasks, Creating New Tasks
1652 @comment  node-name,  next,  previous,  up
1653 @subsubsection Creating a Task
1654 @cindex tasks, creating
1656 You can create a task from any buffer in Emacs by invoking
1657 @command{M-x planner-create-task-from-buffer}.
1659 This command does more than just add an item to your list of tasks. It
1660 also connects that item to some useful context information.
1662 If you create a task while viewing any buffer other than a Planner
1663 day page, Planner will associate the task with a hyperlink to that
1664 buffer. Try it now by creating a task from this Info buffer.
1666 @enumerate
1667 @item @kbd{M-x planner-create-task-from-buffer}
1668 @item
1669 When prompted for the task name, enter @kbd{Learn how to change a task's
1670 status} and press @key{RET}.
1672 @item
1673 When prompted for the date, press @key{RET} to schedule the task for
1674 today.
1676 @item
1677 When prompted for the project page, press @key{RET} to accept the
1678 default page of @samp{TaskPool}. This is a page for tasks not connected
1679 to a larger plan.
1681 @end enumerate
1683 Planner prompts you for two pieces of information when you ask it
1684 to create a task. First, it asks you when you would like to have the
1685 task show up in your planner. If you would like it to be scheduled for
1686 today, you can just hit @key{RET}. If you would like it to be
1687 scheduled for some day during the current month, you can just enter
1688 the date, without the month, like @samp{16}. If you would like it to
1689 be scheduled for some day in a future month of the current year, you
1690 can enter just the month and date, like @samp{06.16}. If you would
1691 like to schedule something for next year, then enter the full date,
1692 like @samp{06.16.2005}. If you do not want this task to appear on a
1693 day page at all, you can enter @samp{nil}.
1695 The second piece of information Planner asks for is the name of
1696 the project to associate the task with. In the above example, you
1697 associated the task with the project ``TaskPool'', which means that
1698 you did not want to associate the task with a particular project or
1699 goal in your life. Another way to do this is to answer the project
1700 prompt by entering @samp{nil}. But instead, you might enter
1701 @samp{LearnPlanner} as the project. This creates a new page called
1702 ``LearnPlanner'' in your planner directory and places an entry for the
1703 task on that page.
1705 The task then exists in two places: once on your day page, to show how
1706 it fits into your daily work; and once on a project page, to show how
1707 it fits into your larger projects and goals. In the future you might
1708 add related tasks like, ``Memorize Planner keybindings''. These
1709 tasks might be scattered over weeks or months worth of day pages, but
1710 as long as you enter the same project name for each, you will have a
1711 way to look at them all together on a single project page.
1713 Planner also creates hyperlinks to enable you to easily move back
1714 and forth between the day page system and the project page
1715 system. Each task on a day page will have a hyperlink to its project
1716 page. Each task on a project page will have a hyperlink to its day
1717 page.
1719 After using Planner for a while, you may find yourself with quite
1720 a few project pages. Keep in mind that completion is enabled at the
1721 project prompt when you create a task, so hitting @kbd{SPC} or
1722 @kbd{TAB} at the prompt will show you a list of your current project
1723 pages.
1725 Once the task is created, you are returned to the buffer you were
1726 working in again, Planner gets out of your way, and you can go on
1727 about your business. Later on, when you decide to actually work on
1728 that ``Memorize Planner keybindings'' task, you will be able to
1729 follow the hyperlink from that task on your day or project page
1730 directly to the relevant node in the Planner info file!
1732 By default, @command{M-x planner-create-task-from-buffer} creates
1733 medium-priority tasks, marked with the letter @samp{B}.  But you can
1734 specify a particular priority or change the default (@pxref{Task
1735 Priorities}).
1737 You don't have to use @command{planner-create-task-from-buffer} to
1738 create tasks. You can also create new tasks manually by typing them
1739 directly on your day or project page in the format Planner expects. You
1740 can even still create hyperlinks by using Muse formatting as you
1741 manually type the new task (@pxref{Hyperlinks}). Keep in mind also that
1742 tasks do not have to be linked to any other page.
1744 For convenience, @command{planner-create-task-from-buffer} is bound to
1745 @kbd{C-c C-t} in Planner buffers.  You can bind
1746 @command{planner-create-task-buffer} to a shortcut key.  See the
1747 manual for your Emacs distribution to find out more about keybinding.
1749 @defun planner-create-task-from-buffer title date plan-page
1750 Create a new task named @var{title} on @var{date} based on the current
1751 buffer.
1753 With a prefix, associate the task with the current planner page.  If
1754 you create a task on a date page, you will be prompted for a plan
1755 page.  If you create a task on a plan page, you will be prompted for a
1756 day page.  If nil is specified, the task is created only on the
1757 current page.
1759 See @code{planner-create-task} for more information.
1761 The new task is created at the top or bottom of the first block of
1762 tasks on the scheduled day page (if any), depending on the value of
1763 @code{planner-add-task-at-end-flag}.
1764 @end defun
1766 @defun planner-create-task title date annotation plan-page
1767 Create a new task named @var{title} based on the current Wiki page.
1768 If @var{date} is non-nil, makes a daily entry on @var{date}, else
1769 makes an entry in today's planner page. It's assumed that the current
1770 Wiki page is the page you're using to plan an activity. Any time
1771 accrued to this task will be applied to that page's name in the
1772 timelog file, assuming you use timeclock (@pxref{Time Intervals, , ,
1773 Emacs, GNU Emacs Manual}). If @var{annotation} is non-nil, it will be
1774 used for the page annotation. If @var{plan-page} is non-nil, the task
1775 is associated with the given page.
1777 With a prefix, associate the task with the current planner page.  If
1778 you create a task on a date page, you will be prompted for a plan
1779 page.  If you create a task on a plan page, you will be prompted for a
1780 day page.  If nil is specified, the task is created only on the
1781 current page.
1783 You probably want to call @code{planner-create-task-from-buffer}
1784 instead.
1786 The new task is created at the top or bottom of the first block of
1787 tasks on the scheduled day page (if any), depending on the value of
1788 @code{planner-add-task-at-end-flag}.
1789 @end defun
1791 @node Task Priorities, Task IDs, Creating a Task, Creating New Tasks
1792 @comment  node-name,  next,  previous,  up
1793 @subsubsection Task Priorities
1795 You can set the priority of a task when you create it, rather than
1796 waiting to adjust it after the fact. In order to do this, call the
1797 function corresponding to the priority you want. You probably want to
1798 bind these functions to some keys if you intend to use them much.
1800 @itemize
1801 @item @code{planner-create-high-priority-task-from-buffer}
1802 creates a task with priority @samp{A}.
1804 @item @code{planner-create-medium-priority-task-from-buffer}
1805 creates a task with priority @samp{B}.
1807 @item @code{planner-create-low-priority-task-from-buffer}
1808 creates a task with priority @samp{C}.
1809 @end itemize
1811 Or, you can change the default priority of
1812 @command{planner-create-task-from-buffer} by customizing
1813 @var{planner-default-task-priority}.
1815 You can actually use just one general priority, but using more than
1816 one color-codes your tasks and gives you a better overview of your
1817 day.
1820 @node Task IDs, Cyclic Tasks, Task Priorities, Creating New Tasks
1821 @comment  node-name,  next,  previous,  up
1822 @subsubsection Task IDs
1823 @cindex @file{planner-id.el}, using
1824 @cindex tasks, IDs
1826 After loading @file{planner.el}, make sure that @file{planner-id.el} is
1827 in your load path and add this to your @file{.emacs} (or @file{_emacs}):
1829 @example
1830 (require 'planner-id)
1831 @end example
1833 This module modifies the behavior of @file{planner.el}, adding global
1834 task IDs so that tasks can be edited and updated. Planner IDs are of
1835 the form @samp{@{@{Identifier:Number@}@}}.
1837 @subheading Options
1839 @defopt planner-id-add-task-id-flag
1840 Non-nil means automatically add global task IDs to newly-created
1841 tasks. If nil, use @command{planner-id-add-task-id} to add IDs to
1842 existing tasks, or @command{planner-id-add-task-id-to-all} to add to
1843 all tasks on the current page.
1844 @end defopt
1846 @defopt planner-id-update-automatically
1847 Non-nil means automatically update linked tasks whenever a page is
1848 saved. If nil, use @command{planner-update-task} to update the linked
1849 task. By default, linked tasks are automatically updated.
1850 @end defopt
1852 @defopt planner-id-tracking-file
1853 File that contains ID tracking data. This file is automatically
1854 overwritten.
1855 @end defopt
1857 @subheading Functions
1859 The following interactive functions are defined in @file{planner-id.el}:
1861 @defun planner-id-jump-to-linked-task &optional info
1862 Display the linked task page. If @var{info} is specified, follow that
1863 task instead.
1864 @end defun
1866 @defun planner-id-add-task
1867 Add a task ID for the current task if it does not have one
1868 yet. Update the linked task page, if any.
1869 @end defun
1871 @defun planner-id-update-tasks-on-page &optional force
1872 Update all tasks on this page. Completed or cancelled tasks are not
1873 updated. This can be added to @code{write-file-functions}. If
1874 @var{force} is non-nil, completed and cancelled tasks are also
1875 updated.
1876 @end defun
1878 @defun planner-id-add-task-id-to-all
1879 Add a task ID for all the tasks on the page. Update the linked page,
1880 if any.
1881 @end defun
1883 @defun planner-id-search-id id
1884 Search for all occurrences of @var{id}.
1885 @end defun
1887 @defun planner-id-follow-id-at-point
1888 Display a list of all pages containing the ID at point.
1889 @end defun
1891 @defun planner-id-follow-id-at-mouse event
1892 Display a list of all pages containing the ID at mouse. @var{event} is
1893 the mouse event.
1894 @end defun
1896 @node Cyclic Tasks, Task Detail, Task IDs, Creating New Tasks
1897 @comment  node-name,  next,  previous,  up
1898 @subsubsection Cyclic Tasks
1899 @cindex @file{planner-cyclic.el}, using
1900 @cindex tasks, cyclic
1901 @cindex cyclic tasks
1902 @cindex recurring tasks
1904 If there are tasks that you have to do regularly, you can have Planner
1905 schedule those tasks automatically.
1907 Make sure that @file{planner-cyclic.el} is in your load path and add
1908 this to your @file{.emacs} (or @file{_emacs}):
1910 @example
1911 (require 'planner-cyclic)
1912 @end example
1914 Create a diary file named @file{~/.diary.cyclic-tasks}
1915 (or the value of @code{planner-cyclic-diary-file}). Here is an example:
1917 @example
1918 Tuesday #B0 _ Study Japanese
1919 Friday #B0 _ Study Japanese (JapaneseStudies)
1920 @end example
1922 The first will be a plain task, the second will be linked.  The first
1923 line will automatically create its task every Tuesday, while the
1924 second will create it every Friday.
1926 You can schedule tasks in a variety of ways. This module uses the same
1927 syntax for specifying when tasks will be scheduled as the Emacs diary
1928 uses for appointments and events. See @ref{Date Formats, the GNU Emacs
1929 Manual, Date Formats,emacs, the GNU Emacs Manual}, and @ref{Sexp Diary
1930 Entries, the GNU Emacs Lisp Reference Manual, Sexp Diary
1931 Entries,elisp, the GNU Emacs Lisp Reference Manual}, for a full
1932 description of the possibilities.
1934 By default, planner-cyclic creates multiple tasks if you let tasks build
1935 up (that is, the next Tuesday rolls around and you @emph{still} haven't
1936 marked the task as done.) To turn off this behavior:
1938 @example
1939 (setq planner-cyclic-diary-nag nil)
1940 @end example
1942 @subheading Functions
1944 @file{planner-cyclic-diary} includes the following interactive
1945 functions:
1947 @defun planner-cyclic-create-tasks-maybe
1948 Maybe create cyclic tasks. This will only create tasks for future
1949 dates or today.
1950 @end defun
1952 @node Task Detail, Deadlines, Cyclic Tasks, Creating New Tasks
1953 @comment  node-name,  next,  previous,  up
1954 @subsubsection Task Detail
1955 @cindex tasks
1957 You may find your planner pages getting very full, so that you want to
1958 have one broad task entry be linked to a more specific list of
1959 sub-tasks. Or, maybe you want to have a number of notes linked to a
1960 particular task.
1961 @cindex tasks, sub-
1962 @cindex tasks, meta-
1963 @cindex meta-tasks
1964 @cindex sub-tasks
1966 This can be done with targets.  You can have a task that is really a
1967 meta-task:
1969 @example
1970 #A1  _ Do things in RevelleLog#13 @{@{Tasks:101@}@} (RevelleLog)
1971 @end example
1973 @samp{RevelleLog#13} could then be a list of sub-tasks in the form of
1974 a note, or any kind of note.
1976 Or, instead of pointing to a particular note on @samp{RevelleLog}, you
1977 could have the whole page be tasks that you enter in manually, without
1978 linking them to another page. You can just type them in like this:
1980 @example
1981 #A1  _ First specific thing to do
1982 @end example
1984 This way, the tasks will only appear on this specific project page,
1985 and not on any daily page, so you only see them when you want to look
1986 up all of the specific tasks associated with @samp{#A1  _ Do things in
1987 RevelleLog @{@{Tasks:101@}@} (RevelleLog)}.
1989 As you can see, the ability to manually enter tasks is one of
1990 Planner's nicest features. It allows you to create tasks that are
1991 not assigned to a specific date (by manually entering them on a
1992 project page with no date) or to a specific project (by manually
1993 entering them on a day page with no project). Yet as long as you enter
1994 them using the syntax it understands, Planner will continue to
1995 recognize them as tasks.
1997 Another way to have a task not be connected to a particular date is to
1998 do @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and specify
1999 @samp{nil} when asked for the date.
2001 If you would like to see a list of all of your unfinished scheduled
2002 tasks, do @kbd{M-x planner-list-unfinished-tasks}.  It is only intended
2003 to give you an overview.  Any editing you want to do, like marking tasks
2004 complete or editing their description, still needs to be done on one of
2005 the tasks' ``real'' planner pages.
2007 @node Deadlines,  , Task Detail, Creating New Tasks
2008 @comment  node-name,  next,  previous,  up
2009 @subsubsection Deadlines
2010 @cindex tasks, deadlines for
2011 @cindex deadlines, task
2012 @cindex @file{planner-deadline.el}, using
2014 You can use @file{planner-deadline.el} to automatically recalculate
2015 days to a deadline by adding @code{(require 'planner-deadline)} to
2016 your @file{~/.emacs}. With the default setup, make your tasks of the
2017 form
2019 @example
2020 #A0 _ Some task @{@{Deadline: 2004.09.12@}@}
2021 @end example
2023 (Note: There must be at least one space after the colon.)
2025 After you run @code{planner-deadline-update} to update task descriptions,
2026 the task will be of the form
2028 @example
2029 #A0 _ Some task @{@{Deadline: 2004.09.12 - 2 days@}@}
2030 @end example
2032 @subheading Options
2034 @defopt planner-deadline-regexp
2035 Regular expression for deadline data.
2036 The special deadline string should be regexp group 1. The
2037 date (YYYY.MM.DD) should be regexp group 2.
2038 @end defopt
2040 @subheading Functions
2042 @defun planner-deadline-update
2043 Replace the text for all tasks with deadlines. Deadlines are of the
2044 form @samp{@{@{Deadline: YYYY.MM.DD@}@}} by default.
2045 @end defun
2047 @defun planner-deadline-change &optional date
2048 Change the deadline of current task to @var{date}. If @var{date} is nil,
2049 remove deadline.
2050 @end defun
2052 @node Organizing Your Tasks, Task Reports and Overviews, Creating New Tasks, More about Tasks
2053 @comment  node-name,  next,  previous,  up
2054 @subsection Organizing Your Tasks
2055 @cindex tasks, organizing
2056 @cindex tasks, old
2058 Okay, now that you've gotten the hang of creating tasks, you're probably
2059 facing a really long list of things to do. How can you organize them so
2060 that they don't overwhelm you? Planner gives you a number of strategies
2061 for dealing with large numbers of tasks.
2063 @enumerate
2064 @item Arrange your tasks in the rough order you're going to do them.
2065 @item Use #A, #B and #C task priorities to differentiate between
2066       high-priority, normal and low-priority tasks.
2067 @item Schedule your tasks onto different days.
2068 @item Group your tasks into plan pages.
2069 @item Don't schedule all your tasks.
2070 @end enumerate
2072 @enumerate
2074 @item @emph{Task order}
2076 To remind yourself to do tasks in a certain order, simply edit the
2077 lines so that they're in the order you want. You can use normal
2078 editing commands like kill, yank and transpose-line to reorder the
2079 tasks, or use @key{M-p} (@code{planner-raise-task}) and @key{M-n}
2080 (@code{planner-lower-task}) to rearrange the tasks.
2082 @item @emph{Task priorities}
2084 By default, tasks are created with medium priority (@samp{#B}). You
2085 can make a task high-priority (@samp{#A}) or low-priority (@samp{#C})
2086 by manually editing the task and calling M-x planner-update-task to
2087 update the linked page. Alternatively, you can use @key{C-M-p}
2088 (@code{planner-raise-task-priority}) and @key{C-M-n}
2089 (@code{planner-lower-task-priority}) to modify the task and update the
2090 linked page.
2092 You can edit the priority of a task using @kbd{M-x
2093 planner-edit-task-priority}, or manually edit it and call @kbd{M-x
2094 planner-update-task} to update tasks on the linked page.
2096 @item @emph{Schedule your tasks on different days}
2098 You don't have to do everything today. Is this a task you would rather
2099 do tomorrow? Schedule it for then instead. You can specify @samp{+n}
2100 or @samp{-n} whenever you are asked for a date, where @var{n} is the
2101 number of days before or after the current file's date or today.
2102 Don't over-procrastinate things, though!
2104 @item @emph{Plan pages}
2106 Plan pages let you group related tasks and notes together for easy
2107 reference. For example, you could have a plan page for each major
2108 project or goal in your life, like @samp{GoodHealth} or
2109 @samp{FurtherStudies}.
2111 Although plan pages start by grouping everything under a @samp{*
2112 Tasks} header, you can organize your plan pages in different ways. For
2113 example, you can separate groups of tasks with blank lines, and
2114 Planner will sort tasks within each group.
2116 @item @emph{Tasks without dates}
2118 Plan pages also allow you to have undated tasks or tasks with no
2119 particular deadlines. This keeps your daily task list small and
2120 manageable while making it easier for you to find things to do if you
2121 have free time. Make sure you check your plan pages regularly so that
2122 you don't completely forget about them.
2124 For automated scheduling of the next task on a plan page after you
2125 complete a task, see the section in
2126 @uref{http://sacha.free.net.ph/notebook/emacs/planner-config.el} named
2127 ``Schedule next undated task from same project''.
2129 @end enumerate
2132 @menu
2133 * Multiple Projects::           
2134 * Viewing Tasks::               
2135 * Modifying Tasks::             
2136 * Carrying Over Unfinished Tasks::  
2137 * Task Numbering::              
2138 * Task Ranks::                  planner-rank.el
2139 * Grouping Tasks::              planner-trunk.el
2140 @end menu
2142 @node Multiple Projects, Viewing Tasks, Organizing Your Tasks, Organizing Your Tasks
2143 @comment  node-name,  next,  previous,  up
2144 @subsubsection Associating Tasks with Multiple Projects
2145 @cindex multiple projects
2146 @cindex @file{planner-multi.el}, using
2148 You can use @file{planner-multi.el} to associate a task with more than
2149 one project. That way, you can easily keep GTD-style context lists as
2150 well as project-related lists.
2152 To use multiple projects, add the following to your @samp{~/.emacs}:
2154 @example
2155 (require 'planner-multi)
2156 @end example
2158 Under GNU Emacs, you can specify multiple projects by separating them
2159 with a single space. For example, you can specify @kbd{planner doc}
2160 when creating a task to associate the task with those two projects.
2162 Under XEmacs, you can specify multiple projects by typing @kbd{RET}
2163 after each entry and terminating the list with another @kbd{RET}. For
2164 example, to specify @kbd{planner} and @kbd{doc}, you would type
2165 @kbd{planner RET doc RET RET} at the prompt.
2167 If you want to see an overview of all of your tasks as well as
2168 project- or context-specific lists, you can set
2169 @code{planner-multi-copy-tasks-to-page} to your overview page(s). For
2170 example, set it to @samp{TaskPool} to be able to see an overview of
2171 all of your unfinished tasks. You can also set this to multiple pages
2172 such as @samp{[[TasksByProject][p]] [[TasksByContext][c]]} and use
2173 @file{planner-trunk.el} to sort and organize tasks for easy reference.
2174 (@pxref{Grouping Tasks})
2176 @subheading Options
2178 @defopt planner-multi-copy-tasks-to-page
2179 Automatically copy newly-created tasks to the specified page.
2180 @end defopt
2182 By default, tasks are removed from
2183 @code{planner-multi-copy-tasks-to-page} when you call
2184 @code{planner-task-done} or @code{planner-task-cancelled}. If you
2185 prefer to keep a copy of the task, remove
2186 @code{planner-multi-remove-task-from-pool} from
2187 @code{planner-mark-task-hook}.
2189 If you want to use a different separator instead of spaces, customize
2190 the @code{planner-multi-separator} variable.
2192 @defopt planner-multi-separator
2193 String that separates multiple page references.
2195 For best results, this should be something recognized by
2196 @code{muse-link-at-point} so that links are highlighted
2197 separately.
2198 @end defopt
2200 @node Viewing Tasks, Modifying Tasks, Multiple Projects, Organizing Your Tasks
2201 @comment  node-name,  next,  previous,  up
2202 @subsubsection Viewing tasks
2203 @cindex tasks, viewing
2205 Review the tasks scheduled for today by typing @kbd{M-x
2206 planner-goto-today}.  If you created the task from the previous
2207 section in this tutorial, you should see a line that looks like
2209 @example
2210 #A _ Learn how to change a task's status from Tasks (TaskPool)
2211 @end example
2213 If you have @code{planner-use-task-numbers} set to non-nil, you will see
2214 something like the following instead.
2216 @example
2217 #A0 _ Learn how to change a task's status from Tasks (TaskPool)
2218 @end example
2220 From left to right, these are what the symbols mean:
2222 @itemize
2223 @item @samp{A} - Priority.  A (high)
2224 @item
2225 @samp{0} - Priority number.  It is calculated whenever you save the file
2226 or call @command{planner-renumber-tasks}, provided that
2227 @code{planner-use-task-numbers} is non-nil.  Tasks are numbered in
2228 ascending order according to priorities.
2229 @item @samp{_} - Status.  _ (unfinished)
2230 @end itemize
2232 If you click on @samp{Tasks} or press @key{RET} while your cursor is
2233 in the link, Emacs will display the previous info page.
2235 If you select @samp{TaskPool}, Emacs will display the @samp{TaskPool}
2236 plan page.  Plan pages organize your tasks and notes about a project
2237 in one file.
2239 @subheading Functions
2241 You can use @command{planner-seek-next-unfinished-task} to move to the
2242 next unfinished task on the current page.
2244 @defun planner-list-tasks-with-status status &optional pages
2245 Display all tasks that match the STATUS regular expression on all day
2246 pages.  The PAGES argument limits the pages to be checked in this
2247 manner:
2249 @itemize
2250 @item @code{t}: check all pages
2251 @item regexp: search all pages whose filenames match the regexp
2252 @item list of page names: limit to those pages
2253 @item alist of page/filenames: limit to those pages
2254 @end itemize
2256 Called interactively, this function will search day pages by
2257 default. You can specify the start and end dates or leave them as
2258 nil to search all days. Calling this function with an interactive
2259 prefix will prompt for a regular expression to limit pages.
2260 Specify @samp{.} or leave this blank to include all pages.
2262 This function could take a long time.
2263 @end defun
2265 @defun planner-list-unfinished-tasks &optional pages
2266 Display all unfinished tasks. @var{pages} follows
2267 planner-list-tasks-with-status.
2268 @end defun
2270 @defun planner-jump-to-linked-task task-info
2271 Display the task page linked to by the current task or
2272 @var{task-info}.
2273 @end defun
2275 @node Modifying Tasks, Carrying Over Unfinished Tasks, Viewing Tasks, Organizing Your Tasks
2276 @comment  node-name,  next,  previous,  up
2277 @subsubsection Modifying Tasks
2278 @cindex tasks, modifying
2279 @cindex tasks, editing
2281 To select a task, move your cursor to the line containing the task.
2283 Change a task's priority (@samp{A}, @samp{B} or @samp{C}) by editing
2284 the line. @samp{#A} tasks are important. @samp{#B} are medium
2285 priority. @samp{#C} are low priority. Whenever you save the file or
2286 call @kbd{M-x planner-fix-tasks}, tasks are sorted and numbered
2287 according to priority and status.
2289 Change a task's status by calling one of the following functions:
2291 @itemize
2292 @item planner-task-in-progress @samp{o} (@kbd{C-c C-z})
2293 @item planner-task-done @samp{X} (@kbd{C-c C-x})
2294 @item planner-task-cancelled @samp{C} (@kbd{C-c C-S-x})
2295 @item planner-task-delegated @samp{D}
2296 @item planner-task-pending @samp{P}
2297 @item planner-task-open @samp{_}
2298 @end itemize
2300 After changing the status using a function, look at the
2301 @samp{TaskPool} plan page.  The task is also updated on the linked
2302 page.  If you changed the task status manually by replacing the status
2303 with another character, you will need to call
2304 @command{planner-update-task} to update the linked page.
2306 To reschedule a task, call @command{planner-copy-or-move-task} (@kbd{C-c
2307 C-c}) and choose a new date.  You can mark a region and type @kbd{M-x
2308 planner-copy-or-move-region} to reschedule all the contained tasks to a
2309 different date.  Enter @samp{nil} for the date if you don't want the
2310 task or group of tasks to appear on any date page at all anymore. This
2311 is a good way to ``de-schedule'' a task for the time being, but still
2312 keep it linked to a plan page for possible future scheduling.
2314 To change the plan page associated with a task, call
2315 @command{planner-replan-task}.  Enter @samp{nil} for the plan page if
2316 you don't want the task to appear on any plan page anymore. If you
2317 precede the command with a prefix argument, the text of the original
2318 plan page will appear in the prompt for easy editing.
2320 Since the same task may exist on two or more pages, such as a date page
2321 and a plan page, it is dangerous to edit the description of the task by
2322 hand. You should not do it unless you want to make the exact same
2323 changes on all its linked pages.
2325 Instead of doing this by hand, you should use
2326 @command{planner-edit-task-description}. This will prompt you for the
2327 changes to the task description and then update all the other pages to
2328 which the task is linked.  Or, you can just use
2329 @command{planner-delete-task} to remove the task from both pages, and
2330 then create it again with the new desired description.
2332 To remind yourself to do tasks in a certain order, simply edit the
2333 lines so that they're in the order you want.
2334 @command{planner-raise-task} and @command{planner-lower-task} update
2335 the priorities on linked pages automatically. You can organize tasks
2336 into groups by putting a blank line between groups of tasks.
2337 Planner will maintain the groupings and only sort the tasks within
2338 that group.
2340 @subheading Functions
2342 @defun planner-replan-task page-name
2343 Change or assign the plan page for the current task.  @var{page-name}
2344 is the new plan page for the task. Use
2345 @code{planner-copy-or-move-task} if you want to change the date. With a
2346 prefix, provide the current link text for editing.
2347 @end defun
2349 @defun planner-raise-task-priority
2350 Change a low-priority task to a medium-priority task and a
2351 medium-priority task to a high-priority task (C to B to A).
2352 @end defun
2354 @defun planner-lower-task-priority
2355 Change a high-priority task to a medium-priority task and a
2356 medium-priority task to a low-priority task (A to B to C).
2357 @end defun
2359 @defun planner-raise-task arg
2360 Move a task up @var{arg} steps.  By default, @var{arg} is 1.
2361 @end defun
2363 @defun planner-lower-task  arg
2364 Move a task down @var{arg} steps.  By default, @var{arg} is 1.
2365 @end defun
2367 @defun planner-edit-task-description description
2368 Change the description of the current task, updating the linked page
2369 if any.
2370 @end defun
2372 @defun planner-delete-task
2373 Delete this task from the current page and the linked page.
2374 @end defun
2376 @defun planner-update-task
2377 Update the current task's priority and status on the linked page.
2378 Tasks are considered the same if they have the same description.
2379 This function allows you to force a task to be recreated if it
2380 disappeared from the associated page.
2381   
2382 Note that the text of the task must not change. If you want to be able
2383 to update the task description, see @code{planner-edit-task-description}
2384 or @file{planner-id.el}.
2385 @end defun
2387 See @command{planner-install-extra-task-keybindings} for additional
2388 task-related shortcuts.
2390 @node Carrying Over Unfinished Tasks, Task Numbering, Modifying Tasks, Organizing Your Tasks
2391 @comment  node-name,  next,  previous,  up
2392 @subsubsection Carrying Over Unfinished Tasks
2393 @cindex tasks, carrying over
2395 Sometimes you won't be able to cross off all the tasks on your list.
2396 Planner makes it easy for you to keep track of things you still have
2397 to do by automatically rescheduling unfinished tasks from the past few
2398 days. By default, the @command{plan} command searches for unfinished
2399 tasks from the last three days and reschedules them onto today. If you
2400 open Planner every day, this should cover weekends easily.
2402 It's a good idea to start Planner whenever you start Emacs. That way,
2403 Planner can help remind you about today's tasks, appointments, and other
2404 things. To automatically start Planner whenever you start up Emacs, add
2405 the following code to the end of your @file{~/.emacs}:
2407 @example
2408 (plan)
2409 @end example
2411 Now, every time you start Emacs (which should be more or less once a
2412 day), you'll see today's page. If you don't finish all the tasks today,
2413 you'll see them again tomorrow.
2415 It's a good idea to start Planner every time you start Emacs so that
2416 you get reminded about your task list. If you prefer to start Planner
2417 manually, remember to call @kbd{M-x plan} every so often to make sure
2418 that you don't forget any unfinished tasks. Safe in the knowledge that
2419 Planner tasks won't slip through the cracks (unlike little slips of
2420 paper that will invariably get mislaid), you can then get on with the
2421 rest of your life.
2423 If your increased productivity with Planner leads to a well-deserved
2424 two-week vacation, then you'll need to tell Planner to search more days
2425 for unfinished tasks. By using @kbd{M-x plan}, you can automatically
2426 bring forward tasks over a given number of days or even scan all the
2427 days since time immemorial. @kbd{C-u 15 M-x plan} reschedules all
2428 unfinished tasks from the last 15 days. @kbd{C-u -1 M-x plan} checks all
2429 of your past day pages for unfinished tasks.
2431 Like everything else in Planner, you can adapt @kbd{M-x plan} to your
2432 particular way of life. For example, if you find yourself starting up
2433 Emacs and Planner every day--including weekends--because it's just so
2434 much fun, you can set the @code{planner-carry-tasks-forward} to 1.
2435 This can make your Emacs startup marginally faster. On the other hand,
2436 if you normally start Emacs once a week, you can set it to 7 or 8. If
2437 you're worried about tasks dropping off your radar, you can set it to
2438 0. You can set the value of @var{planner-carry-tasks-forward} either
2439 with @key{M-x customize-variable RET planner-carry-tasks-forward RET},
2440 or by putting @code{(setq planner-carry-tasks-forward 3)} (replacing
2441 @code{3} with the value appropriate for what you want) in your
2442 @file{~/.emacs} file.
2444 On the other hand, you might prefer to reschedule tasks yourself. If
2445 you set @code{planner-carry-tasks-forward} to @code{nil}, then
2446 @command{M-x plan} and @code{(plan)} will bring you to the most recent
2447 page with unfinished tasks if there is no page for today. You can then
2448 use @command{planner-copy-or-move-task} and
2449 @command{planner-copy-or-move-region} to reschedule tasks. This is
2450 probably more hassle than it's worth, though, so let Planner take care
2451 of this for you.
2453 @subheading Options
2455 @defopt planner-carry-tasks-forward
2456 If non-nil, carry unfinished tasks forward automatically.
2457 If a positive integer, scan that number of days in the past.
2458 If 0, scan all days for unfinished tasks.
2459 If t, scan one day in the past (old behavior).
2460 If nil, do not carry unfinished tasks forward.
2461 @end defopt
2463 @subheading Functions
2465 @defun plan &optional force-days
2466 Start your planning for the day, carrying unfinished tasks forward.
2468 If @var{force-days} is a positive integer, search that many days in the
2469 past for unfinished tasks.
2470 If @var{force-days} is @code{0} or @code{t}, scan all days.
2471 If @var{force-days} is @code{nil}, use the value of
2472 @code{planner-carry-tasks-forward} instead, except t means scan only
2473 yesterday
2475 @end defun
2477 @defun planner-copy-or-move-task date force
2478 Reschedule the task for @var{date}. If @var{force} is non-nil, the
2479 task is moved regardless of status. It also works for creating tasks
2480 from a Note. Use @code{planner-replan-task} if you want to change the
2481 plan page in order to get better completion.
2482 @end defun
2484 @defun planner-copy-or-move-region beg end date muffle-errors
2485 Move all tasks from @var{beg} to @var{end} to @var{date}.
2486 @code{planner-copy-or-move-region} will copy or move all tasks from
2487 the line containing @var{beg} to the line just before @var{end}. If
2488 @var{muffle-errors} is non-nil, no errors will be reported.
2489 @end defun
2491 @node Task Numbering, Task Ranks, Carrying Over Unfinished Tasks, Organizing Your Tasks
2492 @comment  node-name,  next,  previous,  up
2493 @subsubsection Task Numbering
2495 By default, tasks are numbered according to their position on the
2496 page.  Task numbers allow you to refer to tasks using Muse links.
2497 For example, the @samp{#A1} task in @file{2004.08.16} can be referred to
2498 as @samp{2004.08.16#A1}.
2500 Note that task numbers change every time you re-sort and re-number tasks
2501 with @code{planner-fix-tasks}.  As a result, they are only reliable for
2502 references to past tasks.
2504 If you find yourself not using this functionality, you can turn off task
2505 numbers by using the following option.
2507 @subheading Options
2509 @defopt planner-use-task-numbers
2510 Non-nil means use task numbers when creating tasks.  This allows you
2511 to refer to past tasks if your tasks are numbered appropriately.
2512 If you set this to nil, you can save space in your plan files.
2513 @end defopt
2515 @node Task Ranks, Grouping Tasks, Task Numbering, Organizing Your Tasks
2516 @comment  node-name,  next,  previous,  up
2517 @subsubsection Task Ranks
2518 @cindex ranking tasks
2519 @cindex tasks, ranking
2520 @cindex @file{planner-rank.el}, using
2522 @file{planner-rank.el} models Franklin Covey's Urgency and Importance
2523 principle. When you think about a task, there are two aspects in
2524 consideration: Urgency and Importance. You may want to do the most
2525 urgent things first, like answering an email, or you may want to do
2526 the most important things first, like reading this manual. Or much
2527 better, balance Urgency and Importance and decide what to do.
2529 @file{planner-rank.el} can help you balance.
2531 Urgency and Importance are both measured by scores from 0-9. The
2532 higher the score, the more you want to do it first. 9 stands for ``I
2533 should have done this'' and 0 stands for ``I can forget this''.
2535 If you are using the planner @ref{Deadlines} feature, the Urgency
2536 score is automatically calculated from how many days are left to meet
2537 the deadline. By default, it will score 9 if the task is overdue and 0
2538 if the deadline is years away. Please refer to the docstring of
2539 @code{planner-rank-deadline-urgency-map-list} for detail.
2541 The task rank is calculated from Urgency and Importance scores. As
2542 different people balance urgency and importance differently, a number
2543 of @code{planner-rank-calculate-rank-*} functions are provided. The
2544 algorithms vary from a simple average to something like a weighted
2545 root mean square deviation.
2547 The aggressive versions of these functions
2548 (@code{planner-rank-calculate-rank-*-aggressive}) will make sure if
2549 one of Urgency and Importance is high, the resulting rank will be high
2550 as well. @code{planner-rank-calculate-rank-weighted-*} functions weigh
2551 the Urgency and Important scores depending on
2552 @code{planner-rank-importance-vs-urgency-factor}.
2554 Call @code{planner-rank-test-algorithm} on each of the functions and
2555 check the result tables to see which one you like most, and set it to
2556 @code{planner-rank-rank-calculate-function}. Alternatively, accept the
2557 defaults and tweak them when you get a better feel for ranking.
2559 Once the Rank is calculated, the @ref{Task Priorities} will be
2560 automatically reset. If the Rank is greater than or equal to
2561 @code{planner-rank-priority-A-valve}, the task priority will be
2562 @samp{A}, if the Rank is between @code{planner-rank-priority-A-valve}
2563 and @code{planner-rank-priority-B-valve}, the priority will be @samp{B},
2564 else it will be @samp{C}.
2566 After setting the task importance and deadline, you can leave it as
2567 is. As the deadline approaches, the task priority will automatically
2568 be raised and the task re-colored to catch your eyes.
2570 If you are using @code{planner-sort-tasks} (see @pxref{Making Files
2571 Pretty}), you can set @code{planner-sort-tasks-key-function} to one of
2572 @code{planner-sort-tasks-by-rank},
2573 @code{planner-sort-tasks-by-importance}, and
2574 @code{planner-sort-tasks-by-urgency}.
2576 @subheading Options
2578 @defopt planner-rank-change-hook
2579 Functions to run after @code{planner-rank-change}.
2580 @end defopt
2582 @defopt planner-rank-priority-A-valve
2583 Tasks with rank greater than or equal to this value will be set to
2584 priority @samp{A}.
2585 @end defopt
2587 @defopt planner-rank-priority-B-valve
2588 Tasks with rank greater than or equal to this value and less than
2589 @code{planner-rank-priority-A-valve} will be set to priority
2590 @samp{B}. Tasks with rank less than this value will be set to priority
2591 @samp{C}.
2592 @end defopt
2594 @defopt planner-rank-deadline-urgency-map-list
2595 Defines how to calculate the Urgency score according to how many days
2596 are left to meet the deadline.
2597 @end defopt
2599 @defopt planner-rank-default-importance
2600 Default importance value for newly added rank.
2601 @end defopt
2603 @defopt planner-rank-default-urgency
2604 Default urgency value for newly added rank.
2605 @end defopt
2607 @defopt planner-rank-importance-vs-urgency-factor
2608 How much do you think importance is more ``important'' than urgency.
2609 This will be used in @code{planner-rank-calculate-rank-weighted-*}
2610 functions.
2611 @end defopt
2613 @defopt planner-rank-rank-calculate-function
2614 Define the function called to calculate rank.
2615 @end defopt
2617 @subheading Functions
2619 @defun planner-rank-change &optional importance urgency
2620 Set the Importance and Urgency of the current task.
2621 @end defun
2623 @defun planner-rank-update-current-task
2624 Recalculate rank for the current task.
2625 @end defun
2627 @defun planner-rank-update-all
2628 Recalculate rank for all tasks in the current page
2629 @end defun
2631 @defun planner-rank-update-all
2632 Recalculate rank for all tasks in the current page
2633 @end defun
2635 @node Grouping Tasks,  , Task Ranks, Organizing Your Tasks
2636 @comment  node-name,  next,  previous,  up
2637 @subsubsection Grouping Tasks with planner-trunk.el
2638 @cindex grouping tasks
2639 @cindex tasks, grouping
2640 @cindex @file{planner-trunk.el}, using
2642 @file{planner-trunk.el} helps you automatically group tasks according
2643 to a set of rules. It sorts and splits your tasks, adding a blank line
2644 between groups of tasks. For example, if today's page looks like this:
2646 @example
2647 * Tasks
2649 #B   _ Buy milk (GroceryShopping)
2650 #B   _ Learn how to use planner-trunk (PlannerMode)
2651 #B   _ Buy a notebook (Bookstore)
2652 #B   _ Buy cereal (GroceryShopping)
2653 #B   _ Set up my own planner-trunk rules (PlannerMode)
2654 #B   _ Customize my stylesheet (MuseMode)
2655 #B   _ Go for a health checkup (BetterHealth)
2656 @end example
2658 @noindent
2659 then you might want to group the tasks into: planner and muse,
2660 shopping list, and other items. If you set up the appropriate rules by
2661 customizing @code{planner-trunk-rule-list}, @file{planner-trunk.el}
2662 can automatically rewrite that section line this:
2664 @example
2665 * Tasks
2667 #B   _ Learn how to use planner-trunk (PlannerMode)
2668 #B   _ Set up my own planner-trunk rules (PlannerMode)
2669 #B   _ Customize my stylesheet (MuseMode)
2671 #B   _ Buy milk (GroceryShopping)
2672 #B   _ Buy a notebook (BookstoreShopping)
2673 #B   _ Buy cereal (GroceryShopping)
2675 #B   _ Go for a health checkup
2676 @end example
2678 @noindent
2679 In this case, you would set @code{planner-trunk-rule-list}
2680 to @code{(("." nil ("PlannerMode\\|MuseMode" "Shopping")))}.
2682 You can load @file{planner-trunk} with @kbd{M-x load-library RET
2683 planner-trunk RET} or add @code{(require 'planner-trunk)}. If you're
2684 not yet comfortable with Emacs Lisp, you can use @kbd{M-x
2685 customize-variable RET planner-trunk-rule-list RET} to edit this rule
2686 using an easy-to-use interface.
2688 WARNING: Do not keep non-task information in the Tasks section.
2689 planner-trunk will delete @strong{all} non-task lines from the Tasks
2690 section of your plan page in the process of grouping the tasks.
2692 After you set up @code{planner-trunk-rule-list}, use @command{M-x
2693 planner-trunk-tasks} to try out your rules until you're satistfied.
2695 If you want to do this automatically, you can use @code{(add-hook
2696 'planner-mode-hook 'planner-trunk-tasks)} to trigger it automatically
2697 whenever you open a Planner page.
2699 @node Task Reports and Overviews,  , Organizing Your Tasks, More about Tasks
2700 @subsection Task Reports and Overviews
2701 @cindex task reports
2702 @cindex task overviews
2703 @cindex reports, task
2704 @cindex overviews, task
2705 @cindex reports, accomplishment
2706 @cindex tasks, overview of
2708 Planner provides a number of different ways to generate different
2709 presentations of your tasks.
2711 @menu
2712 * Accomplishments::             planner-accomplishments.el
2713 * Status Reports::              planner-report.el
2714 * Task Overviews::              planner-tasks-overview.el
2715 * <tasks> tag::             
2716 * planner-registry::            Keep track of annotations
2717 * planner-zoom::                View and navigate tasks by time period
2718 @end menu
2720 @node Accomplishments, Status Reports, Task Reports and Overviews, Task Reports and Overviews
2721 @comment  node-name,  next,  previous,  up
2722 @subsubsection Generating Daily Accomplishment Reports
2723 @cindex reports, accomplishment
2724 @cindex @file{planner-accomplishments.el}, using
2725 @cindex tasks, overview of
2726 @cindex task reports
2727 @cindex reports, task
2728 @cindex overviews, task
2729 @cindex task overviews
2731 You can use @file{planner-accomplishments.el} to get a summary of your
2732 task activity for a particular day. The report is grouped by status
2733 and plan (on day pages) or date (on plan pages). An example report
2734 follows:
2736 @example
2737 Link        | Unfinished | In progress | Delegated | Completed | Total
2738 nil         | 1          | 0           | 0         | 6         | 7
2739 TaskPool    | 1          | 1           | 0         | 3         | 5
2740 Planner     | 0          | 0           | 1         | 1         | 2
2741 SchoolWork  | 0          | 0           | 0         | 1         | 1
2742 Total       | 2          | 1           | 1         | 11        | 15
2743 @end example
2745 This lets you see how you balance your time between your projects.
2747 @itemize
2749 There are currently two ways to use @file{planner-accomplishments.el}.
2751 @item Displaying a temporary buffer
2753 You can call @code{planner-accomplishments-show} to display a buffer
2754 containing the current page's accomplishment report.
2756 @item Rewriting sections of your planner
2758 Choose this approach if you want accomplishment reports to be in
2759 their own section and you would like them to be readable in your
2760 plain text files even outside Emacs. Caveat: The accomplishment
2761 section should already exist in your template and will be rewritten
2762 when updated.
2764 To use, set @code{planner-accomplishments-section} to the name of the
2765 section to rewrite (default: @samp{Accomplishments}). If you want
2766 rewriting to be automatically performed, call
2767 @code{planner-accomplishments-insinuate}. The accomplishments will be
2768 rewritten whenever you save a planner page. If you want rewriting to
2769 be manual, call @code{planner-accomplishments-update}.
2771 @end itemize
2773 @subheading Options
2775 @defopt planner-accomplishments-section
2776 Header for the accomplishments section in a plan page.
2777 Used by @code{planner-accomplishments-update}.
2778 @end defopt
2780 @defopt planner-accomplishments-status-display
2781 Alist of status-label maps also defining the order of display.
2782 Used by @code{planner-accomplishments-format-table}.
2783 @end defopt
2785 @subheading Functions
2787 @defun planner-accomplishments-insinuate ()
2788 Automatically call @code{planner-accomplishments-update} when saving
2789 tasks in @code{planner-mode} buffers.
2790 @end defun
2792 @defun planner-accomplishments-update ()
2793 Rewrite @code{planner-accomplishments-section} with a summary of tasks
2794 on this page.
2795 @end defun
2797 @defun planner-accomplishments-show ()
2798 Display a buffer with the current page's accomplishment report.
2799 @end defun
2801 @node Status Reports, Task Overviews, Accomplishments, Task Reports and Overviews
2802 @comment  node-name,  next,  previous,  up
2803 @subsubsection Status Reports
2804 @cindex status reports
2805 @cindex reports, status
2806 @cindex @file{planner-report.el}, using
2808 @file{planner-report.el} creates a status report for a given timespan.
2809 The report itself is just another Planner page in your planner
2810 directory.  Once generated, it contains tasks and notes culled from
2811 active project pages.  Tasks are only shown if they are incomplete or
2812 were completed within the timespan.  Notes are shown if they were
2813 created during the timespan.  Tasks and notes are grouped together under
2814 a heading for their corresponding project.
2816 The idea is you have one of these status reports generated periodically
2817 (say, every couple of weeks).  Perhaps you use cron to run them
2818 automatically and then mail you a reminder that they've been done.  Then
2819 you can edit the page, adding verbiage where it is needed and removing
2820 irrelevant items.  This editing process is as easy as editing any other
2821 Planner page.  Finally, you can publish the page along with the rest of
2822 your planner using @kbd{M-x muse-project-publish}.
2824 If you use planner-authz.el, you can tell planner-report.el only to
2825 consult project pages that a given list of users
2826 (@var{planner-report-authz}) can access when generating the report.  For
2827 example, if you're preparing a status report for your boss, add yourself
2828 and him to @var{planner-report-authz}.  The resulting status report will
2829 only contain information the two of you are supposed to have access to,
2830 and the report itself will be similarly restricted.
2832 @subheading Getting started
2834 Add the following to your .emacs file:
2836 @example
2837 (require 'planner-report)
2838 @end example
2840 Then you can use the following command to generate a status report:
2842 @example
2843 M-x planner-report-generate
2844 @end example
2846 You will be prompted for a beginning and ending date, and then the
2847 status report will be generated.  You can then edit it to your liking
2848 and publish it just like you would the rest of your planner.
2850 @subheading Options
2852 @defopt planner-report-authz
2853 List of users a status report should be restricted to.
2854 When status reports are generated, only planner pages accessible
2855 by these users will be consulted, and the resulting status report
2856 will be similarly restricted.
2857 @end defopt
2859 @defopt planner-report-pretty-print-plan-pages
2860 If non-nil, pretty print plan pages.
2861 If nil, leave page names as-is.
2862 This requires that @file{muse-wiki.el} be loaded to work properly.
2863 @end defopt
2865 @defopt planner-report-remove-task-numbers
2866 Remove task numbers when generating status reports.
2867 @end defopt
2869 @defopt planner-report-replace-note-numbers
2870 If non-nil, a string with which to replace note numbers when
2871 generating status reports.
2872 @end defopt
2874 @defopt planner-report-unfinished-offset
2875 If non-nil, the offset in days from the current date of
2876 unfinished tasks to include in the status report.  If nil,
2877 include all unfinished tasks.
2878 @end defopt
2880 @subheading Functions
2882 @defun planner-report-generate begin end
2883 Generate a status report spanning a period from @var{begin} to @var{end}.
2884 @var{begin} and @var{end} are in the format YYYY.MM.DD.
2885 @end defun
2887 @node Task Overviews, <tasks> tag, Status Reports, Task Reports and Overviews
2888 @comment  node-name,  next,  previous,  up
2889 @subsubsection Seeing an Overview of Tasks
2890 @cindex tasks, overview of
2891 @cindex task reports
2892 @cindex reports, task
2893 @cindex overviews, task
2894 @cindex task overviews
2895 @cindex @file{planner-tasks-overview.el}, using
2897 You can see a list of tasks with @file{planner-tasks-overview.el}.
2898 Seeing how you've scheduled tasks over the next few days can help you
2899 decide when to schedule another task. Table entries will be of the form
2901 @var{date} | @var{link} | @var{priority} @var{status} | @var{task-description}
2903 @subheading Functions
2905 To display the tasks between a set of day pages, use
2907 @defun planner-tasks-overview start end
2908 Display an overview of your tasks from @var{start} to @var{end}. If
2909 @var{start} is nil, start from the very first day page. If @var{end}
2910 is nil, include the very last day page. You can use
2911 @code{planner-expand-name} shortcuts here, like @kbd{+1} or @kbd{-1}.
2912 Pressing @key{RET} at the prompt will use today.
2914 Once in a @code{planner-tasks-overview} buffer, you can use
2915 the keyboard shortcut @key{o} to change the overview period.
2916 @end defun
2918 You can sort the task display with the following functions:
2920 @defun planner-tasks-overview-sort-by-date
2921 Sort the tasks by date. Keyboard shortcut: @key{1}
2922 @end defun
2924 @defun planner-tasks-overview-sort-by-plan
2925 Sort the tasks by associated plan page. Keyboard shortcut: @key{2}
2926 @end defun
2928 @defun planner-tasks-overview-sort-by-priority
2929 Sort the tasks by priority. Keyboard shortcut: @key{3}
2930 @end defun
2932 @defun planner-tasks-overview-sort-by-status
2933 Sort the tasks by status. Keyboard shortcut: @key{4}
2934 @end defun
2936 You can jump to linked tasks with
2938 @defun planner-tasks-overview-jump other-window
2939 Display the current task. If a prefix argument is supplied, show the
2940 task in another window. Keyboard shortcut: @key{j}
2941 @end defun
2943 @defun planner-tasks-overview-jump-other-window
2944 Display the current task in another window. Keyboard shortcut: @kbd{C-u j}
2945 @end defun
2947 You can view a summary of the tasks in your plan pages with
2949 @defun planner-tasks-overview-show-summary &optional file-list
2950 Count unscheduled, scheduled, and completed tasks for FILE-LIST. If
2951 called with an interactive prefix, prompt for the plan page(s) to
2952 display. Load @file{planner-multi.el} to be able to specify multiple
2953 pages.
2954 @end defun
2956 @subheading Keys
2958 @key{TAB}, @kbd{SHIFT-TAB} and @key{RET} navigate links in the usual
2959 fashion.
2961 @node <tasks> tag, planner-registry, Task Overviews, Task Reports and Overviews
2962 @subsubsection <tasks> tag
2963 @cindex <tasks> tag
2964 @cindex task reports
2965 @cindex reports, task
2966 @cindex overviews, task
2967 @cindex task overviews
2968 @cindex tasks, overview of
2970 @samp{<tasks>} is replaced by a report of tasks over all day pages in
2971 published pages (@pxref{Publishing}).
2973 @example
2974 All incomplete tasks
2976 <tasks status="^X">
2978 All completed tasks
2980 <tasks status="X">
2982 All tasks
2984 <tasks>
2985 @end example
2987 Warning: this function can be slow, as it checks all the day pages!
2989 @node planner-registry, planner-zoom ,<tasks> tag, Task Reports and Overviews
2990 @comment  node-name,  next,  previous,  up
2991 @section planner-registry
2992 @cindex @file{planner-registry.el}, using
2994 The @file{planner-registry} module provides a way to keep track of all
2995 the URLs in your projects, and to list them depending on the current
2996 buffer.  The URLs are defined in @code{muse-url-protocols} module from
2997 Muse.
2999 If a URL has been created by @code{planner-create-task-from-buffer},
3000 going to that buffer and calling @code{planner-registry-show} will show
3001 you where Planner put the URL.
3003 @subheading Getting started
3005 To begin using @file{planner-registry}, add the following to your
3006 Planner configuration file.
3008 @example
3009 (require 'planner-registry)
3010 (planner-registry-initialize)
3011 @end example
3013 You must put it after the place where Planner has been loaded in your
3014 configuration file.
3016 If you want the registry to be updated each time you save a Planner
3017 file, add the following to your Planner configuration.
3019 @example
3020 (planner-registry-insinuate)
3021 @end example
3023 If you don't want to update the registry each time a file is written,
3024 you can do it manually with @code{planner-registry-update}: it will
3025 update the registry for saved Planner/Muse buffers only.
3027 @file{planner-registry} does not define any keybindings by default.  Its
3028 most useful interactive function is @code{planner-registry-show}.
3030 @subheading Example usage
3032 Say for example that you created a task from an e-mail.  Go to that
3033 e-mail and call @code{planner-registry-show}: it will open a new buffer
3034 displaying the files (in a muse links format) where a link to this
3035 e-mail has been added.
3037 @subheading Options
3039 @file{planner-registry} defines the following options.
3041 @defopt planner-registry-file
3042 The file where @file{planner-registry} stores its URL registry.
3043 @end defopt
3045 @defopt planner-registry-min-keyword-size
3046 The minimum size for keywords.
3047 @end defopt
3049 @defopt planner-registry-max-keyword-size
3050 The maximum size for keywords.
3051 @end defopt
3053 @defopt planner-registry-max-number-of-keywords
3054 The maximum number of keywords.
3055 @end defopt
3057 @defopt planner-registry-ignore-keywords
3058 A list of keywords to ignore.
3059 @end defopt
3061 @defopt planner-registry-show-level
3062 Level used by the @code{planner-registry-show} function.
3063 0 means that this function shows only exact matches.
3064 1 means that this function also shows descriptive matches.
3065 2 (or more) means that this function also shows fuzzy matches.
3066 @end defopt
3068 @node planner-zoom, , planner-registry, Task Reports and Overviews
3069 @comment  node-name,  next,  previous,  up
3070 @section planner-zoom
3071 @cindex @file{planner-zoom.el}, using
3072 @cindex view, weekly
3073 @cindex view, quarterly
3074 @cindex view, monthly
3075 @cindex view, yearly
3077 When assessing where you stand in relation to the tasks you have set
3078 out for yourself, you might want a way to survey those tasks in groups
3079 divided by time periods, like by the week or by the month. You could
3080 create all of these overview pages by hand, but if you like to have
3081 this kind of overview frequently, you might find manually creating
3082 such pages to be tedious and time consuming.
3084 @file{planner-zoom} is an optional module designed to make it easy to
3085 view your task information grouped by year, quarter, month, week or
3086 day.
3088 To install this module, just load it in your @file{.emacs} (or
3089 @file{_emacs}):
3091 @example
3092 (require 'planner-zoom)
3093 @end example
3095 This module will recognize planner pages named according to the
3096 following scheme:
3098 @table @asis
3100 @item year view
3101 @file{2006.Year}
3103 @item quarter view
3104 @file{2006.Quarter2}
3106 @item month view
3107 @file{2006.January}
3109 @item week view
3110 @file{2006.January.Week3}
3112 @item day view
3113 @file{2006.01.02}
3115 @end table
3117 @subheading Keybindings
3119 This module also adds key bindings that you can use when looking at a
3120 Planner page to easily jump between the different time-period views.
3122 @table @kbd
3124 @item S-up
3125 Move to the view corresponding to the time period one step larger than
3126 the current one. For example, it moves from the weekly view to the
3127 monthly view. It calls @code{planner-zoom-iup}.
3129 @item S-down 
3130 Move to the view corresponding to the time period one step smaller
3131 than the current one. For example, it moves from the weekly view to
3132 the daily view. It calls @code{planner-zoom-idown}.
3134 @item S-left
3135 Stay in the same time-period view as the current one, but move one
3136 interval earlier. For example, it moves from @file{2006.January.Week3}
3137 to @file{2006.January.Week2}. It calls @code{planner-zoom-iprev}.
3139 @item S-right
3140 Stay in the same time-period view as the current one, but move one
3141 interval later. For example, it moves from @file{2006.January.Week3}
3142 to @file{2006.January.Week4}. It calls @code{planner-zoom-inext}.
3144 @end table
3146 @subheading Example usage
3148 Look at the page named @file{2006.January} and then hit @kbd{S-down}
3149 which will show @file{2006.January.Week1}. Then hit @kbd{S-left} and
3150 @kbd{S-right} to look at @file{2006.January.Week2},
3151 @file{2006.January.Week3}, etc.
3153 @subheading Advanced tips and options
3155 You can use any prefix argument with @code{planner-zoom-iup} and
3156 @code{planner-zoom-idown} to have the new view display in a window
3157 other than the current one. This also works with a nonnumeric prefix
3158 argument and @code{planner-zoom-inext} or @code{planner-zoom-iprev}.
3159 For these two functions, a numeric prefix will specify the number of
3160 intervals to move.
3162 If you don't like the default patterns for naming the time-period view
3163 pages, you can change them by customizing @code{planner-zoom-regexps}.
3165 Some people believe weeks start with Sunday, and some believe they
3166 start with Monday. To accommodate both of these colliding worldviews,
3167 @code{planner-zoom-first-day-of-week} can be customized. Its default
3168 value is @samp{1}, which is Monday. If you would prefer Sunday, change
3169 it to @samp{0}. The month to which a week belongs is the month in
3170 which the first day of the week falls.
3172 @subheading Command reference
3174 @defun planner-zoom-iup name other-window
3175 Move to the next higher level in the hierarchy. With a prefix
3176 argument, show the desired page in the other window.
3177 @end defun
3179 @defun planner-zoom-idown name other-window
3180 Move to the next lower level in the hierarchy. If the current date is
3181 within the higher-level time range, zoom to the lower level time range
3182 that also contains today. Otherwise, just go to the first lower-level
3183 time range. With a prefix argument, show the desired page in the other
3184 window.
3185 @end defun
3187 @defun panner-zoom-inext name num other-window
3188 Move to the next time range at the same level in the hierarchy. With a
3189 numeric prefix argument, move by that number of time ranges. With a
3190 non-numeric prefix argument, show the desired page in the other window.
3191 @end defun
3193 @defun planner-zoom-iprev name num other-window
3194 Move to the previous time range at the same level in the hierarchy.
3195 With a numeric prefix argument, move by that number of time ranges.
3196 With a non-numeric prefix argument, show the desired page in the other
3197 window.
3198 @end defun
3200 @node More about Notes, Making Files Pretty, More about Tasks, More about Planner
3201 @section More about Notes
3202 @cindex notes, more about
3204 Planner by default organizes the notes on a planner page so that
3205 the most recent note is first. Each note is numbered, with the oldest
3206 note labeled @samp{.#1}. If you would like to reverse this behavior,
3207 look at @kbd{C-h v planner-reverse-chronological-notes}.
3209 Notes are associated with day pages, but can also be associated with
3210 plan pages when they are created.  A linked note looks like this:
3212 @example
3213 .#1 Headline (LinkedNote#1)
3214 Text
3215 @end example
3217 You can jump to the linked note with
3218 @command{planner-jump-to-linked-note}.
3220 Deleting a note can be dangerous, as the notes are automatically
3221 numbered.  Removing a note could break links in other pages.
3223 @subheading Functions
3225 @defun planner-create-note page
3226 Create a note to be remembered in @var{page} (today if @var{page} is
3227 nil).  If @code{planner-reverse-chronological-notes} is non-nil, create
3228 the note at the beginning of the notes section; otherwise, add it to
3229 the end.  Position point after the anchor.
3230 @end defun
3232 @defun planner-create-note-from-task
3233 Create a note based on the current task and update the current task to
3234 link to the note.
3235 @end defun
3237 @defun planner-renumber-notes
3238 Update note numbering.
3239 @end defun
3241 @defun planner-jump-to-linked-note note-info
3242 Display the note linked to by the current note or @var{note-info} if
3243 non-nil.
3244 @end defun
3246 @defun planner-search-notes regexp limit
3247 Return a buffer with all the notes returned by the query for
3248 @var{regexp}.  If called with a prefix argument, prompt for
3249 @var{limit} and search days on or after @var{limit}.
3250 @end defun
3252 The following sections include instructions for displaying,
3253 manipulating, and navigating your notes efficiently.
3255 @menu
3256 * Using Allout Mode::           Quickly navigating your notes
3257 * <notes>::                     Note headlines
3258 * <past-notes>::                Index of past notes
3259 * Note Indices::                planner-notes-index.el
3260 @end menu
3262 @node Using Allout Mode, <notes>, More about Notes, More about Notes
3263 @subsection Using Allout Mode
3264 @cindex Allout mode
3265 @cindex notes, navigating
3266 @cindex notes, formatting
3267 @cindex notes, displaying
3269 The format of the notes in Planner works well with Allout mode, which
3270 provides helpful commands for navigating and formatting outlines. You
3271 can, for example, hide the bodies of all the notes on a page so you can
3272 see just their headlines. You can also jump easily from headline to
3273 headline, skipping over the bodies in between.
3275 The commands for using Allout mode vary depending on which Emacs
3276 version you are using. In either case, type @kbd{M-x load-library
3277 @key{RET} allout @key{RET}} to start. If you are using Emacs 22 or
3278 later, type @kbd{M-x allout-mode @key{RET}}. If you are using an
3279 earlier version of Emacs, type @kbd{M-x outline-mode @key{RET}}.
3281 The exact commands then available to you differ depending on your
3282 Emacs version, but you can view the commands and their keybindings by
3283 typing @kbd{C-h m}. In Emacs 22 or later, they will start with
3284 @command{allout-}, while in previous versions, they will start with
3285 @command{outline-}.
3287 For more information about using Allout mode, see @kbd{C-h f
3288 allout-mode @key{RET}}.
3290 @node <notes>, <past-notes>, Using Allout Mode, More about Notes
3291 @subsection <notes>
3293 @samp{<notes>} is replaced by a list of note headlines when the page
3294 is published. For example, the notes tag in the following example will
3295 be replaced by the two headlines when published. (@pxref{Publishing})
3297 @example
3298 <notes>
3300 * Notes
3302 .#1 This is a headline
3304 and this is body text
3306 .#2 This is another headline
3308 and this is more body text
3309 @end example
3311 @samp{<notes>} is useful if you want to provide a quick summary of
3312 blog entries at the top of your page. Just add it to your
3313 @code{planner-day-page-template}.
3315 @node <past-notes>, Note Indices, <notes>, More about Notes
3316 @subsection <past-notes>
3318 @samp{<past-notes>} is replaced by an index of note headlines.
3319 If @var{start} is specified, it lists notes starting from that date.
3320 If @var{directory} is specified, you can index notes in another
3321 planner directory.
3323 @example
3324 All the notes I've taken in 2004:
3326 <past-notes start="2004.01.01" end="2004.12.31">
3327 @end example
3329 @node Note Indices,  , <past-notes>, More about Notes
3330 @comment  node-name,  next,  previous,  up
3331 @subsection Note Indices
3332 @cindex @file{planner-notes-index.el}, using
3333 @cindex notes, indexing
3335 Make sure that @file{planner-notes-index.el} is in your load path and
3336 add this to your @file{.emacs} (or @file{_emacs}):
3338 @example
3339 (require 'planner-notes-index)
3340 @end example
3342 Then you can use tags of the form:
3344 @example
3345 <planner-notes-index page="2004.03.02">
3346 <planner-notes-index from="2004.03.01" to="2004.03.31">
3347 <planner-notes-index limit="10">
3348 <planner-notes-index page="PlanPage">
3349 <planner-notes-index-month-table month="2004.03" limit="5">
3350 <planner-notes-index-month-table month="2004.03">
3351 @end example
3353 You can also use the following interactive functions:
3355 @code{planner-notes-index}
3356 @code{planner-notes-index-days}
3357 @code{planner-notes-index-weeks}
3358 @code{planner-notes-index-months}
3359 @code{planner-notes-index-years}    (wow!)
3361 These work based on the current date (date of current buffer, or today).
3363 If a single page is specified, this page is scanned for headlines
3364 of the form:
3366 @example
3367  .#1 Headline
3368 @end example
3370 The results are presented as a bulleted list.
3372 If @var{from} and @var{to} are specified, all date pages between them
3373 (inclusive) are scanned. If @var{from} is omitted, it is assumed to be
3374 the earliest entry.  If @var{to} is omitted, it is assumed to be the
3375 latest entry.
3377 If @var{recent} is specified, the list includes only that many recent
3378 headlines.  and the results are presented as a bulleted list.
3380 To customize presentation, you can write a function that generates
3381 the appropriate @code{<planner-notes-index>} tags. You can also use
3382 @code{planner-extract-note-headlines} in your own functions.
3384 @subheading Functions
3386 The following interactive functions are defined in
3387 @file{planner-notes-index.el}:
3389 @defun planner-notes-index &optional from to limit
3390 Display a clickable notes index. If called from a Lisp program,
3391 display only dates between @var{from} and @var{to}. With a prefix arg
3392 @var{limit}, display only that number of entries.
3393 @end defun
3395 @defun planner-notes-index-days days
3396 Display an index of notes posted over the past few @var{days}. The
3397 list ends with the day of the current buffer or @code{planner-today}.
3398 @end defun
3400 @defun planner-notes-index-weeks weeks
3401 Display an index of notes posted over the past few @var{weeks}. The
3402 list ends with the week of the current buffer or
3403 @code{planner-today}. Weeks start from Sunday.
3404 @end defun
3406 @defun planner-notes-index-months months
3407 Display an index of notes posted over the past few @var{months}. The
3408 list ends with the month of the current buffer or @code{planner-today}.
3409 @end defun
3411 @defun planner-notes-index-years years
3412 Display an index of notes posted over the past few @var{years}. The
3413 current year is included.
3414 @end defun
3416 @file{planner-notes-index.el} does not define any keybindings.
3419 @node Making Files Pretty, Annotations, More about Notes, More about Planner
3420 @section Making Files Pretty
3422 By default, planner does a little bit of fancy reformatting when you
3423 save a file. Tasks are sorted by priority (ABC) and status (_oP>XC) on
3424 day pages. On plan pages, tasks are sorted by priority (ABC), status
3425 (XC), and date. Undated tasks are sorted after dated tasks.
3427 @subheading Options
3429 @defopt planner-sort-tasks-key-function
3430 Control task sorting. Some options include
3431 @code{planner-sort-tasks-default-key},
3432 @code{planner-sort-tasks-basic}, @code{planner-sort-tasks-by-date}, and
3433 @code{planner-sort-tasks-by-link}.
3434 @end defopt
3436 @defopt planner-sort-undated-tasks-equivalent
3437 This option controls the behavior of task sorting on plan pages.  By
3438 default, the value @samp{9999.99.99} causes dated tasks to be listed
3439 before undated tasks.  To sort undated tasks before dated tasks,
3440 set this to a blank string.
3441 @end defopt
3443 @defopt planner-sort-tasks-automatically
3444 Non-nil means sort tasks whenever a planner file is saved.  On day
3445 pages, tasks are sorted by status.  On plan pages, they are sorted by
3446 status and date.  Sorting can take a while.
3447 @end defopt
3449 @defopt planner-renumber-tasks-automatically
3450 Non-nil means renumber tasks from 1 to N whenever a planner file is
3451 saved. This allows you to refer to tasks in previous day pages using
3452 anchors like @samp{2003.08.12#A1}. If you use this function, make sure
3453 @code{planner-use-task-numbers} is non-nil so that new tasks are created
3454 with task numbers.
3455 @end defopt
3457 @defopt planner-align-tasks-automatically
3458 Non-nil means align tasks whenever a planner file is saved.  This
3459 causes the status to line up in a neat column if you have less than
3460 100 tasks.
3461 @end defopt
3463 @defopt planner-renumber-notes-automatically
3464 Non-nil means renumber the notes. If most of your notes are only on
3465 one page, you might like seeing the notes renumbered if you delete a
3466 note in the middle. However, if you use a lot of cross-referencing,
3467 note renumbering will break those links.
3468 @end defopt
3470 @subheading Functions
3472 @defun planner-sort-tasks
3473 Sort tasks according to planner-sort-tasks-key-function. By default,
3474 sort tasks according to priority and position on day pages, and
3475 according to status, priority, date, and position on plan pages.
3476 @end defun
3478 @defun planner-renumber-tasks
3479 Update task numbering.
3480 @end defun
3482 @defun planner-align-tasks
3483 Align tasks neatly. You can add this to @code{write-file-functions} to
3484 have the tasks automatically lined up whenever you save.  For best
3485 results, ensure @code{planner-align-tasks} is run after
3486 @code{planner-renumber-tasks}.
3487 @end defun
3489 @defun planner-fix-tasks
3490 Sort, renumber and align tasks.
3491 @end defun
3493 @node Annotations, Interactive Lisp, Making Files Pretty, More about Planner
3494 @comment  node-name,  next,  previous,  up
3495 @section Annotations
3497 The context included when you create a task and the context included
3498 when you create a note are gained the same way. It sounds like black
3499 magic, but it turns out not to be.
3501 All that happens is, Planner has a list of functions,
3502 @code{planner-annotation-functions}. When you create a task from a
3503 buffer, or remember a note from a buffer, Planner goes through
3504 this list from top to bottom. The first one that returns true is the
3505 one it uses.
3507 For example, if you're in Wanderlust, and you hit the key you've bound
3508 to @code{planner-create-task-from-buffer}, it looks at this list and
3509 does something like this.  Is it an ERC buffer? No. Is it a BBDB
3510 buffer? No. Are we in w3m? No. Are we in Wanderlust? Yes. So this
3511 function succeeds. It stops searching and runs the annotation function
3512 for Wanderlust, which in this case finds out who the message is from
3513 and what the message ID of the message is. It then takes those and
3514 constructs a link back to that message, with a link title something
3515 like @samp{Email from Joe Blogs}.
3517 So, you've read the email from Joe Blogs. He's asked you to do
3518 something and you've hit your key to add that task to your list of
3519 things to do. So what you end up with is a description of the task,
3520 and a link back to what made you create the task in the first place.
3522 The same happens with remembering notes, except that it ends up in the
3523 @samp{* Notes} section of your page instead.
3525 @subheading Options
3527 To change the behavior of annotations, customize the following options:
3529 @defopt planner-annotation-functions
3530 A list of functions tried in order by
3531 @command{planner-create-task-from-buffer} and other functions that
3532 pick up context.  The first non-nil value returned is used as the
3533 annotation.  To cause an item to @strong{not} be annotated, return the
3534 empty string @samp{""}.
3535 @end defopt
3537 @defopt planner-annotation-strip-directory
3538 File links are usually generated with the full path to the file so
3539 that you can easily tell apart files with the same base name.  If
3540 @code{planner-annotation-strip-directory} is non-nil, though, only the
3541 base name of the file will be displayed.  For example, a link to
3542 @samp{/foo/bar/baz} will be displayed as @samp{baz} and hyperlinked to
3543 the file.
3544 @end defopt
3546 @defopt planner-annotation-use-relative-file
3547 If t, always use relative filenames.
3548 @code{planner-annotation-use-relative-file} can also be a function that
3549 takes the filename and returns non-nil if the link should be relative.
3550 Filenames are resolved relative to the first directory of your Planner
3551 project in @code{muse-project-alist}.  That is, the created link will be
3552 of the form @samp{../../somefile} instead of
3553 @samp{/absolute/path/to/file}.  This can be helpful if you publish your
3554 planner files to the Net and your directory structure ensures that
3555 relative links resolve the same from your Plan pages and their
3556 respective publishing directory.
3557 @end defopt
3559 @node Interactive Lisp, Publishing, Annotations, More about Planner
3560 @comment  node-name,  next,  previous,  up
3561 @section Interactive Lisp with planner-lisp.el
3562 @cindex Lisp functions, using with Planner
3563 @cindex interactive Lisp fuctions, using with Planner
3564 @cindex @file{planner-lisp.el}, using
3566 You can include interactive Lisp functions in your planner pages.
3568 First, you need @file{planner-lisp.el}. Put this in your @file{.emacs}
3569 (or @file{_emacs}):
3571 @example
3572 (require 'planner-lisp)
3573 @end example
3575 Then, add a link to the Lisp function to your page, like:
3577 @example
3579 [[lisp:/plan][Plan]]
3581 @end example
3583 This will be rendered as @samp{Plan}. Selecting the link will run the
3584 @code{plan} function interactively.
3586 You can also execute other Lisp expressions. For example:
3588 @example
3589 [[lisp:/(planner-goto (planner-expand-name "+7"))][Next week]]
3590 @end example
3592 @file{planner-lisp.el} does not provide any interactive functions or
3593 keybindings.
3595 @node Publishing, Experimental Functions, Interactive Lisp, More about Planner
3596 @section Publishing
3597 @cindex publishing
3599 You can publish your planner files to a variety of different formats.
3600 For example, you can publish your planner in HTML and put it on a
3601 normal web server. No special server support is required. This gives
3602 you an easy way to keep other people up to date on your tasks, keep a
3603 web log, or simply organize information.
3605 Published files are stored in the path specified by
3606 @code{muse-project-alist} for your Planner project. Just copy the
3607 contents of this directory to your web server, and you're all set! Of
3608 course, publishing is completely optional.
3610 Here are some more features related to publishing:
3612 @menu
3613 * Publishing Planner pages::    planner-publish.el
3614 * Publishing Calendars::        planner-calendar.el
3615 * Authz Access Restriction::    planner-authz.el
3616 * RSS Publication::             Sharing notes with planner-rss.el
3617 * iCal Task Publication::       Sharing tasks with planner-ical.el
3618 * RDF Publication::             planner-rdf.el
3619 @end menu
3621 @node Publishing Planner pages, Publishing Calendars, Publishing, Publishing
3622 @comment  node-name,  next,  previous,  up
3623 @subsection Publishing Planner pages
3624 @cindex publishing
3625 @cindex @file{planner-publish.el}, using
3627 Publishing works by providing Muse with the settings and environment for
3628 Planner publishing.
3630 First, make sure that you have set up a proper
3631 @code{muse-project-alist} (@pxref{Creating Your Planner}).
3633 Second, add:
3635 @example
3636 (require 'planner-publish)
3637 @end example
3639 to your @file{.emacs} (or @file{_emacs}).
3641 To publish your entire Planner project, hit @kbd{C-c C-p}
3642 (@code{muse-project-publish}). To publish just the current buffer, hit
3643 @kbd{C-c C-t} (@code{muse-publish-this-file}).
3645 To automatically publish files when you save them, add the following
3646 code to your @file{~/.emacs} (or @file{_emacs}):
3648 @example
3649 (eval-after-load "muse-mode"
3650   '(add-hook 'after-save-hook
3651             #'(lambda ()
3652                 (when (planner-derived-mode-p 'muse-mode)
3653                   (muse-project-publish nil)))
3654             nil t))
3655 @end example
3657 @subheading Styles provided
3659 The following publishing styles are available.
3661 @table @code
3663 @cindex publishing styles, planner-html
3664 @item planner-html
3665 Publish Planner pages to HTML.
3667 @cindex publishing styles, planner-xhtml
3668 @item planner-xhtml
3669 Publish Planner pages to XHTML.
3671 @cindex publishing styles, planner-xml
3672 @item planner-xml
3673 Publish Planner pages to XML.
3675 @end table
3677 @subheading Options provided
3679 The following options may be customized to enhance your publishing
3680 experience.
3682 @table @code
3684 @item planner-publish-markup-regexps
3685 List of markup rules for publishing Planner pages.
3687 @item planner-publish-markup-functions
3688 Specify which function to use for publishing different kinds of markup.
3690 @item planner-publish-markup-tags
3691 A list of custom HTML-like tags to recognize when publishing.
3693 @item planner-xml-markup-strings
3694 Strings that are inserted to publish XML markup.
3696 @item planner-xml-header
3697 Header used when publishing Planner XML files.
3698 This may be text or a filename.
3700 @item planner-xml-footer
3701 Footer used when publishing Planner XML files.
3702 This may be text or a filename.
3704 @item planner-html-markup-strings
3705 Strings that are inserted to publish HTML markup.
3707 @item planner-html-style-sheet
3708 CSS stylesheet elements used in Planner HTML and XHTML files.
3709 This can also be one or more @samp{<link>} tags.
3711 @item planner-html-header
3712 Header used when publishing Planner HTML files.
3713 This may be text or a filename.
3715 @item planner-html-footer
3716 Footer used when publishing Planner HTML files.
3717 This may be text or a filename.
3719 @item planner-xhtml-header
3720 Header used when publishing Planner XHTML files.
3721 This may be text or a filename.
3723 @item planner-xhtml-footer
3724 Footer used when publishing Planner XHTML files.
3725 This may be text or a filename.
3727 @item planner-html-inner-header
3728 Extra header section that can be embedded within
3729 @code{planner-html-header} and @code{planner-xhtml-header}.
3731 @item planner-html-inner-footer
3732 Extra header section that can be embedded within
3733 @code{planner-html-footer} and @code{planner-xhtml-footer}.
3735 @item planner-publish-prepare-regexps
3736 List of markup rules to apply before publishing a page with Planner.
3738 @item planner-publish-finalize-regexps
3739 List of markup rules to apply after publishing a page with Planner.
3741 @end table
3743 @node Publishing Calendars, Authz Access Restriction, Publishing Planner pages, Publishing
3744 @comment  node-name,  next,  previous,  up
3745 @subsection Publishing Calendars
3746 @cindex calendar, publishing
3747 @cindex @file{planner-calendar.el}, using
3749 To publish calendars in your day pages, it is necessary to do two steps.
3751 @itemize
3752 @item Add @code{(require 'planner-calendar)} to your configuration.
3753 @item Add a @samp{<calendar>} tag to either your header, footer, or
3754 @var{planner-day-page-template}, depending on where you want it to
3755 appear.
3756 @end itemize
3758 To display a calendar based on a different day (given here as DAYPAGE),
3759 use @code{<calendar page="DAYPAGE">}.
3761 To get arrows to previous and next months to show up, use
3762 @code{<calendar arrows="t">}.  The text in
3763 @var{planner-calendar-prev-month-button} and
3764 @var{planner-calendar-next-month-button} will be used for the arrows to
3765 the previous and next months, respectively.
3767 By default, Muse will not display the arrows properly, due to
3768 limitations in the special-escaping algorithm.  To work around this,
3769 remove the @samp{&} rule from @var{muse-xml-markup-specials}, or from
3770 @var{muse-html-markup-specials} if you are using the 3.02.6 version of
3771 Muse.
3773 It is also possible to create a symlink from the current day page to the
3774 page name specified by @var{planner-calendar-today-page-name}.  To
3775 accomplish this, add the following to your configuration.
3777 @example
3778 (eval-after-load "muse-publish"
3779   '(add-hook 'muse-after-publish-hook
3780              'planner-calendar-create-today-link))
3781 @end example
3783 @subheading Options
3785 @defopt planner-calendar-prev-month-button
3786 HTML text used for previous month buttons.
3787 @end defopt
3789 @defopt planner-calendar-next-month-button
3790 HTML text used for next month buttons.
3791 @end defopt
3793 @defopt planner-calendar-day-header-chars
3794 Number of characters to use for day column header names.
3795 @end defopt
3797 @defopt planner-calendar-today-page-name
3798 Default name for published today page link.
3799 @end defopt
3801 @subheading Functions
3803 @defun planner-calendar-create-today-link
3804 Add this function to @code{muse-after-publish-hook} to
3805 create a ``today'' soft-link to the newest published planner day page,
3806 on operating systems that support POSIX @command{ln}.
3807 @end defun
3809 @node Authz Access Restriction, RSS Publication, Publishing Calendars, Publishing
3810 @comment  node-name,  next,  previous,  up
3811 @subsection Authz Access Restriction
3812 @cindex @file{planner-authz.el}, using
3813 @cindex Mason, restricting portions with
3814 @cindex access, restricting
3816 @file{planner-authz.el} was written by Andrew J. Korty in order to
3817 allow the easy restriction of portions of published pages.  It uses
3818 the HTML::Mason module available on CPAN
3819 (@url{http://www.cpan.org}).  Setting up HTML::Mason is
3820 outside the scope of this document.  Make sure that it works before
3821 trying out @file{planner-authz.el}.
3823 @file{planner-authz.el} modifies the behavior of
3824 @command{muse-project-publish} so that published pages follow access
3825 modifiers.
3827 This library lets you publish your planner pages while controlling
3828 access to certain portions of them to users you specify.  When you
3829 load this library, you gain access to two additional markup directives
3830 to use in your planner pages.  The @samp{<authz>} tag lets you
3831 restrict access to arbitrary content as follows:
3833 @example
3834 Here is a sentence everyone should see.  This sentence also
3835 contains no sensitive data whatsoever.  <authz users="ajk">This
3836 sentence, however, talks about my predilection for that French
3837 vanilla instant coffee that comes in the little tin, and I'm
3838 embarrassed for anyone else to know about that.</authz> And
3839 here's some more perfectly innocuous content.
3840 @end example
3842 You can use @samp{<authz>} tags to mark up entire paragraphs, tasks,
3843 notes, and anything else.  The tags are replaced with Mason code in
3844 the published pages.
3846 The @samp{#authz} directive restricts access to an entire page.  A Mason
3847 call is added to this page to generate a 403 error when someone not
3848 listed tries to access it.  Any notes or tasks on a
3849 @samp{#authz}-protected page are also wrapped in Mason code on linked
3850 pages. To add a @samp{#authz} directive to a Muse page, place
3851 @samp{#authz} followed by a space-delimited list of users on one
3852 line. For example:
3854 @example
3855 #authz ajk sacha
3856 @end example
3858 @subheading Getting started
3860 Add the following to your .emacs file to cause @kbd{M-x
3861 muse-project-publish} to automatically use planner-authz features.
3863 @example
3864 (require 'planner-authz)
3865 @end example
3867 @subheading Diary markup
3869 If your pages have a section with diary entries maintained by
3870 planner-appt.el (or by any other means), you can control access to these
3871 entries.  First, customize @code{planner-section-tagnames} to map your
3872 diary section ("* Schedule", in this example) to a tag called
3873 "diary-section".  An example follows.
3875 @example
3876 (add-to-list 'planner-section-tagnames '("Schedule" . "diary-section"))
3877 @end example
3879 If the name of your diary section is "* Diary", you will not need to
3880 customize @code{planner-section-tagnames} by default.
3882 Then make sure the diary entries you want restricted contain a
3883 corresponding plan page name in parentheses, as in the following
3884 example.
3886 @example
3887 10:00 10:30 Meeting with boss (WorkStuff)
3888 @end example
3890 @subheading Options
3892 @defopt planner-authz-project-default
3893 Default access list for project pages (not day pages).  If a given
3894 project page doesn't contain a @samp{#authz} tag, it will receive the
3895 access list defined here.  If this variable is nil, all users will be
3896 allowed to view the page.  No corresponding variable is provided for
3897 day pages because it doesn't seem like you'd ever want to control
3898 access based on what day it was.  (But I will accept patches. :) Notes
3899 and tasks referencing pages without @samp{#authz} tags will also be
3900 restricted to the users listed here.
3901 @end defopt
3903 @defopt planner-authz-day-note-default
3904 Default access list for notes on day pages not associated with
3905 any project.  There is way to set a default for notes on project
3906 pages for the reason above; they would only be associated with
3907 date pages anyway.
3908 @end defopt
3910 @defopt planner-authz-day-task-default
3911 Same as @kbd{planner-authz-day-note-default}, but for tasks.
3912 @end defopt
3914 @subheading Functions
3916 @defun planner-authz-publish-index
3917 Publish an index for the planner marked up with Mason code.
3918 Only those links to pages which the remote user is authorized to
3919 access will be shown.
3920 @end defun
3922 @node RSS Publication, iCal Task Publication, Authz Access Restriction, Publishing
3923 @comment  node-name,  next,  previous,  up
3924 @subsection RSS Publication
3925 @cindex @file{planner-rss.el}, using
3926 @cindex notes, RSS
3927 @cindex RSS
3929 @file{planner-rss.el} allows you to publish your notes in the RSS 2.0
3930 XML format for blog syndication. You will also want to customize the
3931 following variables:
3933 To manually add the current note to all the matching RSS feeds, invoke
3934 @command{planner-rss-add-note}. You can specify a filename with the
3935 universal prefix, like this: @kbd{C-u M-x planner-rss-add-note}.
3937 If you use the @file{remember-planner.el} module to create notes, you
3938 can automatically publish new notes to RSS feeds by adding the
3939 following code to your @file{.emacs} (or @file{_emacs}).
3941 @example
3942 (add-to-list 'remember-planner-append-hook 'planner-rss-add-note t)
3943 @end example
3945 @subheading Options
3947 @defopt planner-rss-base-url
3948 Base absolute URL for published blog entries. Should include trailing
3949 @samp{/}.
3950 @end defopt
3952 @defopt planner-rss-category-feeds
3953 Rules for automatic categorization of posts and publishing to RSS
3954 files. A blog entry is matched against each condition. If it matches
3955 the regular expression or the function returns a non-nil value, the
3956 blog entry is copied into the specified file.
3957 @end defopt
3959 @defopt planner-rss-feed-limits
3960 A list of regular expressions that match feed filenames and the size
3961 and item limits for feeds that match. For example, you can use
3962 @samp{(("." nil 10))} to ensure that all feeds are limited to the 10
3963 most recent items.
3964 @end defopt
3966 @subheading Functions
3968 @file{planner-rss.el} defines the following interactive functions:
3970 @defun planner-rss-add-note @var{feed}
3971 Export the current note using @code{planner-add-item}. If @var{feed}
3972 is specified, add the entry to the specified file. Else, add the entry
3973 to all matching RSS feeds specified by
3974 @code{planner-rss-category-feeds}.
3975 @end defun
3977 @node iCal Task Publication, RDF Publication, RSS Publication, Publishing
3978 @comment  node-name,  next,  previous,  up
3979 @cindex @file{planner-ical.el}, using
3980 @subsection iCal Publication
3982 iCal is an Internet Engineering Task Force (IETF) standard for
3983 calendaring and scheduling. @uref{http://www.ietf.org/rfc/rfc2445.txt}
3985 You can export your tasks to the iCal format using
3986 @file{planner-ical}. Add @code{(require 'planner-ical)} to your
3987 @file{~/.emacs}. Then you can use @kbd{M-x planner-ical-export-page}
3988 to display the iCal equivalent of tasks on a page, which you can then
3989 save to a file.
3991 To export today's tasks to a file in your publishing directory, add
3992 the following to your @file{~/.emacs}.
3994 @example
3995 (planner-ical-export-file
3996  (planner-today)
3997  (expand-file-name
3998    "tasks.ics"
3999    (muse-style-element :path (car (cddr (muse-project planner-project))))))
4000 @end example
4002 @subheading Functions
4004 @defun planner-ical-export-page page &optional file
4005 Export PAGE's tasks in the iCal format.
4006 If FILE is non-nil, results are saved to that file.
4007 If FILE is nil, results are displayed in a `planner-ical-export-buffer'.
4008 @end defun
4010 @defun planner-ical-export-this-page
4011 Display the tasks on the current page in iCal format.
4012 @end defun
4014 @node RDF Publication,  , iCal Task Publication, Publishing
4015 @comment  node-name,  next,  previous,  up
4016 @subsection RDF Publication
4017 @cindex @file{planner-rdf.el}, using
4018 @cindex RDF, publishing to
4020 Put planner-rdf.el in a directory that is in your Emacs load-path and
4021 the following into your ~/.emacs file:
4023 @example
4024 (require 'planner-rdf)
4025 (eval-after-load "muse-publish"
4026   '(progn
4027      (add-hook 'muse-after-publish-hook
4028                'planner-rdf-publish-file)
4029      (add-hook 'muse-after-publish-hook
4030                'planner-rdf-publish-index)))
4031 @end example
4033 @menu
4034 * Publishing with planner-rdf::  
4035 * planner-rdf Tags::            
4036 * planner-rdf Usage Examples::  
4037 @end menu
4039 @node Publishing with planner-rdf, planner-rdf Tags, RDF Publication, RDF Publication
4040 @subsubsection Publishing with planner-rdf
4042 Planner-rdf is now included in the normal Planner publishing process.
4043 Pressing @key{C-p} will create a .owl and a .rdf file for every planner
4044 file. Additionally it creates an index, @file{index.rdf}.
4046 By default all generated files will be stored in the normal Planner
4047 publishing directory, where the HTML files end up. If you would ike to
4048 change that, set the variable @code{planner-rdf-directory} to the desired
4049 location.
4051 The generated files:
4053 @itemize
4054 @item
4055 @file{index.rdf} - a collection with pointers to the
4056 @file{<plan-page>.rdf} files.
4057 @item
4058 @file{<plan-page>.rdf} - contains Dublin Core metadata about the files
4059 related to the current Planner page. Currently it contains metadata
4060 about the source file, the Emacs plan page, the generated HTML page, and
4061 the generated OWL file.
4062 @item
4063 @file{<plan-page>.owl} - contains task and note data from the Planner
4064 file. Task information is stored completely. For notes, the note
4065 headline is stored.
4066 @end itemize
4068 @node planner-rdf Tags, planner-rdf Usage Examples, Publishing with planner-rdf, RDF Publication
4069 @subsubsection planner-rdf Tags
4071 Besides the factual information, e.g. the task status or description,
4072 planner-rdf extracts links (in the format @samp{[[...][...]]} or
4073 @samp{[[...]]}) and tags (@samp{@{@{...:...}@}@}) from tasks and notes
4074 (including the notes text). Links and tags provide context for the plan
4075 elements and so are stored and linked with the containing elements.
4077 Links point to locations that can be used to enrich the information in
4078 the Planner pages (e.g, by retrieving data from them and adding it),
4079 tags -- like the one for the task ids @samp{@{@{Tasks:198@}@}} -- can be
4080 used to express abstract qualities. Some examples:
4082 @itemize
4083 @item
4084 an @samp{@{@{audience:myteam@}@}} tag, can be used to restrict
4085 publishing of items to a certain user group;
4086 @item a @samp{@{@{lang:de@}@}} tag, signifying the language of the text;
4087 @item
4088 a @samp{@{@{location:Hamburg@}@}} tag, can be used to make geographic
4089 reference to an entity that is not stored in your address book, bbdb.
4090 @end itemize
4092 What tags to use is up to the user. Planner-rdf makes no assumptions
4093 about them, it just extracts and stores them. Only the applications
4094 using the data know what to do with them.
4096 @node planner-rdf Usage Examples,  , planner-rdf Tags, RDF Publication
4097 @subsubsection Usage Examples
4099 Report generation with OpenOffice
4101 The Perl file @file{this-week.pl}
4102 (@url{http://www.rainervolz.de/planner-rdf/this-week.pl}) creates a
4103 simple report for the current week. The script extracts task and note
4104 information from the generated OWL files and inserts it into a simple
4105 OpenOffice Writer document. Nothing fancy, just a proof of concept, to
4106 show how planner-rdf can be used to integrate Planner Mode with other
4107 applications.
4109 Besides Perl and OpenOffice you'll need the Redland RDF Application
4110 Framework (@url{http://www.redland.opensource.ac.uk/}). It is used to
4111 process the RDF data. Redland is small, but powerful, and available
4112 for many platforms and languages.
4114 As an example the application loads the RDF data each time it is run.
4115 In the real world you probably would use Redland to store the Planner
4116 data in a database, to save the loading step each time you access the
4117 data.
4119 Importing Planner data into Protege
4121 Protege is a popular ontology editor and knowledge management
4122 application. A simple way to import data into it, is to provide a OWL
4123 file that contains the data as well as the schema. To do this:
4125 @itemize
4126 @item
4127 Use @file{planner2protege.pl}
4128 (@url{http://www.rainervolz.de/planner-rdf/planner2protege.pl}) to
4129 combine all OWL files into a single one.
4130 @item
4131 Use CWM (@url{http://www.w3.org/2000/10/swap/doc/cwm.html}) to combine
4132 schema and data, with @code{python cmw --rdf planner-rdf.owl
4133 planner-data.owl --think --rdf >planner2.owl}
4134 @end itemize
4136 Not the most straightforward process, but it works. The resulting file,
4137 here planner2.owl, can then be loaded into Protege.
4139 @node Experimental Functions,  , Publishing, More about Planner
4140 @comment  node-name,  next,  previous,  up
4141 @section Experimental Functions
4142 @cindex @file{planner-experimental.el}, using
4143 @cindex experimental functions, Planner
4145 These functions are experimental. This means that they may not do
4146 exactly what you expect them to do, so keep backups, be careful, and
4147 don't blame us.
4149 To use these functions, make sure that @file{planner-experimental.el} is
4150 in your load path, and add this to your @file{.emacs} (or
4151 @file{_emacs}):
4153 @example
4154 (require 'planner-experimental)
4155 @end example
4157 @subheading Functions
4159 @file{planner-experimental.el} defines the following interactive
4160 functions:
4162 @defun planner-search-notes-next-match
4163 Jump to the next matching entry.  Call after
4164 @code{planner-search-notes}.
4165 @end defun
4167 @defun planner-search-notes-previous-match
4168 Jump to the previous matching entry.  Call after
4169 @code{planner-search-notes}.
4170 @end defun
4172 @defun planner-remove-duplicates
4173 Remove duplicate tasks.
4174 @end defun
4176 @file{planner-experimental.el} does not define any keybindings.
4178 @node Managing Your Information, Advanced Configuration, More about Planner, Top
4179 @comment  node-name,  next,  previous,  up
4180 @chapter Managing Your Information
4182 Planner can be integrated with other Emacs and even some non-Emacs
4183 programs by loading additional modules. You can pick and choose from
4184 these modules, choosing those that work with programs you use and that
4185 produce information you want to have included in your Planner pages.
4187 @menu
4188 * E-mail::                      Linking notes and tasks to messages
4189 * Scheduling and Time::         Tracking appointments and where your time goes
4190 * Finances::                    Display your account balances and more
4191 * Contacts and Conversations::  BBDB and ERC
4192 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
4193 * Tracking Development::        
4194 @end menu
4196 @node E-mail, Scheduling and Time, Managing Your Information, Managing Your Information
4197 @comment  node-name,  next,  previous,  up
4198 @section E-mail
4200 Planner can work together with several different Emacs e-mail
4201 clients. If you load the appropriate module for the e-mail client you
4202 use, then your notes and tasks can be annotated with information
4203 pointing to the specific e-mail message you were reading when you
4204 created that note or task. When you are looking at the note or task, you
4205 will be able to jump straight to that message.
4207 @menu
4208 * Unix mail::                   Unix mailboxes: planner-unix-mail.el              
4209 * Gnus::                        Gnus mail and news reader: planner-gnus.el
4210 * VM::                          VM mail reader: planner-vm.el
4211 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
4212 * MH-E::                        MH-E mail reader: planner-mhe.el
4213 * Rmail::                       Rmail: planner-rmail.el
4214 @end menu
4217 @node Unix mail, Gnus, E-mail, E-mail
4218 @comment  node-name,  next,  previous,  up
4219 @subsection Unix mail
4220 @cindex @file{planner-unix-mail.el}, using
4221 @cindex mbox, using Planner with
4222 @cindex Unix mail, using Planner with
4223 @cindex mail client, using Planner with
4225 This module supports links from any kind of Unix mailbox (mbox). To
4226 use this module, make sure that @file{planner-unix-mail.el} is in your
4227 load path and add this to your @file{.emacs} (or @file{_emacs}):
4229 @example
4230 (require 'planner-unix-mail)
4231 @end example
4233 Unix mail URLs are of the form:
4235 @example
4236 ;; mail://PATH/TO/INBOX/message-id
4237 @end example
4239 Annotations will be of the form:
4241 @smallexample
4242 [[mail://PATH/TO/INBOX/E1AyTpt-0000JR-LU%40sacha.ateneo.edu][E-mail from Sacha Chua]]
4243 @end smallexample
4245 @file{planner-unix-mail.el} does not define any interactive functions or
4246 create any new keybindings.
4248 @node Gnus, VM, Unix mail, E-mail
4249 @comment  node-name,  next,  previous,  up
4250 @subsection Gnus
4251 @cindex Gnus, using Planner with
4252 @cindex mail client, using Planner with, Gnus
4253 @cindex @file{planner-gnus.el}, using
4255 To use this module, make sure that it is in your load path and put
4256 this in your @file{.emacs} (or @file{_emacs}):
4258 @example
4259 (require 'planner-gnus)
4260 (planner-gnus-insinuate)
4261 @end example
4263 With this module loaded, when you create tasks from Gnus summary or
4264 message buffers, the tasks will be annotated with information from the
4265 message you were looking at when you created each task. A link will also
4266 be created on your planner page that you can select in order to return
4267 to the message.
4269 So, the created task will look something like this:
4271 @smallexample
4272 #A34 _ Send writing to publishme.com from
4273 [[gnus://alt.books.beatgeneration/<Ifo5c.24632$F9.9567@@nwrddc01.gnilink.net>][E-Mail
4274 from editor@@verizon.net]] @{@{Tasks:71@}@} ([[Writing]])
4275 @end smallexample
4277 This module also binds @kbd{C-c C-t} in the Gnus summary and article
4278 views to the command to create a new task.
4280 @file{planner-gnus.el} does not define any interactive functions.
4282 For more information about Gnus, see @inforef{Top, The Gnus Newsreader,
4283 gnus}.
4285 @node VM, Wanderlust, Gnus, E-mail
4286 @comment  node-name,  next,  previous,  up
4287 @subsection VM
4288 @cindex VM, using Planner with
4289 @cindex mail client, using Planner with, VM
4290 @cindex @file{planner-vm.el}, using
4292 To use this module, make sure that @file{planner-vm.el} is in your load
4293 path and add this to your @file{.emacs} (or @file{_emacs}):
4295 @example
4296 (require 'planner-vm)
4297 @end example
4299 VM URLs are of the form:
4301 @example
4302 vm://path/to/inbox/message-id
4303 @end example
4305 Annotations will be of the form:
4307 @smallexample
4308 [[vm://home/test/INBOX/<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4309 @end smallexample
4311 @file{planner-vm.el} does not define any interactive functions or
4312 keybindings.
4315 @node Wanderlust, MH-E, VM, E-mail
4316 @comment  node-name,  next,  previous,  up
4317 @subsection Wanderlust
4318 @cindex Wanderlust, using Planner with
4319 @cindex mail client, using Planner with, Wanderlust
4320 @cindex @file{planner-wl.el}, using
4322 To use this module, make sure that @file{planner-wl.el} is in your
4323 load path and add this to your @file{.emacs} (or @file{_emacs}):
4325 @example
4326 (require 'planner-wl)
4327 @end example
4329 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4330 Wanderlust summary or message buffers, the task will be created with
4331 the correct annotation.
4333 @subheading Keys
4335 To add keybindings to Wanderlust, call:
4337 @example
4338 (planner-wl-insinuate)
4339 @end example
4341 This binds @kbd{C-c C-t} to @command{planner-create-task-from-buffer}.
4343 @node MH-E, Rmail, Wanderlust, E-mail
4344 @comment  node-name,  next,  previous,  up
4345 @subsection MH-E
4346 @cindex MH-E, using Planner with
4347 @cindex mail client, using Planner with, MH-E
4348 @cindex @file{planner-mhe.el}, using
4350 To use this module, make sure that @file{planner-mhe.el} is in your
4351 load path and add this to your @file{.emacs} (or @file{_emacs}):
4353 @example
4354 (require 'planner-mhe)
4355 @end example
4357 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4358 MH-E summary or message buffers, the task will be created with
4359 the correct annotation.
4361 @file{planner-mhe} does not define any interactive functions.
4363 @node Rmail,  , MH-E, E-mail
4364 @comment  node-name,  next,  previous,  up
4365 @subsection Rmail
4366 @cindex Rmail, using Planner with
4367 @cindex mail client, using Planner with, Rmail
4368 @cindex @file{planner-rmail.el}, using
4370 To use this module, make sure that @file{planner-rmail.el} is in your
4371 load path and add this to your @file{.emacs} (or @file{_emacs}):
4373 @example
4374 (require 'planner-rmail)
4375 @end example
4377 Rmail URLs are of the form:
4379 @example
4380 rmail://message-id
4381 @end example
4383 Annotations will be of the form:
4385 @smallexample
4386 [[rmail://<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4387 @end smallexample
4389 @file{planner-rmail.el} does not define any interactive functions or
4390 create any new keybindings.
4392 For more information about Rmail, see @inforef{Rmail, Reading Mail With
4393 Rmail, Emacs}.
4395 @node Scheduling and Time, Finances, E-mail, Managing Your Information
4396 @comment  node-name,  next,  previous,  up
4397 @section Scheduling and Time
4399 @menu
4400 * Diary::                       Using the Emacs diary: planner-diary.el
4401 * Appointments::                Appointments in plan pages: planner-appt.el
4402 * Timeclock::                   Time tracking: planner-timeclock.el
4403 * schedule.el::                 Project completion: planner-schedule.el
4404 @end menu
4407 @node Diary, Appointments, Scheduling and Time, Scheduling and Time
4408 @comment  node-name,  next,  previous,  up
4409 @subsection Diary
4410 @cindex diary, using Planner with
4411 @cindex @file{planner-diary.el}, using
4413 If you use Emacs's diary feature, Planner-Diary could be helpful for
4414 you. It puts all diary entries for the current day in the @samp{*
4415 Diary} section of your day plan page. This section is updated every
4416 time you display the file in Emacs. By default the diary section of
4417 past pages is not updated; it's pretty unlikely that you want to add
4418 new diary entries for the past. (@pxref{Diary, , , Emacs, GNU Emacs
4419 Manual})
4421 If you want to use @file{planner-diary.el}, make sure the file is in
4422 your load path and add this to your @file{.emacs} (or @file{_emacs}):
4424 @example
4425 (require 'planner-diary)
4426 @end example
4428 @file{planner-diary.el} needs @command{fancy-diary-display}.  To use
4429 @command{fancy-diary-display}, add this to your @file{.emacs} (or
4430 @file{_emacs}):
4432 @example
4433 (add-hook 'diary-display-hook 'fancy-diary-display)
4434 @end example
4436 You can use Planner-Diary in two different ways:
4438 @enumerate
4440 @item
4441 If you want the saved files to contain your entries and not just a line
4442 of Lisp, add the following lines to your @file{.emacs} (or @file{_emacs}):
4444 @example
4445 (setq planner-diary-use-diary t)
4446 (planner-diary-insinuate)
4447 @end example
4449 You should also customize or set @code{planner-day-page-template} to
4450 include a @samp{* Diary}:
4452 @example
4453 (setq planner-day-page-template
4454  "* Tasks\n\n\n* Schedule\n\n\n* Diary\n\n\n* Notes")
4455 @end example
4457 @kbd{C-c C-e} updates the diary sections.  @kbd{C-u C-c C-e} forces an
4458 update---it inserts the diary section for the day, even if the day is in
4459 the past or if there is no @samp{Diary} section in the buffer.
4461 @item
4462 (GNU EMACS ONLY) You can put the following line of Lisp code in your
4463 day plan pages to display your diary entries:
4465 @example
4466 <lisp>(planner-diary-entries-here)</lisp>
4467 @end example
4469 You can do this automatically for all day plan pages:
4471 @smallexample
4472 (setq planner-day-page-template
4473   "* Tasks\n\n\n* Diary\n\n<lisp>(planner-diary-entries-here)</lisp>
4474 \n* Notes")
4475 @end smallexample
4477 When you open a day plan page outside Emacs, you will see the line of
4478 Lisp code and not your diary entries.
4480 @end enumerate
4482 If you want to see your diary entries for more than just one day, set
4483 @code{planner-diary-number-of-days} accordingly.  This works for either
4484 of the two approaches.
4486 These diary sections are only intended for display. Editing them will
4487 not affect your diary file. If you want to add entries to your diary,
4488 you should use the usual Emacs diary and calendar methods for doing
4489 that, or call @code{planner-diary-add-entry}.
4491 If you want to use the Cal-Desk package, simply follow the instructions
4492 in @file{cal-desk.el}.  If you get the Cal-Desk layout from the Calendar
4493 buffer, you get it in the day plan buffer, too.
4495 If you use Planner-Diary, you might consider using the Calendar support
4496 of Planner. (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) To get
4497 Calendar integration, add this to your @file{.emacs} (or @file{_emacs}):
4499 @example
4500 (planner-insinuate-calendar)
4501 @end example
4503 If @code{planner-diary-create-section-flag} is non-nil, sections are
4504 always inserted if necessary.
4506 @cindex planner2diary.py, using
4507 If you want to import Planner entries into your Diary file, the
4508 @file{planner2diary.py} script will accomplish this for you.  To use it,
4509 execute @code{planner2diary.py} on the command line, specifying your
4510 planner directory as the first and only argument.
4512 @subheading Options
4514 @defopt planner-diary-create-section-flag
4515 Non-nil means create the requested diary sections if they do not
4516 exist. By default, planner-diary tries to create the section. If you
4517 want more control over your pages, you can set this to nil. Trying to
4518 write a diary section to a page that does not have it yet will then
4519 result in an error.
4520 @end defopt
4522 By default, planner-diary lists only the appointments you have on that
4523 day. If you want the date headers included even when showing the diary
4524 entries for a single day, set planner-diary-include-all-output to
4525 non-nil.
4527 @defopt planner-diary-include-all-output-flag
4528 Non-nil means don't omit any data when copying diary entries into day
4529 pages.
4530 @end defopt
4532 @subheading Functions
4534 @file{planner-diary.el} defines the following interactive functions:
4536 @defun planner-diary-add-entry date time text
4537 Prompt for a diary entry to add to @code{diary-file} on @var{date}.
4538 Uses @code{planner-annotation-functions} to make hyperlinks.
4539 @var{time} and @var{text} are used in the description."
4540 @end defun
4542 @defun planner-diary-insert-diary force
4543 Insert the fancy diary for the day into the day plan file. If
4544 @var{force} is non-nil, insert a diary section even if there is no
4545 @var{planner-diary-string} in the buffer.
4546 @end defun
4548 @defun planner-diary-insert-diary-maybe force
4549 Maybe insert the fancy diary for the day into the day plan file. If the
4550 current day is in the past and @var{force} is nil, don't do anything. If
4551 @var{force} is non-nil, insert a diary section even if there is no
4552 @code{planner-diary-string} in the buffer.
4553 @end defun
4555 @defun planner-diary-insert-appts force
4556 Insert the diary appointments for the day into the day plan file.  If
4557 @var{force} is non-nil, insert a diary appointments section even if
4558 there is no @code{planner-diary-appts-string} in the buffer.
4559 @end defun
4561 @defun planner-diary-insert-appts-maybe force
4562 Maybe insert the diary appointments for the day into the day plan file.
4563 If the current day is in the past and @var{force} is nil, don't do
4564 anything.  If @var{force} is non-nil, insert a diary appointments
4565 section even if there is no @code{planner-diary-appts-string} in the
4566 buffer.
4567 @end defun
4569 @defun planner-diary-insert-cal-desk force
4570 Insert the cal-desk diary for the day into the day plan file.  If
4571 @var{force} is non-nil, insert a cal-desk diary section even if there is
4572 no @code{planner-diary-cal-desk-string} in the buffer.
4573 @end defun
4575 @defun planner-diary-insert-cal-desk-maybe force
4576 Maybe insert the cal-desk diary for the day into the day plan file.  If
4577 the current day is in the past and @var{force} is nil, don't do
4578 anything.  If @var{force} is non-nil, insert a cal-desk appointments
4579 section even if there is no @code{planner-diary-cal-desk-string} in the
4580 buffer.
4581 @end defun
4583 @defun planner-diary-insert-public force
4584 Insert the public diary for the day into the day plan file.  If
4585 @var{force} is non-nil, insert a public diary section even if there is
4586 no @code{planner-diary-public-string} in the buffer.
4587 @end defun
4589 @defun planner-diary-insert-public-maybe force
4590 Maybe insert the public diary for the day into the day plan file.  If
4591 the current day is in the past and @var{force} is nil, don't do
4592 anything.  If @var{force} is non-nil, insert a public appointments
4593 section even if there is no @code{planner-diary-public-string} in the
4594 buffer.
4595 @end defun
4597 @defun planner-diary-insert-private force
4598 Insert the private diary for the day into the day plan file.  If
4599 @var{force} is non-nil, insert a private diary section even if there is
4600 no @code{planner-diary-private-string} in the buffer.
4601 @end defun
4603 @defun planner-diary-insert-private-maybe force
4604 Maybe insert the private diary for the day into the day plan file.  If
4605 the current day is in the past and @var{force} is nil, don't do
4606 anything.  If @var{force} is non-nil, insert a private appointments
4607 section even if there is no @code{planner-diary-private-string} in the
4608 buffer.
4609 @end defun
4611 @defun planner-diary-insert-all-diaries force
4612 Update all diary sections in a day plan file.  If @var{force} is
4613 non-nil, insert a diary section even if there is no section header.  It
4614 only inserts diaries if the corresponding @code{planner-diary-use-}*
4615 variable is @samp{t}.
4616 @end defun
4618 @defun planner-diary-insert-all-diaries-maybe force
4619 Update all diary sections in a day plan file.  If the current day is in
4620 the past and @var{force} is nil, don't do anything.  If @var{force} is
4621 non-nil, insert a diary section even if there is no section header.  It
4622 only inserts diaries if the corresponding @code{planner-diary-use-}*
4623 variable is @samp{t}.
4624 @end defun
4626 @defun planner-diary-show-day-plan-or-diary
4627 Show the day plan or diary entries for the date under point in calendar.
4628 Add this to @code{calendar-move-hook} if you want to use it.  In that
4629 case, you should also @command{remove-hook} @samp{planner-calendar-show}
4630 from @code{calendar-move-hook}.
4631 @end defun
4633 @subheading Keys
4635 @file{planner-diary.el} adds the following keybinding to Planner, if
4636 @command{planner-diary-insinuate} is in your @file{.emacs} (or
4637 @file{_emacs}):
4639 @itemize
4641 @item
4642 @kbd{C-c C-e} updates the diary sections by calling
4643 @code{planner-diary-insert-all-diaries-maybe}.
4645 @end itemize
4647 @menu
4648 * Planner-Diary Advanced Features::  
4649 @end menu
4651 @node Planner-Diary Advanced Features,  , Diary, Diary
4652 @comment  node-name,  next,  previous,  up
4653 @subsubsection Planner-Diary Advanced Features
4654 @cindex diary, using Planner with
4655 @cindex @file{planner-diary.el}, advanced features
4657 The features described here are part of the development version.  They
4658 are subject to change without notice.  They may be buggy.  The
4659 documentation may be inaccurate.  Use at your own risk.
4661 There is a lot of code redundancy in the development version.  This is
4662 intentional and makes it easier to change the code for one type of diary
4663 section without breaking others.
4665 @subheading Diary views
4667 @cindex @file{planner-diary.el}, views
4668 Currently Planner-Diary supports six different views of your diary
4669 entries:
4671 @enumerate
4672 @item
4673 Ordinary fancy diary display (what you get by pressing @kbd{d} in the
4674 calendar buffer with @code{fancy-diary-display} switched on)
4676 @item
4677 Schedule/Appointments (all entries from 1 that have a time assigned to
4678 them
4680 @item
4681 Diary without appts (1 without 2)
4683 @item
4684 cal-desk display (appts on top, non appts entries at bottom)
4686 @item
4687 A private diary (same as 1, but uses a different diary-file)
4689 @item
4690 A public diary (same as 1, but uses a different diary-file)
4691 @end enumerate
4693 Put the following line of Lisp code in your day plan pages to display
4694 your diary entries:
4696 @example
4697 <lisp>(planner-diary-entries-here)</lisp>
4698 @end example
4700 The function @code{planner-diary-entries-here} takes two optional
4701 arguments---the diary file you want to use and the number of days you
4702 want to display.
4704 @subheading Exporting Planner-specific Diary files
4706 @cindex @file{planner-diary.el}, exporting entries
4707 If you would like to export diary entries from your Planner pages to
4708 separate Diary files, add @code{(require 'planner-export-diary)} to your
4709 config.  The following steps describe the usage of the functions and
4710 options contained in this file.
4712 @enumerate
4714 @item
4715 Customize @code{planner-export-diary-file}.  The default value is
4716 ``~/diary.planner''.
4718 @item
4719 Add the following line to your main Diary file (default: ``~/diary'').
4721 @example
4722 #include ~/diary.planner
4723 @end example
4725 @item
4726 Then, call @command{M-x planner-export-diary-future} whenever you want
4727 future diary entries published. You can automatically publish entries by
4728 adding either of the following to your .emacs.
4730 @itemize
4732 @item (planner-export-diary-future)
4733 Publish future entries on startup.
4735 @item (add-hook 'planner-mode-hook 'planner-export-diary-setup)
4736 Publish future entries whenever you save a Planner file.
4738 @end itemize
4740 @end enumerate
4742 @node Appointments, Timeclock, Diary, Scheduling and Time
4743 @comment  node-name,  next,  previous,  up
4744 @subsection Appointments
4745 @cindex appointments
4746 @cindex @file{planner-appt.el}, using
4748 If you would like to use planner for your appointment alerts
4749 instead of using the diary system, you might like to try
4750 @file{planner-appt}.
4752 According to your preferences, you may choose from two different
4753 approaches. Appointments in task descriptions on today's plan
4754 page are like this:
4756 @example
4757 #A   _ @@12:45 Do something (TaskPool)
4758 @end example
4760 @noindent
4761 and appointments in today's schedule section are like this:
4763 @example
4764 * Schedule
4766   9:00 | 12:00 | Read Simmel's Philosophy of Money
4767 @@12:45 |       | Do Something Else
4768 @@13:00 | 14:00 | lunch
4769 @end example
4771 @noindent
4772 You can even use both at the same time if you like.
4774 @c Jim Ottaway <j.ottaway@lse.ac.uk>: Changed these kinds of heading
4775 @c back to @unnumberedsec, but left the originals commented out in
4776 @c case there was a good reason for the @strong formatting.
4778 @c @noindent
4779 @c @strong{Usage}
4780 @unnumberedsubsubsec Usage
4782 In the file where you configure Planner, add one of the following.
4784 @itemize
4785 @item
4786 For task-based appointments: @code{(planner-appt-use-tasks)}
4787 @item
4788 For schedule-based appointments: @code{(planner-appt-use-schedule)}
4789 @item
4790 For both task- and schedule-based appointments:
4791 @code{(planner-appt-use-tasks-and-schedule)}
4792 @end itemize
4794 @noindent
4795 And finally if you want everything to be updated automatically add:
4797 @example
4798 (planner-appt-insinuate)
4799 @end example
4801 If you don't want to do the insinuation then you can call:
4803 @example
4804 M-x planner-appt-update
4805 @end example
4807 @noindent
4808 after editing appointments on the page (note that this is not
4809 necessary if you use tasks for the appointments and you don't edit
4810 the task descriptions outside of @code{planner-edit-task-description}).
4812 Try both methods; if you find that you prefer one over the
4813 other, use one of the specific @code{planner-appt-use-} functions, as
4814 there are some performance gains when using one method exclusively.
4816 @menu
4817 * Task-based Appointments::     
4818 * Schedule-based Appointments::  
4819 * Viewing Appointments::        
4820 * Appointment Updating on Save::  
4821 * Appointment and Calendar Integration::  
4822 * Appointment Hooks::           
4823 @end menu
4826 @node Task-based Appointments, Schedule-based Appointments, Appointments, Appointments
4827 @comment  node-name,  next,  previous,  up
4828 @subsubsection Task-based Appointments
4829 @cindex appointments, task-based
4830 @cindex task-based appointments
4832 A task has an appointment if it looks like this:
4834 @example
4835 #A   _ @@12:45 Do something (TaskPool)
4836 @end example
4838 @noindent
4839 i.e., if it has @@ followed by a time at the beginning.  This means
4840 the task is a regular appointment, and will not be carried forward
4841 at the start of a new day.
4843 Alternatively, it may have a !, like this:
4845 @example
4846 #A   _ !12:45 Do something else (TaskPool)
4847 @end example
4849 @noindent
4850 This makes it a "nagging" appointment, which @emph{will} be carried
4851 forward.  It will, however, lose the appointment time in the
4852 process.
4854 This may seem like a strange feature, but here is Henrik's
4855 reasoning:
4857 @quotation
4858 Sometimes I have a task that I want to do at a certain time, so I
4859 make it an appointment.  If I don't get around to doing it anyway,
4860 I want it to be carried forward.  Basically, I sometimes use
4861 appointments on tasks to annoy me until I get them done. :)
4862 @end quotation
4864 You can edit, move and delete tasks with the usual functions, and
4865 appointments will be updated automatically.
4867 You can update all task appointments on your page with
4869 @example
4870 M-x planner-appt-update
4871 @end example
4873 @c @noindent
4874 @c @strong{Cyclic Entries}
4876 @unnumberedsubsubsec Cyclic Entries
4877 @cindex appointments, cyclic task entries
4879 If you have @file{planner-cyclic} (@pxref{Cyclic Tasks}) loaded, entries
4880 in your cyclical tasks file such as
4882 @example
4883 Friday #A _ @@12:45 staff meeting
4884 @end example
4886 @noindent
4887 will appear every Friday and there will be an appointment alert set
4890 @c @noindent
4891 @c @strong{Appointments Section}
4892 @unnumberedsubsubsec Appointments Section
4893 @cindex appointments, appointments section
4895 You can have all task-based appointments copied to a separate section,
4896 providing an overview of your appointments.
4898 To do this, add
4900 @example
4901 (setq planner-appt-task-use-appointments-section-flag t)
4902 @end example
4904 @noindent to your configuration, or use @kbd{M-x customize-variable}.
4906 The variable @code{planner-appt-task-appointments-section} is the name
4907 of the section where the appointments will be copied.  By default, it is
4908 set to @code{"Schedule"}, which means that task appointments will be
4909 intermingled with schedule entries.
4911 It is also a good idea to add the section you wish to use to
4912 @code{planner-day-page-template} in order to control where that section
4913 will appear on the page (otherwise it will appear at the top).
4915 The format of the appointments follows that of a schedule; if you
4916 don't like the way it looks, you can write something different and set
4917 @code{planner-appt-format-appt-section-line-function} appropriately.
4918 See the documentation for
4919 @code{planner-appt-format-appt-section-line-function} for details.  It
4920 should be fairly easy to see what needs to be done if you look at the
4921 source for the default function (which is
4922 @code{planner-appt-format-appt-section-line}).
4924 If the section specified in
4925 @code{planner-appt-task-appointments-section} is the same as the
4926 schedule section specified in @code{planner-appt-schedule-section} (by
4927 default @code{"Schedule"}), the default formatting function adds a
4928 @samp{#} to the description so that one can visually distinguish
4929 appointments from the task list from those that have been added to the
4930 schedule.
4932 @node Schedule-based Appointments, Viewing Appointments, Task-based Appointments, Appointments
4933 @comment node-name,  next,  previous,  up
4934 @subsubsection Schedule-Based Appointments
4935 @cindex appointments, schedule-based
4936 @cindex schedule-based appointments
4938 Some scheduled tasks require reminders, others don't.  In this
4939 schedule:
4941 @example
4942 * Schedule
4944 9:00   | 12:00 | Read Simmel's Philosophy of Money
4945 @@12:45          Do Something Else
4946 @@13:00 | 14:00 | lunch
4947 @@14:30 |       | Meet jrs to discuss his dissertation
4948 @@16:00           Test Society seminar
4949 18:00            go home
4950 @end example
4952 @noindent
4953 those that have an @@ prefix will be added to the appointment
4954 reminder list; the others will not.  The formats that are
4955 recognized are fairly flexible, as you can see from the example.
4957 If you change your schedule, you can update the appointment list
4958 with
4960 @example
4961 M-x planner-appt-update
4962 @end example
4964 @noindent You can also have the schedule sorted as part of the update,
4965 if you have this in your configuration:
4967 @example
4968 (setq planner-appt-sort-schedule-on-update-flag t)
4969 @end example
4971 @c @noindent 
4972 @c @strong{Cyclical Entries}
4973 @unnumberedsubsubsec Cyclical Entries
4974 @cindex appointments, cyclic schedule entries
4976 You can also have cyclical schedule entries(@pxref{Cyclic Tasks}) if you
4979 @example
4980 (planner-appt-schedule-cyclic-insinuate)
4981 @end example
4983 @noindent to your configuration.
4985 If you put an entry in your cyclical task file like this
4987 @example
4988 Friday @@12:45 | 13:45 | Staff Meeting
4989 @end example
4991 @noindent
4992 then it will appear in your schedule every Friday, and an
4993 appointment alert will be set up.
4995 @node Viewing Appointments, Appointment Updating on Save, Schedule-based Appointments, Appointments
4996 @comment  node-name,  next,  previous,  up
4997 @subsubsection Viewing Appointments
4998 @cindex appointments, viewing
5000 The command @command{planner-appt-show-alerts} will show all appointment
5001 alerts currently scheduled.
5003 @subheading Functions
5005 There are two commands that show appointments in the future; the one
5006 displays them in a pop-up buffer, the other puts the information into
5007 the current day page.
5009 @deffn {Command} planner-appt-forthcoming-display &optional days
5010 Display a buffer of appointments for today and the next
5011 @var{days}. Optional prefix argument @var{days} is the number of days
5012 ahead to look. Its default value is defined by
5013 @code{planner-appt-forthcoming-days}.
5014 @end deffn
5016 @deffn {Command} planner-appt-forthcoming-update-section &optional days
5017 In today's plan page, add or update a list of forthcoming
5018 appointments. Optional prefix argument @var{days} is the number of
5019 days ahead to look. Its default value is defined by
5020 @code{planner-appt-forthcoming-days}.  The section heading to use is
5021 defined by @code{planner-appt-forthcoming-appt-section}.
5022 @end deffn
5024 @subheading Options
5026 @defopt planner-appt-forthcoming-days
5027 The number of days to look ahead for forthcoming appointments.  The
5028 default value is seven days.
5029 @end defopt
5031 @defopt planner-appt-forthcoming-appt-section
5032 The name of the section to use for inserting a list of forthcoming
5033 appts.  The default value is @code{"Forthcoming Appointments"}.
5034 @end defopt
5036 @defopt planner-appt-forthcoming-show-day-names-flag
5037 When non-nil (the default), day names will be shown in forthcoming
5038 appointments.
5039 @end defopt
5041 @defopt planner-appt-forthcoming-repeat-date-string
5042 String to insert for repeated dates.
5044 When there are multiple appointments for a date, the date is inserted
5045 in the first appointment and the others have this string in their date
5046 cell.
5048 If the string consists of anything other than whitespace, then a link
5049 to the day page for the appoinment is created.
5050 @end defopt
5052 @defopt planner-appt-forthcoming-look-at-cyclic-flag
5053 When non-nil, find forthcoming appointments in the cyclic diary file
5054 (@pxref{Cyclic Tasks}) as well as in plan pages. Default is @samp{t}.
5055 @end defopt
5057 @node Appointment Updating on Save, Appointment and Calendar Integration, Viewing Appointments, Appointments
5058 @comment  node-name,  next,  previous,  up
5059 @subsubsection Appointment Updating on Save
5060 @cindex appointments, updating on save
5062 @subheading Options
5064 @defopt planner-appt-update-appts-on-save-flag
5065 When non-nil, update appointment reminders whenever today's plan page is
5066 saved. Default value is @samp{nil}.
5067 @end defopt
5069 @node Appointment and Calendar Integration, Appointment Hooks, Appointment Updating on Save, Appointments
5070 @comment  node-name,  next,  previous,  up
5071 @subsubsection Appointment and Calendar Integration
5073 Not strictly part of appointment handling, but if one isn't using
5074 the diary, marking dates with plan pages seems to make sense.
5076 @subheading Functions
5078 @defun planner-appt-calendar-insinuate
5079 Add a hook to diary display so that dates in the calendar that have day
5080 pages are highlighted
5081 @end defun
5083 @node Appointment Hooks,  , Appointment and Calendar Integration, Appointments
5084 @comment  node-name,  next,  previous,  up
5085 @subsubsection Appointment Hooks
5087 @subheading Options
5089 @defvr {Hook} planner-appt-update-hook
5090 Hook run after @code{planner-appt-update} has updated the appointment
5091 list.
5092 @end defvr
5094 @node Timeclock, schedule.el, Appointments, Scheduling and Time
5095 @comment  node-name,  next,  previous,  up
5096 @subsection Timeclock
5097 @cindex @file{planner-timeclock.el}, using
5098 @cindex @file{planner-timeclock-summary.el}, using
5099 @cindex @file{planner-timeclock-summary-proj.el}, using
5100 @cindex timeclock, using Planner with
5102 This module allows you to clock in and clock out of your projects
5103 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual}) You can also
5104 generate reports with the @code{<timeclock-report>} tag. You may want to
5105 read the ``Keeping Track of Time'' page to see how you can use
5106 planner-timeclock to produce detailed reports;
5107 @xref{Keeping Track of Time}.
5109 @file{timeclock.el} is part of GNU Emacs. If you are using XEmacs,
5110 please use the version of @file{timeclock.el} that comes with Planner in
5111 the @file{contrib} directory.
5113 With @file{planner-timeclock.el} loaded,
5114 @command{planner-task-in-progress} clocks in a task.  To clock out,
5115 use @command{planner-task-done} or @command{timeclock-out}.
5117 @file{planner-timeclock.el} defines the following keybindings:
5119 @itemize
5120 @item @kbd{C-c C-i}: @code{planner-task-in-progress}.
5121 @item @kbd{C-c C-o}: @code{timeclock-out}.
5122 @item @kbd{C-c C-T C-i}: @code{planner-timeclock-in}. (XEmacs)
5123 @item @kbd{C-c C-T C-o}: @code{timeclock-out}. (XEmacs)
5124 @item @kbd{C-c C-S-t C-i}: @code{planner-timeclock-in}. (GNU Emacs)
5125 @item @kbd{C-c C-S-t C-o}: @code{timeclock-out}. (GNU Emacs)
5126 @end itemize
5128 If you use @code{timeclock} a lot, you may also be interested in
5129 Dryice Liu's @file{planner-timeclock-summary.el}, which produces
5130 timeclock reports for planner files.
5132 Here is a sample report:
5134 @example
5135 Project               |     Time| Ratio| Task
5136 PlannerMaintenance    |  0:03:58|  1.1%| Merge doc patch
5137                       |  0:17:09|  5.0%| Track down subdirectories
5138                       |  0:18:11|  5.3%| Merge planner-timeclock-summary-proj.el
5139                Total: |  0:39:18| 11.4%|
5140 JapanCaseStudy        |  2:37:56| 45.6%| Prototype search result page
5141                       |  0:31:50|  9.2%| Update design documents
5142                Total: |  3:09:46| 54.8%|
5143 ChristmasLetter       |  1:46:37| 30.8%| Write and send my Christmas letters
5144                Total: |  1:46:37| 30.8%|
5145 LinuxPeople           |  0:10:29|  3.0%| Send questions for Linux in Education
5146                Total: |  0:10:29|  3.0%|
5147 @end example
5149 If you add @code{(require 'planner-timeclock-summary)} to your
5150 @file{~/.emacs}, you can then use it in two ways.
5152 @itemize
5154 @item Display a temporary buffer
5156 Call @code{planner-timeclock-summary-show} and Emacs will ask you which
5157 day's summary do you want. Choose the date as anywhere else of
5158 Emacs planner, and a tempory buffer will be displayed with the
5159 timeclock summary of that day.
5161 To review tasks over a date range, use
5162 @code{planner-timeclock-summary-show-range}. You can use a regexp or a
5163 function to filter tasks by calling
5164 @code{planner-timeclock-summary-show-range-filter}.
5166 @item Rewrite sections of your planner
5168 Choose this approach if you want timeclock summary to be in their
5169 own section and you would like them to be readable in your plain
5170 text files even outside Emacs. Caveat: The timeclock summary
5171 section should already exist in your template and will be rewritten
5172 when updated. Tip: Add @code{planner-timeclock-summary-section}
5173 (default: @samp{"Timeclock"}) to your @code{planner-day-page-template}.
5175 To use, call @code{planner-timeclock-summary-update} in the planner
5176 day page to update the section. If you want rewriting to be
5177 automatically performed, call
5178 @code{planner-timeclock-summary-insinuate} in your @file{.emacs} file.
5179 @end itemize
5181 @file{planner-timeclock-summary-proj.el} produces task / time
5182 breakdowns on plan pages. Reports are of the form:
5184 @example
5185 TASK 0 | duration
5186 TASK 1 | duration
5187  TOTAL | duration.
5188 @end example
5190 To use, add @code{(require 'planner-timeclock-summary)} to your
5191 @file{~/.emacs}. Call @code{planner-timeclock-summary-proj-current}
5192 from a project page. The report is inserted at the current position in
5193 the buffer. The function @code{planner-timeclock-summary-proj-section}
5194 does the same but the report is inserted inside a section called
5195 @samp{* Report}.
5197 @node schedule.el,  , Timeclock, Scheduling and Time
5198 @comment  node-name,  next,  previous,  up
5199 @subsection @file{schedule.el}
5200 @cindex @file{planner-schedule.el}, using
5201 @cindex @file{schedule.el}, using Planner with
5203 @file{planner-schedule.el} allows you to project task completion time.
5204 Tasks should be of the form:
5206 @example
5207 #A0 _ 2h Do something
5208 #B0 _ 1h30m Do something
5209 #B0 _ 2d Do something
5210 #B0 _ 2w Do something
5211 #B0 _ 10s Do something
5213 s: seconds, m: minutes, h: hours, d: days, w: weeks
5214 @end example
5216 @file{schedule.el} is included with Planner in the @file{contrib}
5217 directory, but you can alternatively get it from
5218 @url{http://www.newartisans.com/johnw/Emacs/schedule.el} if desired.
5220 @file{schedule.el} provides a single Lisp function,
5221 @code{schedule-completion-time}. It takes an Emacs time object and a
5222 quantity of seconds. It returns an Emacs time object that represents
5223 when the given number of seconds will be completed, assuming that work
5224 can only be done during work hours.
5226 The available work hours are affected by several factors:
5228 @enumerate
5230 @item
5231 If @file{timeclock.el} is being used, the amount of time left in the
5232 current work day (@code{timeclock-workday-remaining})
5233 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual})
5235 @item
5236 The amount of time in each work day (@code{schedule-workday})
5238 @item
5239 The definition of a work week (@code{schedule-week})
5241 @item
5242 Any holidays defined in the Emacs calendar
5243 (@pxref{Holidays, , , Emacs, GNU Emacs Manual})
5245 @item
5246 Any appointments in the Emacs diary
5247 (@pxref{Appointments, , , Emacs, GNU Emacs Manual})
5249 @end enumerate
5251 Taking all of the ``block out'' periods into account,
5252 @code{schedule-completion-time} will compute when the given number of
5253 seconds will be done, based on your current definitions of time
5254 available.
5256 As an example, here's a function which, given a list of durations
5257 in seconds, will return a list of completion times starting from
5258 the current moment:
5260 @example
5262   (defun compute-completion-times (&rest durations)
5263     ``Compute completion times for a list of DURATIONS (in seconds).''
5264     (let ((now (current-time)))
5265       (mapcar
5266        (function
5267         (lambda (dura)
5268           (setq now (schedule-completion-time now dura))))
5269        durations)))
5271 @end example
5273 To call this function, do:
5275 @example
5277 (compute-completion-times 3600 7200 3600)
5279 @end example
5281 @subheading Keys
5283 @file{planner-schedule.el} defines the following keybindings:
5285 @kbd{C-c RET} is bound to @command{planner-schedule-show-end-project}.
5286 @kbd{C-c C-m} is also bound to
5287 @command{planner-schedule-show-end-project}.
5289 In XEmacs, @command{planner-schedule-show-end-project} is bound to
5290 @kbd{C-c C-T c-e} and @kbd{C-c C-S-t C-e}.
5292 @subheading Functions
5294 @file{planner-schedule.el} defines the following interactive
5295 functions:
5297 @defun planner-schedule-show-end-project
5298 Display the estimated project completion time.
5299 @end defun
5301 @file{schedule.el} does not define any interactive functions, or
5302 keybindings.
5304 @node Finances, Contacts and Conversations, Scheduling and Time, Managing Your Information
5305 @comment  node-name,  next,  previous,  up
5306 @section Finances
5307 @cindex finances
5309 Currently, Planner provides one module dedicated to tracking your
5310 finances. This module works with a program called Ledger.
5312 @menu
5313 * Ledger::                      Personal finances: planner-ledger.el
5314 @end menu
5316 @node Ledger,  , Finances, Finances
5317 @comment  node-name,  next,  previous,  up
5318 @subsection Ledger
5319 @cindex finances
5320 @cindex @file{planner-ledger.el}, using
5321 @cindex @file{ledger}, using Planner with
5323 @file{planner-ledger.el} provides integration between planner and John
5324 Wiegley's ledger accounting program, which can be found at
5325 @url{http://newartisans.com/johnw/ledger.tar.gz}.
5327 To use planner-ledger to insert a ledger balance overview and a list
5328 of pending transactions into planner day pages, make sure that your
5329 day page includes sections that match
5330 @code{planner-ledger-balance-regexp} and
5331 @code{planner-ledger-pending-regexp}. Example:
5333 @example
5334 * Tasks
5336 * Ledger
5338 ** Pending transactions
5340 * Notes
5342 @end example
5344 You can manually update ledger sections with the
5345 @command{planner-ledger-insert-maybe} command.
5347 You can also automatically update ledger sections with the following
5348 hook:
5350 @example
5351 (add-hook 'planner-goto-hook 'planner-ledger-insert-maybe)
5352 @end example
5354 You can create ledger entries from specially-formatted tasks using
5355 @command{planner-ledger-add-entry-from-task}.  Tasks should be of the
5356 form @samp{payment due: payee, amount [comment]}.  Example:
5358 @example
5359 #A1 _ payment due: foobar, $1000.00 some comment here
5360 #A2 _ payment due: baz, 1000.00
5361 @end example
5363 @subheading Options
5365 @defopt planner-ledger-balance-accounts
5366 List of accounts to be included or excluded from the balance overview.
5367 @samp{+} includes all matching accounts, and @samp{-} excludes
5368 matching accounts.  See the documentation for
5369 @command{ledger-run-ledger} for more details.
5370 @end defopt
5372 @defopt planner-ledger-balance-regexp
5373 Regular expression matching section for ledger balance.  Do not store
5374 other data in this section, as it will be overwritten.
5375 @end defopt
5377 @defopt planner-ledger-pending-regexp
5378 Regular expression matching section for ledger balance.  Do not store
5379 other data in this section, as it will be overwritten.
5380 @end defopt
5382 @defopt planner-ledger-payment-task-regexp
5383 Regular expression matching special ledger tasks.
5384 @end defopt
5386 @subheading Functions
5388 @defun planner-ledger-insert-maybe
5389 Update any ledger sections on the current page.
5390 @end defun
5392 @defun planner-ledger-add-entry-from-task
5393 Create a ledger entry based on the task at point.  Task should match
5394 @code{planner-ledger-payment-task-regexp}.
5395 @end defun
5397 @node Contacts and Conversations, Tracking Research and Resources, Finances, Managing Your Information
5398 @comment  node-name,  next,  previous,  up
5399 @section Contacts and Conversations
5400 @cindex contacts
5401 @cindex conversations
5403 Planner has two modules available for keeping track of contact and
5404 conversation information. The first uses the Big Brother Database
5405 (BBDB), and the second uses Emacs Relay Chat (ERC). BBDB is a full
5406 contact database. ERC is a client for chatting online on Internet Relay
5407 Chat (IRC) networks. The ERC module for Planner will help you keep
5408 track of online conversations you have if you use ERC for those
5409 conversations, but does not by itself store contact information other
5410 than the time you had the conversation, the network and channel you were
5411 on when you had it, and maybe who you had it with. If you are looking
5412 for a way to manage your full address book, then @file{planner-bbdb.el}
5413 in combination with BBDB is what you are looking for.
5415 @menu
5416 * BBDB::                        Contacts: planner-bbdb.el
5417 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
5418 @end menu
5420 @node BBDB, Emacs Relay Chat, Contacts and Conversations, Contacts and Conversations
5421 @comment  node-name,  next,  previous,  up
5422 @subsection BBDB
5423 @cindex @file{planner-bbdb.el}, using
5424 @cindex BBDB, using Planner with
5426 @file{planner-bbdb.el} allows you to refer to your contacts easily
5427 from within a planner page. @inforef{Top, the BBDB Manual, bbdb}.
5429 @samp{[[bbdb://Sacha.*Chua][Sacha]]}, for example, will be linked to
5430 the blog, web or net fields of the first matching BBDB record.
5432 @file{planner-bbdb.el} does not define any interactive functions, or
5433 keybindings.
5435 @node Emacs Relay Chat,  , BBDB, Contacts and Conversations
5436 @comment  node-name,  next,  previous,  up
5437 @subsection Emacs Relay Chat
5438 @cindex @file{planner-erc.el}, using
5439 @cindex ERC, using Planner with
5440 @cindex Emacs Relay Chat, using Planner with
5441 @cindex IRC, using Planner with
5442 @cindex Internet Relay Chat, using Planner with
5444 To use planner-erc, place @file{planner-erc.el} in your load path
5445 and add this to your @file{.emacs} (or @file{_emacs}):
5447 @example
5449 (require 'planner-erc)
5451 @end example
5453 IRC URLs may be of the following forms.
5455 @example
5456 irc://server/nick,isnick
5457 irc://server/#channel
5458 irc://server
5459 @end example
5461 Annotations will be in the following forms.
5463 @example
5464 [[irc://server/nick,isnick][Chat with nick on server#channel]]
5465 [[irc://server/nick,isnick][Chat with nick on server]]
5466 [[irc://server/#channel][Chat on server#channel]]
5467 [[irc://server][Chat on server]]
5468 @end example
5470 @file{planner-erc.el} does not define any interactive functions, or
5471 keybindings.
5473 @node Tracking Research and Resources, Tracking Development, Contacts and Conversations, Managing Your Information
5474 @comment  node-name,  next,  previous,  up
5475 @section Tracking Research and Resources
5477 Planner provides three modules for keeping track of information
5478 involving three specific tools: w3m, BibTeX, and @file{bookmark.el}.
5480 @menu
5481 * W3m::                         Web browser: planner-w3m.el
5482 * BibTeX::                      Bibliographies: planner-bibtex.el
5483 * Bookmark::                    Bookmarks: planner-bookmark.el
5484 @end menu
5486 @node W3m, BibTeX, Tracking Research and Resources, Tracking Research and Resources
5487 @comment node-name,  next,  previous,  up
5488 @subsection W3m
5489 @cindex @file{planner-w3m.el}, using
5490 @cindex w3m, using Planner with
5492 This module allows you to create tasks from a w3m buffer.
5494 @file{planner-w3m.el} does not define any interactive functions, or
5495 keybindings.
5497 @node BibTeX, Bookmark, W3m, Tracking Research and Resources
5498 @comment node-name,  next,  previous,  up
5499 @subsection BibTeX
5500 @cindex @file{planner-bibtex.el}, using
5502 BibTeX URLs are of the form @samp{bibtex:file/name:key}.
5504 @file{planner-bibtex.el} does not define any interactive functions.
5506 @node Bookmark,  , BibTeX, Tracking Research and Resources
5507 @comment  node-name,  next,  previous,  up
5508 @subsection Bookmark
5509 @cindex bookmarks
5510 @cindex @file{bookmark.el}, using Planner with
5511 @cindex @file{planner-bookmark.el}, using
5513 @file{planner-bookmark.el} uses the @file{remember} package to create a
5514 note whenever you create a bookmark (see @inforef{Bookmarks, Bookmarks,
5515 Emacs}). For more information about @file{remember}, please check out
5517 @itemize
5518 @item
5519 @uref{http://www.emacswiki.org/cgi-bin/wiki/RememberMode} -
5520 EmacsWiki.org page
5521 @item
5522 @uref{http://sacha.free.net.ph/notebook/doc/dev/remember/remember.html}
5523 - Online info documentation
5524 @end itemize
5526 Configure remember according to the instructions in
5527 @file{remember-planner.el} so that notes are saved to your planner
5528 pages.
5530 @defopt planner-bookmark-take-note-after-set-bookmark-flag
5531 Non-nil means show a @code{remember} buffer after setting a new
5532 bookmark.
5533 @end defopt
5535 When you create a bookmark, Emacs will open a buffer for your notes.
5536 @kbd{C-c C-c} saves the buffer to today's page. If you don't want to
5537 save a note, you can kill the buffer.
5539 Bookmark URLs are of the form @samp{bookmark://bookmark-name}.
5541 @file{planner-bookmark.el} does not define any interactive functions.
5543 @node Tracking Development,  , Tracking Research and Resources, Managing Your Information
5544 @comment  node-name,  next,  previous,  up
5545 @section Tracking Development
5546 @cindex version control, using Planner with
5548 Planner has three modules geared toward programmers. Two modules deal
5549 with version control and integrating information from those projects
5550 into the planner page. One module deals with the Gnats bug-tracking
5551 system.
5553 @menu
5554 * Log Edit::                    Changelogs: planner-log-edit.el
5555 * PSVN::                        svn changesets: planner-psvn.el
5556 * XTLA::                        TLA changesets: planner-xtla.el
5557 * Gnats::                       Gnats: The GNU bug reporting system
5558 @end menu
5560 @node Log Edit, PSVN, Tracking Development, Tracking Development
5561 @comment  node-name,  next,  previous,  up
5562 @subsection Log Edit
5563 @cindex cvs, using Planner with
5564 @cindex @file{planner-log-edit.el}, using
5565 @cindex version control, using Planner with
5567 This module allows you to automatically record CVS (and VC) commits
5568 in today's page.
5570 You can load the module with @code{(require 'planner-log-edit)}. When
5571 you load the module, @code{planner-log-edit-add-note} will be added to
5572 @code{log-edit-done-hook}.  A note containing the text of the commit
5573 and optionally a list of modified files will be added to today's page
5574 if you use the the Emacs version control interface. (@pxref{Version
5575 Control, , , Emacs, GNU Emacs Manual})
5577 @subheading Options
5579 @defopt planner-log-edit-include-files-flag
5580 Non-nil means include a list of committed files in the note.
5581 @end defopt
5583 @defopt planner-log-edit-notice-commit-function
5584 Non-nil means include a list of committed files in the note. If you
5585 want to enable this feature for some projects but not for others, set
5586 this to a function that returns t only for the commits you want to
5587 note.
5588 @end defopt
5590 @file{planner-log-edit.el} does not define any interactive functions.
5592 @node PSVN, XTLA, Log Edit, Tracking Development
5593 @comment  node-name,  next,  previous,  up
5594 @subsection PSVN
5595 @cindex PSVN
5596 @cindex @file{planner-psvn.el}, using
5597 @cindex Subversion, integration with
5599 This module enables you to refer to your Subversion (svn) changesets
5600 easily from within a Planner page, and to have your svn commits recorded
5601 automatically as notes in your planner.
5603 You must also have @file{psvn.el}, which is often packaged with
5604 Subversion in GNU/Linux distributions.
5606 You can then load the module by adding @code{(require 'planner-psvn)} to
5607 your @file{~/.emacs}.
5609 Once the module is loaded, Planner will pick up annotation information
5610 from any psvn *svn-log-view* buffer. If you create a task or note while
5611 in such a buffer, that task will have a hyperlink you can follow to
5612 return to the changeset later.
5614 These hyperlinks are of the form
5615 @samp{psvn://http://my.svn-repos.at/svn/project1/trunk@@39}
5617 Additionally, you can have notes for your commits automatically
5618 generated. Set @var{planner-psvn-log-edit-notice-commit-function} to t
5619 to enable this.
5621 By default, these commit notes will include a list of the files
5622 modified. If you would prefer to have this list not included, set
5623 @var{planner-psvn-log-edit-include-files-flag} to nil.
5625 @node XTLA, Gnats, PSVN, Tracking Development
5626 @comment  node-name,  next,  previous,  up
5627 @subsection XTLA
5628 @cindex XTLA
5629 @cindex @file{planner-xtla.el}, using
5631 This module allows you to refer to changesets in Tom Lord's Arch (tla)
5632 version control system. You can load the module with @code{(require
5633 'planner-xtla)}. When you load the module, you can create tasks from
5634 XTLA windows by positioning point on a revision.
5636 XTLA URLs are of the form
5637 @samp{xtla://miles@@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-19}
5639 @file{planner-xtla.el} does not define any interactive functions.
5641 @node Gnats,  , XTLA, Tracking Development
5642 @comment  node-name,  next,  previous,  up
5643 @subsection Gnats
5645 @cindex Gnats
5646 @cindex @file{planner-gnats.el}, using
5647 @cindex bug reports, tracking
5649 @file{planner-gnats.el} provides support for the GNU problem report
5650 management system Gnats. This module allows you to refer to problem
5651 reports using hyperlinks.
5653 Configure your Emacs for Gnats access, then add @samp{(require
5654 'planner-gnats)} to your @file{.emacs}. You can then create tasks from
5655 Gnats edit or view buffers.
5657 To add keybindings to Gnats, use @samp{(planner-gnats-insinuate)}.
5659 Gnats URLs are of the form @samp{gnats:pr-number}.
5661 @file{planner-gnats.el} does not define any interactive functions.
5663 @node Advanced Configuration, Reference Material, Managing Your Information, Top
5664 @comment  node-name,  next,  previous,  up
5665 @chapter Advanced Configuration
5666 @cindex configuration, advanced
5668 @menu
5669 * Customizing Your Day Pages::  Change your templates
5670 * Variables to Customize::      Change various aspects of Planner behavior
5671 * Ideas for Other Keybindings::  Add to and change the default keybindings
5672 @end menu
5674 @node Customizing Your Day Pages, Variables to Customize, Advanced Configuration, Advanced Configuration
5675 @comment  node-name,  next,  previous,  up
5676 @section Customizing Your Day Pages
5678 With the variable @code{planner-day-page-template}, you can define how
5679 you want any newly created day planner pages to look.
5681 You might want to include a section for your diary entries. For how to
5682 do this, see @ref{Diary}.
5684 You can add interactive Lisp buttons with the @file{planner-lisp.el}
5685 module. (@pxref{Interactive Lisp})
5687 Your @code{planner-day-page-template} can also include @samp{|<lisp>|}
5688 tags.
5690 For more complex day pages, you can set
5691 @code{planner-day-page-template} to a function that will be called
5692 from an empty day page buffer. The function should initialize the
5693 contents of the day page.
5695 @node Variables to Customize, Ideas for Other Keybindings, Customizing Your Day Pages, Advanced Configuration
5696 @comment  node-name,  next,  previous,  up
5697 @section Variables to Customize
5698 @cindex customize, variables to
5699 @cindex variables, customization of
5700 @cindex configuration, advanced, variables
5702 You can use Customize (@kbd{M-x customize-group RET planner RET}) to
5703 set user variables.
5705 Other user options are:
5707 @vindex planner-use-day-pages
5708 @defopt planner-use-day-pages
5709 If you really don't like day pages, you can set this variable to nil
5710 and you won't be prompted for dates for tasks (and notes, if using
5711 @file{remember-planner}).
5712 @end defopt
5714 @vindex planner-use-plan-pages
5715 @defopt planner-use-plan-pages
5716 If you really don't like plan pages, you can set this variable to nil
5717 and you won't be prompted for plan pages for tasks (and notes, if
5718 using @file{remember-planner}).
5719 @end defopt
5721 @vindex planner-mode-hook
5722 @defopt planner-mode-hook
5723 List of functions to run after @code{planner-mode} is initialized.
5724 @end defopt
5726 @vindex planner-tasks-file-behavior
5727 @defopt planner-tasks-file-behavior
5728 This variable controls what happens to files Planner opens by itself.
5729 If your tasks are associated with plan pages, the plan pages are
5730 updated whenever a task is rescheduled.  This could lead to a lot of
5731 open buffers as Planner applies updates to all linked files.
5732 By default, Planner is configured to do nothing.
5733 A value of @samp{save} means save but do not close buffers, and a
5734 value of @samp{nil} means do not save any of the buffers.
5735 @end defopt
5737 @vindex planner-add-task-at-end-flag
5738 @defopt planner-add-task-at-end-flag
5739 This variable controls where new tasks are created.  Non-nil means
5740 create tasks at the bottom of the first task block.  If you set this
5741 to non-nil, new tasks will be listed in order of creation (oldest).
5742 Tasks carried over from previous days will appear at the bottom of the
5743 list.
5745 Nil means create tasks at the top of the first task block.
5746 Carried-over tasks and newly created tasks are prominently placed on
5747 top of the list of tasks for the day.
5748 @end defopt
5750 @vindex planner-default-page
5751 @defopt planner-default-page
5752 Default page for created tasks.  This is used as the initial value for
5753 tasks.  After you create a task, it will be set to the previous page
5754 used.
5755 @end defopt
5757 @vindex planner-hide-task-status-when-highlighting
5758 @defopt planner-hide-task-status-when-highlighting
5759 Font-locking for tasks may be enough for you to determine status and
5760 priority.  Set this to non-nil if you want to hide the status marker
5761 and rely on font-locking instead.
5762 @end defopt
5764 @vindex planner-create-task-hook
5765 @defopt planner-create-task-hook
5766 Functions run after creating a task. @code{planner-id} hooks into
5767 this.
5768 @end defopt
5770 @vindex planner-expand-name-favor-future-p
5771 @defopt planner-expand-name-favor-future-p
5772 If non-nil, partial dates (ex: @kbd{2} or @kbd{5.2}) are completed to
5773 dates in the future instead of using the current year and month.
5774 @end defopt
5776 @vindex planner-task-dates-favor-future-p
5777 @defopt planner-task-dates-favor-future-p
5778 Like @code{planner-expand-name-favor-future-p}, but only for tasks.
5779 @end defopt
5781 @vindex planner-publish-dates-first-p
5782 @defopt planner-publish-dates-first-p
5783 Non-nil means list day pages first in the planner index.
5784 @end defopt
5786 @node Ideas for Other Keybindings,  , Variables to Customize, Advanced Configuration
5787 @comment  node-name,  next,  previous,  up
5788 @section Ideas for Other Keybindings
5789 @cindex keybindings, customization of
5790 @cindex configuration, advanced, keybindings
5791 @cindex customize, keybindings to
5793 By default and for backward compatibility, the following operations
5794 do not have keybindings, and are only accessible from the Planner
5795 menu:
5797 @itemize @bullet
5799 @item
5800 @code{planner-copy-or-move-region}
5802 @item
5803 @code{planner-delete-task}
5805 @item
5806 @code{planner-task-delegated}
5808 @item
5809 @code{planner-task-pending}
5811 @item
5812 @code{planner-task-open}
5814 @item
5815 @code{planner-renumber-tasks}
5817 @end itemize
5819 You may find it easier to install keybindings for those operations by
5820 inserting the following in your @file{.emacs} (or @file{_emacs}).
5821 Note: This changes some of the default keybindings for Planner.
5823 @example
5824 (planner-install-extra-task-keybindings)
5825 @end example
5827 If you install the extra task keybindings, your keybindings will
5828 include:
5830 @itemize @bullet
5832 @item
5833 @kbd{C-c C-t} will be unbound from the default and will serve as the
5834 prefix for the other task keybindings.
5836 @item
5837 @kbd{C-c C-t C-t}: @code{planner-create-task-from-buffer}.
5839 @item
5840 @kbd{C-c C-t C-k}: @code{planner-delete-task}.
5842 @item
5843 @kbd{C-c C-t C-u}: @code{planner-update-task}.
5845 @item
5846 @kbd{C-c C-t C-c}: @code{planner-copy-or-move-task}.
5848 @item
5849 @kbd{C-c C-t C-S-c}: @code{planner-copy-or-move-region}.
5851 @item
5852 @kbd{C-c C-t C-x}: @code{planner-task-done}.
5854 @item
5855 @kbd{C-c C-t C-S-x}: @code{planner-task-cancelled}.
5857 @item
5858 @kbd{C-c C-t C-d}: @code{planner-task-delegated}.
5860 @item
5861 @kbd{C-c C-t C-p}: @code{planner-task-pending}.
5863 @item
5864 @kbd{C-c C-t C-o}: @code{planner-task-in-progress}.
5866 @item
5867 @kbd{C-c C-t C-r}: @code{planner-raise-task}.
5869 @item
5870 @kbd{C-c C-t C-l}: @code{planner-lower-task}.
5872 @item
5873 @kbd{C-c C-t C-n}: @code{planner-renumber-tasks}.
5875 @end itemize
5877 Other keybindings can be configured by adding this to your
5878 @file{.emacs} (or @file{_emacs}):
5880 @example
5881 (planner-install-extra-context-keybindings)
5882 @end example
5884 This will set up the following keybindings:
5886 @itemize @bullet
5888 @item
5889 @kbd{shift up} @code{planner-move-up}
5891 @item
5892 @kbd{shift down} @code{planner-move-down}
5894 @item
5895 @kbd{shift right} @code{planner-jump-to-link}
5897 @end itemize
5899 @node Reference Material, Getting Help, Advanced Configuration, Top
5900 @comment  node-name,  next,  previous,  up
5901 @chapter Reference Material
5903 @menu
5904 * Keeping Track of Time::       
5905 * Other Interactive Functions::  
5906 * Planner Keybindings::         Default keybindings for Planner
5907 * Sample Configuration Files::  
5908 @end menu
5910 @node Keeping Track of Time, Other Interactive Functions, Reference Material, Reference Material
5911 @section Keeping Track of Time
5913 One of the coolest things you can do with Planner is keep track of how
5914 much time you spend not only on projects but even on particular tasks.
5915 @file{planner-timeclock.el} makes it as easy and natural as marking a
5916 task as in progress, postponed, or done. This can help you determine
5917 just how much time you spend working each day. If you add estimates to
5918 your task descriptions, you'll also be able to use this information to
5919 improve your time estimation skills.
5921 For example, I had converted the TODO my teammate sent me into entries
5922 in my JapanProject plan page, and before starting my work I came up
5923 with rough estimates of the time it would take me to do the tasks. I
5924 also marked which tasks I felt were best suited for my coworker so
5925 that he could get started without worrying about conflicts. I like
5926 working on little tasks first, so I estimated the time it would take
5927 me to complete each task and sorted by my estimates using the
5928 @code{sort} command and some cutting and pasting.
5930 Then the fun began. I wanted to see if I could match my estimates.
5931 Before I started working on a task, I used @kbd{C-c TAB} to mark it
5932 @code{in progress} and start the clock. If I decided to work on
5933 something else, I used @kbd{C-c TAB} to clock out of the previous task
5934 and clock into the new one.
5936 When I finished it, I used @kbd{C-c C-x} (@code{planner-task-done}) to
5937 mark it completed and automatically clock out. This is not yet done
5938 for cancelled tasks, so I clocked out of those manually with @kbd{C-c
5939 C-o} (@code{timeclock-out}). I also clocked out whenever I caught
5940 myself being distracted so that the totals wouldn't include the time I
5941 spent chatting on #emacs or checking out del.icio.us links. =) At the
5942 end of the day, I used
5943 @code{planner-timeclock-summary-show-range-filter} to show me the time
5944 elapsed for all of the tasks I'd worked on over the past two days.
5945 Here's the report for that project, edited to reflect how it looks on
5946 my screen and annotated with comments:
5948 @example
5949 Timeclock summary report for 2004.12.28 - 2004.12.29
5951 Project     |     Time| Ratio| Task
5952 JapanProject|  0:23:17|  3.6%| Translate javadoc comment for Messages.java
5953             |  0:33:48|  5.3%| Translate javadoc comment for LoginAction.java
5954             |  1:54:07| 17.8%| Study Struts in Japanese
5955             |  0:46:08|  7.2%| Add javadoc tags for input, output and forwards
5956             |  1:03:48|  9.9%| Help review code
5957             |  0:04:14|  0.7%| Import todo list
5958             |  0:00:37|  0.1%| 2min       Fix Menu Action's unnecessary code - delegated
5959             |  0:01:01|  0.2%| 2min       Remove unnecessary list in UserRemoveSetupAction - cancelled
5960             |  0:02:10|  0.3%| 2min       Remove hard-coded database path from MenuAction
5961             |  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. ...
5962             |  0:07:32|  1.2%| 5min       Add a method that returns the validity of a user in MUserPeer.
5963             |  0:08:28|  1.3%| 5min       Fix indentation
5964             |  0:03:52|  0.6%| 10min      Fix UserPeer so that it doesn't get null pointer exceptions
5965             |  0:04:34|  0.7%| 5min       Add current password field in user_modify page
5966             |  0:21:56|  3.4%| 15min      Make a super class for our service classes that will receive the database connection. (cancelled)
5967             |  0:06:05|  0.9%| 10min      Remove hard-coded constants from the Logic classes
5968             |  0:10:55|  1.7%| 10min      Move logic from UserBean.checkPassword to UserListLogic
5969             |  0:01:20|  0.2%| 20min      Guard against null pointer exceptions in peer classes
5970             |  0:04:57|  0.8%| 10min      Instead of displaying uneditable data with bean:write, just disable the html:text element
5971             |  0:25:03|  3.9%| 10min      Deploy 10:00 version
5972             |  0:04:46|  0.7%| 5min       Separate the configuration file of database and system into another uninternationalized property file.
5973             |  2:09:48| 20.2%| 1h         Decide on a naming convention for localized messages and update files
5974             |  0:00:07|  0.0%| 20min      Explain what is happening in UserModifyAction's nested ifs - pending
5975             |  1:50:23| 17.2%| 2h         Write Javadoc comments in English and Japanese to explain bean structure
5976             |  0:04:19|  0.7%| 2h         Write Javadoc comments in English and Japanese to explain peer operations (pending)
5977             |  0:05:40|  0.9%| 20min      Make a factory class for the database - pending
5978      Total: | 10:41:41|100.0%|      
5980 Day began: 13:03:58, Day ended: 20:51:46
5981 Time elapsed: 31:47:48, Time clocked: 10:41:41
5982 Time clocked ratio: 33.6%
5983 @end example
5985 The time record isn't perfect. I cancelled some tasks after thinking
5986 about them a little and did some tasks simultaneously. Sometimes I
5987 didn't notice that I was getting distracted, too. Still, having all of
5988 that time information neatly summarized made me realize a number of
5989 things.
5991 First, I goof off much less when I have a nice, broken-down task list
5992 in front of me. There's just something about knowing there's a five-
5993 or ten-minute hack you can get out of the way. I found myself looking
5994 forward to getting to the next task just to see if I could make my
5995 estimate. That said, seeing a five-minute task stretch and stretch due
5996 to unforeseen problems did make me a little nervous. I should probably
5997 just make generous estimates so that I don't end up with bugs because
5998 of haste.
6000 Second, I don't goof off as much as I thought I did, although there's
6001 still room for improvement. Yesterday's workday was 9:00 - 12:00, 1:00
6002 - 5:30--7.5 hours. Today was the last day of work, so cleaning and
6003 celebration interrupted my hacking at around 3:00--5 hours of work.
6004 According to my task list, 10:41/12:30 was productive work. Hmm. 1:49
6005 hours unclocked time when I was thinking or goofing off.
6006 planner-timeclock-summary-show for today reveals that I actually
6007 clocked 5:30 today, which means the goofing off happened yesterday.
6008 That makes sense; I remember a pretty long unclocked segment
6009 recuperating from Japanese overload. (This was before we came up with
6010 the task list.)
6012 Third, keeping track of time is way, way cool even if you don't bill
6013 anyone for your time.
6015 Like the idea? It's easy to try out. Just add
6017 @example
6018 (require 'planner-timeclock)
6019 (require 'planner-timeclock-summary)
6020 @end example
6022 to your ~/.emacs. If you want to try it out now, eval those statements
6023 in your Emacs session. After that, simply use @kbd{C-c TAB} to ``clock
6024 in'' a task before you start working on it and @kbd{C-c C-x}
6025 (@code{planner-task-done}) to mark it completed. @kbd{M-x
6026 planner-task-pending} also clocks out the current task if it was
6027 clocked in. To see a summary of how you spent your day, check out the
6028 different functions in @file{planner-timeclock-summary}.
6030 See @ref{Timeclock} for more details.
6032 Happy hacking!
6034 @node Other Interactive Functions, Planner Keybindings, Keeping Track of Time, Reference Material
6035 @comment  node-name,  next,  previous,  up
6036 @section Other Interactive Functions
6038 With @file{planner.el} loaded, you can use any of the functions in this
6039 section by typing @kbd{M-x} followed by the name of the function. Many
6040 of these functions are also bound to keys.
6042 For a list of Planner keybindings, see @ref{Planner Keybindings}.
6044 They are listed in no particular order.
6046 @file{planner.el} defines the following interactive functions:
6049 @defun planner-create-high-priority-task-from-buffer
6050 Create a high priority task based on this buffer.  Do not use this in
6051 LISP programs. Instead, set the value of
6052 @var{planner-default-task-priority} and call @code{planner-create-task}
6053 or @code{planner-create-task-from-buffer}.
6054 @end defun
6056 @defun defun planner-create-medium-priority-task-from-buffer
6057 Create a medium-priority task based on this buffer.  Do not use this in
6058 LISP programs. Instead, set the value of
6059 @var{planner-default-task-priority} and call @code{planner-create-task}
6060 or @code{planner-create-task-from-buffer}.
6061 @end defun
6063 @defun planner-create-low-priority-task-from-buffer
6064 Create a high-priority task based on this buffer.
6065 Do not use this in LISP programs. Instead, set the value of
6066 @var{planner-default-task-priority} and call @code{planner-create-task} or
6067 @code{planner-create-task-from-buffer}.
6068 @end defun
6070 @defun planner-install-extra-context-keybindings
6071 Install extra context-sensitive keybindings. These keybindings
6072 conflict with @file{windmove.el}, but might be useful.
6073 @end defun
6075 @defun planner-narrow-to-section section &optional create
6076 Widen to the whole page and narrow to the section labelled
6077 @var{section}.  If @var{create} is non-nil and the section is not found,
6078 the section is created.  Return non-nil if @var{section} was found or
6079 created.
6080 @end defun
6082 @defun planner-save-buffers
6083 Save all planner-mode buffers.
6084 @end defun
6086 @defun planner-seek-to-first section
6087 Positions the point at the specified @var{section}, or @samp{Tasks} if
6088 not specified.
6089 @end defun
6091 @defun planner-save-buffers
6092 Save all planner buffers.
6093 @end defun
6095 @defun planner-calendar-insinuate
6096 This hooks Planner into  Emacs Calendar (@pxref{Calendar/Diary, ,
6097 , Emacs, GNU Emacs Manual}).
6099 It adds special planner key bindings to @code{calendar-mode-map}.
6100 After this function is evaluated, you can use the following
6101 planner-related keybindings in @code{calendar-mode-map}:
6103 @table @kbd
6105 @item  n
6106 Jump to the planner page for the current day.
6108 @item  N
6109 Display the planner page for the current day.
6110 @end table
6112 @end defun
6114 @defun planner-kill-calendar-files
6115 Remove planner files shown from Calendar (@pxref{Calendar/Diary, , ,
6116 Emacs, GNU Emacs Manual}).
6118 @end defun
6120 @defun planner-calendar-goto
6121 Goto the plan page corresponding to the calendar date
6122 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6123 @end defun
6125 @defun planner-calendar-show
6126 Show the plan page for the calendar date under point in another window
6127 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6128 @end defun
6130 @defun planner-calendar-select
6131 Return to @code{planner-read-date} with the date currently selected
6132 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6133 @end defun
6135 @defun planner-jump-to-link
6136 Jump to the item linked to by the current item.
6137 @end defun
6139 @defun planner-move-up
6140 Move a task up. You can use this to indicate that you will do a task
6141 before another one. On a note, go to the previous note. On a headline,
6142 go to the previous headline of the same depth.
6143 @end defun
6145 @defun planner-move-down 
6146 Move down. You can use this to indicate that you will do a task after
6147 another one. On a note, go to the next note. On a headline, go to the
6148 next headline of the same depth.
6149 @end defun
6151 @node Planner Keybindings, Sample Configuration Files, Other Interactive Functions, Reference Material
6152 @comment  node-name,  next,  previous,  up
6153 @section Planner Keybindings
6154 @cindex keybindings, list
6156 In order to refresh and renumber all of your tasks according to their
6157 actual order in the buffer, simply save the file or call
6158 @kbd{M-x planner-renumber-tasks}.
6160 Here is a summary of the keystrokes available:
6162 @table @kbd
6164 @item M-x plan
6165 Begin your planning session.  This goes to the last day for which
6166 there is any planning info (or today if none), allowing you to review,
6167 and create/move tasks from that day.
6169 @item C-c C-u
6170 Move a task up.
6172 @item C-c C-d
6173 Move a task down.
6175 @item C-c C-s
6176 Mark the task as in progress or delegated.
6178 @item C-c C-x
6179 Mark the task as finished.
6181 @item C-c C-t
6182 Create a task associated with the current Wiki page. If you are on the
6183 opening line of a Note entry, it is assumed that the note itself is the
6184 origin of the task.
6186 @item C-c C-c
6187 Move or copy the current task to another date. If the current task is
6188 an original (meaning you are in the buffer where's defined, hopefully
6189 a planning page) then it will be copied, and the original task will
6190 also now point to the copy.  If the current task is a copy, it will
6191 just be moved to the new day, and the original task's link will be
6192 updated.
6194 @item C-c C-n
6195 Jump to today's task page.  If you call
6196 @code{(planner-calendar-insinuate)}, typing @kbd{n} in the Emacs
6197 calendar (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) will jump
6198 to today's task page.
6200 @item C-c C-x
6201 @code{planner-task-done}
6203 @item C-c C-z
6204 @code{planner-task-in-progress}
6206 @item C-c C-d
6207 @code{planner-lower-task}
6209 @item C-c C-u
6210 @code{planner-raise-task}
6212 @item C-c C-c
6213 @code{planner-copy-or-move-task}
6215 @item C-c C-t
6216 @code{planner-create-task-from-buffer}
6218 @item C-c C-j
6219 This is a prefix command.
6221 @item C-c C-n
6222 @code{planner-goto-today}
6224 @item C-c C-j C-r
6225 @code{planner-goto-most-recent}
6227 @item C-c C-j C-t
6228 @code{planner-goto-tomorrow}
6230 @item C-c C-j C-y
6231 @code{planner-goto-yesterday}
6233 @item C-c C-j C-j
6234 @code{planner-goto-today}
6236 @item C-c C-j C-n
6237 @code{planner-goto-next-daily-page}
6239 @item C-c C-j C-p
6240 @code{planner-goto-previous-daily-page}
6242 @item C-c C-j C-d
6243 @code{planner-goto}
6245 @end table
6247 @node Sample Configuration Files,  , Planner Keybindings, Reference Material
6248 @comment  node-name,  next,  previous,  up
6249 @section Sample Configuration Files
6250 @cindex configuration, sample
6252 This section includes some sample configuration files. This way, once
6253 you've got the hang of the basics, you can see some different, more
6254 advanced, setups.
6256 There is no One True Way to plan. Every person is different. We hope
6257 you'll find a good starting point among the example configurations
6258 below. If what you want to do does not perfectly fit under one of these
6259 examples, please post a description of the way you plan to our mailing
6260 list (@pxref{Getting Help}).  We look forward to helping you customizing
6261 planner to fit your needs.
6263 @menu
6264 * File Organization::           
6265 * Bare-Bones Planning::         
6266 * Bare-Bones Planning with Plan Pages::  
6267 * Tasks on Plan Pages with Some Day Pages::  
6268 * Hierarchical Tasks::          
6269 @end menu
6271 @node File Organization, Bare-Bones Planning, Sample Configuration Files, Sample Configuration Files
6272 @subsection File Organization
6274 @itemize
6275 @item @strong{Tasks, schedule and notes on day pages.}
6277 By default, tasks, schedule entries and notes are filed on day pages.
6278 This makes it easy for you to see all the entries relevant to a single
6279 day without becoming overwhelmed with information. Unfinished tasks
6280 are carried over to the next day when you use @kbd{M-x plan}, so it's
6281 always kept up to date. Completed tasks are left on the day page you
6282 finished them on, which helps when reviewing one's progress and writing
6283 accomplishment reports.
6285 @item @strong{Cross-referenced with plan pages.}
6287 You can associate your tasks with projects either when you create the
6288 task or later, with @kbd{M-x planner-replan-task}. This makes it easy
6289 for you to see all the information associated with a particular
6290 project. If you use RememberMode to create notes, you will also be
6291 able to associate notes with a plan page.
6293 @item @strong{Just plan pages.}
6295 If your tasks don't usually have dates, you can turn day pages off by
6296 customizing @code{planner-use-day-pages}. If so, then all of your
6297 tasks and notes will be stored on the WelcomePage and/or a plan page.
6299 @end itemize
6301 @node Bare-Bones Planning, Bare-Bones Planning with Plan Pages, File Organization, Sample Configuration Files
6302 @subsection Bare-Bones Planning
6304 You can keep all of your tasks, notes and schedules in a single file:
6305 WelcomePage.  This is good for people who are used to storing all of
6306 their information in a flat text file.  By storing your information in
6307 planner, you'll be able to take advantage of automatic hyperlinking to
6308 files and other resources.  You can also sort your tasks by priority
6309 and status.
6311 To set your system up for bare-bones planning, set the
6312 @code{planner-use-day-pages} variable to nil before loading planner.
6313 For example, you can put this in your @file{~/.emacs} (or @file{_emacs}):
6315 @example
6316 (setq planner-use-day-pages nil)
6317 (setq planner-default-page nil)
6318 (require 'planner)
6319 @end example
6321 When you create a task or note, planner will not prompt you for a
6322 date.  If you press @key{RET} when prompted for a plan page, it will
6323 accept the default of nil, so no other plan pages will be used.  All
6324 of your data will be kept in one file, which can then be easily backed
6327 You can use commands like @command{planner-create-task-from-buffer} to
6328 create tasks, or you can type tasks in manually.  You can edit or
6329 delete anything in the page without having to update other files.
6331 @node Bare-Bones Planning with Plan Pages, Tasks on Plan Pages with Some Day Pages, Bare-Bones Planning, Sample Configuration Files
6332 @subsection Bare-Bones Planning with Plan Pages
6334 When you create a task or note, Planner.el can copy this to a plan
6335 page. Plan pages allow you to see an overview of all the data for a
6336 project.
6338 For convenience, the @command{planner-create-task-from-buffer} command
6339 prompts you for a plan page when you create a task.
6343 @node Tasks on Plan Pages with Some Day Pages, Hierarchical Tasks, Bare-Bones Planning with Plan Pages, Sample Configuration Files
6344 @subsection Tasks on Plan Pages with Some Day Pages
6346 If most of your tasks are associated with plan pages but you want to
6347 schedule some tasks on day pages, you can leave day pages on (default)
6348 and then write a function that turns off day pages. For example, the
6349 following code snippet turns off day pages for task creation from
6350 buffers.
6352 @example
6353 (require 'planner)
6355 (defun my-planner-create-task-from-buffer ()
6356   "Call `planner-create-task-from-buffer', but without dates."
6357   (interactive)
6358   (let ((planner-use-day-pages nil))
6359     (call-interactively 'planner-create-task-from-buffer)))
6360 @end example
6362 @node Hierarchical Tasks,  , Tasks on Plan Pages with Some Day Pages, Sample Configuration Files
6363 @subsection Hierarchical Tasks
6364 @cindex hierarchical tasks
6365 @cindex tasks, hierarchy of
6367 You can use @file{allout.el} or other modes for outlining to support
6368 hierarchical tasks in plan pages. No special support is needed.
6370 Tasks created by @command{planner-create-task-from-buffer} and
6371 @code{planner-create-task} are created in the @samp{* Tasks} section.
6372 If @code{planner-add-task-at-end-flag} is non-nil, tasks are added to
6373 the end of the first task block, else they are added to the beginning.
6374 You can then copy and paste tasks into your preferred hierarchy.
6375 Blank lines delimit blocks of tasks upon which automatic sorting is
6376 performed.
6378 You can also type in tasks manually. You may find this approach faster
6379 when you are comfortable with planner.
6381 For example, a @file{LearnPlanner} plan page might contain the
6382 following lines:
6384 @example
6385 * Learn how to use planner.el
6387 ** Installation
6389 #C0 _ Decide where to put Planner
6390 #C0 _ Download the archives
6392 ** Configuration
6394 *** Load path
6396 #C0 _ Figure out how to add things to my load path
6397 #C0 _ Actually add it to my load path
6400 @end example
6402 If you create tasks for the finest level of detail available at the
6403 moment, you can schedule them onto day pages with @kbd{C-c C-c}
6404 (@command{planner-copy-or-move-task}). Then you can use
6405 @command{planner-jump-to-link} to switch between the day page and the
6406 plan page link.
6409 @node Getting Help, Acknowledgements, Reference Material, Top
6410 @comment  node-name,  next,  previous,  up
6411 @chapter Getting Help
6412 @cindex help, getting
6413 @cindex bugs, reporting
6415 After you have read this guide, if you still have questions about
6416 Planner, or if you have bugs to report, there are several places
6417 you can go.
6419 Planner has an official website at
6420 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}.  It is a
6421 collaborative wiki.
6423 Bugs may be reported using the Planner Bug-Tracker at
6424 @url{http://gna.org/bugs/?group=planner-el}.
6426 Planner has three mailing lists.
6428 @table @samp
6430 @item planner-el-announce
6431 Low-traffic list for planner-related announcements.
6433 You can join this mailing list (@email{planner-el-announce@@gna.org})
6434 using the subscription form at
6435 @url{http://mail.gna.org/listinfo/planner-el-announce/}.  This
6436 mailing list is also available via Gmane (@url{http://gmane.org/}). The
6437 group is called @samp{gmane.emacs.planner.announce}.
6439 @item planner-el-discuss
6440 Discussion, bugfixes, suggestions, tips, and the like for Planner.
6441 This mailing list also includes the content of planner-el-announce.
6443 You can join this mailing list (@email{planner-el-discuss@@gna.org})
6444 using the subscription form at
6445 @url{http://mail.gna.org/listinfo/planner-el-discuss/}.  This mailing
6446 list is also available via Gmane with the identifier
6447 @samp{gmane.emacs.planner.general}.
6449 @item planner-el-logs
6450 Log messages for commits made to Planner.
6452 You can join this mailing list (@email{planner-el-logs@@gna.org}) using
6453 the subscription form at
6454 @url{http://mail.gna.org/listinfo/planner-el-logs/}.  This mailing list
6455 is also available via Gmane with the identifier
6456 @samp{gmane.emacs.planner.scm}.
6458 @item planner-el-cvs
6459 Generated bug reports for Planner.
6461 You can join this mailing list (@email{planner-el-cvs@@gna.org}) using
6462 the subscription form at
6463 @url{http://mail.gna.org/listinfo/planner-el-cvs/}.  This mailing list
6464 is also available via Gmane with the identifier
6465 @samp{gmane.emacs.planner.cvs}.
6467 @end table
6469 You can also contact the maintainer of Planner, John Sullivan, at
6470 @email{john@@wjsullivan.net}, but it is better to use the other options.
6472 You can explore the relevant sections of the EmacsWiki.org:
6474 @itemize @bullet
6476 @item
6477 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}
6479 @item
6480 @url{http://www.emacswiki.org/cgi-bin/wiki/MuseMode}
6482 @item
6483 @url{http://www.emacswiki.org/cgi-bin/wiki/RememberMode}
6485 @end itemize
6487 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
6488 contributors are frequently around and willing to answer your
6489 questions.
6491 There is an Orkut community called PlannerMode.
6493 For issues relating to this documentation, please contact John
6494 Sullivan at @email{john@@wjsullivan.net}.
6496 @node Acknowledgements, GNU General Public License, Getting Help, Top
6497 @comment  node-name,  next,  previous,  up
6498 @chapter Acknowledgements
6499 @itemize
6500 @item Maintainers
6502 @cindex maintainers
6504 @itemize
6505 @item 2006
6507 John Sullivan volunteered to maintain Planner, and Michael Olson passed
6508 the maintainership on to him with the release of Planner 3.41.
6510 @item 2005
6512 Michael Olson, Sacha Chua, and several others from the Planner community
6513 ported Planner to use Muse instead of emacs-wiki.  Michael Olson became
6514 the maintainer of Planner.
6516 @item 2004
6518 Damien Elmes handed EmacsWikiMode to Mark Triggs for a short period of
6519 time.  Mark Triggs deferred to Sacha Chua as official maintainer of
6520 Planner.  Sacha Chua volunteered to maintain RememberMode.
6521 Michael Olson became the maintainer of both emacs-wiki and Muse.
6523 @item 2003
6525 Sacha Chua volunteered to maintain Planner.  Damien Elmes
6526 volunteered to maintain EmacsWikiMode.
6528 @item 2001
6530 John Wiegley wrote EmacsWikiMode and Planner.
6531 @end itemize
6533 @item Contributors
6534 @cindex contributors
6536 For a complete list of people who have helped out with Planner, please
6537 check out the @file{AUTHORS} file that is included with Planner.
6539 @end itemize
6541 @node GNU General Public License, Concept Index, Acknowledgements, Top
6542 @comment  node-name,  next,  previous,  up
6543 @appendix GNU GENERAL PUBLIC LICENSE
6544 @center Version 2, June 1991
6545 @cindex GPL
6546 @cindex GNU General Public License
6548 @c The GNU General Public License.
6549 @center Version 3, 29 June 2007
6551 @c This file is intended to be included within another document,
6552 @c hence no sectioning command or @node.  
6554 @display
6555 Copyright @copyright{} 2007 Free Software Foundation, Inc. @url{http://fsf.org/}
6557 Everyone is permitted to copy and distribute verbatim copies of this
6558 license document, but changing it is not allowed.
6559 @end display
6561 @heading Preamble
6563 The GNU General Public License is a free, copyleft license for
6564 software and other kinds of works.
6566 The licenses for most software and other practical works are designed
6567 to take away your freedom to share and change the works.  By contrast,
6568 the GNU General Public License is intended to guarantee your freedom
6569 to share and change all versions of a program---to make sure it remains
6570 free software for all its users.  We, the Free Software Foundation,
6571 use the GNU General Public License for most of our software; it
6572 applies also to any other work released this way by its authors.  You
6573 can apply it to your programs, too.
6575 When we speak of free software, we are referring to freedom, not
6576 price.  Our General Public Licenses are designed to make sure that you
6577 have the freedom to distribute copies of free software (and charge for
6578 them if you wish), that you receive source code or can get it if you
6579 want it, that you can change the software or use pieces of it in new
6580 free programs, and that you know you can do these things.
6582 To protect your rights, we need to prevent others from denying you
6583 these rights or asking you to surrender the rights.  Therefore, you
6584 have certain responsibilities if you distribute copies of the
6585 software, or if you modify it: responsibilities to respect the freedom
6586 of others.
6588 For example, if you distribute copies of such a program, whether
6589 gratis or for a fee, you must pass on to the recipients the same
6590 freedoms that you received.  You must make sure that they, too,
6591 receive or can get the source code.  And you must show them these
6592 terms so they know their rights.
6594 Developers that use the GNU GPL protect your rights with two steps:
6595 (1) assert copyright on the software, and (2) offer you this License
6596 giving you legal permission to copy, distribute and/or modify it.
6598 For the developers' and authors' protection, the GPL clearly explains
6599 that there is no warranty for this free software.  For both users' and
6600 authors' sake, the GPL requires that modified versions be marked as
6601 changed, so that their problems will not be attributed erroneously to
6602 authors of previous versions.
6604 Some devices are designed to deny users access to install or run
6605 modified versions of the software inside them, although the
6606 manufacturer can do so.  This is fundamentally incompatible with the
6607 aim of protecting users' freedom to change the software.  The
6608 systematic pattern of such abuse occurs in the area of products for
6609 individuals to use, which is precisely where it is most unacceptable.
6610 Therefore, we have designed this version of the GPL to prohibit the
6611 practice for those products.  If such problems arise substantially in
6612 other domains, we stand ready to extend this provision to those
6613 domains in future versions of the GPL, as needed to protect the
6614 freedom of users.
6616 Finally, every program is threatened constantly by software patents.
6617 States should not allow patents to restrict development and use of
6618 software on general-purpose computers, but in those that do, we wish
6619 to avoid the special danger that patents applied to a free program
6620 could make it effectively proprietary.  To prevent this, the GPL
6621 assures that patents cannot be used to render the program non-free.
6623 The precise terms and conditions for copying, distribution and
6624 modification follow.
6626 @heading TERMS AND CONDITIONS
6628 @enumerate 0
6629 @item Definitions.
6631 ``This License'' refers to version 3 of the GNU General Public License.
6633 ``Copyright'' also means copyright-like laws that apply to other kinds
6634 of works, such as semiconductor masks.
6636 ``The Program'' refers to any copyrightable work licensed under this
6637 License.  Each licensee is addressed as ``you''.  ``Licensees'' and
6638 ``recipients'' may be individuals or organizations.
6640 To ``modify'' a work means to copy from or adapt all or part of the work
6641 in a fashion requiring copyright permission, other than the making of
6642 an exact copy.  The resulting work is called a ``modified version'' of
6643 the earlier work or a work ``based on'' the earlier work.
6645 A ``covered work'' means either the unmodified Program or a work based
6646 on the Program.
6648 To ``propagate'' a work means to do anything with it that, without
6649 permission, would make you directly or secondarily liable for
6650 infringement under applicable copyright law, except executing it on a
6651 computer or modifying a private copy.  Propagation includes copying,
6652 distribution (with or without modification), making available to the
6653 public, and in some countries other activities as well.
6655 To ``convey'' a work means any kind of propagation that enables other
6656 parties to make or receive copies.  Mere interaction with a user
6657 through a computer network, with no transfer of a copy, is not
6658 conveying.
6660 An interactive user interface displays ``Appropriate Legal Notices'' to
6661 the extent that it includes a convenient and prominently visible
6662 feature that (1) displays an appropriate copyright notice, and (2)
6663 tells the user that there is no warranty for the work (except to the
6664 extent that warranties are provided), that licensees may convey the
6665 work under this License, and how to view a copy of this License.  If
6666 the interface presents a list of user commands or options, such as a
6667 menu, a prominent item in the list meets this criterion.
6669 @item Source Code.
6671 The ``source code'' for a work means the preferred form of the work for
6672 making modifications to it.  ``Object code'' means any non-source form
6673 of a work.
6675 A ``Standard Interface'' means an interface that either is an official
6676 standard defined by a recognized standards body, or, in the case of
6677 interfaces specified for a particular programming language, one that
6678 is widely used among developers working in that language.
6680 The ``System Libraries'' of an executable work include anything, other
6681 than the work as a whole, that (a) is included in the normal form of
6682 packaging a Major Component, but which is not part of that Major
6683 Component, and (b) serves only to enable use of the work with that
6684 Major Component, or to implement a Standard Interface for which an
6685 implementation is available to the public in source code form.  A
6686 ``Major Component'', in this context, means a major essential component
6687 (kernel, window system, and so on) of the specific operating system
6688 (if any) on which the executable work runs, or a compiler used to
6689 produce the work, or an object code interpreter used to run it.
6691 The ``Corresponding Source'' for a work in object code form means all
6692 the source code needed to generate, install, and (for an executable
6693 work) run the object code and to modify the work, including scripts to
6694 control those activities.  However, it does not include the work's
6695 System Libraries, or general-purpose tools or generally available free
6696 programs which are used unmodified in performing those activities but
6697 which are not part of the work.  For example, Corresponding Source
6698 includes interface definition files associated with source files for
6699 the work, and the source code for shared libraries and dynamically
6700 linked subprograms that the work is specifically designed to require,
6701 such as by intimate data communication or control flow between those
6702 subprograms and other parts of the work.
6704 The Corresponding Source need not include anything that users can
6705 regenerate automatically from other parts of the Corresponding Source.
6707 The Corresponding Source for a work in source code form is that same
6708 work.
6710 @item Basic Permissions.
6712 All rights granted under this License are granted for the term of
6713 copyright on the Program, and are irrevocable provided the stated
6714 conditions are met.  This License explicitly affirms your unlimited
6715 permission to run the unmodified Program.  The output from running a
6716 covered work is covered by this License only if the output, given its
6717 content, constitutes a covered work.  This License acknowledges your
6718 rights of fair use or other equivalent, as provided by copyright law.
6720 You may make, run and propagate covered works that you do not convey,
6721 without conditions so long as your license otherwise remains in force.
6722 You may convey covered works to others for the sole purpose of having
6723 them make modifications exclusively for you, or provide you with
6724 facilities for running those works, provided that you comply with the
6725 terms of this License in conveying all material for which you do not
6726 control copyright.  Those thus making or running the covered works for
6727 you must do so exclusively on your behalf, under your direction and
6728 control, on terms that prohibit them from making any copies of your
6729 copyrighted material outside their relationship with you.
6731 Conveying under any other circumstances is permitted solely under the
6732 conditions stated below.  Sublicensing is not allowed; section 10
6733 makes it unnecessary.
6735 @item Protecting Users' Legal Rights From Anti-Circumvention Law.
6737 No covered work shall be deemed part of an effective technological
6738 measure under any applicable law fulfilling obligations under article
6739 11 of the WIPO copyright treaty adopted on 20 December 1996, or
6740 similar laws prohibiting or restricting circumvention of such
6741 measures.
6743 When you convey a covered work, you waive any legal power to forbid
6744 circumvention of technological measures to the extent such
6745 circumvention is effected by exercising rights under this License with
6746 respect to the covered work, and you disclaim any intention to limit
6747 operation or modification of the work as a means of enforcing, against
6748 the work's users, your or third parties' legal rights to forbid
6749 circumvention of technological measures.
6751 @item Conveying Verbatim Copies.
6753 You may convey verbatim copies of the Program's source code as you
6754 receive it, in any medium, provided that you conspicuously and
6755 appropriately publish on each copy an appropriate copyright notice;
6756 keep intact all notices stating that this License and any
6757 non-permissive terms added in accord with section 7 apply to the code;
6758 keep intact all notices of the absence of any warranty; and give all
6759 recipients a copy of this License along with the Program.
6761 You may charge any price or no price for each copy that you convey,
6762 and you may offer support or warranty protection for a fee.
6764 @item Conveying Modified Source Versions.
6766 You may convey a work based on the Program, or the modifications to
6767 produce it from the Program, in the form of source code under the
6768 terms of section 4, provided that you also meet all of these
6769 conditions:
6771 @enumerate a
6772 @item 
6773 The work must carry prominent notices stating that you modified it,
6774 and giving a relevant date.
6776 @item
6777 The work must carry prominent notices stating that it is released
6778 under this License and any conditions added under section 7.  This
6779 requirement modifies the requirement in section 4 to ``keep intact all
6780 notices''.
6782 @item
6783 You must license the entire work, as a whole, under this License to
6784 anyone who comes into possession of a copy.  This License will
6785 therefore apply, along with any applicable section 7 additional terms,
6786 to the whole of the work, and all its parts, regardless of how they
6787 are packaged.  This License gives no permission to license the work in
6788 any other way, but it does not invalidate such permission if you have
6789 separately received it.
6791 @item
6792 If the work has interactive user interfaces, each must display
6793 Appropriate Legal Notices; however, if the Program has interactive
6794 interfaces that do not display Appropriate Legal Notices, your work
6795 need not make them do so.
6796 @end enumerate
6798 A compilation of a covered work with other separate and independent
6799 works, which are not by their nature extensions of the covered work,
6800 and which are not combined with it such as to form a larger program,
6801 in or on a volume of a storage or distribution medium, is called an
6802 ``aggregate'' if the compilation and its resulting copyright are not
6803 used to limit the access or legal rights of the compilation's users
6804 beyond what the individual works permit.  Inclusion of a covered work
6805 in an aggregate does not cause this License to apply to the other
6806 parts of the aggregate.
6808 @item  Conveying Non-Source Forms.
6810 You may convey a covered work in object code form under the terms of
6811 sections 4 and 5, provided that you also convey the machine-readable
6812 Corresponding Source under the terms of this License, in one of these
6813 ways:
6815 @enumerate a
6816 @item
6817 Convey the object code in, or embodied in, a physical product
6818 (including a physical distribution medium), accompanied by the
6819 Corresponding Source fixed on a durable physical medium customarily
6820 used for software interchange.
6822 @item
6823 Convey the object code in, or embodied in, a physical product
6824 (including a physical distribution medium), accompanied by a written
6825 offer, valid for at least three years and valid for as long as you
6826 offer spare parts or customer support for that product model, to give
6827 anyone who possesses the object code either (1) a copy of the
6828 Corresponding Source for all the software in the product that is
6829 covered by this License, on a durable physical medium customarily used
6830 for software interchange, for a price no more than your reasonable
6831 cost of physically performing this conveying of source, or (2) access
6832 to copy the Corresponding Source from a network server at no charge.
6834 @item
6835 Convey individual copies of the object code with a copy of the written
6836 offer to provide the Corresponding Source.  This alternative is
6837 allowed only occasionally and noncommercially, and only if you
6838 received the object code with such an offer, in accord with subsection
6841 @item
6842 Convey the object code by offering access from a designated place
6843 (gratis or for a charge), and offer equivalent access to the
6844 Corresponding Source in the same way through the same place at no
6845 further charge.  You need not require recipients to copy the
6846 Corresponding Source along with the object code.  If the place to copy
6847 the object code is a network server, the Corresponding Source may be
6848 on a different server (operated by you or a third party) that supports
6849 equivalent copying facilities, provided you maintain clear directions
6850 next to the object code saying where to find the Corresponding Source.
6851 Regardless of what server hosts the Corresponding Source, you remain
6852 obligated to ensure that it is available for as long as needed to
6853 satisfy these requirements.
6855 @item
6856 Convey the object code using peer-to-peer transmission, provided you
6857 inform other peers where the object code and Corresponding Source of
6858 the work are being offered to the general public at no charge under
6859 subsection 6d.
6861 @end enumerate
6863 A separable portion of the object code, whose source code is excluded
6864 from the Corresponding Source as a System Library, need not be
6865 included in conveying the object code work.
6867 A ``User Product'' is either (1) a ``consumer product'', which means any
6868 tangible personal property which is normally used for personal,
6869 family, or household purposes, or (2) anything designed or sold for
6870 incorporation into a dwelling.  In determining whether a product is a
6871 consumer product, doubtful cases shall be resolved in favor of
6872 coverage.  For a particular product received by a particular user,
6873 ``normally used'' refers to a typical or common use of that class of
6874 product, regardless of the status of the particular user or of the way
6875 in which the particular user actually uses, or expects or is expected
6876 to use, the product.  A product is a consumer product regardless of
6877 whether the product has substantial commercial, industrial or
6878 non-consumer uses, unless such uses represent the only significant
6879 mode of use of the product.
6881 ``Installation Information'' for a User Product means any methods,
6882 procedures, authorization keys, or other information required to
6883 install and execute modified versions of a covered work in that User
6884 Product from a modified version of its Corresponding Source.  The
6885 information must suffice to ensure that the continued functioning of
6886 the modified object code is in no case prevented or interfered with
6887 solely because modification has been made.
6889 If you convey an object code work under this section in, or with, or
6890 specifically for use in, a User Product, and the conveying occurs as
6891 part of a transaction in which the right of possession and use of the
6892 User Product is transferred to the recipient in perpetuity or for a
6893 fixed term (regardless of how the transaction is characterized), the
6894 Corresponding Source conveyed under this section must be accompanied
6895 by the Installation Information.  But this requirement does not apply
6896 if neither you nor any third party retains the ability to install
6897 modified object code on the User Product (for example, the work has
6898 been installed in ROM).
6900 The requirement to provide Installation Information does not include a
6901 requirement to continue to provide support service, warranty, or
6902 updates for a work that has been modified or installed by the
6903 recipient, or for the User Product in which it has been modified or
6904 installed.  Access to a network may be denied when the modification
6905 itself materially and adversely affects the operation of the network
6906 or violates the rules and protocols for communication across the
6907 network.
6909 Corresponding Source conveyed, and Installation Information provided,
6910 in accord with this section must be in a format that is publicly
6911 documented (and with an implementation available to the public in
6912 source code form), and must require no special password or key for
6913 unpacking, reading or copying.
6915 @item Additional Terms.
6917 ``Additional permissions'' are terms that supplement the terms of this
6918 License by making exceptions from one or more of its conditions.
6919 Additional permissions that are applicable to the entire Program shall
6920 be treated as though they were included in this License, to the extent
6921 that they are valid under applicable law.  If additional permissions
6922 apply only to part of the Program, that part may be used separately
6923 under those permissions, but the entire Program remains governed by
6924 this License without regard to the additional permissions.
6926 When you convey a copy of a covered work, you may at your option
6927 remove any additional permissions from that copy, or from any part of
6928 it.  (Additional permissions may be written to require their own
6929 removal in certain cases when you modify the work.)  You may place
6930 additional permissions on material, added by you to a covered work,
6931 for which you have or can give appropriate copyright permission.
6933 Notwithstanding any other provision of this License, for material you
6934 add to a covered work, you may (if authorized by the copyright holders
6935 of that material) supplement the terms of this License with terms:
6937 @enumerate a
6938 @item
6939 Disclaiming warranty or limiting liability differently from the terms
6940 of sections 15 and 16 of this License; or
6942 @item
6943 Requiring preservation of specified reasonable legal notices or author
6944 attributions in that material or in the Appropriate Legal Notices
6945 displayed by works containing it; or
6947 @item
6948 Prohibiting misrepresentation of the origin of that material, or
6949 requiring that modified versions of such material be marked in
6950 reasonable ways as different from the original version; or
6952 @item
6953 Limiting the use for publicity purposes of names of licensors or
6954 authors of the material; or
6956 @item
6957 Declining to grant rights under trademark law for use of some trade
6958 names, trademarks, or service marks; or
6960 @item
6961 Requiring indemnification of licensors and authors of that material by
6962 anyone who conveys the material (or modified versions of it) with
6963 contractual assumptions of liability to the recipient, for any
6964 liability that these contractual assumptions directly impose on those
6965 licensors and authors.
6966 @end enumerate
6968 All other non-permissive additional terms are considered ``further
6969 restrictions'' within the meaning of section 10.  If the Program as you
6970 received it, or any part of it, contains a notice stating that it is
6971 governed by this License along with a term that is a further
6972 restriction, you may remove that term.  If a license document contains
6973 a further restriction but permits relicensing or conveying under this
6974 License, you may add to a covered work material governed by the terms
6975 of that license document, provided that the further restriction does
6976 not survive such relicensing or conveying.
6978 If you add terms to a covered work in accord with this section, you
6979 must place, in the relevant source files, a statement of the
6980 additional terms that apply to those files, or a notice indicating
6981 where to find the applicable terms.
6983 Additional terms, permissive or non-permissive, may be stated in the
6984 form of a separately written license, or stated as exceptions; the
6985 above requirements apply either way.
6987 @item Termination.
6989 You may not propagate or modify a covered work except as expressly
6990 provided under this License.  Any attempt otherwise to propagate or
6991 modify it is void, and will automatically terminate your rights under
6992 this License (including any patent licenses granted under the third
6993 paragraph of section 11).
6995 However, if you cease all violation of this License, then your license
6996 from a particular copyright holder is reinstated (a) provisionally,
6997 unless and until the copyright holder explicitly and finally
6998 terminates your license, and (b) permanently, if the copyright holder
6999 fails to notify you of the violation by some reasonable means prior to
7000 60 days after the cessation.
7002 Moreover, your license from a particular copyright holder is
7003 reinstated permanently if the copyright holder notifies you of the
7004 violation by some reasonable means, this is the first time you have
7005 received notice of violation of this License (for any work) from that
7006 copyright holder, and you cure the violation prior to 30 days after
7007 your receipt of the notice.
7009 Termination of your rights under this section does not terminate the
7010 licenses of parties who have received copies or rights from you under
7011 this License.  If your rights have been terminated and not permanently
7012 reinstated, you do not qualify to receive new licenses for the same
7013 material under section 10.
7015 @item Acceptance Not Required for Having Copies.
7017 You are not required to accept this License in order to receive or run
7018 a copy of the Program.  Ancillary propagation of a covered work
7019 occurring solely as a consequence of using peer-to-peer transmission
7020 to receive a copy likewise does not require acceptance.  However,
7021 nothing other than this License grants you permission to propagate or
7022 modify any covered work.  These actions infringe copyright if you do
7023 not accept this License.  Therefore, by modifying or propagating a
7024 covered work, you indicate your acceptance of this License to do so.
7026 @item Automatic Licensing of Downstream Recipients.
7028 Each time you convey a covered work, the recipient automatically
7029 receives a license from the original licensors, to run, modify and
7030 propagate that work, subject to this License.  You are not responsible
7031 for enforcing compliance by third parties with this License.
7033 An ``entity transaction'' is a transaction transferring control of an
7034 organization, or substantially all assets of one, or subdividing an
7035 organization, or merging organizations.  If propagation of a covered
7036 work results from an entity transaction, each party to that
7037 transaction who receives a copy of the work also receives whatever
7038 licenses to the work the party's predecessor in interest had or could
7039 give under the previous paragraph, plus a right to possession of the
7040 Corresponding Source of the work from the predecessor in interest, if
7041 the predecessor has it or can get it with reasonable efforts.
7043 You may not impose any further restrictions on the exercise of the
7044 rights granted or affirmed under this License.  For example, you may
7045 not impose a license fee, royalty, or other charge for exercise of
7046 rights granted under this License, and you may not initiate litigation
7047 (including a cross-claim or counterclaim in a lawsuit) alleging that
7048 any patent claim is infringed by making, using, selling, offering for
7049 sale, or importing the Program or any portion of it.
7051 @item Patents.
7053 A ``contributor'' is a copyright holder who authorizes use under this
7054 License of the Program or a work on which the Program is based.  The
7055 work thus licensed is called the contributor's ``contributor version''.
7057 A contributor's ``essential patent claims'' are all patent claims owned
7058 or controlled by the contributor, whether already acquired or
7059 hereafter acquired, that would be infringed by some manner, permitted
7060 by this License, of making, using, or selling its contributor version,
7061 but do not include claims that would be infringed only as a
7062 consequence of further modification of the contributor version.  For
7063 purposes of this definition, ``control'' includes the right to grant
7064 patent sublicenses in a manner consistent with the requirements of
7065 this License.
7067 Each contributor grants you a non-exclusive, worldwide, royalty-free
7068 patent license under the contributor's essential patent claims, to
7069 make, use, sell, offer for sale, import and otherwise run, modify and
7070 propagate the contents of its contributor version.
7072 In the following three paragraphs, a ``patent license'' is any express
7073 agreement or commitment, however denominated, not to enforce a patent
7074 (such as an express permission to practice a patent or covenant not to
7075 sue for patent infringement).  To ``grant'' such a patent license to a
7076 party means to make such an agreement or commitment not to enforce a
7077 patent against the party.
7079 If you convey a covered work, knowingly relying on a patent license,
7080 and the Corresponding Source of the work is not available for anyone
7081 to copy, free of charge and under the terms of this License, through a
7082 publicly available network server or other readily accessible means,
7083 then you must either (1) cause the Corresponding Source to be so
7084 available, or (2) arrange to deprive yourself of the benefit of the
7085 patent license for this particular work, or (3) arrange, in a manner
7086 consistent with the requirements of this License, to extend the patent
7087 license to downstream recipients.  ``Knowingly relying'' means you have
7088 actual knowledge that, but for the patent license, your conveying the
7089 covered work in a country, or your recipient's use of the covered work
7090 in a country, would infringe one or more identifiable patents in that
7091 country that you have reason to believe are valid.
7093 If, pursuant to or in connection with a single transaction or
7094 arrangement, you convey, or propagate by procuring conveyance of, a
7095 covered work, and grant a patent license to some of the parties
7096 receiving the covered work authorizing them to use, propagate, modify
7097 or convey a specific copy of the covered work, then the patent license
7098 you grant is automatically extended to all recipients of the covered
7099 work and works based on it.
7101 A patent license is ``discriminatory'' if it does not include within the
7102 scope of its coverage, prohibits the exercise of, or is conditioned on
7103 the non-exercise of one or more of the rights that are specifically
7104 granted under this License.  You may not convey a covered work if you
7105 are a party to an arrangement with a third party that is in the
7106 business of distributing software, under which you make payment to the
7107 third party based on the extent of your activity of conveying the
7108 work, and under which the third party grants, to any of the parties
7109 who would receive the covered work from you, a discriminatory patent
7110 license (a) in connection with copies of the covered work conveyed by
7111 you (or copies made from those copies), or (b) primarily for and in
7112 connection with specific products or compilations that contain the
7113 covered work, unless you entered into that arrangement, or that patent
7114 license was granted, prior to 28 March 2007.
7116 Nothing in this License shall be construed as excluding or limiting
7117 any implied license or other defenses to infringement that may
7118 otherwise be available to you under applicable patent law.
7120 @item No Surrender of Others' Freedom.
7122 If conditions are imposed on you (whether by court order, agreement or
7123 otherwise) that contradict the conditions of this License, they do not
7124 excuse you from the conditions of this License.  If you cannot convey
7125 a covered work so as to satisfy simultaneously your obligations under
7126 this License and any other pertinent obligations, then as a
7127 consequence you may not convey it at all.  For example, if you agree
7128 to terms that obligate you to collect a royalty for further conveying
7129 from those to whom you convey the Program, the only way you could
7130 satisfy both those terms and this License would be to refrain entirely
7131 from conveying the Program.
7133 @item Use with the GNU Affero General Public License.
7135 Notwithstanding any other provision of this License, you have
7136 permission to link or combine any covered work with a work licensed
7137 under version 3 of the GNU Affero General Public License into a single
7138 combined work, and to convey the resulting work.  The terms of this
7139 License will continue to apply to the part which is the covered work,
7140 but the special requirements of the GNU Affero General Public License,
7141 section 13, concerning interaction through a network will apply to the
7142 combination as such.
7144 @item Revised Versions of this License.
7146 The Free Software Foundation may publish revised and/or new versions
7147 of the GNU General Public License from time to time.  Such new
7148 versions will be similar in spirit to the present version, but may
7149 differ in detail to address new problems or concerns.
7151 Each version is given a distinguishing version number.  If the Program
7152 specifies that a certain numbered version of the GNU General Public
7153 License ``or any later version'' applies to it, you have the option of
7154 following the terms and conditions either of that numbered version or
7155 of any later version published by the Free Software Foundation.  If
7156 the Program does not specify a version number of the GNU General
7157 Public License, you may choose any version ever published by the Free
7158 Software Foundation.
7160 If the Program specifies that a proxy can decide which future versions
7161 of the GNU General Public License can be used, that proxy's public
7162 statement of acceptance of a version permanently authorizes you to
7163 choose that version for the Program.
7165 Later license versions may give you additional or different
7166 permissions.  However, no additional obligations are imposed on any
7167 author or copyright holder as a result of your choosing to follow a
7168 later version.
7170 @item Disclaimer of Warranty.
7172 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
7173 APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
7174 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM ``AS IS'' WITHOUT
7175 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
7176 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
7177 A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND
7178 PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
7179 DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
7180 CORRECTION.
7182 @item Limitation of Liability.
7184 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
7185 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
7186 CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
7187 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
7188 ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
7189 NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
7190 LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
7191 TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
7192 PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7194 @item Interpretation of Sections 15 and 16.
7196 If the disclaimer of warranty and limitation of liability provided
7197 above cannot be given local legal effect according to their terms,
7198 reviewing courts shall apply local law that most closely approximates
7199 an absolute waiver of all civil liability in connection with the
7200 Program, unless a warranty or assumption of liability accompanies a
7201 copy of the Program in return for a fee.
7203 @end enumerate
7205 @heading END OF TERMS AND CONDITIONS
7207 @heading How to Apply These Terms to Your New Programs
7209 If you develop a new program, and you want it to be of the greatest
7210 possible use to the public, the best way to achieve this is to make it
7211 free software which everyone can redistribute and change under these
7212 terms.
7214 To do so, attach the following notices to the program.  It is safest
7215 to attach them to the start of each source file to most effectively
7216 state the exclusion of warranty; and each file should have at least
7217 the ``copyright'' line and a pointer to where the full notice is found.
7219 @smallexample
7220 @var{one line to give the program's name and a brief idea of what it does.}  
7221 Copyright (C) @var{year} @var{name of author}
7223 This program is free software: you can redistribute it and/or modify
7224 it under the terms of the GNU General Public License as published by
7225 the Free Software Foundation, either version 3 of the License, or (at
7226 your option) any later version.
7228 This program is distributed in the hope that it will be useful, but
7229 WITHOUT ANY WARRANTY; without even the implied warranty of
7230 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7231 General Public License for more details.
7233 You should have received a copy of the GNU General Public License
7234 along with this program.  If not, see @url{http://www.gnu.org/licenses/}.
7235 @end smallexample
7237 Also add information on how to contact you by electronic and paper mail.
7239 If the program does terminal interaction, make it output a short
7240 notice like this when it starts in an interactive mode:
7242 @smallexample
7243 @var{program} Copyright (C) @var{year} @var{name of author} 
7244 This program comes with ABSOLUTELY NO WARRANTY; for details type @samp{show w}.
7245 This is free software, and you are welcome to redistribute it
7246 under certain conditions; type @samp{show c} for details.
7247 @end smallexample
7249 The hypothetical commands @samp{show w} and @samp{show c} should show
7250 the appropriate parts of the General Public License.  Of course, your
7251 program's commands might be different; for a GUI interface, you would
7252 use an ``about box''.
7254 You should also get your employer (if you work as a programmer) or school,
7255 if any, to sign a ``copyright disclaimer'' for the program, if necessary.
7256 For more information on this, and how to apply and follow the GNU GPL, see
7257 @url{http://www.gnu.org/licenses/}.
7259 The GNU General Public License does not permit incorporating your
7260 program into proprietary programs.  If your program is a subroutine
7261 library, you may consider it more useful to permit linking proprietary
7262 applications with the library.  If this is what you want to do, use
7263 the GNU Lesser General Public License instead of this License.  But
7264 first, please read @url{http://www.gnu.org/philosophy/why-not-lgpl.html}.
7266 @node Concept Index,  , GNU General Public License, Top
7267 @comment  node-name,  next,  previous,  up
7268 @unnumbered Index
7270 @printindex cp
7272 @bye