Commit graph

1093 commits

Author SHA1 Message Date
Carsten Dominik 4a49e40daf Rewrite of org-mobile.org, for MobileOrg build 18 2009-10-10 23:01:33 +02:00
Carsten Dominik d5821a91ba Fix indentation issue with planning line
Reported by Matt Lundin
2009-10-08 08:46:10 +02:00
Carsten Dominik 7ce8e87b8e Fix typo
Patch by Mikael Fornius
2009-10-07 08:13:18 +02:00
Carsten Dominik 785da1420a Remove some duplicate words from docstrings
Patch by Juanma Barranquero.
2009-10-04 08:36:18 +02:00
Carsten Dominik e8ef16306c Improve figure placement in LaTeX export.
Text can now be wrapped around figures.  See the manual for details.
2009-10-03 08:50:09 +02:00
Carsten Dominik 8c4b3564df Fix bug in org-context at beginning-of-buffer
Patch by Michael Sperber
2009-10-01 20:03:29 +02:00
Carsten Dominik 0b8457c835 Allow date to be shifted into the future if time is earlier than now
PT writes:

> Currently, I'm using Google Calendar and it's quick add syntax is very
> convenient:
>
> http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=36604#text
>
>
> Of course, Org has similar capabilites, but I found one thing which
> google calendar does better: if it's 4pm and I add an event for 8am
> then GCal schedules it for 8am tomorrow.
>
> Org, on the the other hand, schedules it for 8am today even if that
> time is already passed.
>
> I never add past events and I think it's quite atypical. Shouldn't be
> an option similar to org-read-date-prefer-future for times too, so
> that timestamps also prefer the future when no date given?

This is now possible, but it is not the default.  You need to set

(setq org-read-date-prefer-future 'time)
2009-10-01 12:53:16 +02:00
Carsten Dominik 6b0a251eea Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
Carsten Dominik 1b37d5e07c Release 6.31a 2009-10-01 09:13:58 +02:00
Carsten Dominik 15ab976299 Remove unneeded function declarations 2009-10-01 08:59:06 +02:00
Carsten Dominik c11e0b44ae Release 6.31 2009-09-30 16:03:17 +02:00
Carsten Dominik 045a962582 Minor fix 2009-09-30 16:02:59 +02:00
Carsten Dominik ec302d2a7a Add new capabilities to org-mobile.el
- Allow to set any TODO keyword
- Allow to replace the local tags
2009-09-30 14:14:57 +02:00
Carsten Dominik f99fa74db1 Make LaTeX_CLASS also work in a setup file 2009-09-30 10:08:25 +02:00
Carsten Dominik fec6e55af3 Apply fixes from downstream Emacs
Patch by Glen Morris
2009-09-30 09:20:28 +02:00
Carsten Dominik 40940daad2 Remove dependency on LaTeX style file fullpage.sty
Patch by Tim Burt.
2009-09-28 19:45:12 +01:00
Carsten Dominik cdc5054835 Iterate table with `C-c C-u C-c C-c' in #+TBLFM line 2009-09-28 07:47:18 +01:00
Carsten Dominik dbd63e9723 Better documentation of the variable `org-format-latex-options' 2009-09-26 08:30:00 +01:00
Carsten Dominik 3ca813aff8 Remove cursor position restriction in the agenda
The cursor may now also be at the end of the line.
2009-09-26 08:23:15 +01:00
Carsten Dominik 668e28f4d0 Bind <home> and <end> to the org-specific commands 2009-09-25 08:03:23 +01:00
Carsten Dominik e9196279f4 Make C-e not jump after the ellipsis of a folded headline 2009-09-25 07:58:54 +01:00
Carsten Dominik f24f2ea410 Run `org-follow-link-hook' after following any link types 2009-09-24 21:49:08 +01:00
Carsten Dominik 6867751efe All indented lines starting with "#+" to be comments 2009-09-24 10:27:30 +01:00
Carsten Dominik 38f82c430b Remove final dot from a number of error messages
Downstream Emacs patch.
2009-09-24 09:09:33 +01:00
Carsten Dominik 32b1aebb37 Add drawer and keyword lists to index file for MobileOrg
MobileOrg needs to know the possible TODO keywords and DRAWERS that
can appear in Org files it receives.
2009-09-19 10:46:05 +01:00
Carsten Dominik 9491fc8d5d Find headings for remember also if they have a TODO keyword or a
priority

So far the headline had to match the one specified in the template
exactly, except for tags.  Now a TODO keyword and a priority can be
added, and the headline will still be found.

Reported by Samuel Wales and Bernt Hansen.
2009-09-19 08:06:11 +01:00
Carsten Dominik a70cf873c3 Fix bug when creating a link from the agenda 2009-09-18 16:05:20 +01:00
Carsten Dominik 922c697870 Allow argument to `org-on-headling-p' 2009-09-18 16:02:42 +01:00
Carsten Dominik 525b0148c5 Make testing for headline independent of visibility 2009-09-18 13:53:23 +01:00
Carsten Dominik 762136b25c Fix problem with insertion of statistics cookies at visibility boundaries 2009-09-18 13:52:18 +01:00
Carsten Dominik 2e8ece9219 New STARTUP keyword `showeverything'
This will make even drawer contents visible upon startup.
2009-09-18 09:31:16 +01:00
Carsten Dominik 74a59c0c00 Allow indented dynamic blocks 2009-09-18 09:12:26 +01:00
Carsten Dominik 60bf447608 Include the final newline when narrowing to a subtree 2009-09-18 07:17:24 +01:00
Carsten Dominik cd6408d992 Fix bug with past preference in scheduled dates 2009-09-17 22:12:12 +01:00
Carsten Dominik 417736a3d4 Fix key binding errors 2009-09-17 13:33:44 +01:00
Carsten Dominik 3651c206ee Add key bindings for MobileOrg support 2009-09-17 12:45:01 +01:00
Carsten Dominik e2ee292aad Fix whitespace issues in org.el and org-agenda.el 2009-09-17 07:35:33 +01:00
Carsten Dominik 4f58389074 Add menu commands for MobileOrg in the Org menu 2009-09-17 07:35:33 +01:00
Carsten Dominik 71d5620c0b Autoload org-mobile.el 2009-09-17 07:35:33 +01:00
Carsten Dominik 5e40b963cc Fix typo affecting iswitchb completion 2009-09-17 07:35:04 +01:00
Carsten Dominik 738ba015a3 Install new contributed package org-invoice.el by Peter Jones 2009-09-16 14:19:17 +01:00
Carsten Dominik 2690dcb4ab Install org-crypt.el by John Wiegley and Peter Jones 2009-09-16 14:05:40 +01:00
Carsten Dominik c2a3a379a9 Make odd-level conversion work in outline-mode files 2009-09-15 07:44:53 +01:00
Carsten Dominik bf923fdb6f Remove space at eol in planning lines 2009-09-12 15:03:20 +02:00
Carsten Dominik 0054bf1105 Store link to referenced entries in agenda
Peter Westlake writes:

> Could I request this as a small feature enhancement, please?
> Commands like org-refile have an agenda equivalent so that
> the same keys work in the agenda, and it would be very nice
> to be able to store a link to an item that way as well.
2009-09-12 07:05:21 +02:00
Carsten Dominik c1524ad9fa Fix arg handling for org-contents
When odd levels are being used, change the interpretation of a
numerical arg to S-TAB.

Michael Brand writes:

> I like the org-indent-mode with the soft-indentation but even more I
> like the hard-indentation with `#+STARTUP: odd hidestars' instead for
> which I have a question.
>
> This is the content of the example file oddeven:
> -*- mode: org -*-
> #+STARTUP: oddeven hidestars content
> * 1 Org Mode
> ** 1.1 Introduction
> *** 1.1.1 Installation
>
> This is the content of the example file odd:
> -*- mode: org -*-
> #+STARTUP: odd hidestars content
> * 1 Org Mode
> *** 1.1 Introduction
> ***** 1.1.1 Installation
>
> The different _Emacs-faces_ (colors) for the heading levels are the same
> when comparing the two files. This Emacs-internal adaptation I
> appreciate a lot.
>
> C-u 2 S-Tab shows _two_ levels with the file oddeven but only _one_ with
> the file odd. Is this how it is intended to work for the file odd?
2009-09-10 18:30:42 +02:00
Bastien Guerry 6c7f8790fb org.el (org-check-agenda-file): Use a more explicit message
Requested by Daniel Clemente.
2009-09-09 18:37:57 +08:00
Bastien Guerry 84c2435968 Minor visual improvements.
org.el (org-offer-links-in-entry): Don't use "Select link" as a prompt
in the temporary window.

org-agenda.el (org-agenda-bulk-mark): Use a slightly soberer prefix for
marked entries in the agenda view.
2009-09-08 11:10:13 +08:00
Bastien Guerry 3f640c191a outline-end-of-subtree: Bugfix.
Advise this function in a way that prevents any trailing character from
being displayed.  Patch by Andreas Burtzlaff <andy13@gmx.net>.
2009-09-08 06:38:20 +08:00
Bastien Guerry 2e7c300cd8 Fix typo. 2009-09-07 20:51:44 +08:00
Carsten Dominik 760b1e7d21 Keep paragraph filling from spilling into comment and meta lines
Lines starting with # are now considered paragraph starters.

Patch by Dan Davison
2009-09-06 07:15:11 +02:00
Carsten Dominik c23066242f Improve docstring of `org-log-repeat'
Patch by Dan Griswold
2009-09-05 08:35:54 +02:00
Carsten Dominik 206660bc8c Store link: Don't error before the first heading in a file
Matt Lundin writes:

> When I call org-remember or org-store-link above the first headline in
> an org buffer, I receive the following error message:
>
>    Before first headline at position 1 in buffer index.org
>
> It seems that either org-remember or org-store-link (or both) calls
> org-back-to-heading in order to grab the relevant heading for
> annotation. As a result, if I try to store a link above the first
> heading, emacs spits out the error message above because there is no
> heading to return to.
>
> Is this the intended behavior? Sometimes I prefer to create a link to
> the file as a whole rather than to a particular headline. E.g., I might
> want to create a todo to organize notes.org, which is not an agenda
> file. In this instance, it does not matter whether org-remember creates
> a link to a particular headline. In fact, I would prefer a link to the
> file as a whole and thus expect to be able to store a link while on the
> first empty line of the file or on #+TITLE.
2009-09-04 13:11:18 +02:00
Carsten Dominik c125359a9b Stop iswitchb tag completion from including virtual files
Tassilo Horn writes:

> When I want to set a tag using `C-c C-q TAB' I get a iswitchb completion
> prompt, cause org-completion-use-iswitchb is t.  I also use iswitchb's
> virtual files feature (iswitchb-use-virtual-buffers set to t), which
> includes files that aren't opened in a buffer, but are in the recentf
> list.  This is a cool thing when switching buffers (I barely use C-x C-f
> anymore and switch to the virtual buffer instead), but totally useless
> and annoying for tab completion in org.
>
> So when completing anything (files/tags/...) in org with iswitchb,
> switchb-use-virtual-buffers should be let-bound to nil before.
2009-09-04 12:30:06 +02:00
Carsten Dominik 0c646a1b57 Fix bug with showing empty lines before header
PT writes:

> I tried this new setting with 6.30 and it works well, thanks for
> this.
>
> The only strange case is when a header line doesn't have any
> content, only empty lines.
>
> So if there are 2 empty lines between headers
>
> * header1
>
>
> * header2
>
>
> Then the first empty line after header1 is folded regardless of
> the -1 setting.  If I understand the feature correctly no folding
> should occur in this case either.
2009-09-04 10:59:36 +02:00
Carsten Dominik 291a6db848 Release number back to 6.30trans 2009-09-04 10:39:01 +02:00
Carsten Dominik 9d5cc8e422 Agenda: Support for including a link in the category string
The category can contain a bracket link.  This commit makes sure that
the prefix in the agenda looks OK if there is a link, and that the
link is accessible with `C-c C-o 0'.
2009-09-04 08:24:38 +02:00
Carsten Dominik 12ab55ca43 Release 6.30d 2009-09-03 13:53:46 +02:00
Carsten Dominik c855e4cbcc Restore the window configuration after editing table formulas
Karl Stump writes:

> Table Editing Cycle With Multiple Windows On One Buffer Does Not
> Return to Start State
>
> When I have two windows open on two buffers, one to a table in a
> file that I'm editing, the other to some other file of interest,
> the editing cycle of C-` ... C-c C-c works great, meaning that
> when the cycle is finished, the windows are restored to the start
> state.
>
> But when I have two windows open on the same buffer, one window
> on the table, and the other window somewhere else, the editing
> cycle does not restore to the beginning state.
2009-09-03 08:10:36 +02:00
Carsten Dominik adfa87282d Push version number to 6.30trans 2009-09-03 08:10:36 +02:00
Carsten Dominik 63e1714288 Release 6.30c 2009-09-02 14:40:56 +02:00
Carsten Dominik 1152565013 Avoid using time-to-seconds 2009-09-02 14:37:47 +02:00
Carsten Dominik fc332703bf Release 6.30b 2009-09-02 11:33:10 +02:00
Carsten Dominik dcd1255762 Avoid using the variable `default-major-mode'. 2009-09-02 09:30:22 +02:00
Carsten Dominik 1d04b205e6 Release 6.30a 2009-09-02 09:00:23 +02:00
Carsten Dominik 24e7c62b84 Some small fixes 2009-09-02 08:53:06 +02:00
Carsten Dominik db70cdb13b Release 6.30 2009-09-01 06:09:23 +02:00
Carsten Dominik 522ef218db Links: Improve offering entry links when there are many an duplicate ones 2009-08-31 09:31:43 +02:00
Carsten Dominik 6bddc14c20 New effort-setting commands
To set the effort property without going to column view.
2009-08-29 20:21:15 +02:00
Carsten Dominik 99365e3961 Links: Improve following links in entry 2009-08-29 20:11:14 +02:00
Carsten Dominik 93ea7371bd Fix bug when removing scheduled/deadline times
Bernt Hansen writes:

> I ran into this a few weeks ago and it's been bugging me.
>
> I reorganized a project which had a deadline on the main task and moved
> it down to multiple subtasks in the project.
>
> ,----
> | * TODO Project task
> |   DEADLINE: <2009-08-28 Fri>
> | ** TODO Step 1
> | ** TODO Step 2
> | ...
> | ** TODO Step n
> `----
>
> I decided the DEADLINE really doesn't belong at the top -- since the
> deadline was for step 2 (and a few other tasks)... so I moved it the
> hard way.  Instead of cutting it out and pasting it back in the right
> tree I just used C-c C-d and entered the same date on step 2 (because I
> was moving the date a bit from the original date).
>
> ,----
> | * TODO Project task
> |   DEADLINE: <2009-08-28 Fri>
> | ** TODO Step 1
> | ** TODO Step 2
> |    DEADLINE: <2009-08-28 Fri>
> | ...
> | ** TODO Step n
> `----
>
> Now to remove the deadline from the Project task I just did C-u C-c C-d
> on the Project task but this removed all the deadlines in the subtree
> and my deadline in Step 2 (and others) is now gone.
>
> AFAICT SCHEDULED: works the same way.  This doesn't feel natural to me
> but I know it is documented this way.
>
> Does the way it works now really make sense or would just removing the
> deadline from the task you are working on be better.
>
> C-c C-d sets a deadline just for this task, so it felt natural to me
> that C-u C-c C-d would remove the deadline just for this task -- but
> that's what I get for not reading the manual (or forgetting since I read
> it ;)
2009-08-28 14:41:15 +02:00
Carsten Dominik 012eabc35f Links: Make C-c C-o on a headline offer all links in headline and entry text 2009-08-28 10:42:37 +02:00
Carsten Dominik 10d59f78bb Squash yet another bug due to outline-functions skipping invisible headings.
Bernt Hansen writes:

> I think I have something that is reproducible.
>
> ,----[ /tmp/x.org ]
> |
> | * Refile Targets
> | ** TODO One
> | ** TODO Two
> | ** TODO Three
> | ** TODO Four
> | ** TODO Five
> | ** TODO Six
> | *** TODO Six.one
> | *** TODO Six.two
> | **** TODO Clock me
> | ** TODO Seven
> | ** TODO Eight
> | ** TODO Nine
> | ** TODO Ten
> | * Refile Tasks
> | ** TODO Refile Me
> `----
>
> ,----[ /tmp/minimal.emacs ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
> | (require 'org-install)
> |
> | (global-set-key "\C-cl" 'org-store-link)
> | (global-set-key "\C-ca" 'org-agenda)
> | (global-set-key "\C-cb" 'org-iswitchb)
> |
> | (setq org-log-done (quote time))
> | (setq org-log-into-drawer t)
> | (setq org-agenda-files '("/tmp/x.org"))
> | (setq user-init-file "/tmp/custom.el")
> |
> | (setq org-refile-allow-creating-parent-nodes nil)
> | (setq org-refile-targets (quote ((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2))))
> | (setq org-refile-use-outline-path nil)
> | (setq org-todo-keywords (quote ((sequence "TODO(t!)" "STARTED(s!)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "OPEN(O@)" "|" "CANCELLED(c@/!)") (sequence "QUOTE(q!)" "QUOTED(Q!)" "|" "APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)"))))
> `----
>
> Steps to reproduce:
>
>  1. Save the files /tmp/x.org and /tmp/minimal.emacs
>  2. emacs -q -l /tmp/minimal.emacs /tmp/x.org
>  3. Go to CONTENTS view with S-TAB twice
>  4. Put point on **** TODO Clock Me
>  5. Clock in the task with C-c C-x C-i
>
>     This adds a logbook drawer with the clock
>
>  6. Fold to OVERVIEW view with S-TAB
>
>     So it looks like this
>
>     ,----[ x.org folder ]
>     |
>     | * Refile Targets...
>     | * Refile Tasks...
>     `----
>
>  7. M-x org-clock-goto
>
>     This reveals the buffer like so:
>
>     ,----
>     |
>     | * Refile Targets...
>     | **** TODO Clock me
>     |      :LOGBOOK:...
>     | ...
>     | * Refile Tasks...
>     `----
>
>     I think this is the critical step.
>
>  8. Put point on Refile Tasks
>  9. Show task to refile with TAB
>  10. Put point on ** TODO Refile Me
>  11. Refile to Ten with C-c C-w Ten RET
>  12. Put point on Refile Me
>  13. Reveal with C-c C-r
>
>      Shows that we are under TODO Ten.  So far so good
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Ten
>      | *** TODO Refile Me
>      | * Refile Tasks
>      `----
>
>  14. Now repeat steps 10-13 but refile to 'Two' instead of 'Ten'
>
>      This goes to the wrong place.  This files under Nine for me
>
>      ,----
>      |
>      | * Refile Targets...
>      | **** TODO Clock me
>      |      :LOGBOOK:...
>      | ...
>      | ** TODO Nine
>      | *** TODO Refile Me
>      | ** TODO Ten
>      | * Refile Tasks
>      `----
>
>  15. Repeat steps 10-13 with refiling to 'Two' each time
>
>      This moves Refile Me up one task at a time until it gets to Two
>      ie. it refiles to Eight, then Seven, then Six, then Five, then
>      Four then Three, then Two.
>
> If you show contents view with S-TAB and then refile it goes to the
> right place immediately.  So this definitely has something to do with
> the folded view of the org file.
>
2009-08-28 08:51:07 +02:00
Carsten Dominik 99f507daf5 Keep byte compiler happy 2009-08-27 15:18:25 +02:00
Carsten Dominik 8160044f2e Avoid problems with table alignment an overlays.
We now first insert a new aligned table, and then remove to old one,
this helps to keep overlays after the table from covering table text
as well.
2009-08-27 12:50:36 +02:00
Carsten Dominik 210251347c Better error message for parsing a bogus time string 2009-08-27 12:02:21 +02:00
Carsten Dominik 44bb3134d0 Revert "LaTeX export: Fix problem with emphasis in quotes"
This reverts commit 0ba7d3d2f9.

Conflicts:

	lisp/ChangeLog
2009-08-27 10:29:04 +02:00
Carsten Dominik 350691164b Avoid calling `goto-line' from lisp programs 2009-08-27 10:24:09 +02:00
Carsten Dominik 1c8b0c3b41 Do not add extra empty lines for display formulas
Longmin Wang writes:

> Hi,
>
> I am using org-mode integrated in emacs 23.1.1.  When I export
> the org file to html file, the enumerations will be interrupted
> by some displayed math formulae. For example, the codes
>
>  1. The first.
>
>  2. A displayed formula: \[ \int_0^{+\infty} \frac{c}{1+x^2}dx=1. \]
>
>  3. The third.
>
> will generate
>
>   1. The first.
>   2. A displayed formula:
>   <the formula>
>   1. The third.
>
> Is it a bug? Or I made some mistakes in the source file.
2009-08-25 11:05:36 +02:00
Carsten Dominik 9eaab0b5cf Visibility Cycling: Allow to show all empty lines after a headline
`org-cycle-separator-lines' can now get a negative value, to indicate
that, if the number of empty lines before a visible entry is greater
than the specified number, then *all* empty lines should be shown.
2009-08-24 14:50:40 +02:00
Carsten Dominik 23e30ef38e Remove forgotten (debug) form. 2009-08-23 19:12:16 +02:00
Carsten Dominik a48fe32c4c LaTeX export: Avoid footnote processing in LATEX_HEADER lines
Nick Dokos writes:

> I define a LaTeX macro at the top of my document, like so:
>
> ,----
> | ...
> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> | #+LATEX_HEADER:   #1\ignorespaces
> | #+LATEX_HEADER: }
> | ...
> `----
>
> and export - I get the following inserted:
>
> ,----
> | ...
> | \begin{document}
> |
> |
> |
> |
> |
> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
> | ...
> `----
>
> Obviously, the macro argument spec is mistaken for a footnote.
2009-08-21 06:44:29 +01:00
Bernt Hansen 38f3009927 Skip git-version determination if git command fails
This removes errors generated on a windows system where msysGit is
installed in git bash only and not available from cmd.exe in the
user's PATH.
2009-08-20 15:00:05 -04:00
Bernt Hansen ffaa4ff134 Use lisp cd function to change directories to avoid shell dependencies
This fixes git version determination on windows for cygwin and for msysGit
where git is installed in the user's PATH for the windows command shell.
2009-08-20 15:00:04 -04:00
Carsten Dominik eece1706ff Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-20 10:19:36 +01:00
Carsten Dominik 62b932c8d5 Make folded blocks searchable
Patch by Eric Schulte
2009-08-20 08:59:34 +01:00
Bastien Guerry c7b7213bed org-flag-drawer: display the position where the error occurs.
Patch by Friedrich Delgado Friedrichs <friedel@nomaden.org>.
2009-08-19 17:05:27 +08:00
Carsten Dominik c7c1a9ea75 Minor change in wording of privacy prompt 2009-08-19 07:10:41 +01:00
Carsten Dominik 473f1843d9 Minor fix 2009-08-19 00:07:33 +01:00
Carsten Dominik 464210a0d1 New command to submit a bug report 2009-08-18 22:08:42 +01:00
Bernt Hansen a32e8e8fec Add .dirty to git org-version info if files are modified
Shows files as modified by appending .dirty to indicate that
you are running org-mode from a dirty working tree (some tracked
files are modified)
2009-08-18 20:05:56 +01:00
Bernt Hansen a5e87a4723 Add git version number to org-version information
Adds the output of 'git describe' to the org-version string if we are running
from a git repository.  This identifies exactly what commit is checked out in
the org-mode git repository when reporting the org-mode version number.

org-version returns something like:

    Org-mode version 6.29trans (release_6.29c.42.g5996)

which shows 6.29trans (somewhere after the last release tag) which
is 42 commits after release_6.29c at git commit 5996.

The git describe information is not included if org mode is not
running from a git repository.
2009-08-18 20:05:45 +01:00
Carsten Dominik 8c33812854 Improve documentation about hierarchical versus recursive statistics 2009-08-18 15:43:55 +01:00
Carsten Dominik d52aaaf51c Minor fix 2009-08-18 07:55:13 +01:00
Carsten Dominik 0ba7d3d2f9 LaTeX export: Fix problem with emphasis in quotes 2009-08-18 07:45:35 +01:00
Carsten Dominik dbc99e6550 Add MACRO to completion works 2009-08-16 09:48:58 +02:00
Carsten Dominik f7e208da37 Make latex preview also use the packages in `org-export-latex-packages-alist'. 2009-08-16 09:38:03 +02:00
Carsten Dominik 05f25b3de4 Remove (debug) form 2009-08-16 05:36:05 +02:00
Carsten Dominik 15227843ab Fix some issues related to the recent iswitchb patch 2009-08-16 00:31:39 +02:00
Carsten Dominik 09acabcfb3 Fix some typos, add a new variable 2009-08-15 08:16:45 +02:00
John Wiegley 5acac25dc1 All completing-read behavior for iswitchb users
This is enabled using org-completion-use-iswitchb, and follows the same
model of usage as for ido users.
2009-08-15 01:14:04 +02:00
Carsten Dominik 8c177dc832 Avoid text properties on elements in custom variables 2009-08-14 17:18:14 +02:00
Carsten Dominik 8d59e10a06 Bugfix: Keep todo keyword list valid
An entry `#+TODO:' without content make `M-x org-mode' fail.
While it may cause problems to have no TODO keywords defined, this
should not make entering the mode fail.
2009-08-12 18:38:07 +02:00
Carsten Dominik 5834ad01b6 LaTeX snippets: Avoid Overlap
It is possible that the regular expressions for LaTeX snippets match
at nested locations.  For example, Nick Dokos submitted this:

,----
| #+LaTeX_HEADER: \usepackage{amsmath}
|
| * foo
|
| \[
| \begin{matrix}
| 1&d\\
| d&d\\
| \end{matrix}
| \]
|
`----

where the snippet regexps match at \[ ... \] and also at
\\begin{matrix}.

This would lead to two nested overlays being placed.  With this
commit, only the outer one will remain.
2009-08-11 16:32:05 +02:00
Carsten Dominik bd8e4e248a Fix problem with completing #+STARTUP 2009-08-10 14:45:57 +02:00
Carsten Dominik bd8e816ea0 Move constant definition so that org-html does not have to be loaded just for font-locking 2009-08-10 14:02:24 +02:00
Bastien Guerry 46b89a6030 Bugfix: aborting `org-iswitchb' should not activate iswitchb-mode. 2009-08-08 14:38:28 +08:00
Carsten Dominik 76d970b761 Fix bug with C-RET
Leo writes:

> Hi there,
>
> ,----[ (info "(org)Structure editing") ]
> | `C-<RET>'
> |      Just like `M-<RET>', except when adding a new heading below the
> |      current heading, the new heading is placed after the body instead
> |      of before it.  This command works from anywhere in the entry.
> `----
>
> Inside a substree and with the point at the beginning of a line, C-RET
> turns the current line into a heading. In the following example, ><
> indicates where the point is.
>
> ----------------
> * Sample
> <  This is not a heading
> ----------------
>
> After C-RET, it changes to
> ----------------
> * Sample
> * This is not a heading
> ----------------
>
> I can reproduce this with org 6.29c as included in Emacs. Can someone
> else reproduce this bug?
2009-08-07 16:29:43 +02:00
Carsten Dominik 0af5133334 Mark running clock in the agenda.
If the entry currently being clocked is present in the agenda, mark it.
2009-08-07 11:00:16 +02:00
Carsten Dominik 295491a5e8 Add org-track.el. 2009-08-07 07:29:42 +02:00
Carsten Dominik bfdd3d3fd3 Push version number to 6.29trans 2009-08-06 12:07:20 +02:00
Carsten Dominik 0864163024 Release 6.29c 2009-08-06 06:26:23 +02:00
Carsten Dominik c069ebe327 Minor fixes
Patch by Samuel Wales.
2009-08-06 06:23:49 +02:00
Carsten Dominik 00658851ec Remove invalid -E option from dvipng call 2009-08-05 17:53:39 +02:00
Carsten Dominik d6b37ddbea Release 6.29b 2009-08-05 12:34:30 +02:00
Carsten Dominik e5158d35e4 Fix more refile bugs 2009-08-05 12:32:56 +02:00
Carsten Dominik 0728025585 Refile: Fix horrible bug
This bug would make refiling complain about the tree not being a tree
unless the *previous* content of the tree was a tree.  Pretty bad....
2009-08-05 12:08:42 +02:00
Carsten Dominik 1c25048e48 Release 6.29a 2009-08-04 23:54:22 +02:00
Carsten Dominik f22be634d2 Fix table mapping 2009-08-04 23:53:41 +02:00
Carsten Dominik d67a9be8a2 Release 6.29 2009-08-04 23:06:39 +02:00
Carsten Dominik 064c7976cf Minor refile fixes 2009-08-04 18:38:14 +02:00
Carsten Dominik 22cb84f74d Allow normal lists completion also when using ido.el
Gregory Grubbs writes:

> When exporting a table with ido-mode active, an error is
> raised in org-ido-completing-read.  I think
> ido-completing-read is being called with incorrect
> arguments, but the fix is beyond me.
>
> Steps to reproduce the error:
> Org-mode version: 6.28trans
> Emacs version: GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version
> 2.16.0) of 2009-04-05 on palmer, modified by Debian
>
>
> Turn on ido-mode: M-x ido-mode RET
> visit a file using C-x C-f /tmp/test.org RET
> Create a simple table:
> |column a|column b|
> |-
> |one|two|
> |three|four|
>
> Org-magic-tabelize it by hitting TAB somewhere in a column
>
> M-x org-table-export RET /tmp/test.csv
>
> Here's the backtrace I get:
>
> Debugger entered--Lisp error: (wrong-type-argument listp "orgtbl-to-tsv")

This error is due to the fact that org-ido-completing-read does
convert alists to flat lists for completion.  Now we check if the list
really is an alist before converting it.
2009-08-04 17:15:40 +02:00
Carsten Dominik 0d9f114f3b Fix a bug in the advice on outline-end-of-subtree 2009-08-04 10:38:40 +02:00
Carsten Dominik 2ec01a800f Fix cycling bug. 2009-08-04 10:22:08 +02:00
Carsten Dominik a4a8bd2d07 Cycling: Fix bug
The first cycle command on a line did not work correctly, to always
switched to FOLD.  This was due to an error in new, faster code to
find the next visible line.
2009-08-04 08:27:41 +02:00
James TD Smith cd70915e26 Add an option to sort tags automatically. 2009-08-04 07:54:46 +02:00
Carsten Dominik 2eecb4c43c Fix white-space errors 2009-08-03 17:30:30 +02:00
James TD Smith c65fb88796 Bugfixes, documentation and custom options for org-checklist.
* contrib/lisp/org-checklist.el
  - Fix some problems with the print/export feature in org-checklist.
  - Add custom options for this module
  - Fix some interaction with a2ps
  - Only reset checkboxes if TODO state is done.

* lisp/org.el
  - Add org-checklist to org-modules
2009-08-03 16:45:47 +02:00
Carsten Dominik 5dbc23baed Keep compiler happy 2009-08-03 13:28:24 +02:00
Carsten Dominik 31ceed47ff New minor mode org-indent-mode
This mode implements outline indentation similar to clean view, but in
a dynamic and virtual way, at display time.
2009-08-03 06:24:24 +02:00
Carsten Dominik 7cb52cfb7e Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
	lisp/org-exp.el
	lisp/org.el
2009-08-02 23:50:13 +02:00
Bastien Guerry 47994f66d2 Fix "Not on a heading" error when setting priority inside a task
Changing the priority of a task when the point is after the heading
(anywhere inside the task) worked but aligning the tags failed with
a "not on a heading" error due to the save-excursion not including
the tag alignment.  This change moves back to the heading and
includes that during tag alignment to remove the error text.

Patch by Bernt Hansen.
2009-08-03 03:03:43 +08:00
Bastien Guerry 052f6e334d (org-occur): Sends an error when the user inputs an empty string.
Patch by Bernt Hansen.
2009-08-03 02:58:41 +08:00
Bastien Guerry e05c4511af org.el (org-adapt-indentation): Slightly improve the docstring.
Make it clear that "a line starting a column 0" means a line starting
with some text at column 0.
2009-08-03 02:38:09 +08:00
Carsten Dominik a93815c686 Menu entry for `org-occur-link-in-agenda-files' 2009-08-02 15:56:58 +02:00
Carsten Dominik d8732b3938 Doc fixes 2009-08-02 15:51:59 +02:00
Carsten Dominik 9f9f2de7d2 Full headline matching cleanup
Write \n instead of \xa in the regexp, this is clearer.
And make the \n optional so that also lines at the end of
the buffers will still be matched as headlines.
2009-08-01 23:36:16 +02:00
Carsten Dominik 8d0acabf2d Modify Bastien's emphasis in verse fix
Instead of making the postmatch optional, we allow backslash in the
postmatch string, so that the match will work before an explicit line
break "\\".
2009-08-01 23:32:28 +02:00
Carsten Dominik 42a5312a57 Read date: Force calendar into current frame 2009-08-01 23:21:49 +02:00
Carsten Dominik 97aa3f5b3b Revert "Bugfix: don't exclude parentheses from org-plain-link-re."
This reverts commit c80e212d57.

Conflicts:

	lisp/ChangeLog
2009-08-01 20:05:40 +02:00
Carsten Dominik 4249cbf454 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode
Conflicts:
	lisp/ChangeLog
2009-08-01 11:44:55 +02:00
Bastien Guerry 567331e169 Switch directly from CHILDREN to FOLDED if there is no subtree.
Also send a meaningful message FOLDED (NO SUBTREE) to avoid confusion.
2009-07-31 09:17:27 +08:00
Bastien Guerry c80e212d57 Bugfix: don't exclude parentheses from org-plain-link-re. 2009-07-31 08:25:04 +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
Carsten Dominik 6677f745cc LaTeX export: Skip title command when there is no title
Using "#+TITLE:" without a value make the LaTeX export ignore the
value of org-export-latex-title-command.
2009-07-27 08:45:02 +02: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 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 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 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 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 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
Carsten Dominik 0eaf3cce4d Speed-up cycling in buffers with *many* siblings, and *many* drawers
For this we took another look at when drawers actually have to be
hidden again and found that CONTENTS view does not need it, and that
CHILDREN view only needs it before the first child.

The second speed-up comes from advising outline-end-of-subtree to use
the Org version when in org-mode.

The third speed-up comes from using a better way to find the next
visible line, using `next-single-char-property-change'.

Finally, `org-forward-same-level' and `org-backward-same-level' are
faster versions of their outline equivalents and are now bound to
`C-c C-f' and `C-c C-b'.
2009-07-23 11:27:34 +02:00
Carsten Dominik 75a26e1c8d Moving subtrees: Speedup when many siblings exist. 2009-07-22 10:24:24 +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
Carsten Dominik 4183124c4b Keep compiler happy 2009-07-20 09:16:28 +02:00
Carsten Dominik 809fcf9d78 Improve refile history to contain exact matches only
This was a proposal by Samuel Wales.  After the user selected a
refiles target, we make sure that the fully qualified target is in the
history, so that next time, UP will bring back exactly this target.
2009-07-20 09:01:33 +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
Carsten Dominik 8530298b45 Inline tasks: Play along with archiving, refiling, and footnotes, store link. 2009-07-19 09:47:13 +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
Carsten Dominik 6596d005ef Minor improvements 2009-07-18 09:30:20 +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 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 1821a9126d Document indented for org-tags-match-list-sublevels
Thanks to Samuel Wales.
2009-07-16 22:25:09 +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 debebd2082 Fix typos. 2009-07-16 19:56:39 +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 84c3b6f19b Make Org work better with visual line mode
Patch by Rudi Schlatte
2009-07-07 15:12:49 +02:00
Carsten Dominik c1d00fa463 Export: General mechanism for local settings
Many different people want to set many different variables in a
buffer-local way for export.  This cannot be done with file variables,
because the Org buffer is not current while the exporter is running.

Lots of variables can be set with the #+OPTIONS lines, but finding
abbreviations goes only so far.

Therefore we have now a general mechanism that can be used to bind
variables during export operations.

a line like:   #+BIND: variable value

will bind the variable to value.  For example,
the line

>>      #+OPTIONS: toc:nil

can now equivalently be written as

>>      #+BIND: org-export-with-toc nil
2009-07-06 17:00:03 +02:00
Carsten Dominik e7ceeb3a49 Bug fix: Hide drawers after showing entry content
Bernt Hansen writes:

> I recently noticed that using SPACE or TAB in the agenda displays
> the task in the other window but all of the drawers are exposed.
> If you fold the org file with S-TAB to Overview or Contents
> display and then switch to the agenda and SPACE or TAB on a
> folded task it unfolds the entire thing including the drawers.
>
> Expanding the file to SHOW ALL and then using follow mode from
> the agenda shows me the view I'm really looking for so that's
> what I'm doing as a workaround right now.
>
> While doing my weekly review of tasks I use follow mode to view
> task detail and the expanded :LOGBOOK: and :PROPERTIES: drawers
> hide detail scrolled off the bottom of the window.  My :LOGBOOK:
> drawer for repeated tasks tends to be l-o-n-g and shoves detail
> way down the file (such as my weekly review checklist :) ).
>
> Is it possible to control expansion of the drawers when
> displaying a task from the agenda?  The view I'm looking for is
> the same as SHOW ALL from S-TAB.  It seems that if the task is
> expanded from the agenda it expands everything including the
> drawers.
2009-07-05 16:30:02 +02:00
Carsten Dominik 0795e42daf Footnotes: Allow automatic sorting and renumbering
Customize the new variable org-footnote-auto-adjust or use the STARTUP
option fnadjust to get automatic renumbering and sorting of footnotes
after each insertion/deletion.
2009-07-03 17:56:47 +02:00
Carsten Dominik d19ebd84c3 Agenda bulk commands: Add Schedule and Deadline
Agenda bulk commands on marked entries now can also set the scheduling
date or a deadline.  Normally, all entries will be set to the
specified date.  However, when writing the change as "++5d" or "++2w",
then each time stamp will independently be shifted by that amount.
2009-07-02 17:10:03 +02:00
Carsten Dominik 9a6261df78 Tables: Allow #+TABNAME to be indented 2009-07-02 09:10:20 +02:00
Carsten Dominik c1a4c5901a Plain lists: Improvements to cycling with TAB.
TAB now cycles visibility in plain lists if the cursor is in a plain
list.  This corresponds now to the new default value `t' of
`org-cycle-include-plain-lists'.  If you want to treat plain list
items as part of the outline hierarchy during cycling of outline
headings (this is what a `t' value used to mean), set this variable to
`integrate'.
2009-07-01 09:34:13 +02:00
Carsten Dominik 31e35da863 Improve the paragraph-start regexp to work better with LaTeX commands. 2009-07-01 08:55:40 +02:00
Carsten Dominik b5edb36f94 Fix bug with matching sublevels 2009-06-28 08:45:56 +02:00
Carsten Dominik 0ec316bbb5 Fix docstring 2009-06-27 14:17:10 +02:00
Carsten Dominik bcb0cccbe5 Tags-todo searches: No longer force org-tags-match-list-sublevels to t
Patrick Bahr writes:

> I use tags-todo searches in my custom agenda
> commands. Unfortunately, tags-todo does not honour the
> org-agenda-todo-list-sublevels variable which I want to use in
> order to ignore nested todo items. Is there a way to persuade
> tags-todo to do this? I know that there is a variable
> org-agenda-tags-todo-honor-ignore-options which does this for
> org-agenda-todo-ignore-with-date etc. It would be nice if there
> is something similar to this for
> org-agenda-todo-list-sublevels. Even better would be if this
> could be adjusted per individual tags-todo search. For example
> for certain cases I do not want to see nested TODO items but I do
> want to see nested WAITING items. With two tags-todo searches
> having different behaviour on nested todo items this would be
> feasible.

This behavior is a loft-over from the old days, and I am changing
this now.
2009-06-27 12:06:42 +02:00
Carsten Dominik f648323253 Push version number to 6.28trans 2009-06-26 17:26:50 +02:00
Carsten Dominik cd4e52a5ef Release 6.28d 2009-06-26 17:23:27 +02:00
Carsten Dominik 9f91de32e9 Bug fixes:
Make PDF export work on windows.
Use only compatible overlay API.
2009-06-26 13:09:40 +02:00
Carsten Dominik 00ddc4dba7 Release 6.28c 2009-06-26 09:27:50 +02:00
Carsten Dominik e7ffcc1d4d Release 6.28b 2009-06-25 09:01:20 +02:00
Carsten Dominik 7906427aa6 Release 6.28 2009-06-25 08:59:59 +02:00
Carsten Dominik 2e3a26ae35 Agenda: Refile and bulk action
This commit implements refiling directly from the agenda.

It also implements a mechanism for selecting a number of entries in
the agenda and then executing a command on all of them.  Possible
actions include archive, refile, todo state setting, and more.
2009-06-24 21:50:42 +02:00
Carsten Dominik c7703d1eeb Make store-link work like interactive when executing a keyboard macro. 2009-06-24 14:16:49 +02:00
Carsten Dominik c1c3c3f7cb Tables: Allow forced alignment to left or right.
Michael Brand writes:

>  2) One could like to have configurable left/right alignment, even
>     combinable with column width, e. g.
>
>  | <l10>      | <r>       |
>  | 3.14       |      0x10 |
>  | 3.141592=> | 0x32 0x10 |

Good idea, I would say.
2009-06-21 22:40:45 +02:00
Carsten Dominik 94c4f801a2 Tables: Fix auto-blanking of fields is yasnippet is active.
When yasnippet is active, it is the official binding of TAB.  That
means, the org-mode self-insert command must know that it may blank
table fields if the last command was yas/expand.
2009-06-21 22:19:15 +02:00
Carsten Dominik 51ad548037 Better default description for link to Org-mode heading
Requested by Stefan Vollmar.
2009-06-20 21:10:55 +02:00
Carsten Dominik 62142723fd Fix critical bug in ID search.
Patch by Michael Hohmuth.
2009-06-19 12:13:41 +02:00
Carsten Dominik 164678d549 Column view: Protect vertical bars in fields when capturing column view
Capturing column view creates an Org-mode table, where the field
values cannot have vertical bars.  These are now protected.
2009-06-18 17:25:03 +02:00
Carsten Dominik 57c12e8bef Subtree cloning: Also modify inactive timestamps 2009-06-18 09:14:17 +02:00
Carsten Dominik a5f080361a Clock: Manipulating effort strings, and a mode line menu
Clicking on the clock in the mode line now pops up a menu with
clocking options.

A new command `C-c C-x C-e' allows to set or change the effort
estimate of the task currently being clocked.  This is mainly useful
when using an alert notification when the task should be finished.

Based on a patch by Konstantin Antipin.
2009-06-17 07:40:22 +02:00
Carsten Dominik 951125da8d intermediate 2009-06-16 09:42:05 +02:00
Carsten Dominik 389a2cc336 Docstring improvement 2009-06-14 08:11:49 +02:00
Carsten Dominik dc5bc0d443 Move variable `org-protecting-blocks' to org.el 2009-06-14 08:05:18 +02:00
Carsten Dominik 7a9275fd89 Consistent behavior when changing TODO keywords with S-cursor.
When the variable `org-treat-S-cursor-todo-selection-as-state-change'
is turned off, switching TODO keywords with S-cursor will not only
turn off logging, but also blocking.
2009-06-14 08:03:14 +02:00
Carsten Dominik 74e8c78b93 Move org-exp-blocks.el into the core 2009-06-11 16:17:50 +02:00
Carsten Dominik 7d20a088f5 Minor fixes 2009-06-09 12:10:27 +02:00
Carsten Dominik a554e0ce5c Improve flyspell support in verbatim emphasis strings 2009-06-08 08:36:33 +02:00
Carsten Dominik 379b24cc63 Fix whitespace issues 2009-06-08 08:00:46 +02:00
Carsten Dominik ef57d7b90c Indentation: Make #+end line up with #+begin 2009-06-07 23:21:55 +02:00
Carsten Dominik 503e571e43 Keep byte compiler happy 2009-06-07 17:07:07 +02:00
Carsten Dominik 73c522f727 New file org-src.el, split out of org.el 2009-06-07 16:28:10 +02:00
Carsten Dominik d8e44c1fa0 Minor fix 2009-06-07 10:14:14 +02:00
Carsten Dominik a2f787a643 New contributed modules org-mac-iCal.el by Christopher Suckling 2009-06-06 07:59:19 +02:00
Carsten Dominik ea1265539f Make C-c C-c also update clock timings in a CLOCK line 2009-06-04 09:28:42 +02:00
Carsten Dominik 3ca7add20a Fix bug with time sorting
Reported by Jrg Hagmann.
2009-06-03 17:15:16 +02:00
Carsten Dominik 45d80c3a31 Remove flyspell overlays in places where they are not wanted 2009-06-03 14:38:23 +02:00
Carsten Dominik 97f9817836 Insert drawers/ planning info unindented when org-adapt-indentation is nil
Requested by Samuel Wales
2009-06-03 14:08:37 +02:00
Carsten Dominik 5e39f24715 Minor fixes 2009-06-02 19:12:30 +02:00
Carsten Dominik cc3bb658ec Editing Source Code Examples: Make C-x C-s save the original buffer
Path by Dan Davison
2009-06-02 18:01:25 +02:00
Carsten Dominik 1db461321a Keep compiler happy 2009-06-02 14:49:38 +02:00
Carsten Dominik ee4bcda0e9 Clock: More control about what time is shown in mode line while clocking
This commit changes which time is shown in the mode line while
clocking.  Normally this will now be the total time ever clocked on
this task and its children.

However, when the task is a repeating one, only the time since the
last reset of the task will be shown.  The time of the last reset is
now recorded in a LAST_REPEAT property.

You can also set the CLOCK_MODELINE_TOTAL property to the value
"current" to only show the current clocking instance.  Or it may be
the value "today", to only add up the time spent today on this task.
Other possible values are "repeat", "all", or "auto".

Finally, you can set your default for this property with
`org-clock-modeline-total'.
2009-06-02 13:47:50 +02:00
Carsten Dominik 9b823a4586 Repeating entries: Record last repeat time in LAST_REPEAT property 2009-06-02 12:05:16 +02:00
Carsten Dominik 6c5428d5d4 Block editing: Do not quote # lines if there is no plus after # 2009-06-02 09:39:50 +02:00
Carsten Dominik bfa7c38c1c Hide and show the contents of blocks
Patch by Eric Schulte, with modifications.
2009-06-02 09:23:00 +02:00
Carsten Dominik 831050b23d Add Effort property to completion list. 2009-05-30 07:44:02 +02:00
Carsten Dominik 0b5dcee06d Minor fixes 2009-05-30 06:59:46 +02:00
Carsten Dominik 76979e62bd Fix bug with LaTeX entities 2009-05-29 14:34:50 +02:00
Carsten Dominik c030d53eb0 Fix indentation problem with editing blocks 2009-05-29 06:27:25 +02:00
Carsten Dominik 9efd83addd Make the list of blocks protecting their content cofigurable 2009-05-28 17:44:44 +02:00
Carsten Dominik 19748886eb Tables: Allow #+TBLFM to be indented 2009-05-28 17:44:12 +02:00
Carsten Dominik 0c49456103 Export: Allow #+label, #+caption, and #_attr_... to be indented. 2009-05-28 17:44:12 +02:00
Carsten Dominik 3089eb6150 Insert block templates indented to cursor cookie position
When a template cookie like "<s" is typed indented on a line, the
amount of white space before the cookie is applied to each new line in
the template.
2009-05-28 17:44:12 +02:00
Carsten Dominik 1fc138838a Blocks: Make editing indented blocks work correctly 2009-05-28 17:44:12 +02:00
Carsten Dominik aea59ca7a6 Export: Allow example and src blocks to be indented 2009-05-28 13:41:29 +02:00
Carsten Dominik 476493d3b3 Fontification: Better treatment of #+ lines and blocks
The content of blocks like #+begin_example will be marked with a
separate face.  That same face is also used for single lines
introducing text for specific backends.
2009-05-28 13:41:28 +02:00
Carsten Dominik c4a566df87 Fix typo 2009-05-28 06:43:35 +02:00
Carsten Dominik ff222e41b8 Bind ESC sequences explicitly because translation does not always work.
Patch by Paolo Petta
2009-05-27 20:04:25 +02:00
Carsten Dominik a18546c360 TODO entries: Control over when selecting a state is treated as state change.
This commit introduces two new variables:

- org-treat-insert-todo-heading-as-state-change

  Default is nil.  When set to t, adding a new TODO item will be done
  by adding an item and the executing an "official" state change which
  potentially will trigger state logging.

- org-treat-S-cursor-todo-seletion-as-state-change

  Default is t.  When set to nil, selecting a TODO state with
  S-left/right will not trigger logging, only selecting a new state
  with `C-c C-t'.  I actually like this a lot and would even consider
  making this the default.
2009-05-27 18:54:44 +02:00
Carsten Dominik ae7b8f6b12 Push version number to 6.27trans 2009-05-26 15:41:44 +02:00
Carsten Dominik 0421dead4b Release 6.27a 2009-05-25 16:04:45 +02:00
Carsten Dominik 1cd03213f5 Fix bug with time sorting 2009-05-25 15:55:59 +02:00
Carsten Dominik b681c7b26e Release 6.27 2009-05-23 08:22:04 +02:00
Carsten Dominik 86a19f342e Priorities: Conditionally disable priority commands
The new option `org-enable-priority-commands' can now be used to turn
off all priority-setting commands, to avoid setting a priority by
accident.
2009-05-21 18:01:08 +02:00
Carsten Dominik 97c19c43fd Keep compiler happy 2009-05-20 10:53:29 +02:00
Carsten Dominik f54ff074d2 TODO statistics: Allow recursive statistics
Setting the new option `org-hierarchical-todo-statistics' to nil will
make TODO statistics to be computed recursively.  This means, not only
the direct children of a node contribute to its TODO statistics, but
the entire subtree.

You can also set the COOKIE_DATA property and add the word "recursive"
there to get recursive statistics for a specific tree.
2009-05-20 10:47:38 +02:00
Carsten Dominik 8e44b1fd8b Logging: New property LOG_INTO_DRAWER
Setting this property will overrule the value of org-log-into-drawer
for the scope of the subtree.

Requested by Daniel J. Sinder
2009-05-19 10:35:28 +02:00
Carsten Dominik c88c9ad519 Statistics: New hooks 2009-05-19 09:22:44 +02:00
Carsten Dominik 388a302d51 Source snippet editing: Mark the text in the original buffer while editing 2009-05-18 12:53:32 +02:00
Carsten Dominik cc50f83583 Example editing: Allow multiple editing buffers
Hsiu-Khuern Tang writes:

> Hi Carsten,
>
> You recently changed org-edit-src-code to use a separate buffer
> instead of an indirect buffer.  One side effect of this is that I
> can no longer edit several code examples at the same time:
> opening the second buffer will silently discard any changes made
> in the first.  I would prefer this behavior: when opening the
> second edit source buffer, write any changes in the first buffer
> to the originating Org buffer (but don't save it, of course).
>
> Another approach is to use different buffer names.

The better approach is clearly to allow several buffers, now
implemented with this commit.
2009-05-16 17:08:24 +02:00
Carsten Dominik e7e711148a Refile: New hook
Requested by Keith Swartz.
2009-05-14 14:51:42 +02:00