Commit graph

1381 commits

Author SHA1 Message Date
Carsten Dominik 9c342b61c6 Remove xml declaration until we have a general solution 2009-05-18 15:32:26 +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 9236cff71a ASCII export: Fix bug when exporting links 2009-05-17 23:22:52 +02:00
Carsten Dominik e27086b9a3 Keep compiler happy 2009-05-16 19:44:27 +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 0c29415de8 iCalendar export: Fix problem with match data.
Harri Kiiskinen writes:

> There is an elusive bug in the ICal export functions. To
> demonstrate it, open this file, allow for the use of the local
> variable, and run 'org-export-icalendar-this-file'. What I get is
> the message "Wrong type argument: stringp, nil"
>
> -----------------------------
> #+FILETAGS: test
> * TODO header
>
> # Local Variables:
> # org-use-tag-inheritance: "^[t]"
> # End:
> -----------------------------
>
> Now, the funny thing is, that if you change the filetag from
> "test" to "est", close the file, and open it again, the file will
> be exported fine! It seems, that if the filetag does match the
> regular expression in org-use-tag-inheritance, then the result is
> error.

This bug was due to a missing save-match-data around a call to
org-get-tags-at.  However, when studying this bug it turned out
that explicitly checking for the archive tag is not needed,
because we already have a call to `org-agenda-skip' in the same
loop.
2009-05-16 16:05:50 +02:00
Carsten Dominik cad9a82ea4 Macros: Use semicolon as argument separator 2009-05-15 16:20:52 +02:00
Carsten Dominik fbe4f09cd8 HTML export: Add XML declaration
Patch by Sebastian Rose
2009-05-15 09:21:46 +02:00
Carsten Dominik e7e711148a Refile: New hook
Requested by Keith Swartz.
2009-05-14 14:51:42 +02:00
Carsten Dominik 7de716943f Sorting: Run a hook when done with sorting
Requested by Keith Swartz.
2009-05-14 14:47:51 +02:00
Carsten Dominik f756d17bcf Lists: Fix bug with lists at the end of a file
Now org-end-of-item-list does find the end of the buffer if that is
where the lists ends.
2009-05-14 14:46:41 +02:00
Carsten Dominik 0962662663 Agenda: Fix bug with time of day for clocking lines
Peter Frings writes:

> Good day, org-ers
>
> I have seen a *small* problem in the Agenda's log mode.
>
> Org-mode version 6.26d
> GNU Emacs 22.3.1 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) of 2008-11-01
>
>
> I have this in time-sheets.org:
>
>
> * Project AI
> ** Enhancement PT <2009-04-30 Thu 10:00-11:00 +1w>
>    CLOCK: [2009-05-14 Thu 09:55]--[2009-05-14 Thu 10:45] =>  0:50
>
>
> But, the Agenda shows this:
>
> Day-agenda (W20):
> Thursday   14 May 2009
>                9:00...... ----------------
>   planning:    9:12- 9:55 Clocked:   (0:43) BUSY Notifications
>   time-sheet: 10:00-11:00 Clocked:   (0:50) Enhancement PT
>   time-sheet: 10:00-11:00 Enhancement PT
>               10:00...... ----------------
>               11:00...... ----------------
>

He is right.  Progress lines should never take their
time from the headline, always only from the triggering line.
2009-05-14 14:24:17 +02:00
Carsten Dominik 74f71d4e71 Keep byte compiler happy 2009-05-14 13:35:40 +02:00
Carsten Dominik cc440f8529 LaTeX export: Fix bug in removal of TODO keywords
There was a problem that not in all cases the correct regexp was used
to find TODO keywords.
2009-05-14 10:20:04 +02:00
Carsten Dominik 251f82d555 Fix bug. 2009-05-14 10:17:14 +02:00
Carsten Dominik d885d8f686 Agenda: Allow to start with log mode active
Benjamin Andresen writes:

> I was curious as to why a value such log-mode wasn't customizable
> to be run on start-up as follow-mode and clock-report-mode are.
>
> If Carsten thinks this is a good idea, I've attached a patch that
> may shave of 5 seconds of him adding it. It applies cleanly to
> current git HEAD.

This commit applies Beanjamin's patch
2009-05-14 09:40:53 +02:00
Carsten Dominik 80fb1b566a LaTeX export: Allow uncentered tables 2009-05-14 09:33:07 +02:00
Carsten Dominik 2e9202362f Publishing: Allow to publish the Org source file
There is now a new export function, `org-export-as-org', which
basically creates a copy of the Org file with things like archived
trees, commented trees, and trees deselected by export tags,
stripped.
2009-05-14 09:33:00 +02:00
Carsten Dominik 610f0004c8 Modularize `org-yank'.
Patch by Derek Upham.
2009-05-12 16:29:58 +02:00
Carsten Dominik 90204fe238 LaTeX export: Make TODO keyword markup configurable 2009-05-12 12:27:56 +02:00
Carsten Dominik ab0397758e Export: More default macros.
This commit adds:

{{{date(FORMAT)}}} current date/time, formatted with
`format-time-string'

{{{modification-time(FORMAT)}}} date/time of last modification of
file, formatted with `format-time-string'

{{{input-file}}} the file name of the source Org file.
2009-05-11 22:44:04 +02:00
Carsten Dominik 0a01a7a12b iCalendar export: Make it possible to export only unblocked TODO
entries.

Guy Wiener writes:

> Hello everyone,
>
> I use orgmode to write down TODO tasks with dependencies (using
> org-enforce-todo-dependencies). I want to export the tasks to an
> iCalendar file, but *without* the blocked tasks (i.e, tasks that have
> unfinished dependencies). The agenda view hides these tasks if you set
> org-agenda-dim-blocked-tasks. It there a way to configure the
> iCalendar export to ignore these tasks too, like in the agenda view?

This commit implements this, when the value of
`org-icalendar-include-todo' is the symbol `unblocked'.
2009-05-10 12:32:05 +02:00
Carsten Dominik 3065dcbd42 Keep compiler happy 2009-05-10 09:16:30 +02:00
Carsten Dominik 97e4e3bf4c Fix typo 2009-05-10 09:07:03 +02:00
Carsten Dominik a607b5b218 Checkboxes: Allow recursive statistics.
Patch by Richard Klinda.
2009-05-10 09:06:03 +02:00
Carsten Dominik 762736d18d Links: Implement special completion support for some link types
The commit implements a general mechanism for providing special
(e.g. completion) support for specific link types when entering links
with `C-c C-l'.  After calling `C-c C-l', you may now press RET after
inserting a link prefix, and Org will look for a function
`org-PREFIX-complete-link'.  Such functions may be defined for any
link types, including link abbreviations.  Currently, Org has
`org-file-complete-link' for file name completion, and
`org-bbdb-complete-link' for completion of record names from BBDB.
2009-05-10 08:51:18 +02:00
Carsten Dominik e516a3be22 Visibility cycling: Fix bug when org-cycle-include-plain-lists is t
Peter Westlake writes:

>  On Fri, 8 May 2009 06:24:54 +0200, "Carsten Dominik"
>  <carsten.dominik@gmail.com> said:
>
>  I anyone could make an example that allos me to reproduce this
>  problem, then I might be able to fix it.
>
>  It's trivial:
>
>   * top
>   ** sub 1
>   Set org-cycle-include-plain-lists.
>   Type TAB on this line, and the whole of top gets folded.
>
>   ** sub 2
>   This entry is not needed to reproduce the bug. It just
>   makes it more visible.

There was indeed a bug, I think it is fixed now.
2009-05-08 12:51:32 +02:00
Carsten Dominik e15ada501b Initialize time zone from environment 2009-05-08 09:14:59 +02:00
Carsten Dominik 8a1e3d0773 HTML export: Specify the scope parameter in table header fields 2009-05-08 06:34:13 +02:00
Carsten Dominik e28c8b7329 New option `org-export-html-table-use-header-tags-for-first-column' 2009-05-07 15:05:41 +02:00
Carsten Dominik dd1268dcac New file: contrib/lisp/org-special-blocks.el
Contributed by Chris Gray
2009-05-07 13:53:35 +02:00
Carsten Dominik 412314ab2b ASCII export: Fix autoloading 2009-05-07 08:39:12 +02:00
Carsten Dominik b5d183e45c Fix bug. 2009-05-06 18:47:44 +02:00
Carsten Dominik 8ac2704c26 New variable `org-ical-timezone'. 2009-05-06 15:49:24 +02:00
Carsten Dominik a01ae6ee38 Export: Respect the description in a coderef
Shaun Johanson writes:

> Consider the following Org file:
>
>   * Test
>
>    See [[(foo)][FOOBIE]]
>
>    #+BEGIN_EXAMPLE
>    <foo>: blah blah       (ref:foo)
>    #+END_EXAMPLE
>
> Question 1)
>  In Org mode the link displays as FOOBIE, in the exported HTML it
>  displays as (foo). Is there any way to cause the link to use the
>  description (FOOBIE) in HTML? If not would this be a useful option
>  to add?

This was a bug, fixed now.
2009-05-06 12:17:24 +02:00
Carsten Dominik f8c8ac606d Sorting: Improve documentation, and implement better time sorting
Sorting entries by time is now much more flexible, and can be
specified to creation, scheduled, and deadline time.
2009-05-06 10:50:22 +02:00
Carsten Dominik 99c86ec8b8 Edit source code examples: Allow to switch off permanent message 2009-05-05 17:58:48 +02:00
Carsten Dominik 453115c82e Fix docstring 2009-05-05 16:24:47 +02:00
Carsten Dominik 88673a8724 Clock history: Second try to get fontification right. 2009-05-05 14:44:05 +02:00
Carsten Dominik fc7b9e8d8c Editing code examples: No longer use indirect buffer
Editing source code examples and pictures is not done in a truly
separate buffer, not in an indirect buffer.  Indirect buffers had
caused problems with fontification, for example.
2009-05-05 13:58:13 +02:00
Carsten Dominik 2f8c014195 Declare some functions 2009-05-05 10:33:12 +02:00
Carsten Dominik e1f6e949ed Clock history: Present all tasks fontified
Bernt Hansen requested this.
2009-05-05 10:23:47 +02:00
Carsten Dominik d79696d914 Export: org-export-latex-image-default-option can be buffer-local
Jason Riedy writes:

>  I'm trying to change org-export-latex-image-default-option
>  to "width=.7\\linewidth" in a file local variable.  It's set
>  correctly as a buffer local variable, and it's having no
>  effect on the export.  My guess is that the buffer-local
>  property is stopping it as soon as org-export-as-latex runs
>  set-buffer.
>
>  I can smuggle the value in by adding an entry to org-export-plist-vars
>  referring to org-export-latex-image-default-option and pulling the value
>  from the plist, but that feels incorrect.

It is actually the correct way to do this, and I have
implemented this change.
2009-05-05 10:22:37 +02:00
Carsten Dominik 398f5dd2dd Fix typos 2009-05-04 22:26:41 +02:00
Carsten Dominik 93e63999d5 HTML export: Treat explicit links description better 2009-05-04 21:05:43 +02:00
Carsten Dominik 07aad4eaae HTML export: Fix Safari validation issues 2009-05-04 21:04:38 +02:00
Carsten Dominik 46532af16d ASCII Export: Implement export to buffer
Samuel Wales writes:

> I frequently export to ascii without wanting a file to be created,
> especially not in a useful directory, as the files are temporary.
>
> Is there a way to export ascii to just a buffer?

There is now, `C-c C-e A'.

This commit also implements commands
- org-export-as-ascii-to-buffer
- org-replace-region-by-ascii
- org-export-region-as-ascii

which are similar to what is available for HTML and LaTeX.

`C-c C-e A' used to be the key for publishing all projects.
This functionality has now been moved to `C-c C-e E'.
2009-05-04 18:26:42 +02:00
Carsten Dominik 34a91b7f5b Moved `org-reset-checkbox-state-subtree' to org-list.el 2009-05-04 16:57:26 +02:00
Carsten Dominik 2207baf34c HTML export: Fix col and colgroup tags
Patch by Sebastian Rose
2009-05-04 16:21:59 +02:00
Carsten Dominik 12ec4f4b67 Remember: Force selection of a valid template
Scot Beker writes:

>  I have org-remember working successfully (I can't believe that it took
>  me so long to experiment with it.  It has made a huge difference in my
>  work).
>
>  But if, after calling the extension with C-c r, I type a "wrong" tag
>  selector (e.g. I mistype a right one), I get
>  (1) the error message 'no template'  (good)
>  (2) a remember buffer without a bullet point, with the point at the
>  very top of the file (sure, what do I expect?)
>  (3) but, having realized my mistake, I can't get out of it gracefully.
>  I can't abort (C-c C-k), and can't (C-c C-c).
>  I get the error message    "Args out of range 0, 1"
>
>  Any idea whether I've set something up wrong or if org just has no
>  mercy on those who can't manage to type one of the selected values?
>  Otherwise, org-remember works well.

This situation is now avoided by forcing the selection of a valid
template.
2009-05-04 16:06:33 +02:00