emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Drawers for plain old stuff
@ 2008-05-03  9:19 Alan E. Davis
  2008-05-03 10:42 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Alan E. Davis @ 2008-05-03  9:19 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 774 bytes --]

I finally got drawers to work to hide some plain old stuff that is too
massive to be in the way all the time.  Is it me, or are drawers somewhat
capricious?    I had a drawer working, then moved more stuff into it, and it
cannot find the :END: line anymore.  So here are a few questions.

  - Can I have two drawers by the same name in a file
  - What kind of information is forbidden in a drawer (that will not enable
the finding of the :END: line)?
  - Can I make up names for Drawers on the fly?  Maybe a regular expression
name would be configured?
  - Are blank lines anethema to drawers?
  - Is there a size limit?

Thank you, as I think this is a great feature.  Org-mode is becoming more
and more interesting as I begin to understand some of the complexities.

Alan

[-- Attachment #1.2: Type: text/html, Size: 895 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Drawers for plain old stuff
  2008-05-03  9:19 Drawers for plain old stuff Alan E. Davis
@ 2008-05-03 10:42 ` Carsten Dominik
  2008-05-05 13:29   ` Alan E. Davis
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2008-05-03 10:42 UTC (permalink / raw)
  To: Alan E. Davis; +Cc: emacs-orgmode


On May 3, 2008, at 11:19 AM, Alan E. Davis wrote:

> I finally got drawers to work to hide some plain old stuff that is  
> too massive to be in the way all the time.  Is it me, or are drawers  
> somewhat capricious?    I had a drawer working, then moved more  
> stuff into it, and it cannot find the :END: line anymore.  So here  
> are a few questions.
>
>  - Can I have two drawers by the same name in a file

Yes.

>
>  - What kind of information is forbidden in a drawer (that will not  
> enable the finding of the :END: line)?

You cannot nest drawers, a drawer ends at the first :END: line, the  
end must
be before the next headline.

>  - Can I make up names for Drawers on the fly?  Maybe a regular  
> expression name would be configured?

You can globally define the drawers using the variable `org-drawers'.
Or you can have a

#+DRAWERS: CLOCK PROPERTIES HIDETHIS HIDETHAT TOOBIG TOOUGLY

line in the buffer.  Just press C-c C-c after changing
the line and you are good do go.

There is currently no way to define a regular expression for this.
Possible, but you would need to come up with a convincing
use case before I would implement this.

>  - Are blank lines anethema to drawers?

No.

>  - Is there a size limit?

No.

However, the drawer cannot contain a headline, i.e. a line starting with
one or several stars followed by a space character.  Most likely,
this is what was causing you problems?


- Carsten

> Thank you, as I think this is a great feature.  Org-mode is becoming  
> more and more interesting as I begin to understand some of the  
> complexities.
>
> Alan
>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Drawers for plain old stuff
  2008-05-03 10:42 ` Carsten Dominik
@ 2008-05-05 13:29   ` Alan E. Davis
  2008-05-06  7:24     ` Carsten Dominik
  2008-05-06 22:01     ` Daniel J. Sinder
  0 siblings, 2 replies; 5+ messages in thread
From: Alan E. Davis @ 2008-05-05 13:29 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


> the drawer cannot contain a headline, i.e. a line starting with one or 
> several stars followed by a space character. Most likely, this is what 
> was causing you problems? 
Exactly.

A case I can think of---perhaps not convincing?---for regular expression of drawer names is a file with many pasted in, lengthy notes or data sets.  So as to be able to distinguish them without opening them, one might wish to title them:

    :DATA-PROFILE1:

    :DATA-PROFILE2X:

    :DATA-TRANSECT_A:

    :DATA-SALINITY-2008-04-29:

An extremely simple regular expression would be "DATA.*" .  One can argue, convincingly, that each data set would best be stored in a file, and could be linked to.  

I did have two sets of calendars from 1984 and 1985 that were not huge, but were in the way.   I can as easily entitle each with a headline, then brace them in :CACHE: drawers.  

You have convinced me, but I hope I would not bore you by asking you for comments about this.

Thank you very much for your helpful answer, verifying what I suspected from experiments.  

Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Drawers for plain old stuff
  2008-05-05 13:29   ` Alan E. Davis
@ 2008-05-06  7:24     ` Carsten Dominik
  2008-05-06 22:01     ` Daniel J. Sinder
  1 sibling, 0 replies; 5+ messages in thread
From: Carsten Dominik @ 2008-05-06  7:24 UTC (permalink / raw)
  To: Alan E. Davis; +Cc: emacs-orgmode


On May 5, 2008, at 3:29 PM, Alan E. Davis wrote:

>
>> the drawer cannot contain a headline, i.e. a line starting with one  
>> or several stars followed by a space character. Most likely, this  
>> is what was causing you problems?
> Exactly.
>
> A case I can think of---perhaps not convincing?---for regular  
> expression of drawer names is a file with many pasted in, lengthy  
> notes or data sets.  So as to be able to distinguish them without  
> opening them, one might wish to title them:
>
>   :DATA-PROFILE1:
>
>   :DATA-PROFILE2X:
>
>   :DATA-TRANSECT_A:
>
>   :DATA-SALINITY-2008-04-29:
>
> An extremely simple regular expression would be "DATA.*" .  One can  
> argue, convincingly, that each data set would best be stored in a  
> file, and could be linked to.
> I did have two sets of calendars from 1984 and 1985 that were not  
> huge, but were in the way.   I can as easily entitle each with a  
> headline, then brace them in :CACHE: drawers.
> You have convinced me, but I hope I would not bore you by asking you  
> for comments about this.

Of course, not, I always like to get feedback and new ideas.

As for your example, I do think that headlines with a drawer below  
them would be just as useful and efficient in this case.  Seems that  
you agree, so for now: no regexp for drawer names.  But I put it on my  
list, maybe now that you suggested it, I will actually find a use for  
this.

Thanks.

- Carsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Drawers for plain old stuff
  2008-05-05 13:29   ` Alan E. Davis
  2008-05-06  7:24     ` Carsten Dominik
@ 2008-05-06 22:01     ` Daniel J. Sinder
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel J. Sinder @ 2008-05-06 22:01 UTC (permalink / raw)
  To: Alan E. Davis; +Cc: emacs-orgmode

On 05/05/2008 06:29 AM, Alan E. Davis wrote:
> 
>> the drawer cannot contain a headline, i.e. a line starting with one or 
>> several stars followed by a space character. Most likely, this is what 
>> was causing you problems? 
> Exactly.
> 
> A case I can think of---perhaps not convincing?---for regular expression 
> of drawer names is a file with many pasted in, lengthy notes or data 
> sets.  So as to be able to distinguish them without opening them, one 
> might wish to title them:
> 
>    :DATA-PROFILE1:
> 
>    :DATA-PROFILE2X:
> 
>    :DATA-TRANSECT_A:
> 
>    :DATA-SALINITY-2008-04-29:
> 
> An extremely simple regular expression would be "DATA.*" .  One can 
> argue, convincingly, that each data set would best be stored in a file, 
> and could be linked to. 
> I did have two sets of calendars from 1984 and 1985 that were not huge, 
> but were in the way.   I can as easily entitle each with a headline, 
> then brace them in :CACHE: drawers. 
> You have convinced me, but I hope I would not bore you by asking you for 
> comments about this.

Perhaps a simpler solution here is to use the ARCHIVE tag, e.g.,

* DATA-PROFILE1       :ARCHIVE:
* DATA-PROFILE2X      :ARCHIVE:
* DATA-TRANSECT_A     :ARCHIVE:
* DATA-SALINITY-2008-04-29  :ARCHIVE:

This is especially useful if you already have these lines as 
headlines (as you've indicated above) and just want to get them out 
of the way, even when doing visibility cycling.  Just do C-c C-x C-a 
on each headline you want to hide.

Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-06 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-03  9:19 Drawers for plain old stuff Alan E. Davis
2008-05-03 10:42 ` Carsten Dominik
2008-05-05 13:29   ` Alan E. Davis
2008-05-06  7:24     ` Carsten Dominik
2008-05-06 22:01     ` Daniel J. Sinder

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).