Re: [O] How do I create a drawer?

2012-01-26 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Therefore, I suggest the following draft of a patch, that mostly reverts commit splitting `org-insert-property-drawer' and makes `org-insert-drawer' more user friendly. It provides the following facilities: - headline inclusion

Re: [O] How do I create a drawer?

2012-01-25 Thread Olaf Dietsche
Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows something about). I didn't find any utility functions to insert drawers (except for

Re: [O] How do I create a drawer?

2012-01-25 Thread Russell Adams
On Tue, Jan 24, 2012 at 07:46:12PM -0500, Nick Dokos wrote: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows something about). I didn't find any utility functions to insert drawers

Re: [O] How do I create a drawer?

2012-01-25 Thread Bastien
Hi Nick, Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows something about). I didn't find any utility functions to insert drawers (except for

Re: [O] How do I create a drawer?

2012-01-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/01/12 10:03, Bastien wrote: Hi Nick, Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows

Re: [O] How do I create a drawer?

2012-01-25 Thread Carsten Dominik
On 25.1.2012, at 09:03, Bastien wrote: Hi Nick, Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows something about). I didn't find any

Re: [O] How do I create a drawer?

2012-01-25 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@gmail.com writes: On 25.1.2012, at 09:03, Bastien wrote: Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that

Re: [O] How do I create a drawer?

2012-01-25 Thread Carsten Dominik
On 25.1.2012, at 13:29, Nicolas Goaziou wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes: On 25.1.2012, at 09:03, Bastien wrote: Nick Dokos nicholas.do...@hp.com writes: The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking

Re: [O] How do I create a drawer?

2012-01-25 Thread Nicolas Goaziou
And while we're at suggestions, it would be even better if the `org-insert-drawer' function supported regions. Meaning it should insert the drawer in every headline in the region? No. Around the region. If an headline is found within the region, the function should return an error instead,

Re: [O] How do I create a drawer?

2012-01-25 Thread Bastien
Olaf Dietsche olaf+list.orgm...@olafdietsche.de writes: For a quick hack, you might try this one: Applied, thanks! -- Bastien

Re: [O] How do I create a drawer?

2012-01-25 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes: This is nice. But I think Olaf's patch would still be useful to apply. Indeed. I applied a slightly enhanced version, supporting completion and region, as Nicolas just suggested. Thanks all for the feedback, -- Bastien

Re: [O] How do I create a drawer?

2012-01-25 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: No. Around the region. If an headline is found within the region, the function should return an error instead, telling the user that drawers cannot contain headlines. The version I just pushed does not handle this kind of problem. If

Re: [O] How do I create a drawer?

2012-01-25 Thread Nick Dokos
Bastien b...@altern.org wrote: Carsten Dominik carsten.domi...@gmail.com writes: This is nice. But I think Olaf's patch would still be useful to apply. Indeed. I applied a slightly enhanced version, supporting completion and region, as Nicolas just suggested. Thanks all for the

Re: [O] How do I create a drawer?

2012-01-25 Thread Nicolas Goaziou
Hello, Bastien b...@altern.org writes: The version I just pushed does not handle this kind of problem. If you think it's worth the trouble, can you have a look at it? I've checked the code, and the `org-insert-drawer' is actually not what I had in mind. To me, there are really two types of

[O] How do I create a drawer?

2012-01-24 Thread Nick Dokos
The only way I found so far to create a drawer is to actually type the damn thing in (I'm talking about my own drawers, not the special drawers that org knows something about). I didn't find any utility functions to insert drawers (except for :PROPERTIES:), and somewhat to my surprise, completion