[Orgmode] org-capture: file to top level with prepend

2010-10-02 Thread Thomas Fuchs
Hi!

I'm trying to capture and file an entry as an top-level entry as first entry

in an org file without config at the beginning (no "#+").
This leads to filing the entry as _second_ headline in the org file.

The template is:
("z" "test" entry (file "~/Data/z.org") "* %^{Note} %t  :NOTE:\n %?"
:prepend t)

I think this is due to jumping over lines starting with "#+" at the
beginning of the org file
(line 715 in org-capture.el (org-capture-place-entry)).
My file has no config header and starts with the first headline. Calling
outline-next-heading
in this situation leads to jumping to the second headline in the file.

The appended patch fixes this problem by checking if we are on a headline
and then skips jumping to next headline.

Regards
Thomas


patch
Description: Binary data
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patch for Plain Text Export

2008-08-25 Thread Thomas Fuchs

Hi,

I detected, that using org-store-agenda-views to export my views
to *.txt in plain text results in files growing and growing because
the new views are appended.

In my understanding this is not the intended behavior. Every new
export should replace the previous one.

I attached a very simple patch to correct this.


Yours sincerly
Thomas Fuchs



plain-text-export.patch
Description: patch
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patch for problem with xemacs

2008-12-08 Thread Thomas Fuchs

Hi there!

The function org-substring-no-properties is called in org-remember.el
with one argument and defined with one plus two optional arguments. In
case of xemacs the function delegates to substring which requires 
a non-optional second argument "from".

The attached patch handles this.

Greetings
Thomas



patch
Description: Binary data
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode