Commit graph

3816 commits

Author SHA1 Message Date
Carsten Dominik babd053bd6 Fix bulk agenda processing with parents and children in the loop
Bernt Hansen writes:

> Every so often I run into a situation where bulk refiling
> doesn't work anymore.
>
> I currently have 15 items in my refile.org file that I want
> to refile to other locations.  I marked a few of them and
> bulk refiled them just fine.  Then I marked a few more and B
> r fails with "Cannot find entry for marker #<marker at
> 297156 in norang.org>"
>
> I think this happens when I mark multiple tasks in the same
> subtree (i.e. the parent and a sibling) and refile both to
> the same location.  After that it gets confused.
>
> If I have a task like this in refile.org
>
> #+FILETAGS: REFILE
> * Test
> ** Test 2
>
> and run a tags match on REFILE I see both tasks.  Mark both
> with m in the agenda and B r to some other location.  It
> refiles the first (and this moves the sibling too) and then
> it's broken after that.
>
> I get the following backtrace
>
> Debugger entered--Lisp error: (error "Cannot find entry for
> marker #<marker at 297156 in norang.org>")

Indeed the happens because, when a parent gets refiled or
achieved, any entries corresponding to its children are
removed from the agenda.

We address this issue by

- sorting the markers, to make sure parents will be handled
  before children

- No longer throwing an error when a bulk action entry no
  longer is present in the agenda - most likely it was taken
  care of together with its parent.
2009-08-04 22:46:08 +02:00
Eric Schulte cf0be4465b updating README for with pointer to new org-babel web-page on github 2009-08-04 13:56:53 -06:00
Eric Schulte 8a2f8764c4 now using lob-image which is shared under Creative-Commons Liscence 2009-08-04 13:30:07 -06:00
Eric Schulte 83a8e50e52 ignoring .css files 2009-08-04 13:23:36 -06:00
Eric Schulte 5d4ac21aca languages are now able to specify that they don't support comments for tangling 2009-08-04 13:23:23 -06:00
Eric Schulte 6a9cd84440 aesthetic updates to documentation 2009-08-04 13:09:08 -06:00
Eric Schulte bf538e4d9a removed duplicate image 2009-08-04 13:01:42 -06:00
Eric Schulte aba74e8054 adding files/functions for publishing org-babel documentation 2009-08-04 13:00:39 -06:00
Eric Schulte 96c9696064 added support for CSS 2009-08-04 12:43:06 -06: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 f322206708 Fix parenthesis error in footnote export code 2009-08-04 16:46:34 +02:00
Carsten Dominik eef99e9abd Doc fixes for publishing to source directory 2009-08-04 16:09:03 +02:00
Carsten Dominik 73b6d73aef Minor fix 2009-08-04 13:10:36 +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
Eric Schulte 9df56be538 tangling now preserves order of source-code blocks from the original file 2009-08-03 11:00:42 -06:00
Eric Schulte 96c8457208 adding third-party gnuplot-mode to util directory 2009-08-03 10:41:45 -06: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
Eric Schulte e247c0d7f3 fixed small bug in org-babel-map-source-blocks 2009-08-03 08:19:16 -06:00
Carsten Dominik 5dbc23baed Keep compiler happy 2009-08-03 13:28:24 +02:00
Carsten Dominik ee7d1c76fd Fix parenthesis bug in org-exp.el 2009-08-03 12:18:14 +02:00
Carsten Dominik 6a722e5d2e Do not record undo information when adding/remove text properties
When this is done inside org-unmodified, undo information is not recorded.
2009-08-03 11:03:37 +02:00
Carsten Dominik 487f187c19 More minor fixes to org-indent-mode 2009-08-03 10:25:11 +02:00
Carsten Dominik 65cb546662 Minor fixes to `org-indent-mode'. 2009-08-03 10:11:38 +02:00
Carsten Dominik f3345d280e Minor fix 2009-08-03 07:51:01 +02:00
Carsten Dominik 6062cef1c6 Allow export of tables from temporary buffers without a file
Gregory Grubbs writes:

I like to make org-mode tables in arbitrary buffers, then
save them as CVS files. The export fails when done from a
buffer with no associated file.

Here's a little patch that allows exporting a table from
any buffer (org-mode version 6.28trans):
2009-08-03 07:42:40 +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
Bastien Guerry fa0ab63be6 Use file-source.org format instead of file.org-source.
This was reported by Hsiu-Khuern Tang.
2009-08-03 02:28:34 +08:00
Carsten Dominik eac9708097 Fix typo 2009-08-02 20:08:40 +02:00
Eric Schulte b97ca2047d DONE are the org-babel-trim s necessary? 2009-08-02 12:00:29 -06:00
Eric Schulte 05567124a8 DONE LoB is not populated on startup 2009-08-02 11:36:54 -06: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 98998abc0d ID links: Honor `org-link-frame-setup'. 2009-08-02 15:51:26 +02:00
Carsten Dominik 34683b03e0 Column view: Improve documentation on column view for the whole file 2009-08-02 15:25:14 +02:00
Eric Schulte 132eb91b68 no longer ensuring that noweb style references are inside comments
it was slow buggy and brought in more requirements
2009-08-01 19:33:01 -06:00
Eric Schulte cbae0b231f added org-babel-sql to org-babel-init.el 2009-08-01 19:22:41 -06:00
Eric Schulte 5b71912531 *very minimal* support for sql code blocks
see the comments in org-babel.org for more that can be done
2009-08-01 19:05:18 -06:00
Eric Schulte 9537047b14 Merge branch 'master' into sql-support 2009-08-01 18:24:28 -06:00
Eric Schulte 8506995b9d added 'var' as a possible header argument to be read from outline properties 2009-08-01 18:10:17 -06:00
Eric Schulte 735a1556b6 DONE take default values for header args from properties 2009-08-01 18:06:46 -06:00
Carsten Dominik 7151414aeb Fix file name for source export
Hsiu-Khuern writes:

> Hi all,
>
> The footnote at the bottom of section 13.1.4 ("Publishing
> action") of the Org manual says that publishing org files to
> the same directory using org-publish-org-to-org results in
> files named like file-source.org.  It actually results in
> file.org-source, which is not as nice.  I believe the
> problem is in the org-export-as-org function in org-exp.el.
2009-08-01 23:44:11 +02:00