comparison man/org.texi @ 70164:7ce8d4154af5

Many small fixes. (Handling links): Renamed from "Managing links".
author Carsten Dominik <dominik@science.uva.nl>
date Fri, 21 Apr 2006 13:49:28 +0000
parents 36d1ec75581c
children 68e63907ebfb
comparison
equal deleted inserted replaced
70163:a748a974978d 70164:7ce8d4154af5
2 @c %**start of header 2 @c %**start of header
3 @c @setfilename org 3 @c @setfilename org
4 @setfilename ../info/org 4 @setfilename ../info/org
5 @settitle Org Mode Manual 5 @settitle Org Mode Manual
6 6
7 @set VERSION 4.25 7 @set VERSION 4.26
8 @set DATE April 2006 8 @set DATE April 2006
9 9
10 @dircategory Emacs 10 @dircategory Emacs
11 @direntry 11 @direntry
12 * Org Mode: (org). outline-based notes management and organizer 12 * Org Mode: (org). outline-based notes management and organizer
128 Hyperlinks 128 Hyperlinks
129 129
130 * Link format:: How links in Org-mode are formatted 130 * Link format:: How links in Org-mode are formatted
131 * Internal links:: Links to other places in the current file 131 * Internal links:: Links to other places in the current file
132 * External links:: URL-like links to the world 132 * External links:: URL-like links to the world
133 * Managing links:: Creating, inserting and following 133 * Handling links:: Creating, inserting and following
134 * Search Options:: Linking to a specific location 134 * Search Options:: Linking to a specific location
135 * Remember:: Org-trees store quick notes 135 * Remember:: Org-trees store quick notes
136 136
137 Internal links 137 Internal links
138 138
240 printing and sharing of notes, an Org-mode file can be exported as a 240 printing and sharing of notes, an Org-mode file can be exported as a
241 structured ASCII file, as HTML, or (todo and agenda items only) as an 241 structured ASCII file, as HTML, or (todo and agenda items only) as an
242 iCalendar file. 242 iCalendar file.
243 243
244 Org-mode keeps simple things simple. When first fired up, it should 244 Org-mode keeps simple things simple. When first fired up, it should
245 feel like a simple but easy to use outliner. Complexity is not 245 feel like a simple, easy to use outliner. Complexity is not imposed,
246 imposed, but a large amount of functionality is available when you 246 but a large amount of functionality is available when you need it.
247 need it. Org-mode can be used on different levels and in different 247 Org-mode can be used on different levels and in different ways, for
248 ways, for example: 248 example:
249 249
250 @example 250 @example
251 @r{@bullet{} as an outline extension with visibility cycling and structure editing} 251 @r{@bullet{} as an outline extension with visibility cycling and structure editing}
252 @r{@bullet{} as an ASCII system and table editor for taking structured notes} 252 @r{@bullet{} as an ASCII system and table editor for taking structured notes}
253 @r{@bullet{} as an ASCII table editor with spreadsheet-like capabilities} 253 @r{@bullet{} as an ASCII table editor with spreadsheet-like capabilities}
640 @cindex printing sparse trees 640 @cindex printing sparse trees
641 @cindex visible text, printing 641 @cindex visible text, printing
642 To print a sparse tree, you can use the Emacs command 642 To print a sparse tree, you can use the Emacs command
643 @code{ps-print-buffer-with-faces} which does not print invisible parts 643 @code{ps-print-buffer-with-faces} which does not print invisible parts
644 of the document @footnote{This does not work under XEmacs, because 644 of the document @footnote{This does not work under XEmacs, because
645 XEmacs uses selective display for outlining, not text properties}. 645 XEmacs uses selective display for outlining, not text properties.}.
646 Or you can use the command @kbd{C-c C-x v} to copy the visible part of 646 Or you can use the command @kbd{C-c C-x v} to copy the visible part of
647 the document to another file (extension @file{.txt}) which can then be 647 the document to another file (extension @file{.txt}) which can then be
648 printed in any desired way. 648 printed in any desired way.
649 649
650 650
676 in the list. Indentation also determines the end of a list item. It 676 in the list. Indentation also determines the end of a list item. It
677 ends before the next line that is indented like the bullet/number, or 677 ends before the next line that is indented like the bullet/number, or
678 less. For example: 678 less. For example:
679 679
680 @example 680 @example
681 @group
681 ** Lord of the Rings 682 ** Lord of the Rings
682 My favorite scenes are (in this order) 683 My favorite scenes are (in this order)
683 1. Eowyns fight with the witch king 684 1. Eowyns fight with the witch king
684 + this was already my favorite scene in the book 685 + this was already my favorite scene in the book
685 + I really like Miranda Otto. 686 + I really like Miranda Otto.
686 2. The attack of the Rohirrim 687 2. The attack of the Rohirrim
687 3. Peter Jackson being shot by Legolas 688 3. Peter Jackson being shot by Legolas
688 - on DVD only 689 - on DVD only
689 He makes a really funny face when it happens. 690 He makes a really funny face when it happens.
691 But in the end, not individual scenes matter but the film as a whole.
692 @end group
690 @end example 693 @end example
691 694
692 Org-mode supports these lists by tuning filling and wrapping commands 695 Org-mode supports these lists by tuning filling and wrapping commands
693 to correctly deal with them. Furthermore, the following commands act 696 to correctly deal with them. Furthermore, the following commands act
694 on items when the cursor is in the first line of an item (the line 697 on items when the cursor is in the first line of an item (the line
996 999
997 The width of columns is automatically determined by the table editor. 1000 The width of columns is automatically determined by the table editor.
998 Sometimes a single field or a few fields need to carry more text, 1001 Sometimes a single field or a few fields need to carry more text,
999 leading to inconveniently wide columns. To limit@footnote{This feature 1002 leading to inconveniently wide columns. To limit@footnote{This feature
1000 does not work on XEmacs.} the width of a column, one field anywhere in 1003 does not work on XEmacs.} the width of a column, one field anywhere in
1001 the column must carry the string @samp{<N>} where @samp{N} is an integer 1004 the column may contain just the string @samp{<N>} where @samp{N} is an
1002 specifying the width of the column in characters. The next re-align 1005 integer specifying the width of the column in characters. The next
1003 will then set the width of this column to no more than this value. 1006 re-align will then set the width of this column to no more than this
1007 value.
1004 1008
1005 @example 1009 @example
1006 |---+------------------------------| |---+--------| 1010 |---+------------------------------| |---+--------|
1007 | | | | | <6> | 1011 | | | | | <6> |
1008 | 1 | one | | 1 | one | 1012 | 1 | one | | 1 | one |
1370 1374
1371 @menu 1375 @menu
1372 * Link format:: How links in Org-mode are formatted 1376 * Link format:: How links in Org-mode are formatted
1373 * Internal links:: Links to other places in the current file 1377 * Internal links:: Links to other places in the current file
1374 * External links:: URL-like links to the world 1378 * External links:: URL-like links to the world
1375 * Managing links:: Creating, inserting and following 1379 * Handling links:: Creating, inserting and following
1376 * Search Options:: Linking to a specific location 1380 * Search Options:: Linking to a specific location
1377 * Remember:: Org-trees store quick notes 1381 * Remember:: Org-trees store quick notes
1378 @end menu 1382 @end menu
1379 1383
1380 @node Link format, Internal links, Hyperlinks, Hyperlinks 1384 @node Link format, Internal links, Hyperlinks, Hyperlinks
1411 @section Internal links 1415 @section Internal links
1412 @cindex internal links 1416 @cindex internal links
1413 @cindex links, internal 1417 @cindex links, internal
1414 @cindex CamelCase links 1418 @cindex CamelCase links
1415 1419
1416 If the link text does not look like a URL, links are considered to be 1420 If the link does not look like a URL, it is considered to be internal in
1417 internal in the current file. Links such as @samp{[[My Target]]} or 1421 the current file. Links such as @samp{[[My Target]]} or @samp{[[My
1418 @samp{[[My Target][Find my target]]} lead to a text search in the 1422 Target][Find my target]]} lead to a text search in the current file.
1419 current file. The link can be followed with @kbd{C-c C-o} when the 1423 The link can be followed with @kbd{C-c C-o} when the cursor is on the
1420 cursor is on the link, or with a mouse click (@pxref{Managing links}). 1424 link, or with a mouse click (@pxref{Handling links}). The preferred
1421 The preferred match for such a link is a dedicated target: The same 1425 match for such a link is a dedicated target: The same string in double
1422 string in double angular brackets. Targets may be located anywhere, 1426 angular brackets. Targets may be located anywhere, often it is
1423 often it is convenient to put them into a comment line, for example 1427 convenient to put them into a comment line, for example
1424 1428
1425 @example 1429 @example
1426 # <<My Target>> 1430 # <<My Target>>
1427 @end example 1431 @end example
1428 1432
1429 @noindent In HTML export (@pxref{HTML export}), such targets will become 1433 @noindent In HTML export (@pxref{HTML export}), such targets will become
1430 named anchors for direct access through http links. 1434 named anchors for direct access through @samp{http} links.
1431 1435
1432 If no dedicated target exists, Org-mode will search for the words in the 1436 If no dedicated target exists, Org-mode will search for the words in the
1433 link, often removing the need for a dedicated target. In the above 1437 link. In the above example the search would be for @samp{my target}.
1434 example the search would be for @samp{my target}. Links starting with a 1438 Links starting with a star like @samp{*My Target} restrict the search to
1435 star like @samp{*My Target} restrict the search to headlines. When 1439 headlines. When searching, Org-mode will first try an exact match, but
1436 searching, Org-mode will first try an exact match, but then move on to 1440 then move on to more and more lenient searches. For example, the link
1437 more and more lenient searches. For example, the link @samp{[[*My 1441 @samp{[[*My Targets]]} will find any of the following:
1438 Targets]]} will find any of the following:
1439 1442
1440 @example 1443 @example
1441 ** My targets 1444 ** My targets
1442 ** TODO my targets are bright 1445 ** TODO my targets are bright
1443 ** my 20 targets are 1446 ** my 20 targets are
1444 @end example 1447 @end example
1445 1448
1446 To insert a link targeting a headline, in-buffer completion can be used. 1449 To insert a link targeting a headline, in-buffer completion can be used.
1447 Just type a star followed by a few optional letters into the buffer and 1450 Just type a star followed by a few optional letters into the buffer and
1448 press @kbd{M-@key{TAB}}. All headlines in the current buffer will be 1451 press @kbd{M-@key{TAB}}. All headlines in the current buffer will be
1449 offered as completions. @xref{Managing links}, for more commands 1452 offered as completions. @xref{Handling links}, for more commands
1450 creating links. 1453 creating links.
1451 1454
1452 Following a link pushes a mark onto Org-mode's own mark ring. You can 1455 Following a link pushes a mark onto Org-mode's own mark ring. You can
1453 return to the previous position with @kbd{C-c &}. Using this command 1456 return to the previous position with @kbd{C-c &}. Using this command
1454 several times in direct succession goes back to positions recorded 1457 several times in direct succession goes back to positions recorded
1482 from. To activate CamelCase words as links, you need to customize 1485 from. To activate CamelCase words as links, you need to customize
1483 the option @code{org-activate-links}. A CamelCase word then leads to a 1486 the option @code{org-activate-links}. A CamelCase word then leads to a
1484 text search such that @samp{CamelCaseLink} is equivalent to 1487 text search such that @samp{CamelCaseLink} is equivalent to
1485 @samp{[[camel case link]]}. 1488 @samp{[[camel case link]]}.
1486 1489
1487 @node External links, Managing links, Internal links, Hyperlinks 1490 @node External links, Handling links, Internal links, Hyperlinks
1488 @section External links 1491 @section External links
1489 @cindex links, external 1492 @cindex links, external
1490 @cindex external links 1493 @cindex external links
1491 @cindex links, external 1494 @cindex links, external
1492 @cindex GNUS links 1495 @cindex GNUS links
1538 Org-mode also finds external links in the normal text and activates them 1541 Org-mode also finds external links in the normal text and activates them
1539 as links. If spaces must be part of the link (for example in 1542 as links. If spaces must be part of the link (for example in
1540 @samp{bbdb:Richard Stallman}) or to remove ambiguities about the end of 1543 @samp{bbdb:Richard Stallman}) or to remove ambiguities about the end of
1541 the link, enclose them in angular brackets. 1544 the link, enclose them in angular brackets.
1542 1545
1543 @node Managing links, Search Options, External links, Hyperlinks 1546 @node Handling links, Search Options, External links, Hyperlinks
1544 @section Managing links 1547 @section Handling links
1545 1548
1546 Org-mode provides methods to create a link in the correct syntax, to 1549 Org-mode provides methods to create a link in the correct syntax, to
1547 insert it into an org-mode file, and to follow the link. 1550 insert it into an org-mode file, and to follow the link.
1548 1551
1549 @table @kbd 1552 @table @kbd
1550 @kindex C-c l 1553 @kindex C-c l
1551 @cindex storing links 1554 @cindex storing links
1552 @item C-c l 1555 @item C-c l
1553 Store a link to the current location. This is a @emph{global} command 1556 Store a link to the current location. This is a @emph{global} command
1554 which can be used in any buffer to create a link. The link will be 1557 which can be used in any buffer to create a link. The link will be
1555 stored for later insertion into an Org-mode buffer (see below). For VM, 1558 stored for later insertion into an Org-mode buffer (see below). For
1556 RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers, the link will point to 1559 Org-mode files, if there is a @samp{<<target>>} at the cursor, the link
1557 the current article/entry. For W3 and W3M buffers, the link goes to the 1560 points to the target. Otherwise it points to the current headline. For
1558 current URL. For Org-mode files, the current headline is targeted. For 1561 VM, RMAIL, WANDERLUST, MH-E, GNUS and BBDB buffers, the link will
1559 any other files, the link will point to the file, with a search string 1562 indicate to the current article/entry. For W3 and W3M buffers, the link
1560 (@pxref{Search Options}) pointing to the contents of the current line. 1563 goes to the current URL. For any other files, the link will point to
1561 If there is an active region, the selected words will form the basis of 1564 the file, with a search string (@pxref{Search Options}) pointing to the
1562 the search string. The key binding @kbd{C-c l} is only a suggestion - 1565 contents of the current line. If there is an active region, the
1563 see @ref{Installation and activation}. 1566 selected words will form the basis of the search string. The key
1567 binding @kbd{C-c l} is only a suggestion - see @ref{Installation and
1568 activation}.
1564 1569
1565 @kindex C-c C-l 1570 @kindex C-c C-l
1566 @cindex link completion 1571 @cindex link completion
1567 @cindex completion, of links 1572 @cindex completion, of links
1568 @cindex inserting links 1573 @cindex inserting links
1569 @item C-c C-l 1574 @item C-c C-l
1570 Insert a link. This prompts for a link to be inserted into the buffer. 1575 Insert a link. This prompts for a link to be inserted into the buffer.
1571 You can just type a link, using text for an internal link, or one of the 1576 You can just type a link, using text for an internal link, or one of the
1572 link type prefixes mentioned in the examples above. Through completion, 1577 link type prefixes mentioned in the examples above. Through completion,
1573 all links stored during the current session can be accessed. The link 1578 all links stored during the current session can be accessed. The link
1574 will be formatted as given in the variable @code{org-link-format} and 1579 will be inserted into the buffer, along with a descriptive text. Note
1575 inserted into the buffer, along with a descriptive text. Note that you 1580 that you don't have to use this command to insert a link. Links in
1576 don't have to use this command to insert a link. Links in Org-mode are 1581 Org-mode are plain text, and you can type or paste them straight into
1577 plain text, and you can type or paste them straight into the buffer. 1582 the buffer. By using this command, the links are automatically enclosed
1578 By using this command, the links are automatically enclosed in double 1583 in double brackets, and you will be asked for the optional descriptive
1579 brackets, and you will be asked for the optional descriptive text. 1584 text.
1580 1585
1581 @kindex C-u C-c C-l 1586 @kindex C-u C-c C-l
1582 @cindex file name completion 1587 @cindex file name completion
1583 @cindex completion, of file names 1588 @cindex completion, of file names
1584 @item C-u C-c C-l 1589 @item C-u C-c C-l
1636 command several times in direct succession moves through a ring of 1641 command several times in direct succession moves through a ring of
1637 previously recorded positions. 1642 previously recorded positions.
1638 @end table 1643 @end table
1639 1644
1640 1645
1641 @node Search Options, Remember, Managing links, Hyperlinks 1646 @node Search Options, Remember, Handling links, Hyperlinks
1642 @section Search options in file links 1647 @section Search options in file links
1643 @cindex search option in file links 1648 @cindex search option in file links
1644 @cindex file links, searching 1649 @cindex file links, searching
1645 1650
1646 File links can contain additional information to make Emacs jump to a 1651 File links can contain additional information to make Emacs jump to a
1841 Show the global TODO list. This collects the TODO items from all 1846 Show the global TODO list. This collects the TODO items from all
1842 agenda files (@pxref{Agenda views}) into a single buffer. The buffer is in 1847 agenda files (@pxref{Agenda views}) into a single buffer. The buffer is in
1843 @code{agenda-mode}, so there are commands to examine and manipulate 1848 @code{agenda-mode}, so there are commands to examine and manipulate
1844 the TODO entries directly from that buffer (@pxref{Agenda commands}). 1849 the TODO entries directly from that buffer (@pxref{Agenda commands}).
1845 @xref{Global TODO list}, for more information. 1850 @xref{Global TODO list}, for more information.
1846 @item @code{org-agenda-include-all-todo} 1851 @c @item @code{org-agenda-include-all-todo}
1847 If you would like to have all your TODO items listed as part of your 1852 @c If you would like to have all your TODO items listed as part of your
1848 agenda, customize the variable @code{org-agenda-include-all-todo}. 1853 @c agenda, customize the variable @code{org-agenda-include-all-todo}.
1849 @end table 1854 @end table
1850 1855
1851 @node Progress logging, TODO extensions, TODO basics, TODO items 1856 @node Progress logging, TODO extensions, TODO basics, TODO items
1852 @section Progress Logging 1857 @section Progress Logging
1853 @cindex progress logging 1858 @cindex progress logging
2084 that the scheduled date has passed will be present in the compilation 2089 that the scheduled date has passed will be present in the compilation
2085 for @emph{today}, until the entry is marked DONE. I.e., the task will 2090 for @emph{today}, until the entry is marked DONE. I.e., the task will
2086 automatically be forwarded until completed. 2091 automatically be forwarded until completed.
2087 2092
2088 @example 2093 @example
2089 *** TODO Call Trillian to ask her out for a date on New Years Eve. 2094 *** TODO Call Trillian for a date on New Years Eve.
2090 SCHEDULED: <2004-12-25 Sat> 2095 SCHEDULED: <2004-12-25 Sat>
2091 @end example 2096 @end example
2092 2097
2093 @item DEADLINE 2098 @item DEADLINE
2094 @cindex DEADLINE keyword 2099 @cindex DEADLINE keyword
3350 is useful in files containing narrowed table columns. The corresponding 3355 is useful in files containing narrowed table columns. The corresponding
3351 variable is @code{org-startup-align-all-tables}, with a default value 3356 variable is @code{org-startup-align-all-tables}, with a default value
3352 @code{nil}. 3357 @code{nil}.
3353 @example 3358 @example
3354 align @r{align all tables} 3359 align @r{align all tables}
3355 noalign @r{don't align table on startup} 3360 noalign @r{don't align tables on startup}
3356 @end example 3361 @end example
3357 Here are the options for hiding leading stars in outline headings. The 3362 Here are the options for hiding leading stars in outline headings. The
3358 corresponding variables are @code{org-hide-leading-stars} and 3363 corresponding variables are @code{org-hide-leading-stars} and
3359 @code{org-odd-levels-only}, both with a default setting @code{nil} 3364 @code{org-odd-levels-only}, both with a default setting @code{nil}
3360 (meaning @code{showstars} and @code{oddeven}). 3365 (meaning @code{showstars} and @code{oddeven}).
3373 for all subsequent lines until the next @samp{#+CATEGORY} line, or the 3378 for all subsequent lines until the next @samp{#+CATEGORY} line, or the
3374 end of the file. 3379 end of the file.
3375 @item #+TBLFM: 3380 @item #+TBLFM:
3376 This line contains the formulas for the table directly above the line. 3381 This line contains the formulas for the table directly above the line.
3377 @item #+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS: 3382 @item #+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+OPTIONS:
3378 These line provide setting for exporting files. For more details see 3383 These lines provide setting for exporting files. For more details see
3379 @ref{Export options}. 3384 @ref{Export options}.
3380 @end table 3385 @end table
3381 3386
3382 @node The very busy C-c C-c key, Clean view, Summary of in-buffer settings, Miscellaneous 3387 @node The very busy C-c C-c key, Clean view, Summary of in-buffer settings, Miscellaneous
3383 @section The very busy C-c C-c key 3388 @section The very busy C-c C-c key
3561 @node FAQ, Interaction, TTY keys, Miscellaneous 3566 @node FAQ, Interaction, TTY keys, Miscellaneous
3562 @section Frequently asked questions 3567 @section Frequently asked questions
3563 @cindex FAQ 3568 @cindex FAQ
3564 3569
3565 @enumerate 3570 @enumerate
3571
3572 @cindex allout.el, conflict with
3573 @cindex @code{keymapp nil} error
3574 @item @b{When I try to use Org-mode, I always get
3575 @code{(wrong-type-argument keymapp nil)}}.@*
3576 This is a conflict with an outdated version of the @file{allout.el}
3577 package which pretends to be also the standard outline-mode but is not.
3578 This happens with older versions of @file{allout.el}, for example the
3579 one distributed with Emacs 21. Upgrade to Emacs 22 and this problem
3580 will disappear. If for some reason you cannot do this, make sure that
3581 org.el is loaded @emph{before} @file{allout.el}, for example by putting
3582 @code{(require 'org)} early enough into your @file{.emacs} file.
3583
3566 @item @b{Org-mode seems to be a useful default mode for the various 3584 @item @b{Org-mode seems to be a useful default mode for the various
3567 @file{README} files I have scattered through my directories. How do I 3585 @file{README} files I have scattered through my directories. How do I
3568 turn it on for all @file{README} files?}@* 3586 turn it on for all @file{README} files?}
3569 @c 3587 @c @*
3588
3570 @example 3589 @example
3571 (add-to-list 'auto-mode-alist '("README$" . org-mode)) 3590 (add-to-list 'auto-mode-alist '("README$" . org-mode))
3572 @end example 3591 @end example
3573 3592
3574 @item @b{Some of my links stopped working after I upgraded to a version 3593 @item @b{Some of my links stopped working after I upgraded to a version
3582 @item @b{I see that Org-mode now creates links using the double bracket 3601 @item @b{I see that Org-mode now creates links using the double bracket
3583 convention that hides the link part and the brackets, only showing the 3602 convention that hides the link part and the brackets, only showing the
3584 description part. How can I convert my old links to this new format?}@* 3603 description part. How can I convert my old links to this new format?}@*
3585 @c 3604 @c
3586 Execute once in each Org-mode file: @kbd{M-x org-upgrade-old-links}. 3605 Execute once in each Org-mode file: @kbd{M-x org-upgrade-old-links}.
3587 The replaces angular brackets with the link format. 3606 This replaces angular brackets with the new link format.
3588 3607
3589 @item @b{I don't care if you find the new bracket links great, I am 3608 @item @b{I don't care if you find the new bracket links great, I am
3590 attached to the old style using angular brackets and no hiding of the 3609 attached to the old style using angular brackets and no hiding of the
3591 link text. Please give them back to me, don't tell me it is not 3610 link text. Please give them back to me, don't tell me it is not
3592 possible!}@* 3611 possible!}@*
3888 Matthias Rempe (Oelde) provided ideas, Windows support, and quality 3907 Matthias Rempe (Oelde) provided ideas, Windows support, and quality
3889 control. 3908 control.
3890 @item 3909 @item
3891 Kevin Rogers contributed code to access VM files on remote hosts. 3910 Kevin Rogers contributed code to access VM files on remote hosts.
3892 @item 3911 @item
3912 Frank Ruell solved the mystery of the @code{keymapp nil} bug, a conflict
3913 with @file{allout.el}.
3914 @item
3893 Philip Rooke created the Org-mode reference card and provided lots of feedback. 3915 Philip Rooke created the Org-mode reference card and provided lots of feedback.
3894 @item 3916 @item
3895 Christian Schlauer proposed angular brackets around links, among other 3917 Christian Schlauer proposed angular brackets around links, among other
3896 things. 3918 things.
3897 @item 3919 @item