Commit Graph

1392 Commits

Author SHA1 Message Date
Carsten Dominik 01b1851f2d Fix bug with display properties in resulting .html buffer 2010-01-04 10:23:15 +01:00
Carsten Dominik ddcb2be1c8 Work-around for formatting bug with email subject line from wanderlust
There is a bug in the Emacs implementation of `format' when text
properties are involved, see for a discussion this thread:

http://thread.gmane.org/gmane.emacs.orgmode/21045/focus=21091
2010-01-04 10:05:00 +01:00
Carsten Dominik 2f5f6e401f Turn off invisibility while constructing habit graphs
Bernt Hansen reported strange things happening to the display when
graph tasks are hidden while updating a task in the agenda.
2010-01-04 09:58:53 +01:00
Carsten Dominik c23ade5d8e Make C-c r C customize remember templates
Adam Spiers writes:

> I really like the way `M-x org-agenda C' takes you straight to the
> *Customize Option: Org Agenda Custom Commands* buffer.  Similarly, it
> would be nice if `M-x org-remember C' took you straight to the
> *Customize Option: Org Remember Templates* buffer.

This does now work, but only if the user has no template defined for
the access letter `C'.

>
> Although in both cases it would be even nicer if the keystroke for
> this was customisable, as no doubt some people already have `M-x
> org-remember C' set up to do something else.

It is not customizable, like for the agenda....
2010-01-03 17:00:26 +01:00
Carsten Dominik 430cb8067f Don't move to invisible line after marking for bulk action 2010-01-03 13:54:58 +01:00
Carsten Dominik d6031c2dc0 BEAMER export: Allow a columns environment to be left again on same frame 2010-01-02 08:40:37 +01:00
Carsten Dominik 8f17ffae37 Fix export bug with radio links matching inside <<target>> 2010-01-01 14:27:07 +01:00
Carsten Dominik 70d6341f2e Improve future detection when reading dates
PT writes:

> [Orgmode] org-read-date-prefer-future 'time doesn't always prefer future
>
> This is a very useful setting, because it allows the user to
> quickly schedule a task into the future by simply entering the
> time, but it doesn't always do the right thing.
>
> Suppose I scheduled a task to 1pm, but I didn't have time to deal
> with it during the day. It's 5pm now. If I want to reschedule the task to
> tomorrow 10am then I can write simply 10am to the time prompt and
> it puts the task correctly to tomorrow 10am. However, if I want
> to reschedule it to tomorrow 2pm then I can't write simply 2pm,
> because then it schedules the task at 2pm today (which is past
> already, since it's 5 pm).
>
> The problem is the feature uses the task's own scheduled time to
> determine if a time is in the past, instead of the current time.
>
>
> It's Org-mode version 6.33
2010-01-01 11:31:57 +01:00
Carsten Dominik 7050ea8d4a Use LATEX_HEADER stuff also when previewing fragments 2010-01-01 11:18:10 +01:00
Carsten Dominik 436e4282b1 HTML export: Add CSS class for TODO keyword in inline tasks
Request by Karl Maihofer.
2010-01-01 10:58:47 +01:00
Carsten Dominik 68d32abb0c Log removing of deadline and scheduling dates
Patch by Paul Holcomb.
2010-01-01 09:53:09 +01:00
Carsten Dominik afe39dfb44 Allow export of visible buffer content to LaTeX ad PDF 2009-12-31 09:08:07 +01:00
Carsten Dominik 1951c6202a New function `org-diary-schedule' to schedule classes with skipped weeks.
This is modified from a proposal by Daniel Martins.
2009-12-28 19:45:41 +01:00
Carsten Dominik aadd7399e1 The text of a radio target must sill be processed in LaTeX export 2009-12-24 09:29:59 +01:00
Carsten Dominik feb269826a Fix recent bug with timestamp properties
Matt Lundin writes

> I believe that commit b8e0d6fdb4 broke
> accessing timestamps with the org-entry-get.
>
> With that commit, several functions I use to check whether an entry has
> a timestamp stopped working.
>
> In other words,
>
> (org-entry-get nil "TIMESTAMP_IA")
>
> or
>
> (org-entry-get nil "TIMESTAMP")
>
> always return nil, even if a timestamp exists.
>
> Strangely, the org-entry-properties alist includes values for TIMESTAMP
> and TIMESTAMP_IA.
>
> I tested this by evaluating the expressions in the sample entry below:
>
> --8<---------------cut here---------------start------------->8---
> * TODO Test							   💻
>  <2009-12-19 Sat>
>  [2009-12-19 Sat 17:47]
>
> (org-entry-get nil "TIMESTAMP_IA")
> (org-entry-get nil "TIMESTAMP")
> (org-entry-properties)
> --8<---------------cut here---------------end--------------->8---
2009-12-20 11:09:05 +01:00
Carsten Dominik b8e0d6fdb4 Make a new special property BLOCKED, indicating if entry is blocked
Requested by John Wiegley.
2009-12-18 10:54:32 +01:00
Carsten Dominik fc96f63056 LaTeX export: Preprocess TEXT properly 2009-12-18 09:06:34 +01:00
Carsten Dominik 30d179c85e LaTeX export: Fix line end after caption command for longtable environments 2009-12-17 10:57:42 +01:00
Carsten Dominik e0e2d98378 Add \EUR symbols from Marvosym package to supported entities 2009-12-16 20:47:35 +01:00
Carsten Dominik 567c753f8b LaTeX export: Only define a caption for longtable if there is one
Report by Ulf Stegemann.
2009-12-16 20:25:20 +01:00
Carsten Dominik 89276e1982 Make body-only export not take the first buffer line for a title 2009-12-16 20:16:48 +01:00
Carsten Dominik 41d82c78f9 Fix bug with protecting LaTeX macros
The regular expression was not optimal, and if there was a horizontal
rule, search would not start from the beginning of the buffer but from
after the rule!
2009-12-16 19:54:54 +01:00
Carsten Dominik f444c8cd67 Export: Do not check for protectedness at the end of a line 2009-12-16 19:36:56 +01:00
Carsten Dominik 7062a88410 Match TODO keywords case-sensitively
Samuel Wales writes:

> I found three places where the lowercase version of a todo
> kw is treated specially in the latest org.  For example,
>
>  * todo this is lowercase
>
> First, in the agenda, they have a special face.
>
> Second, when inserting an id link, they are removed.
>
> Third, when printing the olpath, they are removed.  To
> reproduce, place point at bol on 5 and press the spacebar.
> I expect todo to be in the olpath, but it is not.
>
> Thanks.
>
>
> Samuel
>
>
> * 1
> *** 2
> ***** here are some keywords i like
> ******* todo
> ********* 5
2009-12-16 15:33:00 +01:00
Carsten Dominik a482182a73 Allow to export to LaTeX while in column view 2009-12-16 11:12:05 +01:00
Carsten Dominik 2fcbd1d806 Empty matcher means prompt in agenda custom commands
When an agenda custom command has an empty string as MATCH element, so
far this would lead to a meaningless search using an empty matcher.
Now and empty (or white) string will be interpreted just like a nil
matcher, i.e. the user will be prompted for the match.
2009-12-16 10:44:41 +01:00
Carsten Dominik 498e71da49 Make leader string for inactive timestamps in agenda customizable 2009-12-16 08:54:52 +01:00
Carsten Dominik 1c0354d2a9 New hook to support different way to follow plain text links 2009-12-16 08:54:11 +01:00
Carsten Dominik 5356227feb Agenda: Make `>' also act inactive time stamps
When an entry was included into the agenda because of an inactive
time stamp, `>' can now be used to change that inactive stamp.
2009-12-14 17:06:04 +01:00
Carsten Dominik 1bd88b0394 Document that one should not change the `state' entry in `org-log-note-headings' 2009-12-14 16:49:02 +01:00
Carsten Dominik a3b773e419 Save and restore outline visibility when pressing C-c C-c on a meta line 2009-12-14 12:13:43 +01:00
Carsten Dominik 993be9f1c6 Restart org-indent-mode when restarting org-mode 2009-12-14 08:17:13 +01:00
Carsten Dominik a74053c5d4 Capture link path into a group
David Maus writes:

> Just realized that there a lot of broken links in the published
> version of Worg. Seems like something went totally wrong with the
> export to html. For instance:
>
> http://orgmode.org/worg/
>
> "The main resources"
>
> The link to the official page reads http:/g and leads to
> http://orgmode.org/worg/g
>
> -or-
>
> http://orgmode.org/worg/org-contrib/org-protocol.php
>
> "Firefox"
>
> As of March 2009 Firefox users follow the steps documented on
> http:l. Here is a summary: ...
>
> the link reads "http:l" and leads to
> http://orgmode.org/worg/org-contrib/l
>
> And so on.
>
2009-12-13 19:36:47 +01:00
Carsten Dominik 7bd2077907 Fix bug with option settings during beamer export 2009-12-12 11:11:07 +01:00
Carsten Dominik cfb2550bba New hooks for external support for allowed property values 2009-12-11 08:59:59 +01:00
Carsten Dominik ba9135f051 Add startup option for beamer mode 2009-12-11 08:57:04 +01:00
Carsten Dominik 788d1ea613 New file org-beamer.el 2009-12-11 08:53:29 +01:00
Carsten Dominik 9ec129cdb7 New hook 2009-12-11 08:52:26 +01:00
Carsten Dominik c26bdb2d83 New hook 2009-12-11 08:50:51 +01:00
Carsten Dominik cca684d177 Make template searches case sensitive 2009-12-11 08:48:37 +01:00
Carsten Dominik e8ec6d6d11 Allow unrestricted completion on properties 2009-12-11 08:44:35 +01:00
Carsten Dominik bc096078a3 New hook `org-export-preprocess-before-selecting-backend-code-hook' 2009-12-11 08:41:53 +01:00
Carsten Dominik 2df4c1ca04 New hook org-export-first-hook 2009-12-11 08:40:19 +01:00
Carsten Dominik 7dc0f4e4be Fix list bug at beginning of buffer
David Maus writes:

> When `org-previous-item' is called on an item with nothing above it
> Orgmode enters an infinite loop. The reason is that
> `org-previous-item' searches for non-empty lines by moving point up
> line by line and if there is nothing above an item point gets stuck on
> begin of buffer.
>
> example.org
> ,----
> |
> |  - Item
> `----
>
> Move point on Item, M-x org-previous-item RET and Orgmode enters the
> infinite loop.
>
> Attached patch adds a conditional clause to `org-previous-item' that
> leaves the search loop if point reaches beginning of buffer.
2009-12-10 13:48:35 +01:00
Carsten Dominik 00179c97b7 Only write id locations if any are defined
This is to avoid an empty file when no id's have been used at all.
2009-12-10 12:19:41 +01:00
Carsten Dominik fe9ac47afc Archiving: Fix bug when archiving all DONE children in odd-level file
Daniel S. Sinder writes:

> Here's an "odd" problem when I call org-archive-subtree with a
> prefix argument.  It seems that DONE subtrees are not found if
> I'm using odd level headlines.  I've tried this minimal test
> case:
>
> ---- begin: test case 1 ----
> #+STARTUP: hidestars odd
>
> * DONE Project 1
> *** DONE Task 1.1
> *** DONE Task 1.2
> ---- end:   test case 1 ----
>
> If I put the cursor on the level-1 headline and do C-u C-c C-x
> C-s, I am not prompted if I want to archive the level-3 children.
> However, if I remove 'odd' from the STARTUP line and move the
> level 3 headlines to level 2, so I have this:
>
> ---- begin: test case 1 ----
> #+STARTUP: hidestars
>
> * DONE Project 1
> ** DONE Task 1.1
> ** DONE Task 1.2
> ---- end:   test case 1 ----
>
> then a repeat of the same command (C-u C-c C-x C-s) correctly
> asks if I want to archive the two level-2 headlines.
>
> I've removed my personal customizations and the problem does not
> go away.
2009-12-10 09:23:58 +01:00
Carsten Dominik 0077ce97ea Fix bug with org-goto in buffer without file
Paul Griepentrog writes:

> Every once in a while I use org-mode in a buffer that is not
> associated with a file... and then org-goto gets confused.  To repeat:
>
> BUFFER-NO-FILE
> ---------------
> * One
>   - a
> * Two
>   - b
> ---------------
>
> M-x org-mode
> C-c C-j
> org-get-refile-targets: Wrong type argument: stringp, nil
>
> [...]
>
> This patch fixes it:
2009-12-10 09:18:19 +01:00
Carsten Dominik e5942e12d6 LaTeX export: Remove unnecessary newlines
Patches by Nicolas Girard.
2009-12-10 09:10:43 +01:00
Carsten Dominik 9f4d3e8016 LaTeX export: Allow multiple arguments to LaTeX macros 2009-12-09 22:44:39 +01:00
Carsten Dominik 0ad032380e Fix broken regexp.
Julien Barnier writes:

> I recntly noticed that in some specific cases, the final '}' was
> esacped when exproting an emphasis element to LaTeX.
>
> For example, the following element :
>
> /éaa/
>
> Is exported to :
>
> \emph{éaa\}
>
> This does not append if the string begins with a space or if it
> is ASCII-only. For example, the followig strings are exported
> correctly :
>
> /aaa/
> /ééé/
>
> I don't understand why the problem only occurs with non-ASCII chars,
> but I think that the regexp to protect added special chars in the
> org-export-latex-fontify function is missing a '?' in the
> beginning. Tha attached patch corrects it.
2009-12-09 22:34:18 +01:00