planner-publish: Change :after to :before-end
[planner-el.git] / planner-el.texi
blob5640cb27d3961b03c5680f98a14019c4c70fab85
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.41.
17 Copyright @copyright{} 2001, 2004, 2005, 2006 Free Software Foundation, Inc.@*
18 Parts copyright @copyright{} 2005 Jim Ottaway@*
19 Parts copyright @copyright{} 2005 Dryice Dong Liu
21 @quotation
22 Permission is granted to copy, distribute and/or modify this document
23 under the terms of the GNU General Public License, Version 2.0
24 or any later version published by the Free Software Foundation.
25 A copy of the license is included in the section entitled ``GNU
26 General Public License.''
27 @end quotation
28 @end copying
30 @titlepage
31 @title Guide to Planner
32 @subtitle a day planner and organizer
33 @subtitle for GNU Emacs and XEmacs
35 @c The following two commands
36 @c start the copyright page.
37 @page
38 @vskip 0pt plus 1filll
39 @insertcopying
40 @end titlepage
42 @c So the toc is printed at the start
43 @contents
45 @ifnottex
46 @node Top, Preface, (dir), (dir)
47 @comment  node-name,  next,  previous,  up
48 @top Planner
50 @insertcopying
51 @end ifnottex
53 @menu
54 * Preface::                     
55 * Introduction::                
56 * Installation::                
57 * Overview::                    A discussion of different approaches to planning
58 * Getting Started::             
59 * More about Planner::          In-depth look at some core features
60 * Managing Your Information::   Integration with external programs
61 * Advanced Configuration::      
62 * Reference Material::          
63 * Getting Help::                
64 * Acknowledgements::            
65 * GNU General Public License::  
66 * Concept Index::               
68 @detailmenu
69  --- The Detailed Node Listing ---
71 Installation
73 * Getting the Files::           
74 * Creating Your Planner::       
75 * Components::                  
76 * Advanced Installation::       
78 Getting the Files
80 * Installing from a Source Archive::  
81 * Installing from Arch::        
82 * Installing from Debian::      
84 Overview
86 * Planning based on the Franklin-Covey Approach::  
87 * Why Use Planner::             
89 Getting Started
91 * Tasks::                       
92 * Schedule::                    
93 * Notes::                       
94 * Hyperlinks::                  
95 * Example Page::                
96 * Review::                      
98 More about Planner
100 * Navigation::                  
101 * More about Tasks::            
102 * More about Notes::            
103 * Making Files Pretty::         
104 * Annotations::                 
105 * Interactive Lisp::            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://www.mwolson.org/static/doc/}.
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://www.mwolson.org/static/doc/muse.html}.
315 Make sure that you use the latest Muse release.  Development code might
316 prove unstable.
318 @menu
319 * Getting the Files::           
320 * Creating Your Planner::       
321 * Components::                  
322 * Advanced Installation::       
323 @end menu
325 @node Getting the Files, Creating Your Planner, Installation, Installation
326 @comment node-name,  next,  previous,  up
327 @section Getting the Files
329 Currently, there are three ways to obtain and install Planner. You can
330 install it from a source archive, Arch repository, or Debian package.
332 @menu
333 * Installing from a Source Archive::  
334 * Installing from Arch::        
335 * Installing from Debian::      
336 @end menu
338 @node Installing from a Source Archive, Installing from Arch, Getting the Files, Getting the Files
339 @comment node-name,  next,  previous,  up
340 @subsection Installing from a Source Archive
341 @cindex source code archive, installing from
343 You can install Planner from the source archive packaged and
344 distributed directly by the maintainer. This archive is provided in
345 both @file{.tar.gz} and @file{.zip} format.
347 @enumerate
348 @item
349 Download and unpack either
350 @url{http://www.mwolson.org/static/dist/planner-latest.tar.gz} or
351 @url{http://www.mwolson.org/static/dist/planner-latest.zip}.
353 @item Edit your @file{~/.emacs} (@file{_emacs} on Microsoft Windows).
355 @example
356 ;; Add the directories to your load path
357 (add-to-list 'load-path "/path/to/muse/lisp")
358 (add-to-list 'load-path "/path/to/planner")
359 (add-to-list 'load-path "/path/to/remember")
361 ;; Load planner
362 (require 'planner)
363 @end example
364 @end enumerate
366 @subheading Updating Your Version
368 Download a new version and extract it over the old directory. Don't
369 forget to delete any byte-compiled files (@file{*.elc}) in the
370 directories so that the new code will be used.
372 @node Installing from Arch, Installing from Debian, Installing from a Source Archive, Getting the Files
373 @comment node-name,  next,  previous,  up
374 @subsection Installing from Arch
375 @cindex Arch repositories
376 @cindex Arch, installing from
378 Arch allows you to retrieve previous versions and select specific
379 features and bugfixes. Debian users can install Arch with @kbd{apt-get
380 install tla}. Users of other distributions should see
381 @url{http://regexps.srparish.net/www/}.
383 To get started with Planner using Arch, you'll need to run some initial
384 commands to register your local copy of the archive and retrieve the
385 files.
387 @example
388 # Register the Muse archive
389 tla register-archive http://www.mwolson.org/archives/2006
391 # Register the Planner archive
392 tla register-archive http://arch.gna.org/planner-el/archive-2006
394 # Get the Muse archive
395 tla get mwolson@@gnu.org--2006/muse--main--1.0 muse
397 # Download planner module into the planner/ subdirectory
398 tla get mwolson@@gnu.org--2006-planner-el/planner-el--devel--0 planner
399 @end example
401 Then add the following lines to your @code{~/.emacs}:
403 @example
404 ;; Add the directories to your load path
405 (add-to-list 'load-path "/path/to/muse/lisp")
406 (add-to-list 'load-path "/path/to/planner")
407 (add-to-list 'load-path "/path/to/remember")
409 ;; Load planner
410 (require 'planner)
411 @end example
413 You can also browse the Arch repository on the web at
414 @url{http://www.mwolson.org/cgi-bin/archzoom/archzoom.cgi/mwolson@@gnu.org--2006-planner-el}.
416 @subheading Updating Your Version
417 @cindex Arch, updating from
419 To stay up-to-date using Arch, here are some commands that might be
420 useful.
422 To list upstream changes not in local copy:
424 @example
425 # Change to the source directory you are interested in. Example:
426 cd muse/
428 # Display the summary of changes
429 tla missing --summary
430 @end example
432 To update to the latest version:
434 @example
435 cd muse; tla replay
436 cd ../planner; tla replay
437 cd ../remember; tla replay
438 @end example
440 Don't forget to delete any byte-compiled files (@file{*.elc}) in the
441 directories so that the new code will be used.
443 @node Installing from Debian, , Installing from Arch, Getting the Files
444 @comment node-name,  next,  previous,  up
445 @subsection Installing from Debian
446 @cindex Debian package
448 Debian packages for Planner, Muse, and Remember are available in Debian
449 proper as the @code{planner-el}, @code{muse-el}, and @code{remember-el}
450 packages, respectively.
452 If you wish to try experimental packages, add the following lines to
453 your @file{/etc/apt/sources.list}
455 @example
456 deb http://www.mwolson.org/debian/ ./
457 @end example
459 Then, do the following steps as root:
461 @example
462 apt-get update
463 apt-get install muse-el
464 apt-get install planner-el
465 @end example
467 @subheading Updating Your Version
468 @cindex Debian package, updating
470 If you installed Planner from Debian, do @kbd{apt-get update; apt-get
471 upgrade} to upgrade all packages that can be upgraded, or @kbd{apt-get
472 update; apt-get install planner-el} to upgrade just planner-el.
474 @node Creating Your Planner, Components, Getting the Files, Installation
475 @section Creating Your Planner
477 Now that you have installed the files for Planner and Muse, you need
478 to set some options to create your first planner.
480 Muse thinks in terms of projects. Each project consists of a group of
481 documents and certain information associated with these
482 documents. Planner is organized as a project within Muse. So, you need
483 to tell Muse a bit about it.
485 Add something like the following code to your @file{.emacs} file.
487 First, give your new Planner project a name. In this case, we use the
488 name, ``WikiPlanner''.
490 @example
491 (setq planner-project "WikiPlanner")
492 @end example
494 Next, add an entry for your project to Muse's master list of
495 projects. Don't forget to use your own name here in place of
496 ``WikiPlanner'' if you have chosen something different.
498 @example
499 (setq muse-project-alist
500       '(("WikiPlanner"
501          ("~/Plans"           ;; where your Planner pages are located
502           :default "TaskPool" ;; use value of `planner-default-page'
503           :major-mode planner-mode
504           :visit-link planner-visit-link)
506          ;; This next part is for specifying where Planner pages
507          ;; should be published and what Muse publishing style to
508          ;; use.  In this example, we will use the XHTML publishing
509          ;; style.
511          (:base "planner-xhtml"
512                 ;; where files are published to
513                 ;; (the value of `planner-publishing-directory', if
514                 ;;  you have a configuration for an older version
515                 ;;  of Planner)
516                 :path "~/public_html/Plans"))))
517 @end example
519 This code should work fine as-is for you as long as the directories
520 you see exist, and as long as you have no other Muse projects besides
521 your planner.
523 The first directory (@file{~/Plans}) is the directory where the
524 source files for your planner will reside. This is the directory where
525 you will actually visit files and edit them.  These files must have a
526 ``.muse'' extension.
528 The second directory (@file{~/public_html/Plans}) is the directory
529 where your planner files will be published by Muse as XHTML
530 (@pxref{Publishing}).
532 After you have added this code, make sure to either evaluate it or
533 restart Emacs.
535 @node Components, Advanced Installation, Creating Your Planner, Installation
536 @comment node-name,  next,  previous,  up
537 @section Components
539 Now that you have the archive, let's look at what's in it.
541 There should be three directories, named @file{planner}, @file{muse} and
542 @file{remember}.
544 In the @file{planner/} directory, you'll see many files with names like
545 @file{planner-gnus.el}. These are extra modules and extensions for
546 Planner, which you can use to tailor Planner to fit your desired
547 planning and information management habits.
549 In the @file{muse/lisp} directory, you'll see many files with names like
550 @file{muse-blosxom.el}. As in @file{planner/}, these are optional
551 modules and extensions.
553 A minimal working installation includes just @file{planner/planner.el}.
555 You need @file{planner.el} because it provides the core functions for
556 handling tasks, notes, and page navigation. You need @file{Emacs Muse}
557 because it provides the functions used to display your pages (both in an
558 emacs buffer and as HTML), and for connecting them to each other. More
559 specifically, it enables you to have hyperlinks and formatting in your
560 emacs buffers even though the actual files you are working with are
561 saved in plain text. These abilities are used in Planner to format your
562 planner pages the way you like, to create links from your tasks and
563 notes to the materials and projects they refer to, and to optionally
564 ``publish'' your pages in different formats, including HTML.
566 In the @file{remember/} directory are files related to
567 RememberMode. RememberMode does not depend on Planner or Muse, but works
568 best with Planner installed. It is not required in order to use Planner,
569 but it is used by many Planner users to record notes and information to
570 their planner pages.
572 If you are curious, you can open each file in these directories and read
573 the comments at the top, to get an idea of what each extension is used
574 for. They are also all detailed later in this manual.
576 @node Advanced Installation,  , Components, Installation
577 @comment  node-name,  next,  previous,  up
578 @section Advanced Installation
580 Once you decide you want to keep Planner around for a while, there
581 are two additional steps you can take to make using it easier and more
582 efficient. These steps are optional.
584 @itemize
585 @cindex installing the info file
586 @cindex @file{planner-el.texi}, installing
587 @cindex @file{planner-el.info}, installing
588 @item You can make this document, the Planner info file, appear in
589 the index of info files you see when you type @command{M-x info} or
590 @kbd{C-h i} in Emacs. The instructions for doing this vary depending
591 on whether you have permission to edit certain files on your
592 system. Follow the instructions in @ref{Installing an Info File, ,
593 ,texinfo, Texinfo}, using something like:
595 @example
596 * Planner: (path/to/planner/Planner). Organizer/day planner
597 for Emacs.
598 @end example
600 for the new entry in the info @file{dir} file.
602 @cindex byte compiling
603 @item You can byte-compile @file{planner.el}, @file{Muse},
604 @file{remember.el}, or any of the optional modules you frequently use,
605 in order to improve the speed of their execution. Basically, all you
606 need to do is change to the directory of each project in
607 @file{scripts/planner-build.el} and run @command{make} from the command
608 line. To read more detail about byte compilation, see
609 @ref{Byte Compilation, , ,elisp, Emacs Lisp Reference Manual}.
611 @end itemize
613 @node Overview, Getting Started, Installation, Top
614 @comment node-name,  next,  previous,  up
615 @chapter Overview
617 Planner is a plain-text hyperlinked personal information manager
618 for Emacs that helps you keep track of tasks, notes, and other
619 information. People use Planner to support different ways of planning
620 one's day, from Franklin-Covey and David Allen's Getting Things Done
621 to home-brew hacks. Planner is even used to manage information not
622 normally handled by a personal information manager, like bugtracking,
623 time tracking, and team data. If you start by using Planner as a basic
624 TODO and notes manager, you might find other ways it can help you
625 improve your process.
627 You can use Planner to keep track of your tasks, schedule, notes,
628 and other information you want to store in hyperlinkable text files.
629 You can get the most benefit out of a personal information manager if
630 you use it everyday. Most people add @code{(plan)} to the end of their
631 @file{~/.emacs} so that Planner shows today's schedule and
632 unfinished tasks whenever Emacs starts. If you leave your Emacs
633 running for more than 24 hours, try to get into the habit of running
634 @code{plan} at least once a day.
636 Because your time is important, Planner tries to minimize
637 distractions, making it easier for you to jot down tasks and notes
638 without being distracted from your work. People often make tasks based
639 on the current buffer, so Planner tries to create hyperlinks to
640 whatever you're looking at so that you can jump back to it easily. The
641 @ref{Getting Started} tutorial will show you how to set that up for
642 both tasks and notes.
644 The customizability of Planner means you can make your personal
645 information manager truly personal. Planner strives to be as flexible
646 as possible, and we would love to adapt Planner to fit your needs.
647 Browse through our mailing list (@pxref{Getting Help}) to
648 find out how other people are using Planner, and post your feature
649 requests and bug reports there!
651 Planner is just a tool. It does not dictate a particular way of
652 planning, although it supports some ways better than it supports
653 others. If you want to take some time thinking about planning, read
654 the following reflections for inspiration and ideas. On the other
655 hand, if you want to hit the ground running, see @ref{Getting
656 Started}. If you already have a specific way of planning in mind,
657 check out @ref{Sample Configuration Files}.
659 @menu
660 * Planning based on the Franklin-Covey Approach::  
661 * Why Use Planner::             
662 @end menu
664 @node Planning based on the Franklin-Covey Approach, Why Use Planner, Overview, Overview
665 @comment  node-name,  next,  previous,  up
666 @section Planning Based on the Franklin-Covey Approach
667 @cindex philosophy of planning
669 This is a slightly edited and updated version of an essay by John
670 Wiegley. Read it if you want to get some insights into one way of
671 planning. You can skip this if you want to go straight to planning
672 your day.
674 What is planning?  It can be a nebulous thing to define.  In its
675 essence, however, it is very simple: it's how we achieve our dreams.
677 Our days are filled with time, and hence with actions, whether they
678 be of a mental or physical sort.  But there are two kinds of
679 action: reactive and creative.  Reactive action is a response to
680 the environment, a reaction to stimulus.  Had we enough instincts
681 to ensure survival, we could live according to this kind of action
682 alone.  It is a mode of behavior we share with every living
683 species.
685 The opposite to reactivity is creativity, when we decide upon a
686 course of action that is a wholly a product of personal choice.  We
687 then make decisions as to the steps needed to make this wish a
688 reality.  This is planning.  Planning is essentially a creative
689 endeavor at every step.
691 First, create the idea, what you want to achieve.  Very short-term
692 ideas do not need much more than thinking about how to do it.  But
693 long-term ideas require planning, since the mind cannot contain all
694 of the details.
696 Second, decide how the idea maps into the circumstances you find
697 yourself in.  Some environments will assist your plan, others
698 hinder it.  But step by step, identify every barrier to the
699 realization of your idea, and devise a countermeasure to overcome
700 it.  Once you've mapped things out from beginning to end,
701 accounting for unknowables as best you can, you now have your plan.
703 Third is to break the stages of the plan into parts that are not
704 overwhelming in their complexity.  It is at during this phase that
705 a plan is turned into task items, each to be accomplished within
706 the span of one day's time.  If a task requires several days, break
707 it up further.  The smaller it is, the less your mind will recoil
708 from attempting it.
710 Fourth is to monitor your progress, identifying problems and
711 correcting for them as you go.  Some plans start out unachievable,
712 and remain that way indefinitely, due to a simple lack of
713 observation.  If nothing is working for you, change it.  Otherwise,
714 your plan is merely a well-crafted wish.
716 Fifth is just to do the work, and be patient.  All good plans take a
717 great deal of time, and *cannot* happen immediately.  The groundwork
718 must be laid for each step, or else it will rest on an unsecure
719 foundation.  If you follow your plan doggedly, applying some time to
720 it each day or week, it @emph{will} happen.  Remember the story of the
721 tortoise and the hare.  I've even written a short essay on the
722 necessity of gradual accomplishment, which can be found at
723 @url{http://emacswiki.org/johnw/essays/node2.html}.
725 How can this software help?  Computers are ideal for manipulating
726 information, since they allow you to change things without erasing
727 or rewriting.  And since all plans change quite a bit during their
728 implementation, a planning program can be very helpful.
730 Start by adding the following to your @file{.emacs} (or @file{_emacs}):
732 @example
733 (load "planner")
734 @end example
736 Now, conceive your idea.  I can't believe there's nothing you want
737 from life.  More peace, time to enjoy the world, an end to war?
738 Everyone wants something.  Search deeply, and you will find
739 countless unhoped wishes lurking therein.  Choose one for now, and
740 think on it for a while.
742 Then open a file (using @kbd{C-x C-f}) within the directory named by
743 @code{planner-directory}.  Emacs will automatically recognize this file
744 as a planner file.  Name the file after your plan, such as
745 @file{BetterHealth}.
747 Choose an idea you really want to accomplish.  Struggle to
748 differentiate between the things you want because others want them,
749 and the things you want for yourself.  It takes quite an effort, and
750 may require a long time before you notice the difference.  Many people
751 want to be more healthy to be more attractive, which is an externally
752 driven goal.  Unless @emph{you} really want to accomplish what you
753 envision, the odds are you will fail.  Only our own wishes and dreams
754 possess enough personal energy to see themselves to fruition.  What
755 happens to many of us is simply that we never become conscious of
756 these dreams: what we love, what we desire most.  When I talk to
757 friends, so much of what I hear is things they want because they feel
758 they should want them.  There's just not enough energy there to pursue
759 a good plan, because nearly all of it is negative energy.
761 Do you know what you really want?  Don't worry, many people don't.
762 It's not a question anyone really wants us to pursue, because often
763 we don't want what others do; it doesn't contribute to the social
764 welfare, and all that nonsense.  Somehow we always forget that
765 what's good for the social welfare now, was someone else's crazy
766 dream a hundred years ago.  The human aversion to fundamental
767 change is always one's greatest enemy, so don't waste any time
768 getting bitter about it.
770 For the sake of argument I assume you really do want to be
771 healthier, because you've fallen in love with the ideal of purity,
772 or you understand the connection between your physical self and the
773 world around you, and how this can open up your spirit to desiring
774 more.  I assume.  :)
776 So you're in a Wiki file called @file{BetterHealth}.  Start typing.
777 Type anything related to your idea: what you think about it, your
778 ideas on it, @emph{and especially what the end will look like}.  If
779 you can't visualize the end, you can't plan, since planning is about
780 drawing a line between now and then.
782 When you've typed enough to gain a vision of your goal, start
783 drafting what the possible intermediate steps might be.  Then stop,
784 get up, walk around, enjoy life, and come back to it.  Taking a
785 long time at the beginning is not a bad idea at all, as long as
786 it's not forever.
788 As you chew on your idea, it will begin to become more and more
789 concrete.  You'll have ideas about the smallest pieces, and ideas
790 about the biggest pieces.  Keep going until it starts to take shape
791 before you, and you can see yourself in your mind's eye moving from
792 the present into the future.  Write down this progression, and the
793 sorts of things you might encounter along the way.
795 As you continue, you'll naturally discover discrete phases, or
796 ``milestones'' as managers love to call them.  These are very
797 important, because they let you know you're making progress.  I
798 recommend having a big party with friends every time you achieve a
799 milestone.  A typical plan might have between three and ten.
801 Between the milestones are the bigger pieces of your plan.  Name
802 these pieces using MixedCase words, and you'll notice that Emacs
803 colors and underlines them for you.  Like, FindGoodGym.  Hit return
804 on this highlighted word, and you'll find yourself in another,
805 blank file.  In this file, start drafting your sub-plan, just as
806 you did with the larger plan.  You should find it easier now, since
807 the scope is smaller.
809 As you break down further, you'll notice simple little things that
810 need to get done.  These are your tasks.  Every plan is a
811 succession of tasks.  The difference from reactivity is that each
812 task is part of the larger plan. This is what it means to be
813 systematic: that everything you do helps further your plan.  If you
814 have tasks in your day that contribute to no plan, they are
815 reactive.  Of course, life is full of these, but don't let them
816 take up more than 20% of your day.  If you allow yourself to be
817 dominated by reactive tasks, you'll regret it at the end of your
818 life.  I don't know this personally, but I do know that striving
819 for one's dreams -- and seeing them come to fruition -- is the
820 greatest joy a man can possess.  It is the essence of freedom, of
821 living, of creation.  Reactivity is the opposite of this, and
822 serves only to drain our energy and slacken our spirits.
824 Now that you've thought of a simple task, type @kbd{C-c C-t}. This
825 will ask for a brief description of the task, and when you plan to do
826 it. If you hit @key{RETURN} at the question @samp{When}, it assumes
827 you mean today. It will also pop up a three-month calendar at this
828 question, so you can see where your free days are. Make sure you set
829 the variable @code{mark-diary-entries-in-calendar} to @samp{t} in your
830 @file{.emacs} (or @file{_emacs}) file. This way, you can see which
831 days your appointments fall on. (Read about the Emacs Calendar and
832 Diary in @ref{Calendar/Diary, , , Emacs, GNU Emacs Manual}.)
834 @example
835 (setq mark-diary-entries-in-calendar t)
836 @end example
838 Once your task is in there, go back to your plan and keep
839 generating more tasks.  Generate them all!  Fully describe---as
840 tasks---everything necessary to bring your sub-plan to completion.
841 Don't create tasks for the other sub-plans.  You may have good idea
842 of what they'll look like, but don't bother rendering them into
843 tasks just yet.  Things will change too much between now and then,
844 for that to be a good use of your time.
846 Is your sub-plan now rendered into all of the tasks necessary to
847 reach your first milestone?  Great!  That is the purpose of
848 planner.el.  The rest is really up to you.  If you find that you
849 keep putting things off, and never do them, that's the surest sign
850 you're planning for someone else's dream, and not your own.
852 Here are some of the things planner.el can do, to help you manage
853 and track your tasks:
855 At the beginning of every day, type @kbd{M-x plan}.  This will jump
856 you to the top of the most recent task list before today.  If you
857 skipped a bunch of days, you'll have to open up those files on your
858 own.
860 Probably some of the tasks that day won't be finished -- that's OK.
861 Learning to properly estimate time is a magical, mystical art that few
862 have mastered.  Put your cursor on those undone tasks, and type
863 @kbd{C-c C-c}.  This will move them into today's task page.  You can
864 jump to today's task page at any time by typing @kbd{C-c C-n} (from a
865 Wiki or planning page).  I heartily recommend binding @kbd{C-c n}, to
866 jump you to this page from anywhere:
868 @example
869 (define-key mode-specific-map [?n] 'planner-goto-today)
870 @end example
872 As you look at your task sheet each day, the first thing to do is to
873 ``clock in'' to one of them.  This isn't necessary, and is only
874 helpful if you're around your computer a lot.  But by typing @kbd{C-c
875 C-i} (assuming you have my @file{timeclock.el} on your load-path), it
876 will log the time you spend working on your sub-plan (@pxref{Time
877 Intervals, , , Emacs, GNU Emacs Manual}).  This is helpful for viewing
878 your progress.  Type @kbd{C-c C-o} to clock out.
880 @kbd{C-M-p} and @kbd{C-M-n} will move a task up and down in priority.
881 Priority is represented by a letter A through C.  'A' tasks mean they
882 must be done that day, or else your plan is compromised and you will
883 have to replan.  'B' means they should be done that day, to further the
884 plan, otherwise things will be delayed.  'C' means you can put off the
885 task if you need to, although ultimately it will have to be done.
887 For reactive tasks, the letters mean something different: 'A' means
888 you must do it today, or somebody will roast your chestnuts over an
889 open fire.  'B' means you should do it today, or else someone will
890 be practicing patience at the day's end.  'C' means no one will
891 notice if you don't do it.
893 Again, reactive tasks are ENEMIES OF PLANNING.  Really, until you
894 see them that way, circumstances will push you around and steal
895 your life away.  We have only so many years to use, and everyone is
896 greedy to take them.  It's insidious, almost invisible.  A healthy
897 dislike of reactivity will do wonders for organizing your affairs
898 according to their true priority.
900 The last word that needs to be said concerns ``roles''.  Every person
901 stands in several positions in his life: husband, employee, manager,
902 etc.  These roles will tend to generate tasks not associated with any
903 immediate plan, but necessary to maintain the health and functioning
904 of the role.  My suggestion is to keep this the smallest possible
905 number, and fulfill those that remain well.  How you decide to
906 apportion your time between pursuing grand designs, and fostering deep
907 relationships, is a personal matter.  If you choose well, each will
908 feed the other.
910 I mention this to point that reactivity is something not
911 exclusively associated with tasks that have no master plan, because
912 being a father, for example, is something that rarely proceeds
913 according to orderly plans.  But the role of father itself is its
914 own plan, whose goal is ``to be the best one can'', and whose
915 component tasks are spending time on whatever comes up.  It is, in
916 a sense, an implicit plan.  But reactive tasks follow no plan at
917 all; they are parasites of time that suck the spirit away, whereas
918 properly chose roles actually help fulfill one's own inner needs.
919 At least, this is what I believe.
921 @defun plan force-days
922 Start your planning for the day, beginning with the last day's tasks.
924 If @code{planner-carry-tasks-forward} is non-nil, find the most recent
925 daily page with unfinished tasks and reschedule those tasks to
926 the current day.  If @var{force} is non-nil, examine all past daily
927 pages for unfinished tasks.
929 If @code{planner-carry-tasks-forward} is nil, visit the most recent
930 daily page.  If a daily page for today exists, visit that instead.
932 If @var{force-days} is a positive integer, scan that number of days.
933 If @var{force-days} is @samp{t}, scan all days.
935 @end defun
937 @node Why Use Planner,  , Planning based on the Franklin-Covey Approach, Overview
938 @comment  node-name,  next,  previous,  up
939 @section Why Use Planner?
940 @cindex Planner, why use
942 You can skip this essay if you just want to get started, or read it
943 for some insights into why the previous maintainer is crazy about it.
945 Why I Use Planner, by Sacha Chua
947 I thought about why I liked Planner. Planner as a TODO manager
948 isn't particularly special. Although I can assign tasks to categories
949 and see a breakdown of what projects are taking up my time, Evolution
950 and Microsoft Outlook provide more powerful task support. In other
951 task managers, you can e-mail tasks, assign multiple categories and
952 fill in all sorts of metadata. You can even synchronize your tasks
953 with devices like a phone or PDA. So why use Planner?
955 I realized that integration into my way of life and automatic context
956 clues are what really make planner tasks worth it for me. I don't have
957 to switch to another application to create a task. I can just hit a
958 keyboard shortcut. Planner uses a minibuffer to get the task
959 description. My windows are not rearranged in any way, and I can look
960 at the data that's relevant to a task. Not only that, tasks
961 automatically pick up context clues, like whom I'm talking to on IRC
962 or the file I'm editing at the moment. This cuts down on the explicit
963 context I need to include and makes it easier for me to bring up the
964 task again.
966 As a scheduler, Planner is also not particularly distinguished.
967 Sure, it can display my @file{~/diary}, but for that matter so can
968 @kbd{M-x diary}. Evolution and Outlook can give me a more graphical
969 view of my time, sync with my PDA, and coordinate my schedule with
970 other people. Those applications support detailed schedule entries
971 with powerful cyclic options. On the other hand, Planner gives me
972 a personal, plain text view and (at least the way I use it) requires
973 me to edit a separate file to add new appointments. (I've defined a
974 few shortcut keys to deal with this.) However, it does have one
975 advantage---my schedule is always loaded. I used to use Outlook on
976 Windows, but having my schedule in a separate application meant that I
977 actually looked at it very rarely, as I had turned off reminders
978 because they got annoying.
980 Planner's notes, however, are what really convinced me. I can hit
981 a keyboard shortcut from anywhere and type my notes into a buffer
982 which automatically keeps context information. After typing the note,
983 I can then categorize it. I think that the critical thing here is that
984 interruptions---fleeting thoughts---don't break my flow. I can just
985 pop up a remember buffer, stow that thought away somewhere, and go
986 back to it whenever I want. In contrast, creating a note in Outlook
987 means switching out of my application, making a couple of keystrokes,
988 typing the note in, and then switching back. The context switches make
989 it hard to keep track of where I am and what I'm supposed to remember.
990 Not only that, I need to enter context by hand. Even though I can
991 color my notes and reorganize them in Outlook, I find the context
992 switch too expensive. I used to keep notes in other knowledge
993 management tools as well. Some applications allowed me to
994 drag-and-drop links into the current note, and that was cool. But that
995 required a manual action, and those applications didn't feel
996 integrated into my way of working. (Note: You'll need remember.el for
997 this.)
999 I guess that's why I like Planner. Unlike other organizers which
1000 don't know anything about the applications I use, Planner tries
1001 its best to integrate into the way I work, and it's easy to extend.
1002 Fortunately I do almost all my work in Emacs, so I can think of my
1003 organizer as integrated into my e-mail client, Internet Relay Chat
1004 client, web browser, file editor and even games. It automatically
1005 picks up context clues from these applications and allows me to easily
1006 jump back to relevant files. It doesn't distract me. It allows me to
1007 key in data and then it gets out of my way.
1009 (That said, it's perfectly okay to use Planner even if you don't live
1010 in Emacs.)
1012 The processing that happens in the background is a bonus, and
1013 publishing my task list and notes online has greatly helped me. It
1014 gives other people a way to see what I'm working on and what I've
1015 planned for the future. Occasionally people write in with additional
1016 resources and helpful tips. (Again, this is purely optional. Many
1017 people don't publish their planner pages. Other people use really
1018 fine-grained access control.)
1020 I think the greatest feature of Planner, though, is its user
1021 community. Because Planner can be easily modified, we can experiment
1022 with a lot of new ideas quickly, and we can tailor Planner to fit our
1023 needs. I love checking my @samp{planner-el-discuss} mail and finding
1024 out how people have tweaked Planner or would like to tweak Planner,
1025 and I've learned a lot by exchanging reflections on organizing one's
1026 life.
1028 I really wasn't an organization freak before I started using Planner.
1029 I often forgot to do my homework or answer important mail. I still
1030 procrastinate now, but at least it's all being kept track of
1031 somewhere! I also really like how Planner lets me to gradually improve
1032 how I'm doing things, and I feel I've come a long way.
1034 Please try it out! We'd love to hear how Planner can become
1035 @emph{your} personal information manager.
1037 @node Getting Started, More about Planner, Overview, Top
1038 @comment  node-name,  next,  previous,  up
1039 @chapter Getting Started
1041 At the end of this tutorial, you will be able to use Planner and
1042 related modules to keep track of your tasks, schedules and notes, all
1043 within the convenience of Emacs.
1045 There are two kinds of pages in a Planner wiki. Day pages show tasks,
1046 schedule, and notes for the day, while plan pages organize related tasks
1047 and notes into a single page.
1049 If you have not yet added planner to your @file{~/.emacs}, add the
1050 following lines:
1052 @example
1053 (add-to-list 'load-path "/path/to/muse/lisp")
1054 (add-to-list 'load-path "/path/to/planner")
1055 (add-to-list 'load-path "/path/to/remember")
1056 (require 'planner)
1057 @end example
1059 This will bring up the most recent day page with unfinished tasks or
1060 create a new day page if necessary. By default, planner pages are
1061 stored in @samp{~/Plans} (@code{planner-directory}).
1063 @menu
1064 * Tasks::                       
1065 * Schedule::                    
1066 * Notes::                       
1067 * Hyperlinks::                  
1068 * Example Page::                
1069 * Review::                      
1070 @end menu
1072 @node Tasks, Schedule, Getting Started, Getting Started
1073 @section Tasks
1075 Let us start by creating a task labelled
1077 @example
1078 Join http://mail.gna.org/listinfo/planner-el-discuss/
1079 @end example
1081 From anywhere (even this info buffer!), call @kbd{M-x
1082 planner-create-task-from-buffer} to create a new task. Fill in the
1083 description and choose a date by:
1085 @itemize
1086 @item typing 1 - 31 to put the task on that day of the month,
1087 @item accepting the default (today) by pressing RET,
1088 @item selecting the date with mouse-1,
1089 @item
1090 typing +n (where in is an integer) to schedule the task in n days time,
1092 @item typing nil to make an undated task.
1093 @end itemize
1095 For now, accept the default (@samp{today}) by pressing @key{RET}.
1097 You will then be prompted for a plan page. Plan pages gather related
1098 tasks and notes, giving you an overview of what you've done so far.
1099 You can accept the default TaskPool, create your own plan page, or
1100 specify nil to make a task that is not associated with a plan page.
1101 For now, accept the default (@samp{TaskPool}) by pressing RET.
1103 You have created your first task. View today's page with
1104 @kbd{M-x planner-goto-today}. You will see a line of the form
1106 @example
1107 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1108 @end example
1110 If you created the task from this page, then there will be an additional
1111 annotation:
1113 @example
1114 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ : Tasks (TaskPool)
1115 @end example
1117 The URL, @samp{TaskPool} and @samp{Getting Started} are
1118 hyperlinks. You can use TAB and S-TAB to navigate between them and RET
1119 to follow the link.
1121 Create more tasks using @kbd{M-x planner-create-task-from-buffer}.
1122 This is bound to @kbd{C-c C-t} in @code{planner-mode} pages
1123 for your convenience. For example, create the following tasks:
1125 @itemize
1126 @item
1127 @samp{Describe my current way of working and how I would like to work},
1128 for three days from now (@samp{+3}),
1129 @item
1130 @samp{Learn how to schedule a task}, an undated task (@kbd{nil}) on the
1131 TaskPool page,
1132 @item
1133 @samp{Browse through the Planner info manual} for today (@kbd{.} or
1134 accept the defaults), and
1135 @item
1136 @samp{Add (plan) to the end of my [[~/.emacs]]} for today, but without a
1137 plan page (specify @kbd{nil} at the plan page prompt)
1138 @end itemize
1140 Tip: I bind planner-create-task-from-buffer to "F9 t" so that I can
1141 easily call it from anywhere. You can do that with this elisp fragment:
1142 @code{(global-set-key (kbd "<f9> t") 'planner-create-task-from-buffer)}
1144 Next, visit the TaskPool by:
1146 @itemize
1147 @item
1148 @key{TAB}-bing or using the cursor and typing @key{RET} to follow the
1149 link,
1150 @item @kbd{C-x C-f TaskPool RET} to use @code{find-file}, or
1151 @item @kbd{C-c C-f TaskPool RET} to use @code{muse-project-find-file}
1152 @end itemize
1154 You can see an overview of the tasks as scheduled on different days.
1155 Unlike many personal information managers that store all of your data
1156 in one file and then perform magic in order to present different
1157 views, Planner uses plain text files. The data is duplicated and kept
1158 updated by functions. This makes it simpler and easier to modify,
1159 because what you see is (almost) what you get. On the other hand,
1160 you'll need to get used to either editing both files, or using the
1161 built-in functions for editing and updating files. If you prefer not
1162 to work with linked tasks, you can configure Planner to use only plan
1163 pages or use only day pages.
1165 The TaskPool page should list the tasks you created earlier. Go to the
1166 one named Learn how to schedule a task . Type @kbd{C-c C-c}
1167 (@code{planner-copy-or-move-task}) to schedule the task. Type RET to
1168 accept the default (today). Go to the day page by following the link
1169 or calling @kbd{M-x planner-goto} (@kbd{C-c C-j C-d} or the menu bar);
1170 you will see the newly-created task there. You can also use @kbd{C-c
1171 C-c} (@kbd{planner-copy-or-move-task}) to reschedule a task to an
1172 earlier or later date.
1174 Well, that task is done. To mark the task as completed, type @kbd{C-c
1175 C-x} (@code{planner-task-done}). You can also edit the status manually
1176 (change _ to X) as long as you remember to call @kbd{M-x
1177 planner-update-task} to update the link page as well. Updating relies on
1178 the task description being the same, so do not edit this manually.
1180 Quick summary of commands:
1182 @itemize
1183 @item
1184 Go to today's page: @kbd{M-x plan} to carry unfinished tasks forward, or
1185 @kbd{M-x planner-goto-today} to just go to today's page.
1186 @item
1187 Create a task: @kbd{C-c C-t} (@code{planner-create-task-from-buffer}),
1188 or type a task manually (call M-x planner-update-task if the task is
1189 linked)
1190 @item
1191 Mark a task as done: @kbd{C-c C-x} (@code{planner-task-done}), or edit
1192 the task and call @kbd{M-x planner-update-task}
1193 @item Edit a task description: @kbd{M-x planner-edit-task-description}
1194 @item Reschedule a task: @kbd{C-c C-c} (@code{planner-copy-or-move-task})
1195 @item
1196 Reschedule many tasks: Mark a region and use @kbd{M-x
1197 planner-copy-or-move-region}
1198 @item
1199 Change the plan of a task: @kbd{M-x planner-replan-task}, or @kbd{C-c
1200 C-c} (@code{planner-copy-or-move-task}) with a plan page
1201 @item Delete a task: @kbd{M-x planner-delete-task}
1202 @item
1203 Reorder tasks: @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1204 (@code{planner-lower-task}), or normal editing commands like kill and
1205 yank
1206 @item Change task priorities (@samp{#A} > @samp{#B} > @samp{#C}):
1207       @key{C-M-p} (@code{planner-raise-task-priority}) and
1208       @key{C-M-n} (@code{planner-lower-task-priority}),
1209       or edit the task and call @kbd{M-x planner-update-task}.
1210 @end itemize
1212 You can save your tasks with @kbd{C-x C-s} the same way you save any
1213 other file, or Emacs will prompt you to save it when you exit.
1215 @node Schedule, Notes, Tasks, Getting Started
1216 @comment  node-name,  next,  previous,  up
1217 @section Schedule
1219 This is free-form. You can put anything you want into this, or remove
1220 it from @code{planner-day-page-template} entirely. Some people use it
1221 to keep track of their plans for the day with tables like this:
1223 @example
1224 hh:mm | hh:mm | activity
1225 hh:mm | hh:mm | activity
1226 hh:mm | hh:mm | activity
1227 @end example
1229 Remember, Planner files are just plain text. You can add new sections
1230 or remove old ones, or use the suggested sections for entirely
1231 different activities.
1233 @node Notes, Hyperlinks, Schedule, Getting Started
1234 @comment  node-name,  next,  previous,  up
1235 @section Notes
1236 @cindex @file{remember.el}
1237 @cindex @file{remember-planner.el}
1238 @cindex notes
1240 By default, your Planner pages will have a Notes section. You can put
1241 anything you want in this section, or remove it from your
1242 @code{planner-day-page-template} entirely.
1244 You may be interested in @file{remember-planner.el}, part of the
1245 Remember package (see @inforef{Top, remember-el, remember-el}). You
1246 can download Remember at @uref{http://gna.org/projects/remember-el/}).
1248 @code{remember-planner.el} makes it easy to create notes from anywhere
1249 in Emacs, and it uses the same context-sensing code that Planner uses.
1250 Notes added by @code{remember-planner.el} look like this:
1252 @example
1253 .#1 Headline 00:00
1254 Body
1256 [[context hyperlink]]
1257 @end example
1259 and are outlined at the H2 level in published HTML.
1261 You can easily create context-aware notes if you include the following
1262 in your @file{~/.emacs}:
1264 @example
1265 (require 'remember-planner)
1266 (setq remember-handler-functions '(remember-planner-append))
1267 (setq remember-annotation-functions planner-annotation-functions)
1268 @end example
1270 Then @kbd{M-x remember} will open a dedicated buffer for you to write
1271 your note. If Planner recognizes your current buffer as one with
1272 context then it will include a hyperlink at the bottom of the note.
1273 The first line of the note is used as a title, so make it short and
1274 meaningful. The rest of the text will be used as the body. Try it now
1275 by creating a note, perhaps about things you'd like to remember from
1276 this tutorial.
1278 Typing @kbd{C-c C-c} after composing will prompt for a plan page to
1279 put the note on, with auto-completion. If you don't enter a page, the
1280 note will just be saved on today's page. If you do specify a plan
1281 page, the note will go on both today's page and on the specified page.
1282 Let's try specifying @samp{TaskPool} for the note.
1284 If you look at today's page, you'll find a timestamped note that links
1285 to @samp{TaskPool}. Likewise, @samp{TaskPool} contains a note that
1286 links to today's page. To change the plan page of a note, use
1287 @kbd{planner-replan-note}.
1289 If you decide to edit the note on one of these pages after it has been
1290 saved, be aware that your changes will not be automatically reflected
1291 on the linked page. To update the linked page after editing a note,
1292 use @kbd{M-x planner-update-note}.
1294 @node Hyperlinks, Example Page, Notes, Getting Started
1295 @section Hyperlinks
1296 @cindex hyperlinks
1298 Planner automatically creates context-sensitive hyperlinks for your
1299 tasks and notes when you use @code{planner-create-task-from-buffer}
1300 and @code{remember}.
1302 Blue links indicate URLs and Planner pages that already exist. Red links
1303 indicate Planner pages that have not yet been created.
1305 Middle-click or type @key{RET} on any link to view the link in the
1306 current window. Shift-middle-click or type @key{S-RET} to view the
1307 link in another window. @key{TAB} goes to the next link, while
1308 @key{S-TAB} goes to the previous one.
1310 You can pick up hyperlinks using the @code{planner-annotation-as-kill}
1311 function.
1313 @defun planner-annotation-as-kill
1314 Create a context-sensitive hyperlink for the current buffer and copy
1315 it to the kill ring. When called with a prefix argument, prompt for
1316 the link display name.
1317 @end defun
1319 You can then paste it into any Planner buffer by using @kbd{M-x yank}
1320 or the keyboard shortcut.
1322 Alternatively, you can create hyperlinks by typing them directly, using
1323 the syntax defined by Muse. Anything inside double square brackets will
1324 be treated as a link. For example, if you type @samp{[[GroceryList]]} in
1325 a Planner buffer, you will end up with a link to a page called
1326 @samp{GroceryList}. @inforef{Implicit Links, Bare URLs WikiNames and
1327 InterWiki links, muse}, for more information about Muse syntax.
1329 Hyperlinks are a powerful feature of Planner. You can use them to
1330 hyperlink to mail, news, Web pages, and even IRC connections. See the
1331 section on @ref{Managing Your Information} to find out how to enable
1332 support for various parts of Emacs. Want to add a new hyperlink
1333 scheme? Check out the source code for examples or ask on the mailing
1334 list for help.
1336 @node Example Page, Review, Hyperlinks, Getting Started
1337 @comment  node-name,  next,  previous,  up
1338 @section Example Page
1339 @cindex example page
1340 @cindex planning page, example
1342 An example planner file is given below. You'll notice that Planner
1343 does not have a well-defined user interface. Rather, it's free-form
1344 and open, allowing you to adapt it to your preferences.
1346 @example
1347 ----------------------------------------------------------------------
1348 * Tasks
1350 #B  _ Join http://mail.gna.org/listinfo/planner-el-discuss/ (TaskPool)
1351 #B  _ Browse through the Planner info manual (TaskPool)
1352 #B  _ Add (plan) to the end of my ~/.emacs
1353 #B  X Learn how to schedule a task (TaskPool)
1355 * Schedule
1357 18:00 | 19:00 | Learn how to use Planner
1359 * Notes
1361 Notes are free-form. You can put anything you want into this.
1363 .#1 This is note number one
1365 Notes on note number one!
1367 .#2 This weird ".#2" syntax is used for allout.el enumerated lists
1369 It makes using allout-mode very handy.
1371 @end example
1373 @node Review,  , Example Page, Getting Started
1374 @comment  node-name,  next,  previous,  up
1375 @section Review
1377 @itemize
1379 @item @emph{Ideas for using planner more effectively:}
1381 @itemize
1382 @item
1383 Add @code{(plan)} to the end of your @file{~/.emacs} so that you are
1384 reminded about your tasks every day.
1386 @item
1387 Bind useful functions to shortcut keys and get used to creating tasks
1388 and notes from anywhere.
1390 @item
1391 Think about how you plan your day and look for ways to improve it. Ask
1392 the mailing list (@pxref{Getting Help}) for tips.
1394 @item
1395 Browse the rest of this manual, the source code, and other resources on
1396 the Net for tidbits you can use.
1398 @item Have fun!
1399 @end itemize
1401 @item @emph{Useful functions outside planner buffers:}
1403 @itemize
1404 @item @code{planner-create-task-from-buffer}
1405 @item @code{remember}
1406 @item @code{planner-goto-today}
1407 @item @code{planner-goto}
1408 @item @code{plan}
1409 @end itemize
1411 @item @emph{Useful functions inside planner buffers:}
1413 @itemize
1414 @item @kbd{C-c C-t} (@code{planner-create-task-from-buffer})
1415 @item @kbd{C-c C-x} (@code{planner-task-done})
1416 @item @kbd{M-x planner-edit-task-description}
1418 @item
1419 @kbd{C-c C-c} (@code{planner-copy-or-move-task}), @kbd{M-x
1420 planner-copy-or-move-region}
1422 @item @kbd{M-x planner-replan-task}
1423 @item @kbd{M-x planner-delete-task}
1425 @item
1426 @key{M-p} (@code{planner-raise-task}) and @key{M-n}
1427 (@code{planner-lower-task})
1429 @item @key{C-M-p} (@code{planner-raise-task-priority}) and
1430       @key{C-M-n} (@code{planner-lower-task-priority}),
1431 @item @code{planner-replan-note}
1432 @item @code{planner-update-note}
1433 @end itemize
1435 @end itemize
1437 That's all you need to know in order to use Planner as a basic TODO and
1438 notes manager, but there's a whole lot more. Read through this manual
1439 and our mailing list archives (@pxref{Getting Help}) for lots of
1440 wonderful ideas about planning in Emacs!
1442 @node More about Planner, Managing Your Information, Getting Started, Top
1443 @comment  node-name,  next,  previous,  up
1444 @chapter More about Planner
1446 @menu
1447 * Navigation::                  
1448 * More about Tasks::            
1449 * More about Notes::            
1450 * Making Files Pretty::         
1451 * Annotations::                 
1452 * Interactive Lisp::            planner-lisp.el
1453 * Publishing::                  planner-publish.el
1454 * Experimental Functions::      planner-experimental.el
1455 @end menu
1457 @node Navigation, More about Tasks, More about Planner, More about Planner
1458 @comment  node-name,  next,  previous,  up
1459 @section Starting with Day Pages
1461 @command{planner-goto-today} opens today's page.  Day pages are named
1462 @samp{YYYY.MM.DD} and contain your notes for the day.
1464 You should see a file that looks like this:
1466 @example
1467 * Tasks
1470 * Schedule
1472 * Notes
1473 @end example
1475 You can type anything you want into this file.  You can add or delete
1476 sections.  When you save, Emacs stores your information in
1477 @code{planner-directory}.
1479 Use the following commands to navigate through day pages:
1481 @defun plan
1482 Start planning the day.  If @code{planner-carry-tasks-forward} is
1483 non-nil, copy the most recent unfinished tasks to today's page, else
1484 open the most recent page.
1485 @end defun
1487 @defun planner-goto (@kbd{C-c C-j C-d})
1488 Prompt for a date using a calendar pop-up and display the
1489 corresponding day page.  You can specify dates partially.  The current
1490 year and month are used if omitted from the input.  For example, if
1491 today is 2004.05.05, then
1493 @itemize
1494 @item @kbd{+1} is one day from now, or @samp{2004.05.06}
1495 @item @kbd{-1} is one day before now, or @samp{2004.05.04}
1496 @item @kbd{12} is equivalent to @samp{2004.05.12}
1497 @item @kbd{8.12} is equivalent to @samp{2004.08.12}
1498 @item @kbd{2005.08.12} is a full date specification
1499 @end itemize
1501 In the calendar buffer, you can also left-click or press @key{RET} on
1502 a date to select it.
1503 @end defun
1505 @defun planner-goto-today (@kbd{C-c C-j C-j})
1506 Display today's page. Create the page if it does not yet exist.
1507 @end defun
1509 @defun planner-goto-tomorrow (@kbd{C-c C-j C-t})
1510 Goto the planner page days @var{after} the currently displayed date.
1511 If @var{days} is nil, go to the day immediately after the currently
1512 displayed date.  If the current buffer is not a daily planner page,
1513 calculate date based on today.
1514 @end defun
1516 @defun planner-goto-yesterday (@kbd{C-c C-j C-y})
1517 Goto the planner page @var{days} before the currently displayed date.
1518 If @var{days} is nil, go to the day immediately before the currently
1519 displayed date.  If the current buffer is not a daily planner page,
1520 calculate date based on today.
1521 @end defun
1523 @defun planner-goto-most-recent
1524 Go to the most recent day with planning info.
1525 @end defun
1527 @defun planner-goto-previous-daily-page
1528 Goto the last plan page before the current date.
1529 The current date is taken from the day page in the current
1530 buffer, or today if the current buffer is not a planner page.
1531 Do not create pages if they do not yet exist.
1532 @end defun
1534 @defun planner-goto-next-daily-page
1535 Goto the first plan page after the current date.
1536 The current date is taken from the day page in the current
1537 buffer, or today if the current buffer is not a planner page.
1538 Do not create pages if they do not yet exist.
1539 @end defun
1541 @defun planner-goto-plan-page page
1542 Opens @var{page} in the the @code{planner-project} Wiki.  Use
1543 @code{planner-goto} if you want fancy calendar completion.
1544 @end defun
1546 @defun planner-show date
1547 Show the plan page for @var{date} in another window, but don't select
1548 it.  If no page for @var{date} exists, return nil.
1549 @end defun
1552 @node More about Tasks, More about Notes, Navigation, More about Planner
1553 @comment  node-name,  next,  previous,  up
1554 @section More about Tasks
1555 @cindex tasks, more about
1557 This section is divided into three parts. In the first part, you can
1558 read about all the options, strategies and commands to help you
1559 efficiently add new tasks to your planner. In the second part, we'll go
1560 over all of the aspects of Planner that relate to organizing, editing,
1561 rescheduling and viewing the tasks you've already created. Finally,
1562 we'll cover some ways to step back and look at various reports and
1563 overviews that can be generated from your planner pages.
1565 You may also be interested in tracking time spent on tasks with
1566 @ref{Timeclock} and estimating project completion time with
1567 @ref{Schedule} (also see @pxref{schedule.el}).
1569 @menu
1570 * Creating New Tasks::          
1571 * Organizing Your Tasks::       
1572 * Task Reports and Overviews::  
1573 @end menu
1575 @node Creating New Tasks, Organizing Your Tasks, More about Tasks, More about Tasks
1576 @comment  node-name,  next,  previous,  up
1577 @subsection Creating New Tasks
1578 @cindex tasks, creating
1580 Planner makes it very easy to quickly add something to your list of
1581 tasks. Once you get used to the basics of
1582 @command{planner-create-task-from-buffer}, you might want to take a
1583 closer look at some things in Planner that can help you create new tasks
1584 in a way that fits with your system.
1586 @menu
1587 * Creating a Task::             
1588 * Task Priorities::             
1589 * Task IDs::                    planner-id.el
1590 * Cyclic Tasks::                planner-cyclic.el
1591 * Task Detail::                 
1592 * Deadlines::                   planner-deadline.el
1593 @end menu
1595 @node Creating a Task, Task Priorities, Creating New Tasks, Creating New Tasks
1596 @comment  node-name,  next,  previous,  up
1597 @subsubsection Creating a Task
1598 @cindex tasks, creating
1600 You can create a task from any buffer in Emacs by invoking
1601 @command{M-x planner-create-task-from-buffer}.
1603 This command does more than just add an item to your list of tasks. It
1604 also connects that item to some useful context information.
1606 If you create a task while viewing any buffer other than a Planner
1607 day page, Planner will associate the task with a hyperlink to that
1608 buffer. Try it now by creating a task from this Info buffer.
1610 @enumerate
1611 @item @kbd{M-x planner-create-task-from-buffer}
1612 @item
1613 When prompted for the task name, enter @kbd{Learn how to change a task's
1614 status} and press @key{RET}.
1616 @item
1617 When prompted for the date, press @key{RET} to schedule the task for
1618 today.
1620 @item
1621 When prompted for the project page, press @key{RET} to accept the
1622 default page of @samp{TaskPool}. This is a page for tasks not connected
1623 to a larger plan.
1625 @end enumerate
1627 Planner prompts you for two pieces of information when you ask it
1628 to create a task. First, it asks you when you would like to have the
1629 task show up in your planner. If you would like it to be scheduled for
1630 today, you can just hit @key{RET}. If you would like it to be
1631 scheduled for some day during the current month, you can just enter
1632 the date, without the month, like @samp{16}. If you would like it to
1633 be scheduled for some day in a future month of the current year, you
1634 can enter just the month and date, like @samp{06.16}. If you would
1635 like to schedule something for next year, then enter the full date,
1636 like @samp{06.16.2005}. If you do not want this task to appear on a
1637 day page at all, you can enter @samp{nil}.
1639 The second piece of information Planner asks for is the name of
1640 the project to associate the task with. In the above example, you
1641 associated the task with the project ``TaskPool'', which means that
1642 you did not want to associate the task with a particular project or
1643 goal in your life. Another way to do this is to answer the project
1644 prompt by entering @samp{nil}. But instead, you might enter
1645 @samp{LearnPlanner} as the project. This creates a new page called
1646 ``LearnPlanner'' in your planner directory and places an entry for the
1647 task on that page.
1649 The task then exists in two places: once on your day page, to show how
1650 it fits into your daily work; and once on a project page, to show how
1651 it fits into your larger projects and goals. In the future you might
1652 add related tasks like, ``Memorize Planner keybindings''. These
1653 tasks might be scattered over weeks or months worth of day pages, but
1654 as long as you enter the same project name for each, you will have a
1655 way to look at them all together on a single project page.
1657 Planner also creates hyperlinks to enable you to easily move back
1658 and forth between the day page system and the project page
1659 system. Each task on a day page will have a hyperlink to its project
1660 page. Each task on a project page will have a hyperlink to its day
1661 page.
1663 After using Planner for a while, you may find yourself with quite
1664 a few project pages. Keep in mind that completion is enabled at the
1665 project prompt when you create a task, so hitting @kbd{SPC} or
1666 @kbd{TAB} at the prompt will show you a list of your current project
1667 pages.
1669 Once the task is created, you are returned to the buffer you were
1670 working in again, Planner gets out of your way, and you can go on
1671 about your business. Later on, when you decide to actually work on
1672 that ``Memorize Planner keybindings'' task, you will be able to
1673 follow the hyperlink from that task on your day or project page
1674 directly to the relevant node in the Planner info file!
1676 By default, @command{M-x planner-create-task-from-buffer} creates
1677 medium-priority tasks, marked with the letter @samp{B}.  But you can
1678 specify a particular priority or change the default (@pxref{Task
1679 Priorities}).
1681 You don't have to use @command{planner-create-task-from-buffer} to
1682 create tasks. You can also create new tasks manually by typing them
1683 directly on your day or project page in the format Planner expects. You
1684 can even still create hyperlinks by using Muse formatting as you
1685 manually type the new task (@pxref{Hyperlinks}). Keep in mind also that
1686 tasks do not have to be linked to any other page.
1688 For convenience, @command{planner-create-task-from-buffer} is bound to
1689 @kbd{C-c C-t} in Planner buffers.  You can bind
1690 @command{planner-create-task-buffer} to a shortcut key.  See the
1691 manual for your Emacs distribution to find out more about keybinding.
1693 @defun planner-create-task-from-buffer title date plan-page
1694 Create a new task named @var{title} on @var{date} based on the current
1695 buffer.
1697 With a prefix, associate the task with the current planner page.  If
1698 you create a task on a date page, you will be prompted for a plan
1699 page.  If you create a task on a plan page, you will be prompted for a
1700 day page.  If nil is specified, the task is created only on the
1701 current page.
1703 See @code{planner-create-task} for more information.
1705 The new task is created at the top or bottom of the first block of
1706 tasks on the scheduled day page (if any), depending on the value of
1707 @code{planner-add-task-at-end-flag}.
1708 @end defun
1710 @defun planner-create-task title date annotation plan-page
1711 Create a new task named @var{title} based on the current Wiki page.
1712 If @var{date} is non-nil, makes a daily entry on @var{date}, else
1713 makes an entry in today's planner page. It's assumed that the current
1714 Wiki page is the page you're using to plan an activity. Any time
1715 accrued to this task will be applied to that page's name in the
1716 timelog file, assuming you use timeclock (@pxref{Time Intervals, , ,
1717 Emacs, GNU Emacs Manual}). If @var{annotation} is non-nil, it will be
1718 used for the page annotation. If @var{plan-page} is non-nil, the task
1719 is associated with the given page.
1721 With a prefix, associate the task with the current planner page.  If
1722 you create a task on a date page, you will be prompted for a plan
1723 page.  If you create a task on a plan page, you will be prompted for a
1724 day page.  If nil is specified, the task is created only on the
1725 current page.
1727 You probably want to call @code{planner-create-task-from-buffer}
1728 instead.
1730 The new task is created at the top or bottom of the first block of
1731 tasks on the scheduled day page (if any), depending on the value of
1732 @code{planner-add-task-at-end-flag}.
1733 @end defun
1735 @node Task Priorities, Task IDs, Creating a Task, Creating New Tasks
1736 @comment  node-name,  next,  previous,  up
1737 @subsubsection Task Priorities
1739 You can set the priority of a task when you create it, rather than
1740 waiting to adjust it after the fact. In order to do this, call the
1741 function corresponding to the priority you want. You probably want to
1742 bind these functions to some keys if you intend to use them much.
1744 @itemize
1745 @item @code{planner-create-high-priority-task-from-buffer}
1746 creates a task with priority @samp{A}.
1748 @item @code{planner-create-medium-priority-task-from-buffer}
1749 creates a task with priority @samp{B}.
1751 @item @code{planner-create-low-priority-task-from-buffer}
1752 creates a task with priority @samp{C}.
1753 @end itemize
1755 Or, you can change the default priority of
1756 @command{planner-create-task-from-buffer} by customizing
1757 @var{planner-default-task-priority}.
1759 You can actually use just one general priority, but using more than
1760 one color-codes your tasks and gives you a better overview of your
1761 day.
1764 @node Task IDs, Cyclic Tasks, Task Priorities, Creating New Tasks
1765 @comment  node-name,  next,  previous,  up
1766 @subsubsection Task IDs
1767 @cindex @file{planner-id.el}, using
1768 @cindex tasks, IDs
1770 After loading @file{planner.el}, make sure that @file{planner-id.el} is
1771 in your load path and add this to your @file{.emacs} (or @file{_emacs}):
1773 @example
1774 (require 'planner-id)
1775 @end example
1777 This module modifies the behavior of @file{planner.el}, adding global
1778 task IDs so that tasks can be edited and updated. Planner IDs are of
1779 the form @samp{@{@{Identifier:Number@}@}}.
1781 @subheading Options
1783 @defopt planner-id-add-task-id-flag
1784 Non-nil means automatically add global task IDs to newly-created
1785 tasks. If nil, use @command{planner-id-add-task-id} to add IDs to
1786 existing tasks, or @command{planner-id-add-task-id-to-all} to add to
1787 all tasks on the current page.
1788 @end defopt
1790 @defopt planner-id-update-automatically
1791 Non-nil means automatically update linked tasks whenever a page is
1792 saved. If nil, use @command{planner-update-task} to update the linked
1793 task. By default, linked tasks are automatically updated.
1794 @end defopt
1796 @defopt planner-id-tracking-file
1797 File that contains ID tracking data. This file is automatically
1798 overwritten.
1799 @end defopt
1801 @subheading Functions
1803 The following interactive functions are defined in @file{planner-id.el}:
1805 @defun planner-id-jump-to-linked-task &optional info
1806 Display the linked task page. If @var{info} is specified, follow that
1807 task instead.
1808 @end defun
1810 @defun planner-id-add-task
1811 Add a task ID for the current task if it does not have one
1812 yet. Update the linked task page, if any.
1813 @end defun
1815 @defun planner-id-update-tasks-on-page &optional force
1816 Update all tasks on this page. Completed or cancelled tasks are not
1817 updated. This can be added to @code{write-file-functions}. If
1818 @var{force} is non-nil, completed and cancelled tasks are also
1819 updated.
1820 @end defun
1822 @defun planner-id-add-task-id-to-all
1823 Add a task ID for all the tasks on the page. Update the linked page,
1824 if any.
1825 @end defun
1827 @defun planner-id-search-id id
1828 Search for all occurrences of @var{id}.
1829 @end defun
1831 @defun planner-id-follow-id-at-point
1832 Display a list of all pages containing the ID at point.
1833 @end defun
1835 @defun planner-id-follow-id-at-mouse event
1836 Display a list of all pages containing the ID at mouse. @var{event} is
1837 the mouse event.
1838 @end defun
1840 @node Cyclic Tasks, Task Detail, Task IDs, Creating New Tasks
1841 @comment  node-name,  next,  previous,  up
1842 @subsubsection Cyclic Tasks
1843 @cindex @file{planner-cyclic.el}, using
1844 @cindex tasks, cyclic
1845 @cindex cyclic tasks
1846 @cindex recurring tasks
1848 If there are tasks that you have to do regularly, you can have Planner
1849 schedule those tasks automatically.
1851 Make sure that @file{planner-cyclic.el} is in your load path and add
1852 this to your @file{.emacs} (or @file{_emacs}):
1854 @example
1855 (require 'planner-cyclic)
1856 @end example
1858 Create a diary file named @file{~/.diary.cyclic-tasks}
1859 (or the value of @code{planner-cyclic-diary-file}). Here is an example:
1861 @example
1862 Tuesday #B0 _ Study Japanese
1863 Friday #B0 _ Study Japanese (JapaneseStudies)
1864 @end example
1866 The first will be a plain task, the second will be linked.  The first
1867 line will automatically create its task every Tuesday, while the
1868 second will create it every Friday.
1870 You can schedule tasks in a variety of ways. This module uses the same
1871 syntax for specifying when tasks will be scheduled as the Emacs diary
1872 uses for appointments and events. See @ref{Date Formats, the GNU Emacs
1873 Manual, Date Formats,emacs, the GNU Emacs Manual}, and @ref{Sexp Diary
1874 Entries, the GNU Emacs Lisp Reference Manual, Sexp Diary
1875 Entries,elisp, the GNU Emacs Lisp Reference Manual}, for a full
1876 description of the possibilities.
1878 By default, planner-cyclic creates multiple tasks if you let tasks build
1879 up (that is, the next Tuesday rolls around and you @emph{still} haven't
1880 marked the task as done.) To turn off this behavior:
1882 @example
1883 (setq planner-cyclic-diary-nag nil)
1884 @end example
1886 @subheading Functions
1888 @file{planner-cyclic-diary} includes the following interactive
1889 functions:
1891 @defun planner-cyclic-create-tasks-maybe
1892 Maybe create cyclic tasks. This will only create tasks for future
1893 dates or today.
1894 @end defun
1896 @node Task Detail, Deadlines, Cyclic Tasks, Creating New Tasks
1897 @comment  node-name,  next,  previous,  up
1898 @subsubsection Task Detail
1899 @cindex tasks
1901 You may find your planner pages getting very full, so that you want to
1902 have one broad task entry be linked to a more specific list of
1903 sub-tasks. Or, maybe you want to have a number of notes linked to a
1904 particular task.
1905 @cindex tasks, sub-
1906 @cindex tasks, meta-
1907 @cindex meta-tasks
1908 @cindex sub-tasks
1910 This can be done with targets.  You can have a task that is really a
1911 meta-task:
1913 @example
1914 #A1  _ Do things in RevelleLog#13 @{@{Tasks:101@}@} (RevelleLog)
1915 @end example
1917 @samp{RevelleLog#13} could then be a list of sub-tasks in the form of
1918 a note, or any kind of note.
1920 Or, instead of pointing to a particular note on @samp{RevelleLog}, you
1921 could have the whole page be tasks that you enter in manually, without
1922 linking them to another page. You can just type them in like this:
1924 @example
1925 #A1  _ First specific thing to do
1926 @end example
1928 This way, the tasks will only appear on this specific project page,
1929 and not on any daily page, so you only see them when you want to look
1930 up all of the specific tasks associated with @samp{#A1  _ Do things in
1931 RevelleLog @{@{Tasks:101@}@} (RevelleLog)}.
1933 As you can see, the ability to manually enter tasks is one of
1934 Planner's nicest features. It allows you to create tasks that are
1935 not assigned to a specific date (by manually entering them on a
1936 project page with no date) or to a specific project (by manually
1937 entering them on a day page with no project). Yet as long as you enter
1938 them using the syntax it understands, Planner will continue to
1939 recognize them as tasks.
1941 Another way to have a task not be connected to a particular date is to
1942 do @kbd{C-c C-c} (@code{planner-copy-or-move-task}) and specify
1943 @samp{nil} when asked for the date.
1945 If you would like to see a list of all of your unfinished tasks, do
1946 @kbd{M-x planner-list-unfinished-tasks}. This function only checks
1947 day plan pages, not project pages.
1949 @node Deadlines,  , Task Detail, Creating New Tasks
1950 @comment  node-name,  next,  previous,  up
1951 @subsubsection Deadlines
1952 @cindex tasks, deadlines for
1953 @cindex deadlines, task
1954 @cindex @file{planner-deadline.el}, using
1956 You can use @file{planner-deadline.el} to automatically recalculate
1957 days to a deadline by adding @code{(require 'planner-deadline)} to
1958 your @file{~/.emacs}. With the default setup, make your tasks of the
1959 form
1961 @example
1962 #A0 _ Some task @{@{Deadline: 2004.09.12@}@}
1963 @end example
1965 (Note: There must be at least one space after the colon.)
1967 After you run @code{planner-deadline-update} to update task descriptions,
1968 the task will be of the form
1970 @example
1971 #A0 _ Some task @{@{Deadline: 2004.09.12 - 2 days@}@}
1972 @end example
1974 @subheading Options
1976 @defopt planner-deadline-regexp
1977 Regular expression for deadline data.
1978 The special deadline string should be regexp group 1. The
1979 date (YYYY.MM.DD) should be regexp group 2.
1980 @end defopt
1982 @subheading Functions
1984 @defun planner-deadline-update
1985 Replace the text for all tasks with deadlines. Deadlines are of the
1986 form @samp{@{@{Deadline: YYYY.MM.DD@}@}} by default.
1987 @end defun
1989 @defun planner-deadline-change &optional date
1990 Change the deadline of current task to @var{date}. If @var{date} is nil,
1991 remove deadline.
1992 @end defun
1994 @node Organizing Your Tasks, Task Reports and Overviews, Creating New Tasks, More about Tasks
1995 @comment  node-name,  next,  previous,  up
1996 @subsection Organizing Your Tasks
1997 @cindex tasks, organizing
1998 @cindex tasks, old
2000 Okay, now that you've gotten the hang of creating tasks, you're probably
2001 facing a really long list of things to do. How can you organize them so
2002 that they don't overwhelm you? Planner gives you a number of strategies
2003 for dealing with large numbers of tasks.
2005 @enumerate
2006 @item Arrange your tasks in the rough order you're going to do them.
2007 @item Use #A, #B and #C task priorities to differentiate between
2008       high-priority, normal and low-priority tasks.
2009 @item Schedule your tasks onto different days.
2010 @item Group your tasks into plan pages.
2011 @item Don't schedule all your tasks.
2012 @end enumerate
2014 @enumerate
2016 @item @emph{Task order}
2018 To remind yourself to do tasks in a certain order, simply edit the
2019 lines so that they're in the order you want. You can use normal
2020 editing commands like kill, yank and transpose-line to reorder the
2021 tasks, or use @key{M-p} (@code{planner-raise-task}) and @key{M-n}
2022 (@code{planner-lower-task}) to rearrange the tasks.
2024 @item @emph{Task priorities}
2026 By default, tasks are created with medium priority (@samp{#B}). You
2027 can make a task high-priority (@samp{#A}) or low-priority (@samp{#C})
2028 by manually editing the task and calling M-x planner-update-task to
2029 update the linked page. Alternatively, you can use @key{C-M-p}
2030 (@code{planner-raise-task-priority}) and @key{C-M-n}
2031 (@code{planner-lower-task-priority}) to modify the task and update the
2032 linked page.
2034 You can edit the priority of a task using @kbd{M-x
2035 planner-edit-task-priority}, or manually edit it and call @kbd{M-x
2036 planner-update-task} to update tasks on the linked page.
2038 @item @emph{Schedule your tasks on different days}
2040 You don't have to do everything today. Is this a task you would rather
2041 do tomorrow? Schedule it for then instead. You can specify @samp{+n}
2042 or @samp{-n} whenever you are asked for a date, where @var{n} is the
2043 number of days before or after the current file's date or today.
2044 Don't over-procrastinate things, though!
2046 @item @emph{Plan pages}
2048 Plan pages let you group related tasks and notes together for easy
2049 reference. For example, you could have a plan page for each major
2050 project or goal in your life, like @samp{GoodHealth} or
2051 @samp{FurtherStudies}.
2053 Although plan pages start by grouping everything under a @samp{*
2054 Tasks} header, you can organize your plan pages in different ways. For
2055 example, you can separate groups of tasks with blank lines, and
2056 Planner will sort tasks within each group.
2058 @item @emph{Tasks without dates}
2060 Plan pages also allow you to have undated tasks or tasks with no
2061 particular deadlines. This keeps your daily task list small and
2062 manageable while making it easier for you to find things to do if you
2063 have free time. Make sure you check your plan pages regularly so that
2064 you don't completely forget about them.
2066 For automated scheduling of the next task on a plan page after you
2067 complete a task, see the section in
2068 @uref{http://sacha.free.net.ph/notebook/emacs/planner-config.el} named
2069 ``Schedule next undated task from same project''.
2071 @end enumerate
2074 @menu
2075 * Multiple Projects::           
2076 * Viewing Tasks::               
2077 * Modifying Tasks::             
2078 * Carrying Over Unfinished Tasks::  
2079 * Task Numbering::              
2080 * Task Ranks::                  planner-rank.el
2081 * Grouping Tasks::              planner-trunk.el
2082 @end menu
2084 @node Multiple Projects, Viewing Tasks, Organizing Your Tasks, Organizing Your Tasks
2085 @comment  node-name,  next,  previous,  up
2086 @subsubsection Associating Tasks with Multiple Projects
2087 @cindex multiple projects
2088 @cindex @file{planner-multi.el}, using
2090 You can use @file{planner-multi.el} to associate a task with more than
2091 one project. That way, you can easily keep GTD-style context lists as
2092 well as project-related lists.
2094 To use multiple projects, add the following to your @samp{~/.emacs}:
2096 @example
2097 (require 'planner-multi)
2098 @end example
2100 Under GNU Emacs, you can specify multiple projects by separating them
2101 with a single space. For example, you can specify @kbd{planner doc}
2102 when creating a task to associate the task with those two projects.
2104 Under XEmacs, you can specify multiple projects by typing @kbd{RET}
2105 after each entry and terminating the list with another @kbd{RET}. For
2106 example, to specify @kbd{planner} and @kbd{doc}, you would type
2107 @kbd{planner RET doc RET RET} at the prompt.
2109 If you want to see an overview of all of your tasks as well as
2110 project- or context-specific lists, you can set
2111 @code{planner-multi-copy-tasks-to-page} to your overview page(s). For
2112 example, set it to @samp{TaskPool} to be able to see an overview of
2113 all of your unfinished tasks. You can also set this to multiple pages
2114 such as @samp{[[TasksByProject][p]] [[TasksByContext][c]]} and use
2115 @file{planner-trunk.el} to sort and organize tasks for easy reference.
2116 (@pxref{Grouping Tasks})
2118 @subheading Options
2120 @defopt planner-multi-copy-tasks-to-page
2121 Automatically copy newly-created tasks to the specified page.
2122 @end defopt
2124 By default, tasks are removed from
2125 @code{planner-multi-copy-tasks-to-page} when you call
2126 @code{planner-task-done} or @code{planner-task-cancelled}. If you
2127 prefer to keep a copy of the task, remove
2128 @code{planner-multi-remove-task-from-pool} from
2129 @code{planner-mark-task-hook}.
2131 If you want to use a different separator instead of spaces, customize
2132 the @code{planner-multi-separator} variable.
2134 @defopt planner-multi-separator
2135 String that separates multiple page references.
2137 For best results, this should be something recognized by
2138 @code{muse-link-at-point} so that links are highlighted
2139 separately.
2140 @end defopt
2142 @node Viewing Tasks, Modifying Tasks, Multiple Projects, Organizing Your Tasks
2143 @comment  node-name,  next,  previous,  up
2144 @subsubsection Viewing tasks
2145 @cindex tasks, viewing
2147 Review the tasks scheduled for today by typing @kbd{M-x
2148 planner-goto-today}.  If you created the task from the previous
2149 section in this tutorial, you should see a line that looks like
2151 @example
2152 #A _ Learn how to change a task's status from Tasks (TaskPool)
2153 @end example
2155 If you have @code{planner-use-task-numbers} set to non-nil, you will see
2156 something like the following instead.
2158 @example
2159 #A0 _ Learn how to change a task's status from Tasks (TaskPool)
2160 @end example
2162 From left to right, these are what the symbols mean:
2164 @itemize
2165 @item @samp{A} - Priority.  A (high)
2166 @item
2167 @samp{0} - Priority number.  It is calculated whenever you save the file
2168 or call @command{planner-renumber-tasks}, provided that
2169 @code{planner-use-task-numbers} is non-nil.  Tasks are numbered in
2170 ascending order according to priorities.
2171 @item @samp{_} - Status.  _ (unfinished)
2172 @end itemize
2174 If you click on @samp{Tasks} or press @key{RET} while your cursor is
2175 in the link, Emacs will display the previous info page.
2177 If you select @samp{TaskPool}, Emacs will display the @samp{TaskPool}
2178 plan page.  Plan pages organize your tasks and notes about a project
2179 in one file.
2181 @subheading Functions
2183 You can use @command{planner-seek-next-unfinished-task} to move to the
2184 next unfinished task on the current page.
2186 @defun planner-list-tasks-with-status status &optional pages
2187 Display all tasks that match the STATUS regular expression on all day
2188 pages.  The PAGES argument limits the pages to be checked in this
2189 manner:
2191 @itemize
2192 @item @code{t}: check all pages
2193 @item regexp: search all pages whose filenames match the regexp
2194 @item list of page names: limit to those pages
2195 @item alist of page/filenames: limit to those pages
2196 @end itemize
2198 Called interactively, this function will search day pages by
2199 default. You can specify the start and end dates or leave them as
2200 nil to search all days. Calling this function with an interactive
2201 prefix will prompt for a regular expression to limit pages.
2202 Specify @samp{.} or leave this blank to include all pages.
2204 This function could take a long time.
2205 @end defun
2207 @defun planner-list-unfinished-tasks &optional pages
2208 Display all unfinished tasks. @var{pages} follows
2209 planner-list-tasks-with-status.
2210 @end defun
2212 @defun planner-jump-to-linked-task task-info
2213 Display the task page linked to by the current task or
2214 @var{task-info}.
2215 @end defun
2217 @node Modifying Tasks, Carrying Over Unfinished Tasks, Viewing Tasks, Organizing Your Tasks
2218 @comment  node-name,  next,  previous,  up
2219 @subsubsection Modifying Tasks
2220 @cindex tasks, modifying
2221 @cindex tasks, editing
2223 To select a task, move your cursor to the line containing the task.
2225 Change a task's priority (@samp{A}, @samp{B} or @samp{C}) by editing
2226 the line. @samp{#A} tasks are important. @samp{#B} are medium
2227 priority. @samp{#C} are low priority. Whenever you save the file or
2228 call @kbd{M-x planner-fix-tasks}, tasks are sorted and numbered
2229 according to priority and status.
2231 Change a task's status by calling one of the following functions:
2233 @itemize
2234 @item planner-task-in-progress @samp{o} (@kbd{C-c C-z})
2235 @item planner-task-done @samp{X} (@kbd{C-c C-x})
2236 @item planner-task-cancelled @samp{C} (@kbd{C-c C-S-x})
2237 @item planner-task-delegated @samp{D}
2238 @item planner-task-pending @samp{P}
2239 @item planner-task-open @samp{_}
2240 @end itemize
2242 After changing the status using a function, look at the
2243 @samp{TaskPool} plan page.  The task is also updated on the linked
2244 page.  If you changed the task status manually by replacing the status
2245 with another character, you will need to call
2246 @command{planner-update-task} to update the linked page.
2248 To reschedule a task, call @command{planner-copy-or-move-task} (@kbd{C-c
2249 C-c}) and choose a new date.  You can mark a region and type @kbd{M-x
2250 planner-copy-or-move-region} to reschedule all the contained tasks to a
2251 different date.  Enter @samp{nil} for the date if you don't want the
2252 task or group of tasks to appear on any date page at all anymore. This
2253 is a good way to ``de-schedule'' a task for the time being, but still
2254 keep it linked to a plan page for possible future scheduling.
2256 To change the plan page associated with a task, call
2257 @command{planner-replan-task}.  Enter @samp{nil} for the plan page if
2258 you don't want the task to appear on any plan page anymore. If you
2259 precede the command with a prefix argument, the text of the original
2260 plan page will appear in the prompt for easy editing.
2262 Since the same task may exist on two or more pages, such as a date page
2263 and a plan page, it is dangerous to edit the description of the task by
2264 hand. You should not do it unless you want to make the exact same
2265 changes on all its linked pages.
2267 Instead of doing this by hand, you should use
2268 @command{planner-edit-task-description}. This will prompt you for the
2269 changes to the task description and then update all the other pages to
2270 which the task is linked.  Or, you can just use
2271 @command{planner-delete-task} to remove the task from both pages, and
2272 then create it again with the new desired description.
2274 To remind yourself to do tasks in a certain order, simply edit the
2275 lines so that they're in the order you want.
2276 @command{planner-raise-task} and @command{planner-lower-task} update
2277 the priorities on linked pages automatically. You can organize tasks
2278 into groups by putting a blank line between groups of tasks.
2279 Planner will maintain the groupings and only sort the tasks within
2280 that group.
2282 @subheading Functions
2284 @defun planner-replan-task page-name
2285 Change or assign the plan page for the current task.  @var{page-name}
2286 is the new plan page for the task. Use
2287 @code{planner-copy-or-move-task} if you want to change the date. With a
2288 prefix, provide the current link text for editing.
2289 @end defun
2291 @defun planner-raise-task-priority
2292 Change a low-priority task to a medium-priority task and a
2293 medium-priority task to a high-priority task (C to B to A).
2294 @end defun
2296 @defun planner-lower-task-priority
2297 Change a high-priority task to a medium-priority task and a
2298 medium-priority task to a low-priority task (A to B to C).
2299 @end defun
2301 @defun planner-raise-task arg
2302 Move a task up @var{arg} steps.  By default, @var{arg} is 1.
2303 @end defun
2305 @defun planner-lower-task  arg
2306 Move a task down @var{arg} steps.  By default, @var{arg} is 1.
2307 @end defun
2309 @defun planner-edit-task-description description
2310 Change the description of the current task, updating the linked page
2311 if any.
2312 @end defun
2314 @defun planner-delete-task
2315 Delete this task from the current page and the linked page.
2316 @end defun
2318 @defun planner-update-task
2319 Update the current task's priority and status on the linked page.
2320 Tasks are considered the same if they have the same description.
2321 This function allows you to force a task to be recreated if it
2322 disappeared from the associated page.
2323   
2324 Note that the text of the task must not change. If you want to be able
2325 to update the task description, see @code{planner-edit-task-description}
2326 or @file{planner-id.el}.
2327 @end defun
2329 See @command{planner-install-extra-task-keybindings} for additional
2330 task-related shortcuts.
2332 @node Carrying Over Unfinished Tasks, Task Numbering, Modifying Tasks, Organizing Your Tasks
2333 @comment  node-name,  next,  previous,  up
2334 @subsubsection Carrying Over Unfinished Tasks
2335 @cindex tasks, carrying over
2337 Sometimes you won't be able to cross off all the tasks on your list.
2338 Planner makes it easy for you to keep track of things you still have
2339 to do by automatically rescheduling unfinished tasks from the past few
2340 days. By default, the @command{plan} command searches for unfinished
2341 tasks from the last three days and reschedules them onto today. If you
2342 open Planner every day, this should cover weekends easily.
2344 It's a good idea to start Planner whenever you start Emacs. That way,
2345 Planner can help remind you about today's tasks, appointments, and other
2346 things. To automatically start Planner whenever you start up Emacs, add
2347 the following code to the end of your @file{~/.emacs}:
2349 @example
2350 (plan)
2351 @end example
2353 Now, every time you start Emacs (which should be more or less once a
2354 day), you'll see today's page. If you don't finish all the tasks today,
2355 you'll see them again tomorrow.
2357 It's a good idea to start Planner every time you start Emacs so that
2358 you get reminded about your task list. If you prefer to start Planner
2359 manually, remember to call @kbd{M-x plan} every so often to make sure
2360 that you don't forget any unfinished tasks. Safe in the knowledge that
2361 Planner tasks won't slip through the cracks (unlike little slips of
2362 paper that will invariably get mislaid), you can then get on with the
2363 rest of your life.
2365 If your increased productivity with Planner leads to a well-deserved
2366 two-week vacation, then you'll need to tell Planner to search more days
2367 for unfinished tasks. By using @kbd{M-x plan}, you can automatically
2368 bring forward tasks over a given number of days or even scan all the
2369 days since time immemorial. @kbd{C-u 15 M-x plan} reschedules all
2370 unfinished tasks from the last 15 days. @kbd{C-u -1 M-x plan} checks all
2371 of your past day pages for unfinished tasks.
2373 Like everything else in Planner, you can adapt @kbd{M-x plan} to your
2374 particular way of life. For example, if you find yourself starting up
2375 Emacs and Planner every day--including weekends--because it's just so
2376 much fun, you can set the @code{planner-carry-tasks-forward} to 1.
2377 This can make your Emacs startup marginally faster. On the other hand,
2378 if you normally start Emacs once a week, you can set it to 7 or 8. If
2379 you're worried about tasks dropping off your radar, you can set it to
2380 0. You can set the value of @var{planner-carry-tasks-forward} either
2381 with @key{M-x customize-variable RET planner-carry-tasks-forward RET},
2382 or by putting @code{(setq planner-carry-tasks-forward 3)} (replacing
2383 @code{3} with the value appropriate for what you want) in your
2384 @file{~/.emacs} file.
2386 On the other hand, you might prefer to reschedule tasks yourself. If
2387 you set @code{planner-carry-tasks-forward} to @code{nil}, then
2388 @command{M-x plan} and @code{(plan)} will bring you to the most recent
2389 page with unfinished tasks if there is no page for today. You can then
2390 use @command{planner-copy-or-move-task} and
2391 @command{planner-copy-or-move-region} to reschedule tasks. This is
2392 probably more hassle than it's worth, though, so let Planner take care
2393 of this for you.
2395 @subheading Options
2397 @defopt planner-carry-tasks-forward
2398 If non-nil, carry unfinished tasks forward automatically.
2399 If a positive integer, scan that number of days in the past.
2400 If 0, scan all days for unfinished tasks.
2401 If t, scan one day in the past (old behavior).
2402 If nil, do not carry unfinished tasks forward.
2403 @end defopt
2405 @subheading Functions
2407 @defun plan &optional force-days
2408 Start your planning for the day, carrying unfinished tasks forward.
2410 If @var{force-days} is a positive integer, search that many days in the
2411 past for unfinished tasks.
2412 If @var{force-days} is @code{0} or @code{t}, scan all days.
2413 If @var{force-days} is @code{nil}, use the value of
2414 @code{planner-carry-tasks-forward} instead, except t means scan only
2415 yesterday
2417 @end defun
2419 @defun planner-copy-or-move-task date force
2420 Reschedule the task for @var{date}. If @var{force} is non-nil, the
2421 task is moved regardless of status. It also works for creating tasks
2422 from a Note. Use @code{planner-replan-task} if you want to change the
2423 plan page in order to get better completion.
2424 @end defun
2426 @defun planner-copy-or-move-region beg end date muffle-errors
2427 Move all tasks from @var{beg} to @var{end} to @var{date}.
2428 @code{planner-copy-or-move-region} will copy or move all tasks from
2429 the line containing @var{beg} to the line just before @var{end}. If
2430 @var{muffle-errors} is non-nil, no errors will be reported.
2431 @end defun
2433 @node Task Numbering, Task Ranks, Carrying Over Unfinished Tasks, Organizing Your Tasks
2434 @comment  node-name,  next,  previous,  up
2435 @subsubsection Task Numbering
2437 By default, tasks are numbered according to their position on the
2438 page.  Task numbers allow you to refer to tasks using Muse links.
2439 For example, the @samp{#A1} task in @file{2004.08.16} can be referred to
2440 as @samp{2004.08.16#A1}.
2442 Note that task numbers change every time you re-sort and re-number tasks
2443 with @code{planner-fix-tasks}.  As a result, they are only reliable for
2444 references to past tasks.
2446 If you find yourself not using this functionality, you can turn off task
2447 numbers by using the following option.
2449 @subheading Options
2451 @defopt planner-use-task-numbers
2452 Non-nil means use task numbers when creating tasks.  This allows you
2453 to refer to past tasks if your tasks are numbered appropriately.
2454 If you set this to nil, you can save space in your plan files.
2455 @end defopt
2457 @node Task Ranks, Grouping Tasks, Task Numbering, Organizing Your Tasks
2458 @comment  node-name,  next,  previous,  up
2459 @subsubsection Task Ranks
2460 @cindex ranking tasks
2461 @cindex tasks, ranking
2462 @cindex @file{planner-rank.el}, using
2464 @file{planner-rank.el} models Franklin Covey's Urgency and Importance
2465 principle. When you think about a task, there are two aspects in
2466 consideration: Urgency and Importance. You may want to do the most
2467 urgent things first, like answering an email, or you may want to do
2468 the most important things first, like reading this manual. Or much
2469 better, balance Urgency and Importance and decide what to do.
2471 @file{planner-rank.el} can help you balance.
2473 Urgency and Importance are both measured by scores from 0-9. The
2474 higher the score, the more you want to do it first. 9 stands for ``I
2475 should have done this'' and 0 stands for ``I can forget this''.
2477 If you are using the planner @ref{Deadlines} feature, the Urgency
2478 score is automatically calculated from how many days are left to meet
2479 the deadline. By default, it will score 9 if the task is overdue and 0
2480 if the deadline is years away. Please refer to the docstring of
2481 @code{planner-rank-deadline-urgency-map-list} for detail.
2483 The task rank is calculated from Urgency and Importance scores. As
2484 different people balance urgency and importance differently, a number
2485 of @code{planner-rank-calculate-rank-*} functions are provided. The
2486 algorithms vary from a simple average to something like a weighted
2487 root mean square deviation.
2489 The aggressive versions of these functions
2490 (@code{planner-rank-calculate-rank-*-aggressive}) will make sure if
2491 one of Urgency and Importance is high, the resulting rank will be high
2492 as well. @code{planner-rank-calculate-rank-weighted-*} functions weigh
2493 the Urgency and Important scores depending on
2494 @code{planner-rank-importance-vs-urgency-factor}.
2496 Call @code{planner-rank-test-algorithm} on each of the functions and
2497 check the result tables to see which one you like most, and set it to
2498 @code{planner-rank-rank-calculate-function}. Alternatively, accept the
2499 defaults and tweak them when you get a better feel for ranking.
2501 Once the Rank is calculated, the @ref{Task Priorities} will be
2502 automatically reset. If the Rank is greater than or equal to
2503 @code{planner-rank-priority-A-valve}, the task priority will be
2504 @samp{A}, if the Rank is between @code{planner-rank-priority-A-valve}
2505 and @code{planner-rank-priority-B-valve}, the priority will be @samp{B},
2506 else it will be @samp{C}.
2508 After setting the task importance and deadline, you can leave it as
2509 is. As the deadline approaches, the task priority will automatically
2510 be raised and the task re-colored to catch your eyes.
2512 If you are using @code{planner-sort-tasks} (see @pxref{Making Files
2513 Pretty}), you can set @code{planner-sort-tasks-key-function} to one of
2514 @code{planner-sort-tasks-by-rank},
2515 @code{planner-sort-tasks-by-importance}, and
2516 @code{planner-sort-tasks-by-urgency}.
2518 @subheading Options
2520 @defopt planner-rank-change-hook
2521 Functions to run after @code{planner-rank-change}.
2522 @end defopt
2524 @defopt planner-rank-priority-A-valve
2525 Tasks with rank greater than or equal to this value will be set to
2526 priority @samp{A}.
2527 @end defopt
2529 @defopt planner-rank-priority-B-valve
2530 Tasks with rank greater than or equal to this value and less than
2531 @code{planner-rank-priority-A-valve} will be set to priority
2532 @samp{B}. Tasks with rank less than this value will be set to priority
2533 @samp{C}.
2534 @end defopt
2536 @defopt planner-rank-deadline-urgency-map-list
2537 Defines how to calculate the Urgency score according to how many days
2538 are left to meet the deadline.
2539 @end defopt
2541 @defopt planner-rank-default-importance
2542 Default importance value for newly added rank.
2543 @end defopt
2545 @defopt planner-rank-default-urgency
2546 Default urgency value for newly added rank.
2547 @end defopt
2549 @defopt planner-rank-importance-vs-urgency-factor
2550 How much do you think importance is more ``important'' than urgency.
2551 This will be used in @code{planner-rank-calculate-rank-weighted-*}
2552 functions.
2553 @end defopt
2555 @defopt planner-rank-rank-calculate-function
2556 Define the function called to calculate rank.
2557 @end defopt
2559 @subheading Functions
2561 @defun planner-rank-change &optional importance urgency
2562 Set the Importance and Urgency of the current task.
2563 @end defun
2565 @defun planner-rank-update-current-task
2566 Recalculate rank for the current task.
2567 @end defun
2569 @defun planner-rank-update-all
2570 Recalculate rank for all tasks in the current page
2571 @end defun
2573 @defun planner-rank-update-all
2574 Recalculate rank for all tasks in the current page
2575 @end defun
2577 @node Grouping Tasks,  , Task Ranks, Organizing Your Tasks
2578 @comment  node-name,  next,  previous,  up
2579 @subsubsection Grouping Tasks with planner-trunk.el
2580 @cindex grouping tasks
2581 @cindex tasks, grouping
2582 @cindex @file{planner-trunk.el}, using
2584 @file{planner-trunk.el} helps you automatically group tasks according
2585 to a set of rules. It sorts and splits your tasks, adding a blank line
2586 between groups of tasks. For example, if today's page looks like this:
2588 @example
2589 * Tasks
2591 #B   _ Buy milk (GroceryShopping)
2592 #B   _ Learn how to use planner-trunk (PlannerMode)
2593 #B   _ Buy a notebook (Bookstore)
2594 #B   _ Buy cereal (GroceryShopping)
2595 #B   _ Set up my own planner-trunk rules (PlannerMode)
2596 #B   _ Customize my stylesheet (MuseMode)
2597 #B   _ Go for a health checkup (BetterHealth)
2598 @end example
2600 @noindent
2601 then you might want to group the tasks into: planner and muse,
2602 shopping list, and other items. If you set up the appropriate rules by
2603 customizing @code{planner-trunk-rule-list}, @file{planner-trunk.el}
2604 can automatically rewrite that section line this:
2606 @example
2607 * Tasks
2609 #B   _ Learn how to use planner-trunk (PlannerMode)
2610 #B   _ Set up my own planner-trunk rules (PlannerMode)
2611 #B   _ Customize my stylesheet (MuseMode)
2613 #B   _ Buy milk (GroceryShopping)
2614 #B   _ Buy a notebook (BookstoreShopping)
2615 #B   _ Buy cereal (GroceryShopping)
2617 #B   _ Go for a health checkup
2618 @end example
2620 @noindent
2621 In this case, you would set @code{planner-trunk-rule-list}
2622 to @code{(("." nil ("PlannerMode\\|MuseMode" "Shopping")))}.
2624 You can load @file{planner-trunk} with @kbd{M-x load-library RET
2625 planner-trunk RET} or add @code{(require 'planner-trunk)}. If you're
2626 not yet comfortable with Emacs Lisp, you can use @kbd{M-x
2627 customize-variable RET planner-trunk-rule-list RET} to edit this rule
2628 using an easy-to-use interface.
2630 WARNING: Do not keep non-task information in the Tasks section.
2631 planner-trunk will delete @strong{all} non-task lines from the Tasks
2632 section of your plan page in the process of grouping the tasks.
2634 After you set up @code{planner-trunk-rule-list}, use @command{M-x
2635 planner-trunk-tasks} to try out your rules until you're satistfied.
2637 If you want to do this automatically, you can use @code{(add-hook
2638 'planner-mode-hook 'planner-trunk-tasks)} to trigger it automatically
2639 whenever you open a Planner page.
2641 @node Task Reports and Overviews,  , Organizing Your Tasks, More about Tasks
2642 @subsection Task Reports and Overviews
2643 @cindex task reports
2644 @cindex task overviews
2645 @cindex reports, task
2646 @cindex overviews, task
2647 @cindex reports, accomplishment
2648 @cindex tasks, overview of
2650 Planner provides a number of different ways to generate different
2651 presentations of your tasks.
2653 @menu
2654 * Accomplishments::             planner-accomplishments.el
2655 * Status Reports::              planner-report.el
2656 * Task Overviews::              planner-tasks-overview.el
2657 * <tasks> tag::             
2658 * planner-registry::            Keep track of annotations
2659 * planner-zoom::                View and navigate tasks by time period
2660 @end menu
2662 @node Accomplishments, Status Reports, Task Reports and Overviews, Task Reports and Overviews
2663 @comment  node-name,  next,  previous,  up
2664 @subsubsection Generating Daily Accomplishment Reports
2665 @cindex reports, accomplishment
2666 @cindex @file{planner-accomplishments.el}, using
2667 @cindex tasks, overview of
2668 @cindex task reports
2669 @cindex reports, task
2670 @cindex overviews, task
2671 @cindex task overviews
2673 You can use @file{planner-accomplishments.el} to get a summary of your
2674 task activity for a particular day. The report is grouped by status
2675 and plan (on day pages) or date (on plan pages). An example report
2676 follows:
2678 @example
2679 Link        | Unfinished | In progress | Delegated | Completed | Total
2680 nil         | 1          | 0           | 0         | 6         | 7
2681 TaskPool    | 1          | 1           | 0         | 3         | 5
2682 Planner     | 0          | 0           | 1         | 1         | 2
2683 SchoolWork  | 0          | 0           | 0         | 1         | 1
2684 Total       | 2          | 1           | 1         | 11        | 15
2685 @end example
2687 This lets you see how you balance your time between your projects.
2689 @itemize
2691 There are currently two ways to use @file{planner-accomplishments.el}.
2693 @item Displaying a temporary buffer
2695 You can call @code{planner-accomplishments-show} to display a buffer
2696 containing the current page's accomplishment report.
2698 @item Rewriting sections of your planner
2700 Choose this approach if you want accomplishment reports to be in
2701 their own section and you would like them to be readable in your
2702 plain text files even outside Emacs. Caveat: The accomplishment
2703 section should already exist in your template and will be rewritten
2704 when updated.
2706 To use, set @code{planner-accomplishments-section} to the name of the
2707 section to rewrite (default: @samp{Accomplishments}). If you want
2708 rewriting to be automatically performed, call
2709 @code{planner-accomplishments-insinuate}. The accomplishments will be
2710 rewritten whenever you save a planner page. If you want rewriting to
2711 be manual, call @code{planner-accomplishments-update}.
2713 @end itemize
2715 @subheading Options
2717 @defopt planner-accomplishments-section
2718 Header for the accomplishments section in a plan page.
2719 Used by @code{planner-accomplishments-update}.
2720 @end defopt
2722 @defopt planner-accomplishments-status-display
2723 Alist of status-label maps also defining the order of display.
2724 Used by @code{planner-accomplishments-format-table}.
2725 @end defopt
2727 @subheading Functions
2729 @defun planner-accomplishments-insinuate ()
2730 Automatically call @code{planner-accomplishments-update} when saving
2731 tasks in @code{planner-mode} buffers.
2732 @end defun
2734 @defun planner-accomplishments-update ()
2735 Rewrite @code{planner-accomplishments-section} with a summary of tasks
2736 on this page.
2737 @end defun
2739 @defun planner-accomplishments-show ()
2740 Display a buffer with the current page's accomplishment report.
2741 @end defun
2743 @node Status Reports, Task Overviews, Accomplishments, Task Reports and Overviews
2744 @comment  node-name,  next,  previous,  up
2745 @subsubsection Status Reports
2746 @cindex status reports
2747 @cindex reports, status
2748 @cindex @file{planner-report.el}, using
2750 @file{planner-report.el} creates a status report for a given timespan.
2751 The report itself is just another Planner page in your planner
2752 directory.  Once generated, it contains tasks and notes culled from
2753 active project pages.  Tasks are only shown if they are incomplete or
2754 were completed within the timespan.  Notes are shown if they were
2755 created during the timespan.  Tasks and notes are grouped together under
2756 a heading for their corresponding project.
2758 The idea is you have one of these status reports generated periodically
2759 (say, every couple of weeks).  Perhaps you use cron to run them
2760 automatically and then mail you a reminder that they've been done.  Then
2761 you can edit the page, adding verbiage where it is needed and removing
2762 irrelevant items.  This editing process is as easy as editing any other
2763 Planner page.  Finally, you can publish the page along with the rest of
2764 your planner using @kbd{M-x muse-project-publish}.
2766 If you use planner-authz.el, you can tell planner-report.el only to
2767 consult project pages that a given list of users
2768 (@var{planner-report-authz}) can access when generating the report.  For
2769 example, if you're preparing a status report for your boss, add yourself
2770 and him to @var{planner-report-authz}.  The resulting status report will
2771 only contain information the two of you are supposed to have access to,
2772 and the report itself will be similarly restricted.
2774 @subheading Getting started
2776 Add the following to your .emacs file:
2778 @example
2779 (require 'planner-report)
2780 @end example
2782 Then you can use the following command to generate a status report:
2784 @example
2785 M-x planner-report-generate
2786 @end example
2788 You will be prompted for a beginning and ending date, and then the
2789 status report will be generated.  You can then edit it to your liking
2790 and publish it just like you would the rest of your planner.
2792 @subheading Options
2794 @defopt planner-report-authz
2795 List of users a status report should be restricted to.
2796 When status reports are generated, only planner pages accessible
2797 by these users will be consulted, and the resulting status report
2798 will be similarly restricted.
2799 @end defopt
2801 @defopt planner-report-pretty-print-plan-pages
2802 If non-nil, pretty print plan pages.
2803 If nil, leave page names as-is.
2804 This requires that @file{muse-wiki.el} be loaded to work properly.
2805 @end defopt
2807 @defopt planner-report-remove-task-numbers
2808 Remove task numbers when generating status reports.
2809 @end defopt
2811 @defopt planner-report-replace-note-numbers
2812 If non-nil, a string with which to replace note numbers when
2813 generating status reports.
2814 @end defopt
2816 @defopt planner-report-unfinished-offset
2817 If non-nil, the offset in days from the current date of
2818 unfinished tasks to include in the status report.  If nil,
2819 include all unfinished tasks.
2820 @end defopt
2822 @subheading Functions
2824 @defun planner-report-generate begin end
2825 Generate a status report spanning a period from @var{begin} to @var{end}.
2826 @var{begin} and @var{end} are in the format YYYY.MM.DD.
2827 @end defun
2829 @node Task Overviews, <tasks> tag, Status Reports, Task Reports and Overviews
2830 @comment  node-name,  next,  previous,  up
2831 @subsubsection Seeing an Overview of Tasks
2832 @cindex tasks, overview of
2833 @cindex task reports
2834 @cindex reports, task
2835 @cindex overviews, task
2836 @cindex task overviews
2837 @cindex @file{planner-tasks-overview.el}, using
2839 You can see a list of tasks with @file{planner-tasks-overview.el}.
2840 Seeing how you've scheduled tasks over the next few days can help you
2841 decide when to schedule another task. Table entries will be of the form
2843 @var{date} | @var{link} | @var{priority} @var{status} | @var{task-description}
2845 @subheading Functions
2847 To display the tasks between a set of day pages, use
2849 @defun planner-tasks-overview start end
2850 Display an overview of your tasks from @var{start} to @var{end}. If
2851 @var{start} is nil, start from the very first day page. If @var{end}
2852 is nil, include the very last day page. You can use
2853 @code{planner-expand-name} shortcuts here, like @kbd{+1} or @kbd{-1}.
2854 Pressing @key{RET} at the prompt will use today.
2856 Once in a @code{planner-tasks-overview} buffer, you can use
2857 the keyboard shortcut @key{o} to change the overview period.
2858 @end defun
2860 You can sort the task display with the following functions:
2862 @defun planner-tasks-overview-sort-by-date
2863 Sort the tasks by date. Keyboard shortcut: @key{1}
2864 @end defun
2866 @defun planner-tasks-overview-sort-by-plan
2867 Sort the tasks by associated plan page. Keyboard shortcut: @key{2}
2868 @end defun
2870 @defun planner-tasks-overview-sort-by-priority
2871 Sort the tasks by priority. Keyboard shortcut: @key{3}
2872 @end defun
2874 @defun planner-tasks-overview-sort-by-status
2875 Sort the tasks by status. Keyboard shortcut: @key{4}
2876 @end defun
2878 You can jump to linked tasks with
2880 @defun planner-tasks-overview-jump other-window
2881 Display the current task. If a prefix argument is supplied, show the
2882 task in another window. Keyboard shortcut: @key{j}
2883 @end defun
2885 @defun planner-tasks-overview-jump-other-window
2886 Display the current task in another window. Keyboard shortcut: @kbd{C-u j}
2887 @end defun
2889 You can view a summary of the tasks in your plan pages with
2891 @defun planner-tasks-overview-show-summary &optional file-list
2892 Count unscheduled, scheduled, and completed tasks for FILE-LIST. If
2893 called with an interactive prefix, prompt for the plan page(s) to
2894 display. Load @file{planner-multi.el} to be able to specify multiple
2895 pages.
2896 @end defun
2898 @subheading Keys
2900 @key{TAB}, @kbd{SHIFT-TAB} and @key{RET} navigate links in the usual
2901 fashion.
2903 @node <tasks> tag, planner-registry, Task Overviews, Task Reports and Overviews
2904 @subsubsection <tasks> tag
2905 @cindex <tasks> tag
2906 @cindex task reports
2907 @cindex reports, task
2908 @cindex overviews, task
2909 @cindex task overviews
2910 @cindex tasks, overview of
2912 @samp{<tasks>} is replaced by a report of tasks over all day pages in
2913 published pages (@pxref{Publishing}).
2915 @example
2916 All incomplete tasks
2918 <tasks status="^X">
2920 All completed tasks
2922 <tasks status="X">
2924 All tasks
2926 <tasks>
2927 @end example
2929 Warning: this function can be slow, as it checks all the day pages!
2931 @node planner-registry, planner-zoom ,<tasks> tag, Task Reports and Overviews
2932 @comment  node-name,  next,  previous,  up
2933 @section planner-registry
2934 @cindex @file{planner-registry.el}, using
2936 The @file{planner-registry} module provides a way to keep track of all
2937 the URLs in your projects, and to list them depending on the current
2938 buffer.  The URLs are defined in @code{muse-url-protocols} module from
2939 Muse.
2941 If a URL has been created by @code{planner-create-task-from-buffer},
2942 going to that buffer and calling @code{planner-registry-show} will show
2943 you where Planner put the URL.
2945 @subheading Getting started
2947 To begin using @file{planner-registry}, add the following to your
2948 Planner configuration file.
2950 @example
2951 (require 'planner-registry)
2952 (planner-registry-initialize)
2953 @end example
2955 You must put it after the place where Planner has been loaded in your
2956 configuration file.
2958 If you want the registry to be updated each time you save a Planner
2959 file, add the following to your Planner configuration.
2961 @example
2962 (planner-registry-insinuate)
2963 @end example
2965 If you don't want to update the registry each time a file is written,
2966 you can do it manually with @code{planner-registry-update}: it will
2967 update the registry for saved Planner/Muse buffers only.
2969 @file{planner-registry} does not define any keybindings by default.  Its
2970 most useful interactive function is @code{planner-registry-show}.
2972 @subheading Example usage
2974 Say for example that you created a task from an e-mail.  Go to that
2975 e-mail and call @code{planner-registry-show}: it will open a new buffer
2976 displaying the files (in a muse links format) where a link to this
2977 e-mail has been added.
2979 @subheading Options
2981 @file{planner-registry} defines the following options.
2983 @defopt planner-registry-file
2984 The file where @file{planner-registry} stores its URL registry.
2985 @end defopt
2987 @defopt planner-registry-min-keyword-size
2988 The minimum size for keywords.
2989 @end defopt
2991 @defopt planner-registry-max-keyword-size
2992 The maximum size for keywords.
2993 @end defopt
2995 @defopt planner-registry-max-number-of-keywords
2996 The maximum number of keywords.
2997 @end defopt
2999 @defopt planner-registry-ignore-keywords
3000 A list of keywords to ignore.
3001 @end defopt
3003 @defopt planner-registry-show-level
3004 Level used by the @code{planner-registry-show} function.
3005 0 means that this function shows only exact matches.
3006 1 means that this function also shows descriptive matches.
3007 2 (or more) means that this function also shows fuzzy matches.
3008 @end defopt
3010 @node planner-zoom, , planner-registry, Task Reports and Overviews
3011 @comment  node-name,  next,  previous,  up
3012 @section planner-zoom
3013 @cindex @file{planner-zoom.el}, using
3014 @cindex view, weekly
3015 @cindex view, quarterly
3016 @cindex view, monthly
3017 @cindex view, yearly
3019 When assessing where you stand in relation to the tasks you have set
3020 out for yourself, you might want a way to survey those tasks in groups
3021 divided by time periods, like by the week or by the month. You could
3022 create all of these overview pages by hand, but if you like to have
3023 this kind of overview frequently, you might find manually creating
3024 such pages to be tedious and time consuming.
3026 @file{planner-zoom} is an optional module designed to make it easy to
3027 view your task information grouped by year, quarter, month, week or
3028 day.
3030 To install this module, just load it in your @file{.emacs} (or
3031 @file{_emacs}):
3033 @example
3034 (require 'planner-zoom)
3035 @end example
3037 This module will recognize planner pages named according to the
3038 following scheme:
3040 @table @asis
3042 @item year view
3043 @file{2006.Year}
3045 @item quarter view
3046 @file{2006.Quarter2}
3048 @item month view
3049 @file{2006.January}
3051 @item week view
3052 @file{2006.January.Week3}
3054 @item day view
3055 @file{2006.01.02}
3057 @end table
3059 @subheading Keybindings
3061 This module also adds key bindings that you can use when looking at a
3062 Planner page to easily jump between the different time-period views.
3064 @table @kbd
3066 @item S-up
3067 Move to the view corresponding to the time period one step larger than
3068 the current one. For example, it moves from the weekly view to the
3069 monthly view. It calls @code{planner-zoom-iup}.
3071 @item S-down 
3072 Move to the view corresponding to the time period one step smaller
3073 than the current one. For example, it moves from the weekly view to
3074 the daily view. It calls @code{planner-zoom-idown}.
3076 @item S-left
3077 Stay in the same time-period view as the current one, but move one
3078 interval earlier. For example, it moves from @file{2006.January.Week3}
3079 to @file{2006.January.Week2}. It calls @code{planner-zoom-iprev}.
3081 @item S-right
3082 Stay in the same time-period view as the current one, but move one
3083 interval later. For example, it moves from @file{2006.January.Week3}
3084 to @file{2006.January.Week4}. It calls @code{planner-zoom-inext}.
3086 @end table
3088 @subheading Example usage
3090 Look at the page named @file{2006.January} and then hit @kbd{S-down}
3091 which will show @file{2006.January.Week1}. Then hit @kbd{S-left} and
3092 @kbd{S-right} to look at @file{2006.January.Week2},
3093 @file{2006.January.Week3}, etc.
3095 @subheading Advanced tips and options
3097 You can use any prefix argument with @code{planner-zoom-iup} and
3098 @code{planner-zoom-idown} to have the new view display in a window
3099 other than the current one. This also works with a nonnumeric prefix
3100 argument and @code{planner-zoom-inext} or @code{planner-zoom-iprev}.
3101 For these two functions, a numeric prefix will specify the number of
3102 intervals to move.
3104 If you don't like the default patterns for naming the time-period view
3105 pages, you can change them by customizing @code{planner-zoom-regexps}.
3107 Some people believe weeks start with Sunday, and some believe they
3108 start with Monday. To accommodate both of these colliding worldviews,
3109 @code{planner-zoom-first-day-of-week} can be customized. Its default
3110 value is @samp{1}, which is Monday. If you would prefer Sunday, change
3111 it to @samp{0}. The month to which a week belongs is the month in
3112 which the first day of the week falls.
3114 @subheading Command reference
3116 @defun planner-zoom-iup name other-window
3117 Move to the next higher level in the hierarchy. With a prefix
3118 argument, show the desired page in the other window.
3119 @end defun
3121 @defun planner-zoom-idown name other-window
3122 Move to the next lower level in the hierarchy. If the current date is
3123 within the higher-level time range, zoom to the lower level time range
3124 that also contains today. Otherwise, just go to the first lower-level
3125 time range. With a prefix argument, show the desired page in the other
3126 window.
3127 @end defun
3129 @defun panner-zoom-inext name num other-window
3130 Move to the next time range at the same level in the hierarchy. With a
3131 numeric prefix argument, move by that number of time ranges. With a
3132 non-numeric prefix argument, show the desired page in the other window.
3133 @end defun
3135 @defun planner-zoom-iprev name num other-window
3136 Move to the previous time range at the same level in the hierarchy.
3137 With a numeric prefix argument, move by that number of time ranges.
3138 With a non-numeric prefix argument, show the desired page in the other
3139 window.
3140 @end defun
3142 @node More about Notes, Making Files Pretty, More about Tasks, More about Planner
3143 @section More about Notes
3144 @cindex notes, more about
3146 Planner by default organizes the notes on a planner page so that
3147 the most recent note is first. Each note is numbered, with the oldest
3148 note labeled @samp{.#1}. If you would like to reverse this behavior,
3149 look at @kbd{C-h v planner-reverse-chronological-notes}.
3151 Notes are associated with day pages, but can also be associated with
3152 plan pages when they are created.  A linked note looks like this:
3154 @example
3155 .#1 Headline (LinkedNote#1)
3156 Text
3157 @end example
3159 You can jump to the linked note with
3160 @command{planner-jump-to-linked-note}.
3162 Deleting a note can be dangerous, as the notes are automatically
3163 numbered.  Removing a note could break links in other pages.
3165 @subheading Functions
3167 @defun planner-create-note page
3168 Create a note to be remembered in @var{page} (today if @var{page} is
3169 nil).  If @code{planner-reverse-chronological-notes} is non-nil, create
3170 the note at the beginning of the notes section; otherwise, add it to
3171 the end.  Position point after the anchor.
3172 @end defun
3174 @defun planner-create-note-from-task
3175 Create a note based on the current task and update the current task to
3176 link to the note.
3177 @end defun
3179 @defun planner-renumber-notes
3180 Update note numbering.
3181 @end defun
3183 @defun planner-jump-to-linked-note note-info
3184 Display the note linked to by the current note or @var{note-info} if
3185 non-nil.
3186 @end defun
3188 @defun planner-search-notes regexp limit
3189 Return a buffer with all the notes returned by the query for
3190 @var{regexp}.  If called with a prefix argument, prompt for
3191 @var{limit} and search days on or after @var{limit}.
3192 @end defun
3194 The following sections include instructions for displaying,
3195 manipulating, and navigating your notes efficiently.
3197 @menu
3198 * Using Allout Mode::           Quickly navigating your notes
3199 * <notes>::                     Note headlines
3200 * <past-notes>::                Index of past notes
3201 * Note Indices::                planner-notes-index.el
3202 @end menu
3204 @node Using Allout Mode, <notes>, More about Notes, More about Notes
3205 @subsection Using Allout Mode
3206 @cindex Allout mode
3207 @cindex notes, navigating
3208 @cindex notes, formatting
3209 @cindex notes, displaying
3211 The format of the notes in Planner works well with Allout mode, which
3212 provides helpful commands for navigating and formatting outlines. You
3213 can, for example, hide the bodies of all the notes on a page so you can
3214 see just their headlines. You can also jump easily from headline to
3215 headline, skipping over the bodies in between.
3217 The commands for using Allout mode vary depending on which Emacs version
3218 you are using. In either case, type @kbd{M-x load-library @key{RET}
3219 allout @key{RET}} to start. If you are using CVS Emacs, type @kbd{M-x
3220 allout-mode @key{RET}}. If you are using an earlier version of Emacs,
3221 type @kbd{M-x outline-mode @key{RET}}.
3223 The exact commands then available to you differ depending on your Emacs
3224 version, but you can view the commands and their keybindings by typing
3225 @kbd{C-h m}. In CVS Emacs, they will start with @command{allout-}, while
3226 in previous versions, they will start with @command{outline-}.
3228 @node <notes>, <past-notes>, Using Allout Mode, More about Notes
3229 @subsection <notes>
3231 @samp{<notes>} is replaced by a list of note headlines when the page
3232 is published. For example, the notes tag in the following example will
3233 be replaced by the two headlines when published. (@pxref{Publishing})
3235 @example
3236 <notes>
3238 * Notes
3240 .#1 This is a headline
3242 and this is body text
3244 .#2 This is another headline
3246 and this is more body text
3247 @end example
3249 @samp{<notes>} is useful if you want to provide a quick summary of
3250 blog entries at the top of your page. Just add it to your
3251 @code{planner-day-page-template}.
3253 @node <past-notes>, Note Indices, <notes>, More about Notes
3254 @subsection <past-notes>
3256 @samp{<past-notes>} is replaced by an index of note headlines.
3257 If @var{start} is specified, it lists notes starting from that date.
3258 If @var{directory} is specified, you can index notes in another
3259 planner directory.
3261 @example
3262 All the notes I've taken in 2004:
3264 <past-notes start="2004.01.01" end="2004.12.31">
3265 @end example
3267 @node Note Indices,  , <past-notes>, More about Notes
3268 @comment  node-name,  next,  previous,  up
3269 @subsection Note Indices
3270 @cindex @file{planner-notes-index.el}, using
3271 @cindex notes, indexing
3273 Make sure that @file{planner-notes-index.el} is in your load path and
3274 add this to your @file{.emacs} (or @file{_emacs}):
3276 @example
3277 (require 'planner-notes-index)
3278 @end example
3280 Then you can use tags of the form:
3282 @example
3283 <planner-notes-index page="2004.03.02">
3284 <planner-notes-index from="2004.03.01" to="2004.03.31">
3285 <planner-notes-index limit="10">
3286 <planner-notes-index page="PlanPage">
3287 <planner-notes-index-month-table month="2004.03" limit="5">
3288 <planner-notes-index-month-table month="2004.03">
3289 @end example
3291 You can also use the following interactive functions:
3293 @code{planner-notes-index}
3294 @code{planner-notes-index-days}
3295 @code{planner-notes-index-weeks}
3296 @code{planner-notes-index-months}
3297 @code{planner-notes-index-years}    (wow!)
3299 These work based on the current date (date of current buffer, or today).
3301 If a single page is specified, this page is scanned for headlines
3302 of the form:
3304 @example
3305  .#1 Headline
3306 @end example
3308 The results are presented as a bulleted list.
3310 If @var{from} and @var{to} are specified, all date pages between them
3311 (inclusive) are scanned. If @var{from} is omitted, it is assumed to be
3312 the earliest entry.  If @var{to} is omitted, it is assumed to be the
3313 latest entry.
3315 If @var{recent} is specified, the list includes only that many recent
3316 headlines.  and the results are presented as a bulleted list.
3318 To customize presentation, you can write a function that generates
3319 the appropriate @code{<planner-notes-index>} tags. You can also use
3320 @code{planner-extract-note-headlines} in your own functions.
3322 @subheading Functions
3324 The following interactive functions are defined in
3325 @file{planner-notes-index.el}:
3327 @defun planner-notes-index &optional from to limit
3328 Display a clickable notes index. If called from a Lisp program,
3329 display only dates between @var{from} and @var{to}. With a prefix arg
3330 @var{limit}, display only that number of entries.
3331 @end defun
3333 @defun planner-notes-index-days days
3334 Display an index of notes posted over the past few @var{days}. The
3335 list ends with the day of the current buffer or @code{planner-today}.
3336 @end defun
3338 @defun planner-notes-index-weeks weeks
3339 Display an index of notes posted over the past few @var{weeks}. The
3340 list ends with the week of the current buffer or
3341 @code{planner-today}. Weeks start from Sunday.
3342 @end defun
3344 @defun planner-notes-index-months months
3345 Display an index of notes posted over the past few @var{months}. The
3346 list ends with the month of the current buffer or @code{planner-today}.
3347 @end defun
3349 @defun planner-notes-index-years years
3350 Display an index of notes posted over the past few @var{years}. The
3351 current year is included.
3352 @end defun
3354 @file{planner-notes-index.el} does not define any keybindings.
3357 @node Making Files Pretty, Annotations, More about Notes, More about Planner
3358 @section Making Files Pretty
3360 By default, planner does a little bit of fancy reformatting when you
3361 save a file. Tasks are sorted by priority (ABC) and status (_oP>XC) on
3362 day pages. On plan pages, tasks are sorted by priority (ABC), status
3363 (XC), and date. Undated tasks are sorted after dated tasks.
3365 @subheading Options
3367 @defopt planner-sort-tasks-key-function
3368 Control task sorting. Some options include
3369 @code{planner-sort-tasks-default-key},
3370 @code{planner-sort-tasks-basic}, @code{planner-sort-tasks-by-date}, and
3371 @code{planner-sort-tasks-by-link}.
3372 @end defopt
3374 @defopt planner-sort-undated-tasks-equivalent
3375 This option controls the behavior of task sorting on plan pages.  By
3376 default, the value @samp{9999.99.99} causes dated tasks to be listed
3377 before undated tasks.  To sort undated tasks before dated tasks,
3378 set this to a blank string.
3379 @end defopt
3381 @defopt planner-sort-tasks-automatically
3382 Non-nil means sort tasks whenever a planner file is saved.  On day
3383 pages, tasks are sorted by status.  On plan pages, they are sorted by
3384 status and date.  Sorting can take a while.
3385 @end defopt
3387 @defopt planner-renumber-tasks-automatically
3388 Non-nil means renumber tasks from 1 to N whenever a planner file is
3389 saved. This allows you to refer to tasks in previous day pages using
3390 anchors like @samp{2003.08.12#A1}. If you use this function, make sure
3391 @code{planner-use-task-numbers} is non-nil so that new tasks are created
3392 with task numbers.
3393 @end defopt
3395 @defopt planner-align-tasks-automatically
3396 Non-nil means align tasks whenever a planner file is saved.  This
3397 causes the status to line up in a neat column if you have less than
3398 100 tasks.
3399 @end defopt
3401 @defopt planner-renumber-notes-automatically
3402 Non-nil means renumber the notes. If most of your notes are only on
3403 one page, you might like seeing the notes renumbered if you delete a
3404 note in the middle. However, if you use a lot of cross-referencing,
3405 note renumbering will break those links.
3406 @end defopt
3408 @subheading Functions
3410 @defun planner-sort-tasks
3411 Sort tasks according to planner-sort-tasks-key-function. By default,
3412 sort tasks according to priority and position on day pages, and
3413 according to status, priority, date, and position on plan pages.
3414 @end defun
3416 @defun planner-renumber-tasks
3417 Update task numbering.
3418 @end defun
3420 @defun planner-align-tasks
3421 Align tasks neatly. You can add this to @code{write-file-functions} to
3422 have the tasks automatically lined up whenever you save.  For best
3423 results, ensure @code{planner-align-tasks} is run after
3424 @code{planner-renumber-tasks}.
3425 @end defun
3427 @defun planner-fix-tasks
3428 Sort, renumber and align tasks.
3429 @end defun
3431 @node Annotations, Interactive Lisp, Making Files Pretty, More about Planner
3432 @comment  node-name,  next,  previous,  up
3433 @section Annotations
3435 The context included when you create a task and the context included
3436 when you create a note are gained the same way. It sounds like black
3437 magic, but it turns out not to be.
3439 All that happens is, Planner has a list of functions,
3440 @code{planner-annotation-functions}. When you create a task from a
3441 buffer, or remember a note from a buffer, Planner goes through
3442 this list from top to bottom. The first one that returns true is the
3443 one it uses.
3445 For example, if you're in Wanderlust, and you hit the key you've bound
3446 to @code{planner-create-task-from-buffer}, it looks at this list and
3447 does something like this.  Is it an ERC buffer? No. Is it a BBDB
3448 buffer? No. Are we in w3m? No. Are we in Wanderlust? Yes. So this
3449 function succeeds. It stops searching and runs the annotation function
3450 for Wanderlust, which in this case finds out who the message is from
3451 and what the message ID of the message is. It then takes those and
3452 constructs a link back to that message, with a link title something
3453 like @samp{Email from Joe Blogs}.
3455 So, you've read the email from Joe Blogs. He's asked you to do
3456 something and you've hit your key to add that task to your list of
3457 things to do. So what you end up with is a description of the task,
3458 and a link back to what made you create the task in the first place.
3460 The same happens with remembering notes, except that it ends up in the
3461 @samp{* Notes} section of your page instead.
3463 By default, @file{planner.el} can annotate tasks and notes based on
3464 the current filename.
3466 @subheading Options
3468 To change the behavior of annotations, customize the following options:
3470 @defopt planner-annotation-functions
3471 A list of functions tried in order by
3472 @command{planner-create-task-from-buffer} and other functions that
3473 pick up context.  The first non-nil value returned is used as the
3474 annotation.  To cause an item to @strong{not} be annotated, return the
3475 empty string @samp{""}.
3476 @end defopt
3478 @defopt planner-annotation-strip-directory
3479 File links are usually generated with the full path to the file so
3480 that you can easily tell apart files with the same base name.  If
3481 @code{planner-annotation-strip-directory} is non-nil, though, only the
3482 base name of the file will be displayed.  For example, a link to
3483 @samp{/foo/bar/baz} will be displayed as @samp{baz} and hyperlinked to
3484 the file.
3485 @end defopt
3487 @defopt planner-annotation-use-relative-file
3488 If t, always use relative filenames.
3489 @code{planner-annotation-use-relative-file} can also be a function that
3490 takes the filename and returns non-nil if the link should be relative.
3491 Filenames are resolved relative to the first directory of your Planner
3492 project in @code{muse-project-alist}.  That is, the created link will be
3493 of the form @samp{../../somefile} instead of
3494 @samp{/absolute/path/to/file}.  This can be helpful if you publish your
3495 planner files to the Net and your directory structure ensures that
3496 relative links resolve the same from your Plan pages and their
3497 respective publishing directory.
3498 @end defopt
3500 @node Interactive Lisp, Publishing, Annotations, More about Planner
3501 @comment  node-name,  next,  previous,  up
3502 @section Interactive Lisp with planner-lisp.el
3503 @cindex Lisp functions, using with Planner
3504 @cindex interactive Lisp fuctions, using with Planner
3505 @cindex @file{planner-lisp.el}, using
3507 You can include interactive Lisp functions in your planner pages.
3509 First, you need @file{planner-lisp.el}. Put this in your @file{.emacs}
3510 (or @file{_emacs}):
3512 @example
3513 (require 'planner-lisp)
3514 @end example
3516 Then, add a link to the Lisp function to your page, like:
3518 @example
3520 [[lisp:/plan][Plan]]
3522 @end example
3524 This will be rendered as @samp{Plan}. Selecting the link will run the
3525 @code{plan} function interactively.
3527 You can also execute other Lisp expressions. For example:
3529 @example
3530 [[lisp:/(planner-goto (planner-expand-name "+7"))][Next week]]
3531 @end example
3533 @file{planner-lisp.el} does not provide any interactive functions or
3534 keybindings.
3536 @node Publishing, Experimental Functions, Interactive Lisp, More about Planner
3537 @section Publishing
3538 @cindex publishing
3540 You can publish your planner files to a variety of different formats.
3541 For example, you can publish your planner in HTML and put it on a
3542 normal web server. No special server support is required. This gives
3543 you an easy way to keep other people up to date on your tasks, keep a
3544 web log, or simply organize information.
3546 Published files are stored in the path specified by
3547 @code{muse-project-alist} for your Planner project. Just copy the
3548 contents of this directory to your web server, and you're all set! Of
3549 course, publishing is completely optional.
3551 Here are some more features related to publishing:
3553 @menu
3554 * Publishing Planner pages::    planner-publish.el
3555 * Publishing Calendars::        planner-calendar.el
3556 * Authz Access Restriction::    planner-authz.el
3557 * RSS Publication::             Sharing notes with planner-rss.el
3558 * iCal Task Publication::       Sharing tasks with planner-ical.el
3559 * RDF Publication::             planner-rdf.el
3560 @end menu
3562 @node Publishing Planner pages, Publishing Calendars, Publishing, Publishing
3563 @comment  node-name,  next,  previous,  up
3564 @subsection Publishing Planner pages
3565 @cindex publishing
3566 @cindex @file{planner-publish.el}, using
3568 Publishing works by providing Muse with the settings and environment for
3569 Planner publishing.
3571 First, make sure that you have set up a proper
3572 @code{muse-project-alist} (@pxref{Creating Your Planner}).
3574 Second, add:
3576 @example
3577 (require 'planner-publish)
3578 @end example
3580 to your @file{.emacs} (or @file{_emacs}).
3582 To publish your entire Planner project, hit @kbd{C-c C-p}
3583 (@code{muse-project-publish}). To publish just the current buffer, hit
3584 @kbd{C-c C-t} (@code{muse-publish-this-file}).
3586 To automatically publish files when you save them, add the following
3587 code to your @file{~/.emacs} (or @file{_emacs}):
3589 @example
3590 (eval-after-load "muse-mode"
3591   (add-hook 'after-save-hook
3592             #'(lambda ()
3593                 (when (planner-derived-mode-p 'muse-mode)
3594                   (muse-project-publish nil)))
3595             nil t))
3596 @end example
3598 @subheading Styles provided
3600 The following publishing styles are available.
3602 @table @code
3604 @cindex publishing styles, planner-html
3605 @item planner-html
3606 Publish Planner pages to HTML.
3608 @cindex publishing styles, planner-xhtml
3609 @item planner-xhtml
3610 Publish Planner pages to XHTML.
3612 @cindex publishing styles, planner-xml
3613 @item planner-xml
3614 Publish Planner pages to XML.
3616 @end table
3618 @subheading Options provided
3620 The following options may be customized to enhance your publishing
3621 experience.
3623 @table @code
3625 @item planner-publish-markup-regexps
3626 List of markup rules for publishing Planner pages.
3628 @item planner-publish-markup-functions
3629 Specify which function to use for publishing different kinds of markup.
3631 @item planner-publish-markup-tags
3632 A list of custom HTML-like tags to recognize when publishing.
3634 @item planner-xml-markup-strings
3635 Strings that are inserted to publish XML markup.
3637 @item planner-xml-header
3638 Header used when publishing Planner XML files.
3639 This may be text or a filename.
3641 @item planner-xml-footer
3642 Footer used when publishing Planner XML files.
3643 This may be text or a filename.
3645 @item planner-html-markup-strings
3646 Strings that are inserted to publish HTML markup.
3648 @item planner-html-style-sheet
3649 CSS stylesheet elements used in Planner HTML and XHTML files.
3650 This can also be one or more @samp{<link>} tags.
3652 @item planner-html-header
3653 Header used when publishing Planner HTML files.
3654 This may be text or a filename.
3656 @item planner-html-footer
3657 Footer used when publishing Planner HTML files.
3658 This may be text or a filename.
3660 @item planner-xhtml-header
3661 Header used when publishing Planner XHTML files.
3662 This may be text or a filename.
3664 @item planner-xhtml-footer
3665 Footer used when publishing Planner XHTML files.
3666 This may be text or a filename.
3668 @item planner-html-inner-header
3669 Extra header section that can be embedded within
3670 @code{planner-html-header} and @code{planner-xhtml-header}.
3672 @item planner-html-inner-footer
3673 Extra header section that can be embedded within
3674 @code{planner-html-footer} and @code{planner-xhtml-footer}.
3676 @item planner-publish-prepare-regexps
3677 List of markup rules to apply before publishing a page with Planner.
3679 @item planner-publish-finalize-regexps
3680 List of markup rules to apply after publishing a page with Planner.
3682 @end table
3684 @node Publishing Calendars, Authz Access Restriction, Publishing Planner pages, Publishing
3685 @comment  node-name,  next,  previous,  up
3686 @subsection Publishing Calendars
3687 @cindex calendar, publishing
3688 @cindex @file{planner-calendar.el}, using
3690 To publish calendars in your day pages, it is necessary to do two steps.
3692 @itemize
3693 @item Add @code{(require 'planner-calendar)} to your configuration.
3694 @item Add a @samp{<calendar>} tag to either your header, footer, or
3695 @var{planner-day-page-template}, depending on where you want it to
3696 appear.
3697 @end itemize
3699 To display a calendar based on a different day (given here as DAYPAGE),
3700 use @code{<calendar page="DAYPAGE">}.
3702 To get arrows to previous and next months to show up, use
3703 @code{<calendar arrows="t">}.  The text in
3704 @var{planner-calendar-prev-month-button} and
3705 @var{planner-calendar-next-month-button} will be used for the arrows to
3706 the previous and next months, respectively.
3708 By default, Muse will not display the arrows properly, due to
3709 limitations in the special-escaping algorithm.  To work around this,
3710 remove the @samp{&} rule from @var{muse-xml-markup-specials}, or from
3711 @var{muse-html-markup-specials} if you are using the 3.02.6 version of
3712 Muse.
3714 It is also possible to create a symlink from the current day page to the
3715 page name specified by @var{planner-calendar-today-page-name}.  To
3716 accomplish this, add the following to your configuration.
3718 @example
3719 (eval-after-load "muse-publish"
3720   '(add-hook 'muse-after-publish-hook
3721              'planner-calendar-create-today-link))
3722 @end example
3724 @subheading Options
3726 @defopt planner-calendar-prev-month-button
3727 HTML text used for previous month buttons.
3728 @end defopt
3730 @defopt planner-calendar-next-month-button
3731 HTML text used for next month buttons.
3732 @end defopt
3734 @defopt planner-calendar-day-header-chars
3735 Number of characters to use for day column header names.
3736 @end defopt
3738 @defopt planner-calendar-today-page-name
3739 Default name for published today page link.
3740 @end defopt
3742 @subheading Functions
3744 @defun planner-calendar-create-today-link
3745 Add this function to @code{muse-after-publish-hook} to
3746 create a ``today'' soft-link to the newest published planner day page,
3747 on operating systems that support POSIX @command{ln}.
3748 @end defun
3750 @node Authz Access Restriction, RSS Publication, Publishing Calendars, Publishing
3751 @comment  node-name,  next,  previous,  up
3752 @subsection Authz Access Restriction
3753 @cindex @file{planner-authz.el}, using
3754 @cindex Mason, restricting portions with
3755 @cindex access, restricting
3757 @file{planner-authz.el} was written by Andrew J. Korty in order to
3758 allow the easy restriction of portions of published pages.  It uses
3759 the HTML::Mason module available on CPAN
3760 (@url{http://www.cpan.org}).  Setting up HTML::Mason is
3761 outside the scope of this document.  Make sure that it works before
3762 trying out @file{planner-authz.el}.
3764 @file{planner-authz.el} modifies the behavior of
3765 @command{muse-project-publish} so that published pages follow access
3766 modifiers.
3768 This library lets you publish your planner pages while controlling
3769 access to certain portions of them to users you specify.  When you
3770 load this library, you gain access to two additional markup directives
3771 to use in your planner pages.  The @samp{<authz>} tag lets you
3772 restrict access to arbitrary content as follows:
3774 @example
3775 Here is a sentence everyone should see.  This sentence also
3776 contains no sensitive data whatsoever.  <authz users="ajk">This
3777 sentence, however, talks about my predilection for that French
3778 vanilla instant coffee that comes in the little tin, and I'm
3779 embarrassed for anyone else to know about that.</authz> And
3780 here's some more perfectly innocuous content.
3781 @end example
3783 You can use @samp{<authz>} tags to mark up entire paragraphs, tasks,
3784 notes, and anything else.  The tags are replaced with Mason code in
3785 the published pages.
3787 The @samp{#authz} directive restricts access to an entire page.  A Mason
3788 call is added to this page to generate a 403 error when someone not
3789 listed tries to access it.  Any notes or tasks on a
3790 @samp{#authz}-protected page are also wrapped in Mason code on linked
3791 pages. To add a @samp{#authz} directive to a Muse page, place
3792 @samp{#authz} followed by a space-delimited list of users on one
3793 line. For example:
3795 @example
3796 #authz ajk sacha
3797 @end example
3799 @subheading Getting started
3801 Add the following to your .emacs file to cause @kbd{M-x
3802 muse-project-publish} to automatically use planner-authz features.
3804 @example
3805 (require 'planner-authz)
3806 @end example
3808 @subheading Diary markup
3810 If your pages have a section with diary entries maintained by
3811 planner-appt.el (or by any other means), you can control access to these
3812 entries.  First, customize @code{planner-section-tagnames} to map your
3813 diary section ("* Schedule", in this example) to a tag called
3814 "diary-section".  An example follows.
3816 @example
3817 (add-to-list 'planner-section-tagnames '("Schedule" . "diary-section"))
3818 @end example
3820 If the name of your diary section is "* Diary", you will not need to
3821 customize @code{planner-section-tagnames} by default.
3823 Then make sure the diary entries you want restricted contain a
3824 corresponding plan page name in parentheses, as in the following
3825 example.
3827 @example
3828 10:00 10:30 Meeting with boss (WorkStuff)
3829 @end example
3831 @subheading Options
3833 @defopt planner-authz-project-default
3834 Default access list for project pages (not day pages).  If a given
3835 project page doesn't contain a @samp{#authz} tag, it will receive the
3836 access list defined here.  If this variable is nil, all users will be
3837 allowed to view the page.  No corresponding variable is provided for
3838 day pages because it doesn't seem like you'd ever want to control
3839 access based on what day it was.  (But I will accept patches. :) Notes
3840 and tasks referencing pages without @samp{#authz} tags will also be
3841 restricted to the users listed here.
3842 @end defopt
3844 @defopt planner-authz-day-note-default
3845 Default access list for notes on day pages not associated with
3846 any project.  There is way to set a default for notes on project
3847 pages for the reason above; they would only be associated with
3848 date pages anyway.
3849 @end defopt
3851 @defopt planner-authz-day-task-default
3852 Same as @kbd{planner-authz-day-note-default}, but for tasks.
3853 @end defopt
3855 @subheading Functions
3857 @defun planner-authz-publish-index
3858 Publish an index for the planner marked up with Mason code.
3859 Only those links to pages which the remote user is authorized to
3860 access will be shown.
3861 @end defun
3863 @node RSS Publication, iCal Task Publication, Authz Access Restriction, Publishing
3864 @comment  node-name,  next,  previous,  up
3865 @subsection RSS Publication
3866 @cindex @file{planner-rss.el}, using
3867 @cindex notes, RSS
3868 @cindex RSS
3870 @file{planner-rss.el} allows you to publish your notes in the RSS 2.0
3871 XML format for blog syndication. You will also want to customize the
3872 following variables:
3874 To manually add the current note to all the matching RSS feeds, invoke
3875 @command{planner-rss-add-note}. You can specify a filename with the
3876 universal prefix, like this: @kbd{C-u M-x planner-rss-add-note}.
3878 If you use the @file{remember-planner.el} module to create notes, you
3879 can automatically publish new notes to RSS feeds by adding the
3880 following code to your @file{.emacs} (or @file{_emacs}).
3882 @example
3883 (add-to-list 'remember-planner-append-hook 'planner-rss-add-note t)
3884 @end example
3886 @subheading Options
3888 @defopt planner-rss-base-url
3889 Base absolute URL for published blog entries. Should include trailing
3890 @samp{/}.
3891 @end defopt
3893 @defopt planner-rss-category-feeds
3894 Rules for automatic categorization of posts and publishing to RSS
3895 files. A blog entry is matched against each condition. If it matches
3896 the regular expression or the function returns a non-nil value, the
3897 blog entry is copied into the specified file.
3898 @end defopt
3900 @defopt planner-rss-feed-limits
3901 A list of regular expressions that match feed filenames and the size
3902 and item limits for feeds that match. For example, you can use
3903 @samp{(("." nil 10))} to ensure that all feeds are limited to the 10
3904 most recent items.
3905 @end defopt
3907 @subheading Functions
3909 @file{planner-rss.el} defines the following interactive functions:
3911 @defun planner-rss-add-note @var{feed}
3912 Export the current note using @code{planner-add-item}. If @var{feed}
3913 is specified, add the entry to the specified file. Else, add the entry
3914 to all matching RSS feeds specified by
3915 @code{planner-rss-category-feeds}.
3916 @end defun
3918 @node iCal Task Publication, RDF Publication, RSS Publication, Publishing
3919 @comment  node-name,  next,  previous,  up
3920 @cindex @file{planner-ical.el}, using
3921 @subsection iCal Publication
3923 iCal is an Internet Engineering Task Force (IETF) standard for
3924 calendaring and scheduling. @uref{http://www.ietf.org/rfc/rfc2445.txt}
3926 You can export your tasks to the iCal format using
3927 @file{planner-ical}. Add @code{(require 'planner-ical)} to your
3928 @file{~/.emacs}. Then you can use @kbd{M-x planner-ical-export-page}
3929 to display the iCal equivalent of tasks on a page, which you can then
3930 save to a file.
3932 To export today's tasks to a file in your publishing directory, add
3933 the following to your @file{~/.emacs}.
3935 @example
3936 (planner-ical-export-file
3937  (planner-today)
3938  (expand-file-name
3939    "tasks.ics"
3940    (muse-style-element :path (car (cddr (muse-project planner-project))))))
3941 @end example
3943 @subheading Functions
3945 @defun planner-ical-export-page page &optional file
3946 Export PAGE's tasks in the iCal format.
3947 If FILE is non-nil, results are saved to that file.
3948 If FILE is nil, results are displayed in a `planner-ical-export-buffer'.
3949 @end defun
3951 @defun planner-ical-export-this-page
3952 Display the tasks on the current page in iCal format.
3953 @end defun
3955 @node RDF Publication,  , iCal Task Publication, Publishing
3956 @comment  node-name,  next,  previous,  up
3957 @subsection RDF Publication
3958 @cindex @file{planner-rdf.el}, using
3959 @cindex RDF, publishing to
3961 Put planner-rdf.el in a directory that is in your Emacs load-path and
3962 the following into your ~/.emacs file:
3964 @example
3965 (require 'planner-rdf)
3966 (eval-after-load "muse-publish"
3967   '(progn
3968      (add-hook 'muse-after-publish-hook
3969                'planner-rdf-publish-file)
3970      (add-hook 'muse-after-publish-hook
3971                'planner-rdf-publish-index)))
3972 @end example
3974 @menu
3975 * Publishing with planner-rdf::  
3976 * planner-rdf Tags::            
3977 * planner-rdf Usage Examples::  
3978 @end menu
3980 @node Publishing with planner-rdf, planner-rdf Tags, RDF Publication, RDF Publication
3981 @subsubsection Publishing with planner-rdf
3983 Planner-rdf is now included in the normal Planner publishing process.
3984 Pressing @key{C-p} will create a .owl and a .rdf file for every planner
3985 file. Additionally it creates an index, @file{index.rdf}.
3987 By default all generated files will be stored in the normal Planner
3988 publishing directory, where the HTML files end up. If you would ike to
3989 change that, set the variable @code{planner-rdf-directory} to the desired
3990 location.
3992 The generated files:
3994 @itemize
3995 @item
3996 @file{index.rdf} - a collection with pointers to the
3997 @file{<plan-page>.rdf} files.
3998 @item
3999 @file{<plan-page>.rdf} - contains Dublin Core metadata about the files
4000 related to the current Planner page. Currently it contains metadata
4001 about the source file, the Emacs plan page, the generated HTML page, and
4002 the generated OWL file.
4003 @item
4004 @file{<plan-page>.owl} - contains task and note data from the Planner
4005 file. Task information is stored completely. For notes, the note
4006 headline is stored.
4007 @end itemize
4009 @node planner-rdf Tags, planner-rdf Usage Examples, Publishing with planner-rdf, RDF Publication
4010 @subsubsection planner-rdf Tags
4012 Besides the factual information, e.g. the task status or description,
4013 planner-rdf extracts links (in the format @samp{[[...][...]]} or
4014 @samp{[[...]]}) and tags (@samp{@{@{...:...}@}@}) from tasks and notes
4015 (including the notes text). Links and tags provide context for the plan
4016 elements and so are stored and linked with the containing elements.
4018 Links point to locations that can be used to enrich the information in
4019 the Planner pages (e.g, by retrieving data from them and adding it),
4020 tags -- like the one for the task ids @samp{@{@{Tasks:198@}@}} -- can be
4021 used to express abstract qualities. Some examples:
4023 @itemize
4024 @item
4025 an @samp{@{@{audience:myteam@}@}} tag, can be used to restrict
4026 publishing of items to a certain user group;
4027 @item a @samp{@{@{lang:de@}@}} tag, signifying the language of the text;
4028 @item
4029 a @samp{@{@{location:Hamburg@}@}} tag, can be used to make geographic
4030 reference to an entity that is not stored in your address book, bbdb.
4031 @end itemize
4033 What tags to use is up to the user. Planner-rdf makes no assumptions
4034 about them, it just extracts and stores them. Only the applications
4035 using the data know what to do with them.
4037 @node planner-rdf Usage Examples,  , planner-rdf Tags, RDF Publication
4038 @subsubsection Usage Examples
4040 Report generation with OpenOffice
4042 The Perl file @file{this-week.pl}
4043 (@url{http://www.rainervolz.de/planner-rdf/this-week.pl}) creates a
4044 simple report for the current week. The script extracts task and note
4045 information from the generated OWL files and inserts it into a simple
4046 OpenOffice Writer document. Nothing fancy, just a proof of concept, to
4047 show how planner-rdf can be used to integrate Planner Mode with other
4048 applications.
4050 Besides Perl and OpenOffice you'll need the Redland RDF Application
4051 Framework (@url{http://www.redland.opensource.ac.uk/}). It is used to
4052 process the RDF data. Redland is small, but powerful, and available
4053 for many platforms and languages.
4055 As an example the application loads the RDF data each time it is run.
4056 In the real world you probably would use Redland to store the Planner
4057 data in a database, to save the loading step each time you access the
4058 data.
4060 Importing Planner data into Protege
4062 Protege is a popular ontology editor and knowledge management
4063 application. A simple way to import data into it, is to provide a OWL
4064 file that contains the data as well as the schema. To do this:
4066 @itemize
4067 @item
4068 Use @file{planner2protege.pl}
4069 (@url{http://www.rainervolz.de/planner-rdf/planner2protege.pl}) to
4070 combine all OWL files into a single one.
4071 @item
4072 Use CWM (@url{http://www.w3.org/2000/10/swap/doc/cwm.html}) to combine
4073 schema and data, with @code{python cmw --rdf planner-rdf.owl
4074 planner-data.owl --think --rdf >planner2.owl}
4075 @end itemize
4077 Not the most straightforward process, but it works. The resulting file,
4078 here planner2.owl, can then be loaded into Protege.
4080 @node Experimental Functions,  , Publishing, More about Planner
4081 @comment  node-name,  next,  previous,  up
4082 @section Experimental Functions
4083 @cindex @file{planner-experimental.el}, using
4084 @cindex experimental functions, Planner
4086 These functions are experimental. This means that they may not do
4087 exactly what you expect them to do, so keep backups, be careful, and
4088 don't blame us.
4090 To use these functions, make sure that @file{planner-experimental.el} is
4091 in your load path, and add this to your @file{.emacs} (or
4092 @file{_emacs}):
4094 @example
4095 (require 'planner-experimental)
4096 @end example
4098 @subheading Functions
4100 @file{planner-experimental.el} defines the following interactive
4101 functions:
4103 @defun planner-search-notes-next-match
4104 Jump to the next matching entry.  Call after
4105 @code{planner-search-notes}.
4106 @end defun
4108 @defun planner-search-notes-previous-match
4109 Jump to the previous matching entry.  Call after
4110 @code{planner-search-notes}.
4111 @end defun
4113 @defun planner-remove-duplicates
4114 Remove duplicate tasks.
4115 @end defun
4117 @file{planner-experimental.el} does not define any keybindings.
4119 @node Managing Your Information, Advanced Configuration, More about Planner, Top
4120 @comment  node-name,  next,  previous,  up
4121 @chapter Managing Your Information
4123 Planner can be integrated with other Emacs and even some non-Emacs
4124 programs by loading additional modules. You can pick and choose from
4125 these modules, choosing those that work with programs you use and that
4126 produce information you want to have included in your Planner pages.
4128 @menu
4129 * E-mail::                      Linking notes and tasks to messages
4130 * Scheduling and Time::         Tracking appointments and where your time goes
4131 * Finances::                    Display your account balances and more
4132 * Contacts and Conversations::  BBDB and ERC
4133 * Tracking Research and Resources::  The Web, bibliographies, and bookmarks
4134 * Tracking Development::        
4135 @end menu
4137 @node E-mail, Scheduling and Time, Managing Your Information, Managing Your Information
4138 @comment  node-name,  next,  previous,  up
4139 @section E-mail
4141 Planner can work together with several different Emacs e-mail
4142 clients. If you load the appropriate module for the e-mail client you
4143 use, then your notes and tasks can be annotated with information
4144 pointing to the specific e-mail message you were reading when you
4145 created that note or task. When you are looking at the note or task, you
4146 will be able to jump straight to that message.
4148 @menu
4149 * Unix mail::                   Unix mailboxes: planner-unix-mail.el              
4150 * Gnus::                        Gnus mail and news reader: planner-gnus.el
4151 * VM::                          VM mail reader: planner-vm.el
4152 * Wanderlust::                  Wanderlust mail reader: planner-wl.el
4153 * MH-E::                        MH-E mail reader: planner-mhe.el
4154 * Rmail::                       Rmail: planner-rmail.el
4155 @end menu
4158 @node Unix mail, Gnus, E-mail, E-mail
4159 @comment  node-name,  next,  previous,  up
4160 @subsection Unix mail
4161 @cindex @file{planner-unix-mail.el}, using
4162 @cindex mbox, using Planner with
4163 @cindex Unix mail, using Planner with
4164 @cindex mail client, using Planner with
4166 This module supports links from any kind of Unix mailbox (mbox). To
4167 use this module, make sure that @file{planner-unix-mail.el} is in your
4168 load path and add this to your @file{.emacs} (or @file{_emacs}):
4170 @example
4171 (require 'planner-unix-mail)
4172 @end example
4174 Unix mail URLs are of the form:
4176 @example
4177 ;; mail://PATH/TO/INBOX/message-id
4178 @end example
4180 Annotations will be of the form:
4182 @smallexample
4183 [[mail://PATH/TO/INBOX/E1AyTpt-0000JR-LU%40sacha.ateneo.edu][E-mail from Sacha Chua]]
4184 @end smallexample
4186 @file{planner-unix-mail.el} does not define any interactive functions or
4187 create any new keybindings.
4189 @node Gnus, VM, Unix mail, E-mail
4190 @comment  node-name,  next,  previous,  up
4191 @subsection Gnus
4192 @cindex Gnus, using Planner with
4193 @cindex mail client, using Planner with, Gnus
4194 @cindex @file{planner-gnus.el}, using
4196 To use this module, make sure that it is in your load path and put
4197 this in your @file{.emacs} (or @file{_emacs}):
4199 @example
4200 (require 'planner-gnus)
4201 (planner-gnus-insinuate)
4202 @end example
4204 With this module loaded, when you create tasks from Gnus summary or
4205 message buffers, the tasks will be annotated with information from the
4206 message you were looking at when you created each task. A link will also
4207 be created on your planner page that you can select in order to return
4208 to the message.
4210 So, the created task will look something like this:
4212 @smallexample
4213 #A34 _ Send writing to publishme.com from
4214 [[gnus://alt.books.beatgeneration/<Ifo5c.24632$F9.9567@@nwrddc01.gnilink.net>][E-Mail
4215 from editor@@verizon.net]] @{@{Tasks:71@}@} ([[Writing]])
4216 @end smallexample
4218 This module also binds @kbd{C-c C-t} in the Gnus summary and article
4219 views to the command to create a new task.
4221 @file{planner-gnus.el} does not define any interactive functions.
4223 For more information about Gnus, see @inforef{Top, The Gnus Newsreader,
4224 gnus}.
4226 @node VM, Wanderlust, Gnus, E-mail
4227 @comment  node-name,  next,  previous,  up
4228 @subsection VM
4229 @cindex VM, using Planner with
4230 @cindex mail client, using Planner with, VM
4231 @cindex @file{planner-vm.el}, using
4233 To use this module, make sure that @file{planner-vm.el} is in your load
4234 path and add this to your @file{.emacs} (or @file{_emacs}):
4236 @example
4237 (require 'planner-vm)
4238 @end example
4240 VM URLs are of the form:
4242 @example
4243 vm://path/to/inbox/message-id
4244 @end example
4246 Annotations will be of the form:
4248 @smallexample
4249 [[vm://home/test/INBOX/<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4250 @end smallexample
4252 @file{planner-vm.el} does not define any interactive functions or
4253 keybindings.
4256 @node Wanderlust, MH-E, VM, E-mail
4257 @comment  node-name,  next,  previous,  up
4258 @subsection Wanderlust
4259 @cindex Wanderlust, using Planner with
4260 @cindex mail client, using Planner with, Wanderlust
4261 @cindex @file{planner-wl.el}, using
4263 To use this module, make sure that @file{planner-wl.el} is in your
4264 load path and add this to your @file{.emacs} (or @file{_emacs}):
4266 @example
4267 (require 'planner-wl)
4268 @end example
4270 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4271 Wanderlust summary or message buffers, the task will be created with
4272 the correct annotation.
4274 @file{planner-wl} does not define any interactive functions.
4276 @subheading Keys
4278 To add keybindings to Wanderlust, call:
4280 @example
4281 (planner-wl-insinuate)
4282 @end example
4284 This binds @kbd{F} to @command{planner-create-task-from-buffer}.
4286 @node MH-E, Rmail, Wanderlust, E-mail
4287 @comment  node-name,  next,  previous,  up
4288 @subsection MH-E
4289 @cindex MH-E, using Planner with
4290 @cindex mail client, using Planner with, MH-E
4291 @cindex @file{planner-mhe.el}, using
4293 To use this module, make sure that @file{planner-mhe.el} is in your
4294 load path and add this to your @file{.emacs} (or @file{_emacs}):
4296 @example
4297 (require 'planner-mhe)
4298 @end example
4300 Then, when you call @kbd{M-x planner-create-task-from-buffer} from
4301 MH-E summary or message buffers, the task will be created with
4302 the correct annotation.
4304 @file{planner-mhe} does not define any interactive functions.
4306 @node Rmail,  , MH-E, E-mail
4307 @comment  node-name,  next,  previous,  up
4308 @subsection Rmail
4309 @cindex Rmail, using Planner with
4310 @cindex mail client, using Planner with, Rmail
4311 @cindex @file{planner-rmail.el}, using
4313 To use this module, make sure that @file{planner-rmail.el} is in your
4314 load path and add this to your @file{.emacs} (or @file{_emacs}):
4316 @example
4317 (require 'planner-rmail)
4318 @end example
4320 Rmail URLs are of the form:
4322 @example
4323 rmail://message-id
4324 @end example
4326 Annotations will be of the form:
4328 @smallexample
4329 [[rmail://<E1AyTpt-0000JR-LU@@sacha.ateneo.edu>][E-mail from Sacha Chua]]
4330 @end smallexample
4332 @file{planner-rmail.el} does not define any interactive functions or
4333 create any new keybindings.
4335 For more information about Rmail, see @inforef{Rmail, Reading Mail With
4336 Rmail, Emacs}.
4338 @node Scheduling and Time, Finances, E-mail, Managing Your Information
4339 @comment  node-name,  next,  previous,  up
4340 @section Scheduling and Time
4342 @menu
4343 * Diary::                       Using the Emacs diary: planner-diary.el
4344 * Appointments::                Appointments in plan pages: planner-appt.el
4345 * Timeclock::                   Time tracking: planner-timeclock.el
4346 * schedule.el::                 Project completion: planner-schedule.el
4347 @end menu
4350 @node Diary, Appointments, Scheduling and Time, Scheduling and Time
4351 @comment  node-name,  next,  previous,  up
4352 @subsection Diary
4353 @cindex diary, using Planner with
4354 @cindex @file{planner-diary.el}, using
4356 If you use Emacs's diary feature, Planner-Diary could be helpful for
4357 you. It puts all diary entries for the current day in the @samp{*
4358 Diary} section of your day plan page. This section is updated every
4359 time you display the file in Emacs. By default the diary section of
4360 past pages is not updated; it's pretty unlikely that you want to add
4361 new diary entries for the past. (@pxref{Diary, , , Emacs, GNU Emacs
4362 Manual})
4364 If you want to use @file{planner-diary.el}, make sure the file is in
4365 your load path and add this to your @file{.emacs} (or @file{_emacs}):
4367 @example
4368 (require 'planner-diary)
4369 @end example
4371 @file{planner-diary.el} needs @command{fancy-diary-display}.  To use
4372 @command{fancy-diary-display}, add this to your @file{.emacs} (or
4373 @file{_emacs}):
4375 @example
4376 (add-hook 'diary-display-hook 'fancy-diary-display)
4377 @end example
4379 You can use Planner-Diary in two different ways:
4381 @enumerate
4383 @item
4384 If you want the saved files to contain your entries and not just a line
4385 of Lisp, add the following lines to your @file{.emacs} (or @file{_emacs}):
4387 @example
4388 (setq planner-diary-use-diary t)
4389 (planner-diary-insinuate)
4390 @end example
4392 You should also customize or set @code{planner-day-page-template} to
4393 include a @samp{* Diary}:
4395 @example
4396 (setq planner-day-page-template
4397  "* Tasks\n\n\n* Schedule\n\n\n* Diary\n\n\n* Notes")
4398 @end example
4400 @item
4401 (GNU EMACS ONLY) You can put the following line of Lisp code in your
4402 day plan pages to display your diary entries:
4404 @example
4405 <lisp>(planner-diary-entries-here)</lisp>
4406 @end example
4408 You can do this automatically for all day plan pages:
4410 @smallexample
4411 (setq planner-day-page-template
4412   "* Tasks\n\n\n* Diary\n\n<lisp>(planner-diary-entries-here)</lisp>
4413 \n* Notes")
4414 @end smallexample
4416 When you open a day plan page outside Emacs, you will see the line of
4417 Lisp code and not your diary entries.
4419 @end enumerate
4421 If you want to see your diary entries for more than just one day, set
4422 @code{planner-diary-number-of-days} accordingly.  This works for either
4423 of the two approaches.
4425 @kbd{C-c C-e} updates the diary sections.  @kbd{C-u C-c C-e} forces an
4426 update---it inserts the diary section for the day, even if the day is in
4427 the past or if there is no @samp{Diary} section in the buffer.
4429 If you want to use the Cal-Desk package, simply follow the instructions
4430 in @file{cal-desk.el}.  If you get the Cal-Desk layout from the Calendar
4431 buffer, you get it in the day plan buffer, too.
4433 If you use Planner-Diary, you might consider using the Calendar support
4434 of Planner. (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) To get
4435 Calendar integration, add this to your @file{.emacs} (or @file{_emacs}):
4437 @example
4438 (planner-insinuate-calendar)
4439 @end example
4441 If @code{planner-diary-create-section-flag} is non-nil, sections are
4442 always inserted if necessary.
4444 @cindex planner2diary.py, using
4445 If you want to import Planner entries into your Diary file, the
4446 @file{planner2diary.py} script will accomplish this for you.  To use it,
4447 execute @code{planner2diary.py} on the command line, specifying your
4448 planner directory as the first and only argument.
4450 @subheading Options
4452 @defopt planner-diary-create-section-flag
4453 Non-nil means create the requested diary sections if they do not
4454 exist. By default, planner-diary tries to create the section. If you
4455 want more control over your pages, you can set this to nil. Trying to
4456 write a diary section to a page that does not have it yet will then
4457 result in an error.
4458 @end defopt
4460 By default, planner-diary lists only the appointments you have on that
4461 day. If you want the date headers included even when showing the diary
4462 entries for a single day, set planner-diary-include-all-output to
4463 non-nil.
4465 @defopt planner-diary-include-all-output-flag
4466 Non-nil means don't omit any data when copying diary entries into day
4467 pages.
4468 @end defopt
4470 @subheading Functions
4472 @file{planner-diary.el} defines the following interactive functions:
4474 @defun planner-diary-add-entry date time text
4475 Prompt for a diary entry to add to @code{diary-file} on @var{date}.
4476 Uses @code{planner-annotation-functions} to make hyperlinks.
4477 @var{time} and @var{text} are used in the description."
4478 @end defun
4480 @defun planner-diary-insert-diary force
4481 Insert the fancy diary for the day into the day plan file. If
4482 @var{force} is non-nil, insert a diary section even if there is no
4483 @var{planner-diary-string} in the buffer.
4484 @end defun
4486 @defun planner-diary-insert-diary-maybe force
4487 Maybe insert the fancy diary for the day into the day plan file. If the
4488 current day is in the past and @var{force} is nil, don't do anything. If
4489 @var{force} is non-nil, insert a diary section even if there is no
4490 @code{planner-diary-string} in the buffer.
4491 @end defun
4493 @defun planner-diary-insert-appts force
4494 Insert the diary appointments for the day into the day plan file.  If
4495 @var{force} is non-nil, insert a diary appointments section even if
4496 there is no @code{planner-diary-appts-string} in the buffer.
4497 @end defun
4499 @defun planner-diary-insert-appts-maybe force
4500 Maybe insert the diary appointments for the day into the day plan file.
4501 If the current day is in the past and @var{force} is nil, don't do
4502 anything.  If @var{force} is non-nil, insert a diary appointments
4503 section even if there is no @code{planner-diary-appts-string} in the
4504 buffer.
4505 @end defun
4507 @defun planner-diary-insert-cal-desk force
4508 Insert the cal-desk diary for the day into the day plan file.  If
4509 @var{force} is non-nil, insert a cal-desk diary section even if there is
4510 no @code{planner-diary-cal-desk-string} in the buffer.
4511 @end defun
4513 @defun planner-diary-insert-cal-desk-maybe force
4514 Maybe insert the cal-desk diary for the day into the day plan file.  If
4515 the current day is in the past and @var{force} is nil, don't do
4516 anything.  If @var{force} is non-nil, insert a cal-desk appointments
4517 section even if there is no @code{planner-diary-cal-desk-string} in the
4518 buffer.
4519 @end defun
4521 @defun planner-diary-insert-public force
4522 Insert the public diary for the day into the day plan file.  If
4523 @var{force} is non-nil, insert a public diary section even if there is
4524 no @code{planner-diary-public-string} in the buffer.
4525 @end defun
4527 @defun planner-diary-insert-public-maybe force
4528 Maybe insert the public diary for the day into the day plan file.  If
4529 the current day is in the past and @var{force} is nil, don't do
4530 anything.  If @var{force} is non-nil, insert a public appointments
4531 section even if there is no @code{planner-diary-public-string} in the
4532 buffer.
4533 @end defun
4535 @defun planner-diary-insert-private force
4536 Insert the private diary for the day into the day plan file.  If
4537 @var{force} is non-nil, insert a private diary section even if there is
4538 no @code{planner-diary-private-string} in the buffer.
4539 @end defun
4541 @defun planner-diary-insert-private-maybe force
4542 Maybe insert the private diary for the day into the day plan file.  If
4543 the current day is in the past and @var{force} is nil, don't do
4544 anything.  If @var{force} is non-nil, insert a private appointments
4545 section even if there is no @code{planner-diary-private-string} in the
4546 buffer.
4547 @end defun
4549 @defun planner-diary-insert-all-diaries force
4550 Update all diary sections in a day plan file.  If @var{force} is
4551 non-nil, insert a diary section even if there is no section header.  It
4552 only inserts diaries if the corresponding @code{planner-diary-use-}*
4553 variable is @samp{t}.
4554 @end defun
4556 @defun planner-diary-insert-all-diaries-maybe force
4557 Update all diary sections in a day plan file.  If the current day is in
4558 the past and @var{force} is nil, don't do anything.  If @var{force} is
4559 non-nil, insert a diary section even if there is no section header.  It
4560 only inserts diaries if the corresponding @code{planner-diary-use-}*
4561 variable is @samp{t}.
4562 @end defun
4564 @defun planner-diary-show-day-plan-or-diary
4565 Show the day plan or diary entries for the date under point in calendar.
4566 Add this to @code{calendar-move-hook} if you want to use it.  In that
4567 case, you should also @command{remove-hook} @samp{planner-calendar-show}
4568 from @code{calendar-move-hook}.
4569 @end defun
4571 @subheading Keys
4573 @file{planner-diary.el} adds the following keybinding to Planner, if
4574 @command{planner-diary-insinuate} is in your @file{.emacs} (or
4575 @file{_emacs}):
4577 @itemize
4579 @item
4580 @kbd{C-c C-e} updates the diary sections.
4582 @end itemize
4584 @menu
4585 * Planner-Diary Advanced Features::  
4586 @end menu
4588 @node Planner-Diary Advanced Features,  , Diary, Diary
4589 @comment  node-name,  next,  previous,  up
4590 @subsubsection Planner-Diary Advanced Features
4591 @cindex diary, using Planner with
4592 @cindex @file{planner-diary.el}, advanced features
4594 The features described here are part of the development version.  They
4595 are subject to change without notice.  They may be buggy.  The
4596 documentation may be inaccurate.  Use at your own risk.
4598 There is a lot of code redundancy in the development version.  This is
4599 intentional and makes it easier to change the code for one type of diary
4600 section without breaking others.
4602 @subheading Diary views
4604 @cindex @file{planner-diary.el}, views
4605 Currently Planner-Diary supports six different views of your diary
4606 entries:
4608 @enumerate
4609 @item
4610 Ordinary fancy diary display (what you get by pressing @kbd{d} in the
4611 calendar buffer with @code{fancy-diary-display} switched on)
4613 @item
4614 Schedule/Appointments (all entries from 1 that have a time assigned to
4615 them
4617 @item
4618 Diary without appts (1 without 2)
4620 @item
4621 cal-desk display (appts on top, non appts entries at bottom)
4623 @item
4624 A private diary (same as 1, but uses a different diary-file)
4626 @item
4627 A public diary (same as 1, but uses a different diary-file)
4628 @end enumerate
4630 Put the following line of Lisp code in your day plan pages to display
4631 your diary entries:
4633 @example
4634 <lisp>(planner-diary-entries-here)</lisp>
4635 @end example
4637 The function @code{planner-diary-entries-here} takes two optional
4638 arguments---the diary file you want to use and the number of days you
4639 want to display.
4641 @subheading Exporting Planner-specific Diary files
4643 @cindex @file{planner-diary.el}, exporting entries
4644 If you would like to export diary entries from your Planner pages to
4645 separate Diary files, add @code{(require 'planner-export-diary)} to your
4646 config.  The following steps describe the usage of the functions and
4647 options contained in this file.
4649 @enumerate
4651 @item
4652 Customize @code{planner-export-diary-file}.  The default value is
4653 ``~/diary.planner''.
4655 @item
4656 Add the following line to your main Diary file (default: ``~/diary'').
4658 @example
4659 #include ~/diary.planner
4660 @end example
4662 @item
4663 Then, call @command{M-x planner-export-diary-future} whenever you want
4664 future diary entries published. You can automatically publish entries by
4665 adding either of the following to your .emacs.
4667 @itemize
4669 @item (planner-export-diary-future)
4670 Publish future entries on startup.
4672 @item (add-hook 'planner-mode-hook 'planner-export-diary-setup)
4673 Publish future entries whenever you save a Planner file.
4675 @end itemize
4677 @end enumerate
4679 @node Appointments, Timeclock, Diary, Scheduling and Time
4680 @comment  node-name,  next,  previous,  up
4681 @subsection Appointments
4682 @cindex appointments
4683 @cindex @file{planner-appt.el}, using
4685 If you would like to use planner for your appointment alerts
4686 instead of using the diary system, you might like to try
4687 @file{planner-appt}.
4689 According to your preferences, you may choose from two different
4690 approaches. Appointments in task descriptions on today's plan
4691 page are like this:
4693 @example
4694 #A   _ @@12:45 Do something (TaskPool)
4695 @end example
4697 @noindent
4698 and appointments in today's schedule section are like this:
4700 @example
4701 * Schedule
4703   9:00 | 12:00 | Read Simmel's Philosophy of Money
4704 @@12:45 |       | Do Something Else
4705 @@13:00 | 14:00 | lunch
4706 @end example
4708 @noindent
4709 You can even use both at the same time if you like.
4711 @c Jim Ottaway <j.ottaway@lse.ac.uk>: Changed these kinds of heading
4712 @c back to @unnumberedsec, but left the originals commented out in
4713 @c case there was a good reason for the @strong formatting.
4715 @c @noindent
4716 @c @strong{Usage}
4717 @unnumberedsubsubsec Usage
4719 In the file where you configure Planner, add one of the following.
4721 @itemize
4722 @item
4723 For task-based appointments: @code{(planner-appt-use-tasks)}
4724 @item
4725 For schedule-based appointments: @code{(planner-appt-use-schedule)}
4726 @item
4727 For both task- and schedule-based appointments:
4728 @code{(planner-appt-use-tasks-and-schedule)}
4729 @end itemize
4731 @noindent
4732 And finally if you want everything to be updated automatically add:
4734 @example
4735 (planner-appt-insinuate)
4736 @end example
4738 If you don't want to do the insinuation then you can call:
4740 @example
4741 M-x planner-appt-update
4742 @end example
4744 @noindent
4745 after editing appointments on the page (note that this is not
4746 necessary if you use tasks for the appointments and you don't edit
4747 the task descriptions outside of @code{planner-edit-task-description}).
4749 Try both methods; if you find that you prefer one over the
4750 other, use one of the specific @code{planner-appt-use-} functions, as
4751 there are some performance gains when using one method exclusively.
4753 @menu
4754 * Task-based Appointments::     
4755 * Schedule-based Appointments::  
4756 * Viewing Appointments::        
4757 * Appointment Updating on Save::  
4758 * Appointment and Calendar Integration::  
4759 * Appointment Hooks::           
4760 @end menu
4763 @node Task-based Appointments, Schedule-based Appointments, Appointments, Appointments
4764 @comment  node-name,  next,  previous,  up
4765 @subsubsection Task-based Appointments
4766 @cindex appointments, task-based
4767 @cindex task-based appointments
4769 A task has an appointment if it looks like this:
4771 @example
4772 #A   _ @@12:45 Do something (TaskPool)
4773 @end example
4775 @noindent
4776 i.e., if it has @@ followed by a time at the beginning.  This means
4777 the task is a regular appointment, and will not be carried forward
4778 at the start of a new day.
4780 Alternatively, it may have a !, like this:
4782 @example
4783 #A   _ !12:45 Do something else (TaskPool)
4784 @end example
4786 @noindent
4787 This makes it a "nagging" appointment, which @emph{will} be carried
4788 forward.  It will, however, lose the appointment time in the
4789 process.
4791 This may seem like a strange feature, but here is Henrik's
4792 reasoning:
4794 @quotation
4795 Sometimes I have a task that I want to do at a certain time, so I
4796 make it an appointment.  If I don't get around to doing it anyway,
4797 I want it to be carried forward.  Basically, I sometimes use
4798 appointments on tasks to annoy me until I get them done. :)
4799 @end quotation
4801 You can edit, move and delete tasks with the usual functions, and
4802 appointments will be updated automatically.
4804 You can update all task appointments on your page with
4806 @example
4807 M-x planner-appt-update
4808 @end example
4810 @c @noindent
4811 @c @strong{Cyclic Entries}
4813 @unnumberedsubsubsec Cyclic Entries
4814 @cindex appointments, cyclic task entries
4816 If you have @file{planner-cyclic} (@pxref{Cyclic Tasks}) loaded, entries
4817 in your cyclical tasks file such as
4819 @example
4820 Friday #A _ @@12:45 staff meeting
4821 @end example
4823 @noindent
4824 will appear every Friday and there will be an appointment alert set
4827 @c @noindent
4828 @c @strong{Appointments Section}
4829 @unnumberedsubsubsec Appointments Section
4830 @cindex appointments, appointments section
4832 You can have all task-based appointments copied to a separate section,
4833 providing an overview of your appointments.
4835 To do this, add
4837 @example
4838 (setq planner-appt-task-use-appointments-section-flag t)
4839 @end example
4841 @noindent to your configuration, or use @kbd{M-x customize-variable}.
4843 The variable @code{planner-appt-task-appointments-section} is the name
4844 of the section where the appointments will be copied.  By default, it is
4845 set to @code{"Schedule"}, which means that task appointments will be
4846 intermingled with schedule entries.
4848 It is also a good idea to add the section you wish to use to
4849 @code{planner-day-page-template} in order to control where that section
4850 will appear on the page (otherwise it will appear at the top).
4852 The format of the appointments follows that of a schedule; if you
4853 don't like the way it looks, you can write something different and set
4854 @code{planner-appt-format-appt-section-line-function} appropriately.
4855 See the documentation for
4856 @code{planner-appt-format-appt-section-line-function} for details.  It
4857 should be fairly easy to see what needs to be done if you look at the
4858 source for the default function (which is
4859 @code{planner-appt-format-appt-section-line}).
4861 If the section specified in
4862 @code{planner-appt-task-appointments-section} is the same as the
4863 schedule section specified in @code{planner-appt-schedule-section} (by
4864 default @code{"Schedule"}), the default formatting function adds a
4865 @samp{#} to the description so that one can visually distinguish
4866 appointments from the task list from those that have been added to the
4867 schedule.
4869 @node Schedule-based Appointments, Viewing Appointments, Task-based Appointments, Appointments
4870 @comment node-name,  next,  previous,  up
4871 @subsubsection Schedule-Based Appointments
4872 @cindex appointments, schedule-based
4873 @cindex schedule-based appointments
4875 Some scheduled tasks require reminders, others don't.  In this
4876 schedule:
4878 @example
4879 * Schedule
4881 9:00   | 12:00 | Read Simmel's Philosophy of Money
4882 @@12:45          Do Something Else
4883 @@13:00 | 14:00 | lunch
4884 @@14:30 |       | Meet jrs to discuss his dissertation
4885 @@16:00           Test Society seminar
4886 18:00            go home
4887 @end example
4889 @noindent
4890 those that have an @@ prefix will be added to the appointment
4891 reminder list; the others will not.  The formats that are
4892 recognized are fairly flexible, as you can see from the example.
4894 If you change your schedule, you can update the appointment list
4895 with
4897 @example
4898 M-x planner-appt-update
4899 @end example
4901 @noindent You can also have the schedule sorted as part of the update,
4902 if you have this in your configuration:
4904 @example
4905 (setq planner-appt-sort-schedule-on-update-flag t)
4906 @end example
4908 @c @noindent 
4909 @c @strong{Cyclical Entries}
4910 @unnumberedsubsubsec Cyclical Entries
4911 @cindex appointments, cyclic schedule entries
4913 You can also have cyclical schedule entries(@pxref{Cyclic Tasks}) if you
4916 @example
4917 (planner-appt-schedule-cyclic-insinuate)
4918 @end example
4920 @noindent to your configuration.
4922 If you put an entry in your cyclical task file like this
4924 @example
4925 Friday @@12:45 | 13:45 | Staff Meeting
4926 @end example
4928 @noindent
4929 then it will appear in your schedule every Friday, and an
4930 appointment alert will be set up.
4932 @node Viewing Appointments, Appointment Updating on Save, Schedule-based Appointments, Appointments
4933 @comment  node-name,  next,  previous,  up
4934 @subsubsection Viewing Appointments
4935 @cindex appointments, viewing
4937 The command @command{planner-appt-show-alerts} will show all appointment
4938 alerts currently scheduled.
4940 @subheading Functions
4942 There are two commands that show appointments in the future; the one
4943 displays them in a pop-up buffer, the other puts the information into
4944 the current day page.
4946 @deffn {Command} planner-appt-forthcoming-display &optional days
4947 Display a buffer of appointments for today and the next
4948 @var{days}. Optional prefix argument @var{days} is the number of days
4949 ahead to look. Its default value is defined by
4950 @code{planner-appt-forthcoming-days}.
4951 @end deffn
4953 @deffn {Command} planner-appt-forthcoming-update-section &optional days
4954 In today's plan page, add or update a list of forthcoming
4955 appointments. Optional prefix argument @var{days} is the number of
4956 days ahead to look. Its default value is defined by
4957 @code{planner-appt-forthcoming-days}.  The section heading to use is
4958 defined by @code{planner-appt-forthcoming-appt-section}.
4959 @end deffn
4961 @subheading Options
4963 @defopt planner-appt-forthcoming-days
4964 The number of days to look ahead for forthcoming appointments.  The
4965 default value is seven days.
4966 @end defopt
4968 @defopt planner-appt-forthcoming-appt-section
4969 The name of the section to use for inserting a list of forthcoming
4970 appts.  The default value is @code{"Forthcoming Appointments"}.
4971 @end defopt
4973 @defopt planner-appt-forthcoming-show-day-names-flag
4974 When non-nil (the default), day names will be shown in forthcoming
4975 appointments.
4976 @end defopt
4978 @defopt planner-appt-forthcoming-repeat-date-string
4979 String to insert for repeated dates.
4981 When there are multiple appointments for a date, the date is inserted
4982 in the first appointment and the others have this string in their date
4983 cell.
4985 If the string consists of anything other than whitespace, then a link
4986 to the day page for the appoinment is created.
4987 @end defopt
4989 @defopt planner-appt-forthcoming-look-at-cyclic-flag
4990 When non-nil, find forthcoming appointments in the cyclic diary file
4991 (@pxref{Cyclic Tasks}) as well as in plan pages. Default is @samp{t}.
4992 @end defopt
4994 @node Appointment Updating on Save, Appointment and Calendar Integration, Viewing Appointments, Appointments
4995 @comment  node-name,  next,  previous,  up
4996 @subsubsection Appointment Updating on Save
4997 @cindex appointments, updating on save
4999 @subheading Options
5001 @defopt planner-appt-update-appts-on-save-flag
5002 When non-nil, update appointment reminders whenever today's plan page is
5003 saved. Default value is @samp{nil}.
5004 @end defopt
5006 @node Appointment and Calendar Integration, Appointment Hooks, Appointment Updating on Save, Appointments
5007 @comment  node-name,  next,  previous,  up
5008 @subsubsection Appointment and Calendar Integration
5010 Not strictly part of appointment handling, but if one isn't using
5011 the diary, marking dates with plan pages seems to make sense.
5013 @subheading Functions
5015 @defun planner-appt-calendar-insinuate
5016 Add a hook to diary display so that dates in the calendar that have day
5017 pages are highlighted
5018 @end defun
5020 @node Appointment Hooks,  , Appointment and Calendar Integration, Appointments
5021 @comment  node-name,  next,  previous,  up
5022 @subsubsection Appointment Hooks
5024 @subheading Options
5026 @defvr {Hook} planner-appt-update-hook
5027 Hook run after @code{planner-appt-update} has updated the appointment
5028 list.
5029 @end defvr
5031 @node Timeclock, schedule.el, Appointments, Scheduling and Time
5032 @comment  node-name,  next,  previous,  up
5033 @subsection Timeclock
5034 @cindex @file{planner-timeclock.el}, using
5035 @cindex @file{planner-timeclock-summary.el}, using
5036 @cindex @file{planner-timeclock-summary-proj.el}, using
5037 @cindex timeclock, using Planner with
5039 This module allows you to clock in and clock out of your projects
5040 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual}). You can also
5041 generate reports with the @code{<timeclock-report>} tag. You may want
5042 to read the @ref{Keeping Track of Time} page to see how you can use
5043 planner-timeclock to produce detailed reports.
5045 @file{timeclock.el} is part of GNU Emacs.  If you are using XEmacs,
5046 please use the version of @file{timeclock.el} the comes with Planner in
5047 the @file{contrib} directory.
5049 With @file{planner-timeclock.el} loaded,
5050 @command{planner-task-in-progress} clocks in a task.  To clock out,
5051 use @command{planner-task-done} or @command{timeclock-out}.
5053 @file{planner-timeclock.el} defines the following keybindings:
5055 @itemize
5056 @item @kbd{C-c C-i}: @code{planner-task-in-progress}.
5057 @item @kbd{C-c C-o}: @code{timeclock-out}.
5058 @item @kbd{C-c C-T C-i}: @code{planner-timeclock-in}. (XEmacs)
5059 @item @kbd{C-c C-T C-o}: @code{timeclock-out}. (XEmacs)
5060 @item @kbd{C-c C-S-t C-i}: @code{planner-timeclock-in}. (GNU Emacs)
5061 @item @kbd{C-c C-S-t C-o}: @code{timeclock-out}. (GNU Emacs)
5062 @end itemize
5064 If you use @code{timeclock} a lot, you may also be interested in
5065 Dryice Liu's @file{planner-timeclock-summary.el}, which produces
5066 timeclock reports for planner files.
5068 Here is a sample report:
5070 @example
5071 Project               |     Time| Ratio| Task
5072 PlannerMaintenance    |  0:03:58|  1.1%| Merge doc patch
5073                       |  0:17:09|  5.0%| Track down subdirectories
5074                       |  0:18:11|  5.3%| Merge planner-timeclock-summary-proj.el
5075                Total: |  0:39:18| 11.4%|
5076 JapanCaseStudy        |  2:37:56| 45.6%| Prototype search result page
5077                       |  0:31:50|  9.2%| Update design documents
5078                Total: |  3:09:46| 54.8%|
5079 ChristmasLetter       |  1:46:37| 30.8%| Write and send my Christmas letters
5080                Total: |  1:46:37| 30.8%|
5081 LinuxPeople           |  0:10:29|  3.0%| Send questions for Linux in Education
5082                Total: |  0:10:29|  3.0%|
5083 @end example
5085 If you add @code{(require 'planner-timeclock-summary)} to your
5086 @file{~/.emacs}, you can then use it in two ways.
5088 @itemize
5090 @item Display a temporary buffer
5092 Call @code{planner-timeclock-summary-show} and Emacs will ask you which
5093 day's summary do you want. Choose the date as anywhere else of
5094 Emacs planner, and a tempory buffer will be displayed with the
5095 timeclock summary of that day.
5097 To review tasks over a date range, use
5098 @code{planner-timeclock-summary-show-range}. You can use a regexp or a
5099 function to filter tasks by calling
5100 @code{planner-timeclock-summary-show-range-filter}.
5102 @item Rewrite sections of your planner
5104 Choose this approach if you want timeclock summary to be in their
5105 own section and you would like them to be readable in your plain
5106 text files even outside Emacs. Caveat: The timeclock summary
5107 section should already exist in your template and will be rewritten
5108 when updated. Tip: Add @code{planner-timeclock-summary-section}
5109 (default: @samp{"Timeclock"}) to your @code{planner-day-page-template}.
5111 To use, call @code{planner-timeclock-summary-update} in the planner
5112 day page to update the section. If you want rewriting to be
5113 automatically performed, call
5114 @code{planner-timeclock-summary-insinuate} in your @file{.emacs} file.
5115 @end itemize
5117 @file{planner-timeclock-summary-proj.el} produces task / time
5118 breakdowns on plan pages. Reports are of the form:
5120 @example
5121 TASK 0 | duration
5122 TASK 1 | duration
5123  TOTAL | duration.
5124 @end example
5126 To use, add @code{(require 'planner-timeclock-summary)} to your
5127 @file{~/.emacs}. Call @code{planner-timeclock-summary-proj-current}
5128 from a project page. The report is inserted at the current position in
5129 the buffer. The function @code{planner-timeclock-summary-proj-section}
5130 does the same but the report is inserted inside a section called
5131 @samp{* Report}.
5133 @node schedule.el,  , Timeclock, Scheduling and Time
5134 @comment  node-name,  next,  previous,  up
5135 @subsection @file{schedule.el}
5136 @cindex @file{planner-schedule.el}, using
5137 @cindex @file{schedule.el}, using Planner with
5139 @file{planner-schedule.el} allows you to project task completion time.
5140 Tasks should be of the form:
5142 @example
5143 #A0 _ 2h Do something
5144 #B0 _ 1h30m Do something
5145 #B0 _ 2d Do something
5146 #B0 _ 2w Do something
5147 #B0 _ 10s Do something
5149 s: seconds, m: minutes, h: hours, d: days, w: weeks
5150 @end example
5152 @file{schedule.el} is included with Planner in the @file{contrib}
5153 directory, but you can alternatively get it from
5154 @url{http://www.newartisans.com/johnw/Emacs/schedule.el} if desired.
5156 @file{schedule.el} provides a single Lisp function,
5157 @code{schedule-completion-time}. It takes an Emacs time object and a
5158 quantity of seconds. It returns an Emacs time object that represents
5159 when the given number of seconds will be completed, assuming that work
5160 can only be done during work hours.
5162 The available work hours are affected by several factors:
5164 @enumerate
5166 @item
5167 If @file{timeclock.el} is being used, the amount of time left in the
5168 current work day (@code{timeclock-workday-remaining})
5169 (@pxref{Time Intervals, , , Emacs, GNU Emacs Manual})
5171 @item
5172 The amount of time in each work day (@code{schedule-workday})
5174 @item
5175 The definition of a work week (@code{schedule-week})
5177 @item
5178 Any holidays defined in the Emacs calendar
5179 (@pxref{Holidays, , , Emacs, GNU Emacs Manual})
5181 @item
5182 Any appointments in the Emacs diary
5183 (@pxref{Appointments, , , Emacs, GNU Emacs Manual})
5185 @end enumerate
5187 Taking all of the ``block out'' periods into account,
5188 @code{schedule-completion-time} will compute when the given number of
5189 seconds will be done, based on your current definitions of time
5190 available.
5192 As an example, here's a function which, given a list of durations
5193 in seconds, will return a list of completion times starting from
5194 the current moment:
5196 @example
5198   (defun compute-completion-times (&rest durations)
5199     ``Compute completion times for a list of DURATIONS (in seconds).''
5200     (let ((now (current-time)))
5201       (mapcar
5202        (function
5203         (lambda (dura)
5204           (setq now (schedule-completion-time now dura))))
5205        durations)))
5207 @end example
5209 To call this function, do:
5211 @example
5213 (compute-completion-times 3600 7200 3600)
5215 @end example
5217 @subheading Keys
5219 @file{planner-schedule.el} defines the following keybindings:
5221 @kbd{C-c RET} is bound to @command{planner-schedule-show-end-project}.
5222 @kbd{C-c C-m} is also bound to
5223 @command{planner-schedule-show-end-project}.
5225 In XEmacs, @command{planner-schedule-show-end-project} is bound to
5226 @kbd{C-c C-T c-e} and @kbd{C-c C-S-t C-e}.
5228 @subheading Functions
5230 @file{planner-schedule.el} defines the following interactive
5231 functions:
5233 @defun planner-schedule-show-end-project
5234 Display the estimated project completion time.
5235 @end defun
5237 @file{schedule.el} does not define any interactive functions, or
5238 keybindings.
5240 @node Finances, Contacts and Conversations, Scheduling and Time, Managing Your Information
5241 @comment  node-name,  next,  previous,  up
5242 @section Finances
5243 @cindex finances
5245 Currently, Planner provides one module dedicated to tracking your
5246 finances. This module works with a program called Ledger.
5248 @menu
5249 * Ledger::                      Personal finances: planner-ledger.el
5250 @end menu
5252 @node Ledger,  , Finances, Finances
5253 @comment  node-name,  next,  previous,  up
5254 @subsection Ledger
5255 @cindex finances
5256 @cindex @file{planner-ledger.el}, using
5257 @cindex @file{ledger}, using Planner with
5259 @file{planner-ledger.el} provides integration between planner and John
5260 Wiegley's ledger accounting program, which can be found at
5261 @url{http://newartisans.com/johnw/ledger.tar.gz}.
5263 To use planner-ledger to insert a ledger balance overview and a list
5264 of pending transactions into planner day pages, make sure that your
5265 day page includes sections that match
5266 @code{planner-ledger-balance-regexp} and
5267 @code{planner-ledger-pending-regexp}. Example:
5269 @example
5270 * Tasks
5272 * Ledger
5274 ** Pending transactions
5276 * Notes
5278 @end example
5280 You can manually update ledger sections with the
5281 @command{planner-ledger-insert-maybe} command.
5283 You can also automatically update ledger sections with the following
5284 hook:
5286 @example
5287 (add-hook 'planner-goto-hook 'planner-ledger-insert-maybe)
5288 @end example
5290 You can create ledger entries from specially-formatted tasks using
5291 @command{planner-ledger-add-entry-from-task}.  Tasks should be of the
5292 form @samp{payment due: payee, amount [comment]}.  Example:
5294 @example
5295 #A1 _ payment due: foobar, $1000.00 some comment here
5296 #A2 _ payment due: baz, 1000.00
5297 @end example
5299 @subheading Options
5301 @defopt planner-ledger-balance-accounts
5302 List of accounts to be included or excluded from the balance overview.
5303 @samp{+} includes all matching accounts, and @samp{-} excludes
5304 matching accounts.  See the documentation for
5305 @command{ledger-run-ledger} for more details.
5306 @end defopt
5308 @defopt planner-ledger-balance-regexp
5309 Regular expression matching section for ledger balance.  Do not store
5310 other data in this section, as it will be overwritten.
5311 @end defopt
5313 @defopt planner-ledger-pending-regexp
5314 Regular expression matching section for ledger balance.  Do not store
5315 other data in this section, as it will be overwritten.
5316 @end defopt
5318 @defopt planner-ledger-payment-task-regexp
5319 Regular expression matching special ledger tasks.
5320 @end defopt
5322 @subheading Functions
5324 @defun planner-ledger-insert-maybe
5325 Update any ledger sections on the current page.
5326 @end defun
5328 @defun planner-ledger-add-entry-from-task
5329 Create a ledger entry based on the task at point.  Task should match
5330 @code{planner-ledger-payment-task-regexp}.
5331 @end defun
5333 @node Contacts and Conversations, Tracking Research and Resources, Finances, Managing Your Information
5334 @comment  node-name,  next,  previous,  up
5335 @section Contacts and Conversations
5336 @cindex contacts
5337 @cindex conversations
5339 Planner has two modules available for keeping track of contact and
5340 conversation information. The first uses the Big Brother Database
5341 (BBDB), and the second uses Emacs Relay Chat (ERC). BBDB is a full
5342 contact database. ERC is a client for chatting online on Internet Relay
5343 Chat (IRC) networks. The ERC module for Planner will help you keep
5344 track of online conversations you have if you use ERC for those
5345 conversations, but does not by itself store contact information other
5346 than the time you had the conversation, the network and channel you were
5347 on when you had it, and maybe who you had it with. If you are looking
5348 for a way to manage your full address book, then @file{planner-bbdb.el}
5349 in combination with BBDB is what you are looking for.
5351 @menu
5352 * BBDB::                        Contacts: planner-bbdb.el
5353 * Emacs Relay Chat::            Internet Relay Chat: planner-erc.el
5354 @end menu
5356 @node BBDB, Emacs Relay Chat, Contacts and Conversations, Contacts and Conversations
5357 @comment  node-name,  next,  previous,  up
5358 @subsection BBDB
5359 @cindex @file{planner-bbdb.el}, using
5360 @cindex BBDB, using Planner with
5362 @file{planner-bbdb.el} allows you to refer to your contacts easily
5363 from within a planner page. @inforef{Top, the BBDB Manual, bbdb}.
5365 @samp{[[bbdb://Sacha.*Chua][Sacha]]}, for example, will be linked to
5366 the blog, web or net fields of the first matching BBDB record.
5368 @file{planner-bbdb.el} does not define any interactive functions, or
5369 keybindings.
5371 @node Emacs Relay Chat,  , BBDB, Contacts and Conversations
5372 @comment  node-name,  next,  previous,  up
5373 @subsection Emacs Relay Chat
5374 @cindex @file{planner-erc.el}, using
5375 @cindex ERC, using Planner with
5376 @cindex Emacs Relay Chat, using Planner with
5377 @cindex IRC, using Planner with
5378 @cindex Internet Relay Chat, using Planner with
5380 To use planner-erc, place @file{planner-erc.el} in your load path
5381 and add this to your @file{.emacs} (or @file{_emacs}):
5383 @example
5385 (require 'planner-erc)
5387 @end example
5389 IRC URLs may be of the following forms.
5391 @example
5392 irc://server/nick,isnick
5393 irc://server/#channel
5394 irc://server
5395 @end example
5397 Annotations will be in the following forms.
5399 @example
5400 [[irc://server/nick,isnick][Chat with nick on server#channel]]
5401 [[irc://server/nick,isnick][Chat with nick on server]]
5402 [[irc://server/#channel][Chat on server#channel]]
5403 [[irc://server][Chat on server]]
5404 @end example
5406 @file{planner-erc.el} does not define any interactive functions, or
5407 keybindings.
5409 @node Tracking Research and Resources, Tracking Development, Contacts and Conversations, Managing Your Information
5410 @comment  node-name,  next,  previous,  up
5411 @section Tracking Research and Resources
5413 Planner provides three modules for keeping track of information
5414 involving three specific tools: w3m, BibTeX, and @file{bookmark.el}.
5416 @menu
5417 * W3m::                         Web browser: planner-w3m.el
5418 * BibTeX::                      Bibliographies: planner-bibtex.el
5419 * Bookmark::                    Bookmarks: planner-bookmark.el
5420 @end menu
5422 @node W3m, BibTeX, Tracking Research and Resources, Tracking Research and Resources
5423 @comment node-name,  next,  previous,  up
5424 @subsection W3m
5425 @cindex @file{planner-w3m.el}, using
5426 @cindex w3m, using Planner with
5428 This module allows you to create tasks from a w3m buffer.
5430 @file{planner-w3m.el} does not define any interactive functions, or
5431 keybindings.
5433 @node BibTeX, Bookmark, W3m, Tracking Research and Resources
5434 @comment node-name,  next,  previous,  up
5435 @subsection BibTeX
5436 @cindex @file{planner-bibtex.el}, using
5438 BibTeX URLs are of the form @samp{bibtex:file/name:key}.
5440 @file{planner-bibtex.el} does not define any interactive functions.
5442 @node Bookmark,  , BibTeX, Tracking Research and Resources
5443 @comment  node-name,  next,  previous,  up
5444 @subsection Bookmark
5445 @cindex bookmarks
5446 @cindex @file{bookmark.el}, using Planner with
5447 @cindex @file{planner-bookmark.el}, using
5449 @file{planner-bookmark.el} uses the @file{remember} package to create a
5450 note whenever you create a bookmark (see @inforef{Bookmarks, Bookmarks,
5451 Emacs}). For more information about @file{remember}, please check out
5453 @itemize
5454 @item
5455 @uref{http://www.emacswiki.org/cgi-bin/wiki/RememberMode} -
5456 EmacsWiki.org page
5457 @item
5458 @uref{http://sacha.free.net.ph/notebook/doc/dev/remember/remember.html}
5459 - Online info documentation
5460 @end itemize
5462 Configure remember according to the instructions in
5463 @file{remember-planner.el} so that notes are saved to your planner
5464 pages.
5466 @defopt planner-bookmark-take-note-after-set-bookmark-flag
5467 Non-nil means show a @code{remember} buffer after setting a new
5468 bookmark.
5469 @end defopt
5471 When you create a bookmark, Emacs will open a buffer for your notes.
5472 @kbd{C-c C-c} saves the buffer to today's page. If you don't want to
5473 save a note, you can kill the buffer.
5475 Bookmark URLs are of the form @samp{bookmark://bookmark-name}.
5477 @file{planner-bookmark.el} does not define any interactive functions.
5479 @node Tracking Development,  , Tracking Research and Resources, Managing Your Information
5480 @comment  node-name,  next,  previous,  up
5481 @section Tracking Development
5482 @cindex version control, using Planner with
5484 Planner has three modules geared toward programmers. Two modules deal
5485 with version control and integrating information from those projects
5486 into the planner page. One module deals with the Gnats bug-tracking
5487 system.
5489 @menu
5490 * Log Edit::                    Changelogs: planner-log-edit.el
5491 * PSVN::                        svn changesets: planner-psvn.el
5492 * XTLA::                        TLA changesets: planner-xtla.el
5493 * Gnats::                       Gnats: The GNU bug reporting system
5494 @end menu
5496 @node Log Edit, PSVN, Tracking Development, Tracking Development
5497 @comment  node-name,  next,  previous,  up
5498 @subsection Log Edit
5499 @cindex cvs, using Planner with
5500 @cindex @file{planner-log-edit.el}, using
5501 @cindex version control, using Planner with
5503 This module allows you to automatically record CVS (and VC) commits
5504 in today's page.
5506 You can load the module with @code{(require 'planner-log-edit)}. When
5507 you load the module, @code{planner-log-edit-add-note} will be added to
5508 @code{log-edit-done-hook}.  A note containing the text of the commit
5509 and optionally a list of modified files will be added to today's page
5510 if you use the the Emacs version control interface. (@pxref{Version
5511 Control, , , Emacs, GNU Emacs Manual})
5513 @subheading Options
5515 @defopt planner-log-edit-include-files-flag
5516 Non-nil means include a list of committed files in the note.
5517 @end defopt
5519 @defopt planner-log-edit-notice-commit-function
5520 Non-nil means include a list of committed files in the note. If you
5521 want to enable this feature for some projects but not for others, set
5522 this to a function that returns t only for the commits you want to
5523 note.
5524 @end defopt
5526 @file{planner-log-edit.el} does not define any interactive functions.
5528 @node PSVN, XTLA, Log Edit, Tracking Development
5529 @comment  node-name,  next,  previous,  up
5530 @subsection PSVN
5531 @cindex PSVN
5532 @cindex @file{planner-psvn.el}, using
5533 @cindex Subversion, integration with
5535 This module enables you to refer to your Subversion (svn) changesets
5536 easily from within a Planner page, and to have your svn commits recorded
5537 automatically as notes in your planner.
5539 You must also have @file{psvn.el}, which is often packaged with
5540 Subversion in GNU/Linux distributions.
5542 You can then load the module by adding @code{(require 'planner-psvn)} to
5543 your @file{~/.emacs}.
5545 Once the module is loaded, Planner will pick up annotation information
5546 from any psvn *svn-log-view* buffer. If you create a task or note while
5547 in such a buffer, that task will have a hyperlink you can follow to
5548 return to the changeset later.
5550 These hyperlinks are of the form
5551 @samp{psvn://http://my.svn-repos.at/svn/project1/trunk@@39}
5553 Additionally, you can have notes for your commits automatically
5554 generated. Set @var{planner-psvn-log-edit-notice-commit-function} to t
5555 to enable this.
5557 By default, these commit notes will include a list of the files
5558 modified. If you would prefer to have this list not included, set
5559 @var{planner-psvn-log-edit-include-files-flag} to nil.
5561 @node XTLA, Gnats, PSVN, Tracking Development
5562 @comment  node-name,  next,  previous,  up
5563 @subsection XTLA
5564 @cindex XTLA
5565 @cindex @file{planner-xtla.el}, using
5567 This module allows you to refer to changesets in Tom Lord's Arch (tla)
5568 version control system. You can load the module with @code{(require
5569 'planner-xtla)}. When you load the module, you can create tasks from
5570 XTLA windows by positioning point on a revision.
5572 XTLA URLs are of the form
5573 @samp{xtla://miles@@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-19}
5575 @file{planner-xtla.el} does not define any interactive functions.
5577 @node Gnats,  , XTLA, Tracking Development
5578 @comment  node-name,  next,  previous,  up
5579 @subsection Gnats
5581 @cindex Gnats
5582 @cindex @file{planner-gnats.el}, using
5583 @cindex bug reports, tracking
5585 @file{planner-gnats.el} provides support for the GNU problem report
5586 management system Gnats. This module allows you to refer to problem
5587 reports using hyperlinks.
5589 Configure your Emacs for Gnats access, then add @samp{(require
5590 'planner-gnats)} to your @file{.emacs}. You can then create tasks from
5591 Gnats edit or view buffers.
5593 To add keybindings to Gnats, use @samp{(planner-gnats-insinuate)}.
5595 Gnats URLs are of the form @samp{gnats:pr-number}.
5597 @file{planner-gnats.el} does not define any interactive functions.
5599 @node Advanced Configuration, Reference Material, Managing Your Information, Top
5600 @comment  node-name,  next,  previous,  up
5601 @chapter Advanced Configuration
5602 @cindex configuration, advanced
5604 @menu
5605 * Customizing Your Day Pages::  Change your templates
5606 * Variables to Customize::      Change various aspects of Planner behavior
5607 * Ideas for Other Keybindings::  Add to and change the default keybindings
5608 @end menu
5610 @node Customizing Your Day Pages, Variables to Customize, Advanced Configuration, Advanced Configuration
5611 @comment  node-name,  next,  previous,  up
5612 @section Customizing Your Day Pages
5614 With the variable @code{planner-day-page-template}, you can define how
5615 you want any newly created day planner pages to look.
5617 You might want to include a section for your diary entries. For how to
5618 do this, see @ref{Diary}.
5620 You can add interactive Lisp buttons with the @file{planner-lisp.el}
5621 module. (@pxref{Interactive Lisp})
5623 Your @code{planner-day-page-template} can also include @samp{|<lisp>|}
5624 tags.
5626 For more complex day pages, you can set
5627 @code{planner-day-page-template} to a function that will be called
5628 from an empty day page buffer. The function should initialize the
5629 contents of the day page.
5631 @node Variables to Customize, Ideas for Other Keybindings, Customizing Your Day Pages, Advanced Configuration
5632 @comment  node-name,  next,  previous,  up
5633 @section Variables to Customize
5634 @cindex customize, variables to
5635 @cindex variables, customization of
5636 @cindex configuration, advanced, variables
5638 If you want to change @code{planner-directory} and some other
5639 variables, either use Customize (@kbd{M-x customize-group RET planner
5640 RET}) or use @code{setq}.  An example of the latter follows.
5642 @example
5643 (setq planner-directory "~/Plans")
5644 @end example
5646 Other user options are:
5648 @vindex planner-use-day-pages
5649 @defopt planner-use-day-pages
5650 If you really don't like day pages, you can set this variable to nil
5651 and you won't be prompted for dates for tasks (and notes, if using
5652 @file{remember-planner}).
5653 @end defopt
5655 @vindex planner-use-plan-pages
5656 @defopt planner-use-plan-pages
5657 If you really don't like plan pages, you can set this variable to nil
5658 and you won't be prompted for plan pages for tasks (and notes, if
5659 using @file{remember-planner}).
5660 @end defopt
5662 @vindex planner-mode-hook
5663 @defopt planner-mode-hook
5664 List of functions to run after @code{planner-mode} is initialized.
5665 @end defopt
5667 @vindex planner-tasks-file-behavior
5668 @defopt planner-tasks-file-behavior
5669 This variable controls what happens to files Planner opens by itself.
5670 If your tasks are associated with plan pages, the plan pages are
5671 updated whenever a task is rescheduled.  This could lead to a lot of
5672 open buffers as Planner applies updates to all linked files.
5673 By default, Planner is configured to do nothing.
5674 A value of @samp{save} means save but do not close buffers, and a
5675 value of @samp{nil} means do not save any of the buffers.
5676 @end defopt
5678 @vindex planner-add-task-at-end-flag
5679 @defopt planner-add-task-at-end-flag
5680 This variable controls where new tasks are created.  Non-nil means
5681 create tasks at the bottom of the first task block.  If you set this
5682 to non-nil, new tasks will be listed in order of creation (oldest).
5683 Tasks carried over from previous days will appear at the bottom of the
5684 list.
5686 Nil means create tasks at the top of the first task block.
5687 Carried-over tasks and newly created tasks are prominently placed on
5688 top of the list of tasks for the day.
5689 @end defopt
5691 @vindex planner-default-page
5692 @defopt planner-default-page
5693 Default page for created tasks.  This is used as the initial value for
5694 tasks.  After you create a task, it will be set to the previous page
5695 used.
5696 @end defopt
5698 @vindex planner-hide-task-status-when-highlighting
5699 @defopt planner-hide-task-status-when-highlighting
5700 Font-locking for tasks may be enough for you to determine status and
5701 priority.  Set this to non-nil if you want to hide the status marker
5702 and rely on font-locking instead.
5703 @end defopt
5705 @vindex planner-create-task-hook
5706 @defopt planner-create-task-hook
5707 Functions run after creating a task. @code{planner-id} hooks into
5708 this.
5709 @end defopt
5711 @vindex planner-expand-name-favor-future-p
5712 @defopt planner-expand-name-favor-future-p
5713 If non-nil, partial dates (ex: @kbd{2} or @kbd{5.2}) are completed to
5714 dates in the future instead of using the current year and month.
5715 @end defopt
5717 @vindex planner-task-dates-favor-future-p
5718 @defopt planner-task-dates-favor-future-p
5719 Like @code{planner-expand-name-favor-future-p}, but only for tasks.
5720 @end defopt
5722 @vindex planner-publish-dates-first-p
5723 @defopt planner-publish-dates-first-p
5724 Non-nil means list day pages first in the planner index.
5725 @end defopt
5727 @node Ideas for Other Keybindings,  , Variables to Customize, Advanced Configuration
5728 @comment  node-name,  next,  previous,  up
5729 @section Ideas for Other Keybindings
5730 @cindex keybindings, customization of
5731 @cindex configuration, advanced, keybindings
5732 @cindex customize, keybindings to
5734 By default and for backward compatibility, the following operations
5735 do not have keybindings, and are only accessible from the Planner
5736 menu:
5738 @itemize @bullet
5740 @item
5741 @code{planner-copy-or-move-region}
5743 @item
5744 @code{planner-delete-task}
5746 @item
5747 @code{planner-task-delegated}
5749 @item
5750 @code{planner-task-pending}
5752 @item
5753 @code{planner-task-open}
5755 @item
5756 @code{planner-renumber-tasks}
5758 @end itemize
5760 You may find it easier to install keybindings for those operations by
5761 inserting the following in your @file{.emacs} (or @file{_emacs}).
5762 Note: This changes some of the default keybindings for Planner.
5764 @example
5765 (planner-install-extra-task-keybindings)
5766 @end example
5768 If you install the extra task keybindings, your keybindings will
5769 include:
5771 @itemize @bullet
5773 @item
5774 @kbd{C-c C-t} will be unbound from the default and will serve as the
5775 prefix for the other task keybindings.
5777 @item
5778 @kbd{C-c C-t C-t}: @code{planner-create-task-from-buffer}.
5780 @item
5781 @kbd{C-c C-t C-k}: @code{planner-delete-task}.
5783 @item
5784 @kbd{C-c C-t C-u}: @code{planner-update-task}.
5786 @item
5787 @kbd{C-c C-t C-c}: @code{planner-copy-or-move-task}.
5789 @item
5790 @kbd{C-c C-t C-S-c}: @code{planner-copy-or-move-region}.
5792 @item
5793 @kbd{C-c C-t C-x}: @code{planner-task-done}.
5795 @item
5796 @kbd{C-c C-t C-S-x}: @code{planner-task-cancelled}.
5798 @item
5799 @kbd{C-c C-t C-d}: @code{planner-task-delegated}.
5801 @item
5802 @kbd{C-c C-t C-p}: @code{planner-task-pending}.
5804 @item
5805 @kbd{C-c C-t C-o}: @code{planner-task-in-progress}.
5807 @item
5808 @kbd{C-c C-t C-r}: @code{planner-raise-task}.
5810 @item
5811 @kbd{C-c C-t C-l}: @code{planner-lower-task}.
5813 @item
5814 @kbd{C-c C-t C-n}: @code{planner-renumber-tasks}.
5816 @end itemize
5818 Other keybindings can be configured by adding this to your
5819 @file{.emacs} (or @file{_emacs}):
5821 @example
5822 (planner-install-extra-context-keybindings)
5823 @end example
5825 This will set up the following keybindings:
5827 @itemize @bullet
5829 @item
5830 @kbd{shift up} @code{planner-move-up}
5832 @item
5833 @kbd{shift down} @code{planner-move-down}
5835 @item
5836 @kbd{shift right} @code{planner-jump-to-link}
5838 @end itemize
5840 @node Reference Material, Getting Help, Advanced Configuration, Top
5841 @comment  node-name,  next,  previous,  up
5842 @chapter Reference Material
5844 @menu
5845 * Keeping Track of Time::       
5846 * Other Interactive Functions::  
5847 * Planner Keybindings::         Default keybindings for Planner
5848 * Sample Configuration Files::  
5849 @end menu
5851 @node Keeping Track of Time, Other Interactive Functions, Reference Material, Reference Material
5852 @section Keeping Track of Time
5854 One of the coolest things you can do with Planner is keep track of how
5855 much time you spend not only on projects but even on particular tasks.
5856 @file{planner-timeclock.el} makes it as easy and natural as marking a
5857 task as in progress, postponed, or done. This can help you determine
5858 just how much time you spend working each day. If you add estimates to
5859 your task descriptions, you'll also be able to use this information to
5860 improve your time estimation skills.
5862 Here's how you can keep track of the time you
5865 Then the fun began. I wanted to see if I could match my estimates.
5866 Before I started working on a task, I used @kbd{C-c TAB} to mark it
5867 @code{in progress} and start the clock. If I decided to work on
5868 something else, I used @kbd{C-c TAB} to clock out of the previous task
5869 and clock into the new one.
5871 When I finished it, I used @kbd{C-c C-x} (@code{planner-task-done}) to
5872 mark it completed and automatically clock out. This is not yet done
5873 for cancelled tasks, so I clocked out of those manually with @kbd{C-c
5874 C-o} (@code{timeclock-out}). I also clocked out whenever I caught
5875 myself being distracted so that the totals wouldn't include the time I
5876 spent chatting on #emacs or checking out del.icio.us links. =) At the
5877 end of the day, I used
5878 @code{planner-timeclock-summary-show-range-filter} to show me the time
5879 elapsed for all of the tasks I'd worked on over the past two days.
5880 Here's the report for that project, edited to reflect how it looks on
5881 my screen and annotated with comments:
5883 @example
5884 Timeclock summary report for 2004.12.28 - 2004.12.29
5886 Project     |     Time| Ratio| Task
5887 JapanProject|  0:23:17|  3.6%| Translate javadoc comment for Messages.java
5888             |  0:33:48|  5.3%| Translate javadoc comment for LoginAction.java
5889             |  1:54:07| 17.8%| Study Struts in Japanese
5890             |  0:46:08|  7.2%| Add javadoc tags for input, output and forwards
5891             |  1:03:48|  9.9%| Help review code
5892             |  0:04:14|  0.7%| Import todo list
5893             |  0:00:37|  0.1%| 2min       Fix Menu Action's unnecessary code - delegated
5894             |  0:01:01|  0.2%| 2min       Remove unnecessary list in UserRemoveSetupAction - cancelled
5895             |  0:02:10|  0.3%| 2min       Remove hard-coded database path from MenuAction
5896             |  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. ...
5897             |  0:07:32|  1.2%| 5min       Add a method that returns the validity of a user in MUserPeer.
5898             |  0:08:28|  1.3%| 5min       Fix indentation
5899             |  0:03:52|  0.6%| 10min      Fix UserPeer so that it doesn't get null pointer exceptions
5900             |  0:04:34|  0.7%| 5min       Add current password field in user_modify page
5901             |  0:21:56|  3.4%| 15min      Make a super class for our service classes that will receive the database connection. (cancelled)
5902             |  0:06:05|  0.9%| 10min      Remove hard-coded constants from the Logic classes
5903             |  0:10:55|  1.7%| 10min      Move logic from UserBean.checkPassword to UserListLogic
5904             |  0:01:20|  0.2%| 20min      Guard against null pointer exceptions in peer classes
5905             |  0:04:57|  0.8%| 10min      Instead of displaying uneditable data with bean:write, just disable the html:text element
5906             |  0:25:03|  3.9%| 10min      Deploy 10:00 version
5907             |  0:04:46|  0.7%| 5min       Separate the configuration file of database and system into another uninternationalized property file.
5908             |  2:09:48| 20.2%| 1h         Decide on a naming convention for localized messages and update files
5909             |  0:00:07|  0.0%| 20min      Explain what is happening in UserModifyAction's nested ifs - pending
5910             |  1:50:23| 17.2%| 2h         Write Javadoc comments in English and Japanese to explain bean structure
5911             |  0:04:19|  0.7%| 2h         Write Javadoc comments in English and Japanese to explain peer operations (pending)
5912             |  0:05:40|  0.9%| 20min      Make a factory class for the database - pending
5913      Total: | 10:41:41|100.0%|      
5915 Day began: 13:03:58, Day ended: 20:51:46
5916 Time elapsed: 31:47:48, Time clocked: 10:41:41
5917 Time clocked ratio: 33.6%
5918 @end example
5920 The time record isn't perfect. I cancelled some tasks after thinking
5921 about them a little and did some tasks simultaneously. Sometimes I
5922 didn't notice that I was getting distracted, too. Still, having all of
5923 that time information neatly summarized made me realize a number of
5924 things.
5926 First, I goof off much less when I have a nice, broken-down task list
5927 in front of me. There's just something about knowing there's a five-
5928 or ten-minute hack you can get out of the way. I found myself looking
5929 forward to getting to the next task just to see if I could make my
5930 estimate. That said, seeing a five-minute task stretch and stretch due
5931 to unforeseen problems did make me a little nervous. I should probably
5932 just make generous estimates so that I don't end up with bugs because
5933 of haste.
5935 Second, I don't goof off as much as I thought I did, although there's
5936 still room for improvement. Yesterday's workday was 9:00 - 12:00, 1:00
5937 - 5:30--7.5 hours. Today was the last day of work, so cleaning and
5938 celebration interrupted my hacking at around 3:00--5 hours of work.
5939 According to my task list, 10:41/12:30 was productive work. Hmm. 1:49
5940 hours unclocked time when I was thinking or goofing off.
5941 planner-timeclock-summary-show for today reveals that I actually
5942 clocked 5:30 today, which means the goofing off happened yesterday.
5943 That makes sense; I remember a pretty long unclocked segment
5944 recuperating from Japanese overload. (This was before we came up with
5945 the task list.)
5947 Third, keeping track of time is way, way cool even if you don't bill
5948 anyone for your time.
5950 Like the idea? It's easy to try out. Just add
5952 @example
5953 (require 'planner-timeclock)
5954 (require 'planner-timeclock-summary)
5955 @end example
5957 to your ~/.emacs. If you want to try it out now, eval those statements
5958 in your Emacs session. After that, simply use @kbd{C-c TAB} to ``clock
5959 in'' a task before you start working on it and @kbd{C-c C-x}
5960 (@code{planner-task-done}) to mark it completed. @kbd{M-x
5961 planner-task-pending} also clocks out the current task if it was
5962 clocked in. To see a summary of how you spent your day, check out the
5963 different functions in @file{planner-timeclock-summary}.
5965 See @ref{Timeclock} for more details.
5967 Happy hacking!
5969 @node Other Interactive Functions, Planner Keybindings, Keeping Track of Time, Reference Material
5970 @comment  node-name,  next,  previous,  up
5971 @section Other Interactive Functions
5973 With @file{planner.el} loaded, you can use any of the functions in this
5974 section by typing @kbd{M-x} followed by the name of the function. Many
5975 of these functions are also bound to keys.
5977 For a list of Planner keybindings, see @ref{Planner Keybindings}.
5979 They are listed in no particular order.
5981 @file{planner.el} defines the following interactive functions:
5984 @defun planner-create-high-priority-task-from-buffer
5985 Create a high priority task based on this buffer.  Do not use this in
5986 LISP programs. Instead, set the value of
5987 @var{planner-default-task-priority} and call @code{planner-create-task}
5988 or @code{planner-create-task-from-buffer}.
5989 @end defun
5991 @defun defun planner-create-medium-priority-task-from-buffer
5992 Create a medium-priority task based on this buffer.  Do not use this in
5993 LISP programs. Instead, set the value of
5994 @var{planner-default-task-priority} and call @code{planner-create-task}
5995 or @code{planner-create-task-from-buffer}.
5996 @end defun
5998 @defun planner-create-low-priority-task-from-buffer
5999 Create a high-priority task based on this buffer.
6000 Do not use this in LISP programs. Instead, set the value of
6001 @var{planner-default-task-priority} and call @code{planner-create-task} or
6002 @code{planner-create-task-from-buffer}.
6003 @end defun
6005 @defun planner-install-extra-context-keybindings
6006 Install extra context-sensitive keybindings. These keybindings
6007 conflict with @file{windmove.el}, but might be useful.
6008 @end defun
6010 @defun planner-narrow-to-section section &optional create
6011 Widen to the whole page and narrow to the section labelled
6012 @var{section}.  If @var{create} is non-nil and the section is not found,
6013 the section is created.  Return non-nil if @var{section} was found or
6014 created.
6015 @end defun
6017 @defun planner-save-buffers
6018 Save all planner-mode buffers.
6019 @end defun
6021 @defun planner-seek-to-first section
6022 Positions the point at the specified @var{section}, or @samp{Tasks} if
6023 not specified.
6024 @end defun
6026 @defun planner-save-buffers
6027 Save all planner buffers.
6028 @end defun
6030 @defun planner-calendar-insinuate
6031 This hooks Planner into  Emacs Calendar (@pxref{Calendar/Diary, ,
6032 , Emacs, GNU Emacs Manual}).
6034 It adds special planner key bindings to @code{calendar-mode-map}.
6035 After this function is evaluated, you can use the following
6036 planner-related keybindings in @code{calendar-mode-map}:
6038 @table @kbd
6040 @item  n
6041 Jump to the planner page for the current day.
6043 @item  N
6044 Display the planner page for the current day.
6045 @end table
6047 @end defun
6049 @defun planner-kill-calendar-files
6050 Remove planner files shown from Calendar (@pxref{Calendar/Diary, , ,
6051 Emacs, GNU Emacs Manual}).
6053 @end defun
6055 @defun planner-calendar-goto
6056 Goto the plan page corresponding to the calendar date
6057 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6058 @end defun
6060 @defun planner-calendar-show
6061 Show the plan page for the calendar date under point in another window
6062 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6063 @end defun
6065 @defun planner-calendar-select
6066 Return to @code{planner-read-date} with the date currently selected
6067 (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}).
6068 @end defun
6070 @defun planner-jump-to-link
6071 Jump to the item linked to by the current item.
6072 @end defun
6074 @defun planner-move-up
6075 Move a task up. You can use this to indicate that you will do a task
6076 before another one. On a note, go to the previous note. On a headline,
6077 go to the previous headline of the same depth.
6078 @end defun
6080 @defun planner-move-down 
6081 Move down. You can use this to indicate that you will do a task after
6082 another one. On a note, go to the next note. On a headline, go to the
6083 next headline of the same depth.
6084 @end defun
6086 @node Planner Keybindings, Sample Configuration Files, Other Interactive Functions, Reference Material
6087 @comment  node-name,  next,  previous,  up
6088 @section Planner Keybindings
6089 @cindex keybindings, list
6091 In order to refresh and renumber all of your tasks according to their
6092 actual order in the buffer, simply save the file or call
6093 @kbd{M-x planner-renumber-tasks}.
6095 Here is a summary of the keystrokes available:
6097 @table @kbd
6099 @item M-x plan
6100 Begin your planning session.  This goes to the last day for which
6101 there is any planning info (or today if none), allowing you to review,
6102 and create/move tasks from that day.
6104 @item C-c C-u
6105 Move a task up.
6107 @item C-c C-d
6108 Move a task down.
6110 @item C-c C-s
6111 Mark the task as in progress or delegated.
6113 @item C-c C-x
6114 Mark the task as finished.
6116 @item C-c C-t
6117 Create a task associated with the current Wiki page. If you are on the
6118 opening line of a Note entry, it is assumed that the note itself is the
6119 origin of the task.
6121 @item C-c C-c
6122 Move or copy the current task to another date. If the current task is
6123 an original (meaning you are in the buffer where's defined, hopefully
6124 a planning page) then it will be copied, and the original task will
6125 also now point to the copy.  If the current task is a copy, it will
6126 just be moved to the new day, and the original task's link will be
6127 updated.
6129 @item C-c C-n
6130 Jump to today's task page.  If you call
6131 @code{(planner-calendar-insinuate)}, typing @kbd{n} in the Emacs
6132 calendar (@pxref{Calendar/Diary, , , Emacs, GNU Emacs Manual}) will jump
6133 to today's task page.
6135 @item C-c C-x
6136 @code{planner-task-done}
6138 @item C-c C-z
6139 @code{planner-task-in-progress}
6141 @item C-c C-d
6142 @code{planner-lower-task}
6144 @item C-c C-u
6145 @code{planner-raise-task}
6147 @item C-c C-c
6148 @code{planner-copy-or-move-task}
6150 @item C-c C-t
6151 @code{planner-create-task-from-buffer}
6153 @item C-c C-j
6154 This is a prefix command.
6156 @item C-c C-n
6157 @code{planner-goto-today}
6159 @item C-c C-j C-r
6160 @code{planner-goto-most-recent}
6162 @item C-c C-j C-t
6163 @code{planner-goto-tomorrow}
6165 @item C-c C-j C-y
6166 @code{planner-goto-yesterday}
6168 @item C-c C-j C-j
6169 @code{planner-goto-today}
6171 @item C-c C-j C-n
6172 @code{planner-goto-next-daily-page}
6174 @item C-c C-j C-p
6175 @code{planner-goto-previous-daily-page}
6177 @item C-c C-j C-d
6178 @code{planner-goto}
6180 @end table
6182 @node Sample Configuration Files,  , Planner Keybindings, Reference Material
6183 @comment  node-name,  next,  previous,  up
6184 @section Sample Configuration Files
6185 @cindex configuration, sample
6187 This section includes some sample configuration files. This way, once
6188 you've got the hang of the basics, you can see some different, more
6189 advanced, setups.
6191 There is no One True Way to plan. Every person is different. We hope
6192 you'll find a good starting point among the example configurations
6193 below. If what you want to do does not perfectly fit under one of these
6194 examples, please post a description of the way you plan to our mailing
6195 list (@pxref{Getting Help}).  We look forward to helping you customizing
6196 planner to fit your needs.
6198 @menu
6199 * File Organization::           
6200 * Bare-Bones Planning::         
6201 * Bare-Bones Planning with Plan Pages::  
6202 * Tasks on Plan Pages with Some Day Pages::  
6203 * Hierarchical Tasks::          
6204 @end menu
6206 @node File Organization, Bare-Bones Planning, Sample Configuration Files, Sample Configuration Files
6207 @subsection File Organization
6209 @itemize
6210 @item @strong{Tasks, schedule and notes on day pages.}
6212 By default, tasks, schedule entries and notes are filed on day pages.
6213 This makes it easy for you to see all the entries relevant to a single
6214 day without becoming overwhelmed with information. Unfinished tasks
6215 are carried over to the next day when you use @kbd{M-x plan}, so it's
6216 always kept up to date. Completed tasks are left on the day page you
6217 finished them on, which helps when reviewing one's progress and writing
6218 accomplishment reports.
6220 @item @strong{Cross-referenced with plan pages.}
6222 You can associate your tasks with projects either when you create the
6223 task or later, with @kbd{M-x planner-replan-task}. This makes it easy
6224 for you to see all the information associated with a particular
6225 project. If you use RememberMode to create notes, you will also be
6226 able to associate notes with a plan page.
6228 @item @strong{Just plan pages.}
6230 If your tasks don't usually have dates, you can turn day pages off by
6231 customizing @code{planner-use-day-pages}. If so, then all of your
6232 tasks and notes will be stored on the WelcomePage and/or a plan page.
6234 @end itemize
6236 @node Bare-Bones Planning, Bare-Bones Planning with Plan Pages, File Organization, Sample Configuration Files
6237 @subsection Bare-Bones Planning
6239 You can keep all of your tasks, notes and schedules in a single file:
6240 WelcomePage.  This is good for people who are used to storing all of
6241 their information in a flat text file.  By storing your information in
6242 planner, you'll be able to take advantage of automatic hyperlinking to
6243 files and other resources.  You can also sort your tasks by priority
6244 and status.
6246 To set your system up for bare-bones planning, set the
6247 @code{planner-use-day-pages} variable to nil before loading planner.
6248 For example, you can put this in your @file{~/.emacs} (or @file{_emacs}):
6250 @example
6251 (setq planner-use-day-pages nil)
6252 (setq planner-default-page nil)
6253 (require 'planner)
6254 @end example
6256 When you create a task or note, planner will not prompt you for a
6257 date.  If you press @key{RET} when prompted for a plan page, it will
6258 accept the default of nil, so no other plan pages will be used.  All
6259 of your data will be kept in one file, which can then be easily backed
6262 You can use commands like @command{planner-create-task-from-buffer} to
6263 create tasks, or you can type tasks in manually.  You can edit or
6264 delete anything in the page without having to update other files.
6266 @node Bare-Bones Planning with Plan Pages, Tasks on Plan Pages with Some Day Pages, Bare-Bones Planning, Sample Configuration Files
6267 @subsection Bare-Bones Planning with Plan Pages
6269 When you create a task or note, Planner.el can copy this to a plan
6270 page. Plan pages allow you to see an overview of all the data for a
6271 project.
6273 For convenience, the @command{planner-create-task-from-buffer} command
6274 prompts you for a plan page when you create a task.
6278 @node Tasks on Plan Pages with Some Day Pages, Hierarchical Tasks, Bare-Bones Planning with Plan Pages, Sample Configuration Files
6279 @subsection Tasks on Plan Pages with Some Day Pages
6281 If most of your tasks are associated with plan pages but you want to
6282 schedule some tasks on day pages, you can leave day pages on (default)
6283 and then write a function that turns off day pages. For example, the
6284 following code snippet turns off day pages for task creation from
6285 buffers.
6287 @example
6288 (require 'planner)
6290 (defun my-planner-create-task-from-buffer ()
6291   "Call `planner-create-task-from-buffer', but without dates."
6292   (interactive)
6293   (let ((planner-use-day-pages nil))
6294     (call-interactively 'planner-create-task-from-buffer)))
6295 @end example
6297 @node Hierarchical Tasks,  , Tasks on Plan Pages with Some Day Pages, Sample Configuration Files
6298 @subsection Hierarchical Tasks
6299 @cindex hierarchical tasks
6300 @cindex tasks, hierarchy of
6302 You can use @file{allout.el} or other modes for outlining to support
6303 hierarchical tasks in plan pages. No special support is needed.
6305 Tasks created by @command{planner-create-task-from-buffer} and
6306 @code{planner-create-task} are created in the @samp{* Tasks} section.
6307 If @code{planner-add-task-at-end-flag} is non-nil, tasks are added to
6308 the end of the first task block, else they are added to the beginning.
6309 You can then copy and paste tasks into your preferred hierarchy.
6310 Blank lines delimit blocks of tasks upon which automatic sorting is
6311 performed.
6313 You can also type in tasks manually. You may find this approach faster
6314 when you are comfortable with planner.
6316 For example, a @file{LearnPlanner} plan page might contain the
6317 following lines:
6319 @example
6320 * Learn how to use planner.el
6322 ** Installation
6324 #C0 _ Decide where to put Planner
6325 #C0 _ Download the archives
6327 ** Configuration
6329 *** Load path
6331 #C0 _ Figure out how to add things to my load path
6332 #C0 _ Actually add it to my load path
6335 @end example
6337 If you create tasks for the finest level of detail available at the
6338 moment, you can schedule them onto day pages with @kbd{C-c C-c}
6339 (@command{planner-copy-or-move-task}). Then you can use
6340 @command{planner-jump-to-link} to switch between the day page and the
6341 plan page link.
6344 @node Getting Help, Acknowledgements, Reference Material, Top
6345 @comment  node-name,  next,  previous,  up
6346 @chapter Getting Help
6347 @cindex help, getting
6348 @cindex bugs, reporting
6350 After you have read this guide, if you still have questions about
6351 Planner, or if you have bugs to report, there are several places
6352 you can go.
6354 Planner has an official website at @url{http://www.plannerlove.com/}.
6355 It is a collaborative wiki.
6357 Bugs may be reported using the Planner Bug-Tracker at
6358 @url{http://gna.org/bugs/?group=planner-el}.
6360 Planner has three mailing lists.
6362 @table @samp
6364 @item planner-el-announce
6365 Low-traffic list for planner-related announcements.
6367 You can join this mailing list (@email{planner-el-announce@@gna.org})
6368 using the subscription form at
6369 @url{http://mail.gna.org/listinfo/planner-el-announce/}.  This
6370 mailing list is also available via Gmane (@url{http://gmane.org/}). The
6371 group is called @samp{gmane.emacs.planner.announce}.
6373 @item planner-el-discuss
6374 Discussion, bugfixes, suggestions, tips, and the like for Planner.
6375 This mailing list also includes the content of planner-el-announce.
6377 You can join this mailing list (@email{planner-el-discuss@@gna.org})
6378 using the subscription form at
6379 @url{http://mail.gna.org/listinfo/planner-el-discuss/}.  This mailing
6380 list is also available via Gmane with the identifier
6381 @samp{gmane.emacs.planner.general}.
6383 @item planner-el-cvs
6384 Log messages for changes committed to Planner.
6386 You can join this mailing list (@email{planner-el-cvs@@gna.org}) using
6387 the subscription form at
6388 @url{http://mail.gna.org/listinfo/planner-el-cvs/}.  This mailing list
6389 is also available via Gmane with the identifier
6390 @samp{gmane.emacs.planner.cvs}.
6392 @end table
6394 You can also contact the maintainer of Planner, John Sullivan, at
6395 @email{john@@wjsullivan.net}, but it is better to use the other options.
6397 You can explore the relevant sections of the EmacsWiki.org:
6399 @itemize @bullet
6401 @item
6402 @url{http://www.emacswiki.org/cgi-bin/wiki/PlannerMode}
6404 @item
6405 @url{http://www.emacswiki.org/cgi-bin/wiki/MuseMode}
6407 @item
6408 @url{http://www.emacswiki.org/cgi-bin/wiki/RememberMode}
6410 @end itemize
6412 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
6413 contributors are frequently around and willing to answer your
6414 questions.
6416 There is an Orkut community called PlannerMode.
6418 For issues relating to this documentation, please contact John
6419 Sullivan at @email{john@@wjsullivan.net}.
6421 @node Acknowledgements, GNU General Public License, Getting Help, Top
6422 @comment  node-name,  next,  previous,  up
6423 @chapter Acknowledgements
6424 @itemize
6425 @item Maintainers
6427 @cindex maintainers
6429 @itemize
6430 @item 2006
6432 John Sullivan volunteered to maintain Planner, and Michael Olson passed
6433 the maintainership on to him with the release of Planner 3.41.
6435 @item 2005
6437 Michael Olson, Sacha Chua, and several others from the Planner community
6438 ported Planner to use Muse instead of emacs-wiki.  Michael Olson became
6439 the maintainer of Planner.
6441 @item 2004
6443 Damien Elmes handed EmacsWikiMode to Mark Triggs for a short period of
6444 time.  Mark Triggs deferred to Sacha Chua as official maintainer of
6445 Planner.  Sacha Chua volunteered to maintain RememberMode.
6446 Michael Olson became the maintainer of both emacs-wiki and Muse.
6448 @item 2003
6450 Sacha Chua volunteered to maintain Planner.  Damien Elmes
6451 volunteered to maintain EmacsWikiMode.
6453 @item 2001
6455 John Wiegley wrote EmacsWikiMode and Planner.
6456 @end itemize
6458 @item Contributors
6459 @cindex contributors
6461 For a complete list of people who have helped out with Planner, please
6462 check out the @file{AUTHORS} file that is included with Planner.
6464 @end itemize
6466 @node GNU General Public License, Concept Index, Acknowledgements, Top
6467 @comment  node-name,  next,  previous,  up
6468 @appendix GNU GENERAL PUBLIC LICENSE
6469 @center Version 2, June 1991
6470 @cindex GPL
6471 @cindex GNU General Public License
6473 @c This file is intended to be included in another file.
6475 @display
6476 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
6477 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6479 Everyone is permitted to copy and distribute verbatim copies
6480 of this license document, but changing it is not allowed.
6481 @end display
6483 @appendixsec Preamble
6485   The licenses for most software are designed to take away your
6486 freedom to share and change it.  By contrast, the GNU General Public
6487 License is intended to guarantee your freedom to share and change free
6488 software---to make sure the software is free for all its users.  This
6489 General Public License applies to most of the Free Software
6490 Foundation's software and to any other program whose authors commit to
6491 using it.  (Some other Free Software Foundation software is covered by
6492 the GNU Library General Public License instead.)  You can apply it to
6493 your programs, too.
6495   When we speak of free software, we are referring to freedom, not
6496 price.  Our General Public Licenses are designed to make sure that you
6497 have the freedom to distribute copies of free software (and charge for
6498 this service if you wish), that you receive source code or can get it
6499 if you want it, that you can change the software or use pieces of it
6500 in new free programs; and that you know you can do these things.
6502   To protect your rights, we need to make restrictions that forbid
6503 anyone to deny you these rights or to ask you to surrender the rights.
6504 These restrictions translate to certain responsibilities for you if you
6505 distribute copies of the software, or if you modify it.
6507   For example, if you distribute copies of such a program, whether
6508 gratis or for a fee, you must give the recipients all the rights that
6509 you have.  You must make sure that they, too, receive or can get the
6510 source code.  And you must show them these terms so they know their
6511 rights.
6513   We protect your rights with two steps: (1) copyright the software, and
6514 (2) offer you this license which gives you legal permission to copy,
6515 distribute and/or modify the software.
6517   Also, for each author's protection and ours, we want to make certain
6518 that everyone understands that there is no warranty for this free
6519 software.  If the software is modified by someone else and passed on, we
6520 want its recipients to know that what they have is not the original, so
6521 that any problems introduced by others will not reflect on the original
6522 authors' reputations.
6524   Finally, any free program is threatened constantly by software
6525 patents.  We wish to avoid the danger that redistributors of a free
6526 program will individually obtain patent licenses, in effect making the
6527 program proprietary.  To prevent this, we have made it clear that any
6528 patent must be licensed for everyone's free use or not licensed at all.
6530   The precise terms and conditions for copying, distribution and
6531 modification follow.
6533 @iftex
6534 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6535 @end iftex
6536 @ifinfo
6537 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6538 @end ifinfo
6540 @enumerate 0
6541 @item
6542 This License applies to any program or other work which contains
6543 a notice placed by the copyright holder saying it may be distributed
6544 under the terms of this General Public License.  The ``Program'', below,
6545 refers to any such program or work, and a ``work based on the Program''
6546 means either the Program or any derivative work under copyright law:
6547 that is to say, a work containing the Program or a portion of it,
6548 either verbatim or with modifications and/or translated into another
6549 language.  (Hereinafter, translation is included without limitation in
6550 the term ``modification''.)  Each licensee is addressed as ``you''.
6552 Activities other than copying, distribution and modification are not
6553 covered by this License; they are outside its scope.  The act of
6554 running the Program is not restricted, and the output from the Program
6555 is covered only if its contents constitute a work based on the
6556 Program (independent of having been made by running the Program).
6557 Whether that is true depends on what the Program does.
6559 @item
6560 You may copy and distribute verbatim copies of the Program's
6561 source code as you receive it, in any medium, provided that you
6562 conspicuously and appropriately publish on each copy an appropriate
6563 copyright notice and disclaimer of warranty; keep intact all the
6564 notices that refer to this License and to the absence of any warranty;
6565 and give any other recipients of the Program a copy of this License
6566 along with the Program.
6568 You may charge a fee for the physical act of transferring a copy, and
6569 you may at your option offer warranty protection in exchange for a fee.
6571 @item
6572 You may modify your copy or copies of the Program or any portion
6573 of it, thus forming a work based on the Program, and copy and
6574 distribute such modifications or work under the terms of Section 1
6575 above, provided that you also meet all of these conditions:
6577 @enumerate a
6578 @item
6579 You must cause the modified files to carry prominent notices
6580 stating that you changed the files and the date of any change.
6582 @item
6583 You must cause any work that you distribute or publish, that in
6584 whole or in part contains or is derived from the Program or any
6585 part thereof, to be licensed as a whole at no charge to all third
6586 parties under the terms of this License.
6588 @item
6589 If the modified program normally reads commands interactively
6590 when run, you must cause it, when started running for such
6591 interactive use in the most ordinary way, to print or display an
6592 announcement including an appropriate copyright notice and a
6593 notice that there is no warranty (or else, saying that you provide
6594 a warranty) and that users may redistribute the program under
6595 these conditions, and telling the user how to view a copy of this
6596 License.  (Exception: if the Program itself is interactive but
6597 does not normally print such an announcement, your work based on
6598 the Program is not required to print an announcement.)
6599 @end enumerate
6601 These requirements apply to the modified work as a whole.  If
6602 identifiable sections of that work are not derived from the Program,
6603 and can be reasonably considered independent and separate works in
6604 themselves, then this License, and its terms, do not apply to those
6605 sections when you distribute them as separate works.  But when you
6606 distribute the same sections as part of a whole which is a work based
6607 on the Program, the distribution of the whole must be on the terms of
6608 this License, whose permissions for other licensees extend to the
6609 entire whole, and thus to each and every part regardless of who wrote it.
6611 Thus, it is not the intent of this section to claim rights or contest
6612 your rights to work written entirely by you; rather, the intent is to
6613 exercise the right to control the distribution of derivative or
6614 collective works based on the Program.
6616 In addition, mere aggregation of another work not based on the Program
6617 with the Program (or with a work based on the Program) on a volume of
6618 a storage or distribution medium does not bring the other work under
6619 the scope of this License.
6621 @item
6622 You may copy and distribute the Program (or a work based on it,
6623 under Section 2) in object code or executable form under the terms of
6624 Sections 1 and 2 above provided that you also do one of the following:
6626 @enumerate a
6627 @item
6628 Accompany it with the complete corresponding machine-readable
6629 source code, which must be distributed under the terms of Sections
6630 1 and 2 above on a medium customarily used for software interchange; or,
6632 @item
6633 Accompany it with a written offer, valid for at least three
6634 years, to give any third party, for a charge no more than your
6635 cost of physically performing source distribution, a complete
6636 machine-readable copy of the corresponding source code, to be
6637 distributed under the terms of Sections 1 and 2 above on a medium
6638 customarily used for software interchange; or,
6640 @item
6641 Accompany it with the information you received as to the offer
6642 to distribute corresponding source code.  (This alternative is
6643 allowed only for noncommercial distribution and only if you
6644 received the program in object code or executable form with such
6645 an offer, in accord with Subsection b above.)
6646 @end enumerate
6648 The source code for a work means the preferred form of the work for
6649 making modifications to it.  For an executable work, complete source
6650 code means all the source code for all modules it contains, plus any
6651 associated interface definition files, plus the scripts used to
6652 control compilation and installation of the executable.  However, as a
6653 special exception, the source code distributed need not include
6654 anything that is normally distributed (in either source or binary
6655 form) with the major components (compiler, kernel, and so on) of the
6656 operating system on which the executable runs, unless that component
6657 itself accompanies the executable.
6659 If distribution of executable or object code is made by offering
6660 access to copy from a designated place, then offering equivalent
6661 access to copy the source code from the same place counts as
6662 distribution of the source code, even though third parties are not
6663 compelled to copy the source along with the object code.
6665 @item
6666 You may not copy, modify, sublicense, or distribute the Program
6667 except as expressly provided under this License.  Any attempt
6668 otherwise to copy, modify, sublicense or distribute the Program is
6669 void, and will automatically terminate your rights under this License.
6670 However, parties who have received copies, or rights, from you under
6671 this License will not have their licenses terminated so long as such
6672 parties remain in full compliance.
6674 @item
6675 You are not required to accept this License, since you have not
6676 signed it.  However, nothing else grants you permission to modify or
6677 distribute the Program or its derivative works.  These actions are
6678 prohibited by law if you do not accept this License.  Therefore, by
6679 modifying or distributing the Program (or any work based on the
6680 Program), you indicate your acceptance of this License to do so, and
6681 all its terms and conditions for copying, distributing or modifying
6682 the Program or works based on it.
6684 @item
6685 Each time you redistribute the Program (or any work based on the
6686 Program), the recipient automatically receives a license from the
6687 original licensor to copy, distribute or modify the Program subject to
6688 these terms and conditions.  You may not impose any further
6689 restrictions on the recipients' exercise of the rights granted herein.
6690 You are not responsible for enforcing compliance by third parties to
6691 this License.
6693 @item
6694 If, as a consequence of a court judgment or allegation of patent
6695 infringement or for any other reason (not limited to patent issues),
6696 conditions are imposed on you (whether by court order, agreement or
6697 otherwise) that contradict the conditions of this License, they do not
6698 excuse you from the conditions of this License.  If you cannot
6699 distribute so as to satisfy simultaneously your obligations under this
6700 License and any other pertinent obligations, then as a consequence you
6701 may not distribute the Program at all.  For example, if a patent
6702 license would not permit royalty-free redistribution of the Program by
6703 all those who receive copies directly or indirectly through you, then
6704 the only way you could satisfy both it and this License would be to
6705 refrain entirely from distribution of the Program.
6707 If any portion of this section is held invalid or unenforceable under
6708 any particular circumstance, the balance of the section is intended to
6709 apply and the section as a whole is intended to apply in other
6710 circumstances.
6712 It is not the purpose of this section to induce you to infringe any
6713 patents or other property right claims or to contest validity of any
6714 such claims; this section has the sole purpose of protecting the
6715 integrity of the free software distribution system, which is
6716 implemented by public license practices.  Many people have made
6717 generous contributions to the wide range of software distributed
6718 through that system in reliance on consistent application of that
6719 system; it is up to the author/donor to decide if he or she is willing
6720 to distribute software through any other system and a licensee cannot
6721 impose that choice.
6723 This section is intended to make thoroughly clear what is believed to
6724 be a consequence of the rest of this License.
6726 @item
6727 If the distribution and/or use of the Program is restricted in
6728 certain countries either by patents or by copyrighted interfaces, the
6729 original copyright holder who places the Program under this License
6730 may add an explicit geographical distribution limitation excluding
6731 those countries, so that distribution is permitted only in or among
6732 countries not thus excluded.  In such case, this License incorporates
6733 the limitation as if written in the body of this License.
6735 @item
6736 The Free Software Foundation may publish revised and/or new versions
6737 of the General Public License from time to time.  Such new versions will
6738 be similar in spirit to the present version, but may differ in detail to
6739 address new problems or concerns.
6741 Each version is given a distinguishing version number.  If the Program
6742 specifies a version number of this License which applies to it and ``any
6743 later version'', you have the option of following the terms and conditions
6744 either of that version or of any later version published by the Free
6745 Software Foundation.  If the Program does not specify a version number of
6746 this License, you may choose any version ever published by the Free Software
6747 Foundation.
6749 @item
6750 If you wish to incorporate parts of the Program into other free
6751 programs whose distribution conditions are different, write to the author
6752 to ask for permission.  For software which is copyrighted by the Free
6753 Software Foundation, write to the Free Software Foundation; we sometimes
6754 make exceptions for this.  Our decision will be guided by the two goals
6755 of preserving the free status of all derivatives of our free software and
6756 of promoting the sharing and reuse of software generally.
6758 @iftex
6759 @heading NO WARRANTY
6760 @end iftex
6761 @ifinfo
6762 @center NO WARRANTY
6763 @end ifinfo
6765 @item
6766 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
6767 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
6768 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
6769 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
6770 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
6771 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
6772 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
6773 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
6774 REPAIR OR CORRECTION.
6776 @item
6777 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
6778 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
6779 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
6780 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
6781 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
6782 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
6783 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
6784 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
6785 POSSIBILITY OF SUCH DAMAGES.
6786 @end enumerate
6788 @iftex
6789 @heading END OF TERMS AND CONDITIONS
6790 @end iftex
6791 @ifinfo
6792 @center END OF TERMS AND CONDITIONS
6793 @end ifinfo
6795 @page
6796 @appendixsec Appendix: How to Apply These Terms to Your New Programs
6798   If you develop a new program, and you want it to be of the greatest
6799 possible use to the public, the best way to achieve this is to make it
6800 free software which everyone can redistribute and change under these terms.
6802   To do so, attach the following notices to the program.  It is safest
6803 to attach them to the start of each source file to most effectively
6804 convey the exclusion of warranty; and each file should have at least
6805 the ``copyright'' line and a pointer to where the full notice is found.
6807 @smallexample
6808 @var{one line to give the program's name and a brief idea of what it does.}
6809 Copyright (C) @var{yyyy}  @var{name of author}
6811 This program is free software; you can redistribute it and/or modify
6812 it under the terms of the GNU General Public License as published by
6813 the Free Software Foundation; either version 2 of the License, or
6814 (at your option) any later version.
6816 This program is distributed in the hope that it will be useful,
6817 but WITHOUT ANY WARRANTY; without even the implied warranty of
6818 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6819 GNU General Public License for more details.
6821 You should have received a copy of the GNU General Public License
6822 along with this program; if not, write to the Free Software
6823 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
6824 @end smallexample
6826 Also add information on how to contact you by electronic and paper mail.
6828 If the program is interactive, make it output a short notice like this
6829 when it starts in an interactive mode:
6831 @smallexample
6832 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
6833 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
6834 This is free software, and you are welcome to redistribute it
6835 under certain conditions; type `show c' for details.
6836 @end smallexample
6838 The hypothetical commands @samp{show w} and @samp{show c} should show
6839 the appropriate parts of the General Public License.  Of course, the
6840 commands you use may be called something other than @samp{show w} and
6841 @samp{show c}; they could even be mouse-clicks or menu items---whatever
6842 suits your program.
6844 You should also get your employer (if you work as a programmer) or your
6845 school, if any, to sign a ``copyright disclaimer'' for the program, if
6846 necessary.  Here is a sample; alter the names:
6848 @example
6849 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
6850 `Gnomovision' (which makes passes at compilers) written by James Hacker.
6852 @var{signature of Ty Coon}, 1 April 1989
6853 Ty Coon, President of Vice
6854 @end example
6856 This General Public License does not permit incorporating your program into
6857 proprietary programs.  If your program is a subroutine library, you may
6858 consider it more useful to permit linking proprietary applications with the
6859 library.  If this is what you want to do, use the GNU Library General
6860 Public License instead of this License.
6862 @node Concept Index,  , GNU General Public License, Top
6863 @comment  node-name,  next,  previous,  up
6864 @unnumbered Index
6866 @printindex cp
6868 @bye