* Hiding Properties and Log drawers from export.
@ 2011-03-14 13:12 John Tarbotton
2011-03-14 14:37 ` Nick Dokos
2011-03-14 14:46 ` Nick Dokos
0 siblings, 2 replies; 7+ messages in thread
From: John Tarbotton @ 2011-03-14 13:12 UTC (permalink / raw
To: emacs-orgmode
I have some headings with notes following. I would like to use the settings.
'(org-agenda-add-entry-text-maxlines 5)
'(org-agenda-entry-text-maxlines 5)
The issue I have is that I get all the property drawers cluttering up the file.
Is there a way to prevent the Property and Logfile Drawers from being exported?
I also would like them not to show when I use the E command but that is a
smaller issue. As it is I do an export and then edit the HTML files to remove
the unwanted stuff to print out my list.
I tried to find the answer by searching online but unfortunately I was unable to
come up with a search pattern which gave me the needed information. Is there a
better mailing list to post usage questions like this?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 13:12 Hiding Properties and Log drawers from export John Tarbotton
@ 2011-03-14 14:37 ` Nick Dokos
2011-03-14 15:51 ` John Tarbotton
2011-03-14 14:46 ` Nick Dokos
1 sibling, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2011-03-14 14:37 UTC (permalink / raw
To: John Tarbotton; +Cc: nicholas.dokos, emacs-orgmode
John Tarbotton <jtarbotton@gmail.com> wrote:
> I have some headings with notes following. I would like to use the settings.
> '(org-agenda-add-entry-text-maxlines 5)
> '(org-agenda-entry-text-maxlines 5)
> The issue I have is that I get all the property drawers cluttering up the file.
> Is there a way to prevent the Property and Logfile Drawers from being exported?
> I also would like them not to show when I use the E command but that is a
> smaller issue. As it is I do an export and then edit the HTML files to remove
> the unwanted stuff to print out my list.
Check the value of the following variable (with C-h v org-export-with-drawers <RET>):
,----
| org-export-with-drawers is a variable defined in `org-exp.el'.
| Its value is nil
|
| Documentation:
| Non-nil means export with drawers like the property drawer.
| When t, all drawers are exported. This may also be a list of
| drawer names to export.
|
| You can customize this variable.
`----
>
> I tried to find the answer by searching online but unfortunately I was unable to
> come up with a search pattern which gave me the needed information. Is there a
> better mailing list to post usage questions like this?
>
Nope - this is the right place.
Nick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 13:12 Hiding Properties and Log drawers from export John Tarbotton
2011-03-14 14:37 ` Nick Dokos
@ 2011-03-14 14:46 ` Nick Dokos
1 sibling, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2011-03-14 14:46 UTC (permalink / raw
To: John Tarbotton; +Cc: nicholas.dokos, emacs-orgmode
John Tarbotton <jtarbotton@gmail.com> wrote:
> I have some headings with notes following. I would like to use the settings.
> '(org-agenda-add-entry-text-maxlines 5)
> '(org-agenda-entry-text-maxlines 5)
> The issue I have is that I get all the property drawers cluttering up the file.
> Is there a way to prevent the Property and Logfile Drawers from being exported?
> I also would like them not to show when I use the E command but that is a
> smaller issue. As it is I do an export and then edit the HTML files to remove
> the unwanted stuff to print out my list.
>
> I tried to find the answer by searching online but unfortunately I was unable to
> come up with a search pattern which gave me the needed information. Is there a
> better mailing list to post usage questions like this?
>
BTW, there was a discussion of some rather more effective search methods for
things like this on the list a few weeks ago. Look at the thread that starts
here:
http://thread.gmane.org/gmane.emacs.orgmode/38219
Nick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 14:37 ` Nick Dokos
@ 2011-03-14 15:51 ` John Tarbotton
2011-03-14 16:46 ` John Tarbotton
2011-03-14 16:51 ` Nick Dokos
0 siblings, 2 replies; 7+ messages in thread
From: John Tarbotton @ 2011-03-14 15:51 UTC (permalink / raw
To: emacs-orgmode
Nick Dokos <nicholas.dokos <at> hp.com> writes:
> John Tarbotton <jtarbotton <at> gmail.com> wrote:
>
> > Is there a way to prevent the Property and Logfile Drawers from
> > being exported?
>
> Check the value of the following variable (with C-h v
> org-export-with-drawers <RET>):
>
> Nick
>
Thanks for the reply that would seem to be what I need. In fact it got me
half way there. I set it nil using the menu. The LOGFILE drawers are gone
but the property drawers are still there. The documentation indicates it
works with the PROPERTIES draw so I'll keep trying. Maybe I did something
to the .org file that is messing it up.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 15:51 ` John Tarbotton
@ 2011-03-14 16:46 ` John Tarbotton
2011-03-14 17:00 ` Nick Dokos
2011-03-14 16:51 ` Nick Dokos
1 sibling, 1 reply; 7+ messages in thread
From: John Tarbotton @ 2011-03-14 16:46 UTC (permalink / raw
To: emacs-orgmode
John Tarbotton <jtarbotton <at> gmail.com> writes:
> > Check the value of the following variable (with C-h v
> > org-export-with-drawers <RET>):
>
> Thanks for the reply that would seem to be what I need. In fact it got me
> half way there. I set it nil using the menu. The LOGFILE drawers are gone
> but the property drawers are still there.
I got everything working now. I had to add PROPERTIES to the #+DRAWERS: line
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 15:51 ` John Tarbotton
2011-03-14 16:46 ` John Tarbotton
@ 2011-03-14 16:51 ` Nick Dokos
1 sibling, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2011-03-14 16:51 UTC (permalink / raw
To: John Tarbotton; +Cc: nicholas.dokos, emacs-orgmode
John Tarbotton <jtarbotton@gmail.com> wrote:
> Nick Dokos <nicholas.dokos <at> hp.com> writes:
>
> > John Tarbotton <jtarbotton <at> gmail.com> wrote:
> >
> > > Is there a way to prevent the Property and Logfile Drawers from
> > > being exported?
> >
> > Check the value of the following variable (with C-h v
> > org-export-with-drawers <RET>):
> >
> > Nick
> >
>
> Thanks for the reply that would seem to be what I need. In fact it got me
> half way there. I set it nil using the menu. The LOGFILE drawers are gone
> but the property drawers are still there. The documentation indicates it
> works with the PROPERTIES draw so I'll keep trying. Maybe I did something
> to the .org file that is messing it up.
>
That's strange. Maybe you can try by setting the variable in the file explicitly.
By uncommenting one of the OPTIONS lines below and leaving the other two commented
out, I can get just the LOGBOOK exported; or both LOGBOOK and PROPERTIES; or neither.
--8<---------------cut here---------------start------------->8---
#+OPTIONS: d:("LOGBOOK")
##+OPTIONS: d:t
##+OPTIONS: d:nil
* Target
* Test
:PROPERTIES:
:COLUMNS: %40ITEM %Link1 %Link2
:END:
** Test Heading
:LOGBOOK:
CLOCK: [2011-03-14 Mon 12:35]--[2011-03-14 Mon 12:35] => 0:00
:END:
:PROPERTIES:
:Link1: [[* Target]]
:END:
** Test File
:PROPERTIES:
:Link1: [[file:somewhere]]
:END:
--8<---------------cut here---------------end--------------->8---
Nick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Hiding Properties and Log drawers from export.
2011-03-14 16:46 ` John Tarbotton
@ 2011-03-14 17:00 ` Nick Dokos
0 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2011-03-14 17:00 UTC (permalink / raw
To: John Tarbotton; +Cc: nicholas.dokos, emacs-orgmode
John Tarbotton <jtarbotton@gmail.com> wrote:
> John Tarbotton <jtarbotton <at> gmail.com> writes:
>
> > > Check the value of the following variable (with C-h v
> > > org-export-with-drawers <RET>):
> >
> > Thanks for the reply that would seem to be what I need. In fact it got me
> > half way there. I set it nil using the menu. The LOGFILE drawers are gone
> > but the property drawers are still there.
>
> I got everything working now. I had to add PROPERTIES to the #+DRAWERS: line
>
Ah, OK: that makes sense. The #+DRAWERS line doesn't augment the default
setting, it replaces it. I was trying without a #+DRAWERS line at all,
so I was getting the default org-drawers.[fn:1]
Thanks!
Nick
Footnotes:
[fn:1] Well, an augmented version, but PROPERTIES is still an element of it:
,----
| org-drawers is a variable defined in `org.el'.
| Its value is
| ("SETUP" "PROPERTIES" "CLOCK" "LOGBOOK")
|
| Original value was
| ("PROPERTIES" "CLOCK" "LOGBOOK")
`----
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-14 17:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 13:12 Hiding Properties and Log drawers from export John Tarbotton
2011-03-14 14:37 ` Nick Dokos
2011-03-14 15:51 ` John Tarbotton
2011-03-14 16:46 ` John Tarbotton
2011-03-14 17:00 ` Nick Dokos
2011-03-14 16:51 ` Nick Dokos
2011-03-14 14:46 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.