Commit graph

1645 commits

Author SHA1 Message Date
Bastien Guerry 52302394e7 New option: org-protocol-default-template-key defaults to "w".
The default template "w" used to be hardwired, we have an option now.
2009-07-28 06:02:10 +08:00
Bastien Guerry bfc9e1bcb5 Bugfix: save-excursion before reading the refile target.
Otherwise cursor moves might confuse `org-refile'.
2009-07-27 18:33:06 +08:00
Bastien Guerry 01d84ed000 Bugfix: correctly convert the footnote reference. 2009-07-27 17:59:21 +08:00
Bastien Guerry 90d2a9c645 Autoload new org-timer functions when loading org.el 2009-07-27 12:20:39 +08:00
Bastien Guerry f2d92fa89a Bugfix: correctly convert list items before the first headline. 2009-07-27 11:53:53 +08:00
Bastien Guerry ed0a91e76f New option org-export-html-footnote-format.
This defines the format for the footnote reference.
This string must contain %s which will be replaced by
the footnote reference.
2009-07-27 11:32:52 +08:00
Bastien Guerry da7a640931 org-provide-todo-statistics now alloww a list of TODO keywords.
When such a list is set, only compute statistics against headlines
containing a keyword from this list.  This was requested by Samuel
Wales.
2009-07-27 11:08:51 +08:00
Bastien Guerry 4e27954130 Add autoload cookie to org-timer-set-timer. 2009-07-27 05:27:41 +08:00
Bastien Guerry 03fffc1864 New function `org-occur-link-in-agenda-files'.
This function create a link and search for it in agenda files.
Note that it does not store the link in `org-stored-links'.
2009-07-27 04:14:04 +08:00
Bastien Guerry d8a0f2949d Use the correct keybinding for org-timer-set-timer.
Also use the new variable `org-timer-last-timer' to fix a bug
in `org-timer-show-remaining-time' about not pick up the right
timer.
2009-07-27 04:12:31 +08:00
Bastien Guerry 7cdff7b1eb New timer functionality to set a timer from a headline.
This commit defines three new functions in org-timer.el:

- org-timer-set-timer, bound to `C-c C-x ;' in Org buffers
  and to `;' in Org agenda buffers.   This function sets a
  timer for the headline the cursor is currently it.  Up to
  three timers can be set.

- org-timer-show-remaining-time: this shows the remaining
  time for the last set timer.

- org-timer-reset-timers: this reset all timers.

This functionality was requested by Samuel Wales and emulates
that of tea-time.el -- see the emacswiki doc about tea-time.el:

  http://www.emacswiki.org/emacs/tea-time
2009-07-27 02:54:17 +08:00
Bastien Guerry 7a1a62d2f2 Udate the docstring of org-show-notification. 2009-07-27 01:11:51 +08:00
Bastien Guerry 6ebb5f2304 New value 'all-headlines for `org-provide-todo-statistics'.
When org-provide-todo-statistics is set to 'all-headlines, the
statistics are performed against all headlines, including those
with no TODO keyword.

This was requested by David A. Gershman.
2009-07-27 00:35:48 +08:00
Bastien Guerry 402448cb4c Code cleanup. 2009-07-26 21:00:52 +08:00
Bastien Guerry aed038294a Fix typo. 2009-07-26 20:59:49 +08:00
Bastien Guerry 575192b4a4 Code cleanup. 2009-07-26 20:58:35 +08:00
Bastien Guerry b536686e7d Fix typo in org-provide-checkbox-statistics docstring. 2009-07-26 06:36:41 +08:00
Bastien Guerry 593022a66e Add a new :timestamp option for clock reports.
Using :timetamp t as an option in a clock report now allows
insertion of the timestamp for the clocked entry.  Timestamps
are searched for in this order: SCHEDULING, TIMESTAMP, DEADLINE
and TIMESTAMP_IA.
2009-07-26 06:05:09 +08:00
Bastien Guerry c39f5d632f `org-emph-re' now matches emphasized strings at the end of lines.
We do this by making the last element of org-emph-re optional.
2009-07-26 05:23:56 +08:00
Bastien Guerry 8b840fe73c New function `org-list-make-subtree' bound to C-c C-*
This function convert the plain list at point into a subtree, preserving
the list structure.  Thanks to Ilya Shlyakhter for this suggestion.
2009-07-26 04:48:32 +08:00
Bastien Guerry 157329bb45 Fix the frame selection problem without using a macro.
Do this by restauring the frame focus correctly in
`org-eval-in-calendar'.
2009-07-25 19:32:59 +08:00
Bastien Guerry 4be6a90bd5 Code cleanup. 2009-07-24 03:39:39 +02:00
Bastien Guerry a2d230bdb8 Bugfix: org-list-beginning-re should not use * for list items. 2009-07-24 03:38:26 +02:00
Bastien Guerry 68b65e8f48 org-get-file-contents: Use a new argument: markup.
When markup is passed to org-get-file-contents then this function does
not protect org-like lines, since the exporter should handle them.
2009-07-24 03:16:19 +02:00
Bastien Guerry bd4a9fe510 org-id.el: New option org-id-uuid-program to set uuidgen program.
On some systems, uuidgen is named uuid.
Let the user define the uuidgen program name.
2009-07-24 02:29:56 +02:00
Bastien Guerry 5a7f43293d Enhance export options for code source examples.
Allow whitespace in code references.  Allow the -r switch to remove the
references in the source code even when the lines are not numbered: the
labels can be explicit enough.  Note that "-r -k" is the same than no
switch - as expected.

Thanks to Ulf Stegemann for bring this up.
2009-07-23 21:48:43 +02:00
Bastien Guerry 68ec49e101 New option: org-fontify-whole-heading-line
Non-nil means modify the regexp in org-set-font-lock-defaults so
that headlines are fontified till the end of the line.  This is
useful when setting a background color for the org-level-* faces.
This defaults to nil so that the old behavior is preserved.
2009-07-23 18:46:35 +02:00
Bastien Guerry 12a9381803 Add and use a new option: org-show-notification-handler
This option lets the user customize the notification mechanism.
For example, she might want to use todochiku.el.

This option defaults to nil, hence doesn't change the previous
behavior: if the program notify-send is installed on the system,
use it, and falls back on using (message [notification]) if not.
2009-07-23 17:33:52 +02:00
Bastien Guerry 898049066a Bugfix about using the calendar on a separate frame.
`org-read-date' was loosing the focus when the calendar was displayed on
a separate frame.  This patch by Robert Goldman solves it by introducing
a new macro `org-save-frame-excursion' which preserve the frame focus.

See this thread: http://article.gmane.org/gmane.emacs.orgmode/15528

(This fixes the issue I was trying to fix in a previous commit.)
2009-07-22 09:42:11 +02:00
Bastien Guerry 3c031462f5 Bugfix about using a separate frame for the Calendar.
When the Calendar is displayed in a separate frame, Org was
confused and could not find it; this tiny change fixes this.
2009-07-21 09:29:55 +02:00
Bastien Guerry e17368ca76 Also use TAB for completion with org-insert-link.
Before this patch the completion mechanism was this: TAB let's you
complete through link prefixes (gnus: file: bbdb: ...) then RET allows
completion if a completion mechanism is available for the chosen prefix.
Navigating through the history of stored links was a separate process,
available through the up/down M-n/M-p keys.

Now TAB not only completes through link prefixes but also through stored
links.  This behavior matches other Emacs completion mechanisms a bit
more closely.
2009-07-19 19:45:06 +02:00
Bastien Guerry ffa046d38b Fix typo in orgstruct++-mode docstring. 2009-07-19 14:37:59 +02:00
Bastien Guerry 4998a75c30 Fix typo in org-protocol-remember docstring. 2009-07-18 19:58:42 +02:00
Bastien Guerry 57b43866e5 Bugfix: don't ignore case when building the list of targets.
If you have a TODO keyword like "DELEGATED" and an entry like
"* Delegated this stuff to X", then you want this entry to be
in the list of possible targets.  For that we need to distinguish
between DELEGATED as a keyword and "Delegated" as a simple word,
so (case-fold-search nil) seems relevant.
2009-07-18 10:35:59 +02:00
Bastien Guerry 8a15fe867b New option: org-remember-delete-empty-lines-at-end
This default to t, so the default behavior of org-mode doesn't
change.  But the user might want to keep at least one blank line
at the end of the remembered subtree, this option lets her do it.
2009-07-18 10:09:40 +02:00
Bastien Guerry 57838f8286 Fixed premature deletion of data when scripting org-plot.
This patch was sent by James TD Smith.
2009-07-17 19:02:01 +02:00
Bastien Guerry 14c0c432be Small rewrite of the ChangeLog. 2009-07-17 18:59:51 +02:00
Bastien Guerry 69e14025f4 New option org-tags-sort-function.
This allows tags to be sorted by string<, string> or a custom function.
Patch submitted by James TD Smith.
2009-07-17 18:43:22 +02:00
Bastien Guerry ee402e55c2 Fix typo. 2009-07-17 18:10:56 +02:00
Bastien Guerry fa7e23ec39 Add org-clock-in-prepare-hook. Doc update.
This hook is called in org-clock-in earlier than the existing
org-clock-in-hook.  This is useful for functions that need to
modify the Effort property, for example.
2009-07-17 09:02:56 +02:00
Bastien Guerry 1821a9126d Document indented for org-tags-match-list-sublevels
Thanks to Samuel Wales.
2009-07-16 22:25:09 +02:00
Bastien Guerry f2abe28993 Update the changelog to reflect last commit. 2009-07-16 22:13:46 +02:00
Bastien Guerry 9fc00404ca Bind the "true line boundary first" label to the 'reversed value.
Rainer Stengele raised this issue.  Hopefully it's now clearer.
2009-07-16 22:13:20 +02:00
Bastien Guerry fe4967229a Fix problem when publishing the region to LaTeX.
`org-export-latex-first-lines' was rather stupid and would
discard the end of the region with the region was active.
Thanks to Holst Thomas for this bug report.
2009-07-16 21:39:37 +02:00
Bastien Guerry 0be765f999 Fix problem with line numbering in HTML source examples.
As reported by Ulf Stegemann (09/07/2009) the HTML output
of the example in the manual would result in no number for
the first line.  It is because `org-export-number-lines' is
told to skip one line while the line inserted previously
(i.e. "<pre class ...>") doesn't end with a newline.
2009-07-16 21:07:03 +02:00
Bastien Guerry debebd2082 Fix typos. 2009-07-16 19:56:39 +02:00
Bastien Guerry 4c23afccc5 Fix small typo. 2009-07-15 16:59:33 +02:00
Carsten Dominik b62e7fc5a0 Fix problems with sub and superscript in LaTeX export 2009-07-09 06:29:51 +02:00
Carsten Dominik 7087902788 Fix bug in org-narrow-to-subtree, which could lead to clock errors
Bernt Hansen writes:

> I have a monthly repeated task (Archive tasks) that has lots of
> old clock time on it currently but has never been marked DONE
> since the creation of the property LAST_REPEAT_TIME.  If this
> task is clocking when Emacs exits and you restart emacs and
> answer Yes to continue the clock - the modeline has the total
> time for the parent task (151:04 instead of the total time for
> this task (5:04).  If I clock the task in again the modeline is
> correct.
2009-07-08 14:29:18 +02:00
Carsten Dominik aa9529a5ce Make publishing a little less noisy 2009-07-08 10:09:05 +02:00