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

2012-01-26 Thread Bastien
Hi Nicolas, Nicolas Goaziou 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 check, > - drawe

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

2012-01-25 Thread François Pinard
Nick Dokos writes: > I *love* org-mode and its community. Indeed. This is an enthusiastic, and enthusiasming crowd! All fueled by maintainers who not only listen and understand, but are also take decisions (so things go on, instead of turning into endless debates). A /special/ place, as young

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

2012-01-25 Thread Nicolas Goaziou
Hello, Bastien 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 drawers: system

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

2012-01-25 Thread Nick Dokos
Bastien wrote: > Carsten Dominik 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, > I go to sleep won

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

2012-01-25 Thread Bastien
Hi Nicolas, Nicolas Goaziou 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 you think it's wort

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

2012-01-25 Thread Bastien
Carsten Dominik 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
Olaf Dietsche 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 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 instea

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 writes: > >> On 25.1.2012, at 09:03, Bastien wrote: >> >>> Nick Dokos 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

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

2012-01-25 Thread Nicolas Goaziou
Hello, Carsten Dominik writes: > On 25.1.2012, at 09:03, Bastien wrote: > >> Nick Dokos 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

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 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 >> func

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 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 a

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

2012-01-25 Thread Bastien
Hi Nick, Nick Dokos 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 :PROPERTIES:), an

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 drawer

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

2012-01-25 Thread Olaf Dietsche
Nick Dokos 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 :PROPERTIES:), and somewhat

[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