Commit Graph

1549 Commits

Author SHA1 Message Date
Carsten Dominik 15ad97ac3c Editing: Automatic empty lines before new entries.
The variable `org-blank-before-new-entry' regulates if Org should
insert a blank line before a new entry, when making a new headline or
plain list item.  Up to now, the possible values in each case where t
or nil, i.e. unconditionally do or don't insert a blank line.

Now each setting can also be `auto'.  If this is the case,  Org will
look if the current entry, of which the command creates a sibling,
does have a blank line before it.  If yes, it will also make a blank
line.  If not, it will not.  This seems so useful that I have made
this behavior the default.
2009-01-08 09:30:55 +01:00
Carsten Dominik e245f4c8d0 Website: Minor fixes. 2009-01-08 07:32:52 +01:00
Carsten Dominik 87fdcd92d2 Websote: more fixes 2009-01-07 18:54:34 +01:00
Carsten Dominik c073d51baa Webpage: Fix typos and minor issues. 2009-01-07 15:31:26 +01:00
Carsten Dominik 95db427c03 New layout homepage.
More compact, and a bit more "sales pitch".
Comments are welcome!
2009-01-07 14:41:57 +01:00
Carsten Dominik 34867369df Push version number to 6.17trans 2009-01-07 13:27:02 +01:00
Carsten Dominik d31ebe2c98 Export: Do not HTML process URLs when they are also used as descriptions. 2009-01-07 13:25:46 +01:00
Carsten Dominik 6b686333fb Release 6.17c 2009-01-06 23:35:50 +01:00
Carsten Dominik e0bc2c7528 Bugfix: Deadlines with yearly repeat.
Bernt Hansen writes:

    I've been bad and let a couple of my overhead tasks slip past
    their deadline dates.

    *** TODO Q1 Accounting: October
       DEADLINE: <2008-11-30 Mon +1y>
       - CLOSING NOTE [2008-01-30 Wed 12:18]

    This task does not show up on my agenda anymore (probably because
    the year changed).  If I change the deadline entry to this:

       DEADLINE: <2008-11-30 Mon>

    then it shows up as 37 days late.  I'm bringing this up as soon as
    I noticed it just so people are aware of this.  I have a few of
    these tasks that just dropped off my agenda (probably at the
    beginning of the year).

This interesting bug seems only to happen when the repeat is yearly,
and after crossing the December 31st year boundary.  It was a sorting
issue - Org-mode (in the function `org-closest-date') computes two
dates that are consistent with the repeater, one before and one after
the target date.  When the computation is done with a preference for
the past date (as it happens for deadlines), it should use the earlier
date.  In fact, it did choose "n1", assuming that it was the earlier
one.  This assumption does hold for daily, weekly and monthly
repeaters, but not for yearly ones.

This commits make sure that "n1" always holds the earlier date, so
that the logic at the end of the function works again.
2009-01-06 23:32:16 +01:00
Carsten Dominik 9dc65e4811 LaTeX Export: More standardization
This commit removes some of the stuff that was specific for the LaTeX
exporter, and falls back to the default configuration that works for
all backends.

Here is what the commit does:

- The variable `org-export-latex-remove-from-headlines' is now
  obsolete.  Instead, also LaTeX export now responds to the settings
  in the variables org-export-with-todo-keywords',
  `org-export-with-priority', and `org-export-with-tags' and in the
  corresponding OPTION settings.

- Removal of time stamps and related keywords now already happens in
  the preprocessor, so that it will be perfectly the same for all
  backends.

- The list functions have been extended to accept an additional
  parameter list, to overrule the default setting for a particular
  list function.  This is used to make the checkbox appearance in
  LaTeX configurable, through the new variable
  `org-export-latex-list-parameters'.
2009-01-06 17:31:44 +01:00
Carsten Dominik d31eb4cce9 Agenda: Fix bug with column view
Column view could fail when the agenda contains entries from the Diary
which start with a *.  This commit fixes this problems by making
`org-entry-properties' check for an org-mode buffer.
2009-01-06 16:31:30 +01:00
Carsten Dominik 3bfed1ed35 LaTeX export: Better analysis of math environments
We now use the export preprocessor to identify all math snippets in
advance, this is superior to calling org-inside-LaTeX-fragment-p from
the inside.
2009-01-06 12:56:30 +01:00
Carsten Dominik 621d11687d Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
Carsten Dominik da36bd29ab Release 6.17b 2009-01-06 09:56:42 +01:00
Carsten Dominik c52ec32582 org-w3m.el: Always deactivate the mark after copying.
Patch from Andy Steward.
2009-01-06 09:54:17 +01:00
Carsten Dominik 0ccc48c78a fixdebug 2009-01-06 09:54:17 +01:00
Carsten Dominik 52ee4c0bd2 Agenda: Have series options available when finalizing agenda.
An agenda series can have a set of global options.  Matt Lundin
reported that these options to not work completely.  There reason was
that, when calling `org-finalize-agenda' for a series, the dynamic
binding of those options was already off again.  This commit makes
sure that these bindings are available also during this final step.
2009-01-06 09:47:45 +01:00
Carsten Dominik 389419334d Export: Protect examples from headline processing
Lines that looked like headlines in examples could still be processes
as headings.  This commit make sure all converted examples are
protected.
2009-01-06 09:37:34 +01:00
Carsten Dominik e30bf26061 Bugfix: Fix regexp
The regular expression org-complex-heading-regexp had an error,
it would also match lines where there is no space after the stars.
2009-01-06 09:37:34 +01:00
Carsten Dominik 0be9a61e40 Fix typo. 2009-01-06 06:31:41 +01:00
Carsten Dominik 35c0798d69 Release 6.17a 2009-01-05 13:25:58 +01:00
Carsten Dominik 1a3abc8018 Coderefs: Revamp label syntax.
This commit revamps the syntax used for code line references in
literal examples.  See the documentation for details about the new
format.
2009-01-05 13:25:21 +01:00
Carsten Dominik f6fa33eceb Remember: Show context when jumping to previous storage location
When using "C-u C-u M-x org-remember RET" in order to jump to the last
storage location, the code failed to show the matching entry.  This
commit makes sure that at least the headline of the last remember note
is made visible.
2009-01-05 13:18:28 +01:00
Carsten Dominik c0100ad2b1 Footnotes: Fix bug with insertion at end of buffer
With the "* Footnotes" heading as last line in the buffer, footnote
insertion did not position new definitions correctly.  This commit
fixes the problem.

Reported by Matt Lundin.
2009-01-05 13:15:12 +01:00
Carsten Dominik 2f38ef0c60 Release 6.17 2009-01-04 09:00:34 +01:00
Carsten Dominik d79cc1aebf Footnotes: New startup keyowrd fnlocal
The fnlocal startup keyword sets `org-footnote-section' to nil.
2009-01-04 08:53:59 +01:00
Carsten Dominik 33403545ed Footnotes: Fix another minor bug. 2009-01-04 08:44:01 +01:00
Carsten Dominik feef4db6d3 org-w3m.el: Minor updates and fixes.
This commit adds an option to org-w3m, to decide whether the mark
should be deactivated after copying the region.

New version from author Andy Steward.
2009-01-04 08:36:38 +01:00
Carsten Dominik c98cee9fac Footnotes: Fix some bugs.
Reported by Matt Lundin.
2009-01-04 00:28:42 +01:00
Carsten Dominik 0d2a1808ed Export: Enable new export switches in org-mtags.el.
The new export switches -n, +n, and -r for the BEGIN_EXAMPLE and
BEGIN_SRC constructs are now supported by org-mtags.el.

Also fixes some bugs in org-mtags.el.
2009-01-03 12:54:53 +01:00
Carsten Dominik 2b2c603903 Footnotes: When sorting footnotes, respect the location settings.
Sorting footnotes used to be almost like normalization, in that all
footnotes would be collected into a single location.  Now sorting
respects the setting of `org-footnote-section'.  If that is nil,
sorting will actually move each footnote into the outline node of its
first reference.
2009-01-03 09:06:36 +01:00
Carsten Dominik 3559b2dc93 Footnotes: Activate labels as links
This commit add a new face for footnote labels, and activates footnote
labels for mouse clicks and for `C-c C-o', to jump to the
corresponding reference or definition.
2009-01-02 16:28:35 +01:00
Carsten Dominik 317990dd8a Footnotes: Automatic label creation.
This patch implements fully automatic creation of unique labels for
footnotes, which is also turned on as the default setting.  The
automatic labels look like [fn:1], [fn:2], etc, using the first
available unused number.

The commit introduces a new variable, `org-footnote-auto-label' with a
number of different options ranging from no auto creation (prompting
the user for a label) to fully automatic creation.

Also, the commit introduces new #+STARTUP options that can be used to
select these settings on a per-file basis.
2009-01-02 15:54:34 +01:00
Carsten Dominik a50df2a06f Footnotes: Fix bug with incorrect parsing of anonymous footnote.
There was a bug with documents with more than one anonymous footnotes,
which would all end up to reference the first one only.  The patch
fixes this problem.
2009-01-01 18:08:48 +01:00
Carsten Dominik b956d4077b Footnotes: Allow notes to be placed into the current entry.
Setting org-footnote-section to nil now causes definitions to be
inserted at the end of the current outline node, instead of into a
special node names "Footnotes".
2009-01-01 18:01:07 +01:00
Carsten Dominik 9255522b91 Footnotes: Allow "-" and "_" in footnote names.
These characters are now allowed in addition to word constituents.
2009-01-01 10:59:11 +01:00
Carsten Dominik 1ed9c50457 Export: Fix some problems with protection.
The previous changes had created problems with lines stating with a
colon, there where no longer protected.  They are now again.
2009-01-01 09:55:54 +01:00
Carsten Dominik 75ca89400a Utilities: New perl program to extract hooks
A new perl program, list-hooks.pl, now extracts the full list of hook
and function variables in Org, for inclusion into Worg's org-hooks.org.

Also, add a docstring to a few hooks that did not have one.
2009-01-01 09:54:13 +01:00
Carsten Dominik df07e0a4f3 Export: New hooks for preprocessing
This patch introduces more hooks for preprocessing the export buffer,
at various strategic moments.  See the Changes.org file for a
description of the hooks.
2008-12-31 18:37:33 +01:00
Carsten Dominik ffd89f5752 Documentation: More credits. 2008-12-31 18:22:46 +01:00
Carsten Dominik cd92610d1a Footnotes: Credits 2008-12-31 09:25:07 +01:00
Carsten Dominik d9c47b107f Bugfix: Indentation for converted headlines with `C-c -' 2008-12-31 01:22:57 +01:00
Carsten Dominik 71aeeec70a Footnotes: Add ChangeLog entries. 2008-12-31 01:21:48 +01:00
Carsten Dominik da7e417d0b Footnotes: Documentation
Add a new section about footnotes to the TeXInfo documentation, and
copy it also to the Changes.org file.
2008-12-31 00:49:05 +01:00
Carsten Dominik 70930f09ba Footnotes: Introduce STARTUP options for footnotes
New STARTUP options fninline and nofninline can be used to configure
the option `org-footnote-define-inline'.
2008-12-31 00:33:31 +01:00
Carsten Dominik f55fa707b5 Footnotes: Load the code and install keybindings for it.
This patch only adds the require for the footnote code, and adds the
key and menu bindings for it.
2008-12-31 00:33:31 +01:00
Carsten Dominik 572caeb155 Footnotes: Allow validated XHTML with multiple references to one note
Org-mode allows multiple references to the same footnote.  However,
the HTML exporter cannot use the same name for all these references,
because names have to be unique.  This patch appends numbers to
footnote reference names, to make sure they remain unique.

The dark side of this patch means that from the footnote definition,
there is only a single link, to the first reference of the note.
However, in a browser you can always press BACK to go back after
jumping to a footnote definition.
2008-12-31 00:33:31 +01:00
Carsten Dominik 01def9d28e Footnotes: Make sure footnotes are normalized by the preprocessor
The preprocessor now calls `org-footnote-normalize' to collect
footnotes and to change all references into numeric.
2008-12-31 00:33:20 +01:00
Carsten Dominik 6015ef9dfc Footnotes: Incorporate org-footnotes.el into build and release process.
This just means adding org-footnote.el to the list of Lisp files, and
to list its dependencies.
2008-12-31 00:33:20 +01:00
Carsten Dominik 40a149354c Footnotes: Add new file org-footnotes.el
This new files contains Org-modes new footnote support.  See the
documentation for details on how things work.
2008-12-31 00:33:11 +01:00