emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Exporting drawers
@ 2009-11-11  9:48 Uwe Jochum
  2009-11-11 11:24 ` David Maus
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Uwe Jochum @ 2009-11-11  9:48 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I found the idea of maintaining a contacts list in orgmode intriguing and 
went on to import my old data from kde-kontact into orgmode, using drawers 
as the appropriate tool to store the information, like so:

* Musterfrau, Gerda
%%(diary-anniversary 02 17 1959) Geburtstag: Gerda ist heute \%d Jahre 
alt!
  :ADRESSE:
  :Stadt:    Frankfurt am Main
  :Telephon:   069--7511--2660 (direkt)
  :Telephon:   069--7511--1666 (Sekretärin)
  :E-Post:     mailto:g.musterfrau@web.de
  :END:

* Mustermann, Fritz
  :ADRESSE:
  :Stadt:   Mannheim
  :Straße:  K4, 12
  :Telephon: 0621 / 882255XX
  :END:

In the head of the file I have the line

#+DRAWERS:   ADRESSE 

and in my .emacs there is an entry " '(org-export-
with-drawers t)" to make sure the drawers are included when I am exporting 
the file. But when exporting the file the drawer :ADRESSE: is NOT included; 
I only get the headlines or text outside the drawer.

I cannot figure out what's wrong with my setting. Could someone give me a 
hint?

System: Mandriva-Linux 2010.0, Emacs 23.1.1., orgmode 6.32b

Thanks a lot,

Uwe Jochum

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

* Re: Exporting drawers
  2009-11-11  9:48 Exporting drawers Uwe Jochum
@ 2009-11-11 11:24 ` David Maus
  2009-11-11 12:08   ` Uwe Jochum
  2009-11-11 11:57 ` Carsten Dominik
  2009-11-11 20:21 ` Samuel Wales
  2 siblings, 1 reply; 9+ messages in thread
From: David Maus @ 2009-11-11 11:24 UTC (permalink / raw)
  To: emacs-orgmode

Hi Uwe,

At Wed, 11 Nov 2009 10:48:13 +0100,
Uwe Jochum wrote:
> ...
> and in my .emacs there is an entry " '(org-export-
> with-drawers t)" to make sure the drawers are included when I am exporting 
> the file. But when exporting the file the drawer :ADRESSE: is NOT included; 
> I only get the headlines or text outside the drawer.
> 
> I cannot figure out what's wrong with my setting. Could someone give me a 
> hint?

I cannot reproduce this. I created an empty org file, copied your test
items, put #+DRAWERS: ADDRESSE on the head of the file, updated the
file local settings (C-c C-c) and exported to html. The ADRESSE
drawers are there.

,----
| <p>:ADRESSE:
| :Stadt:    Frankfurt am Main
| :Telephon:   069&ndash;7511&ndash;2660 (direkt)
| :Telephon:   069&ndash;7511&ndash;1666 (Sekretärin)
| :E-Post:     <a href="mailto:g.musterfrau@web.de">mailto:g.musterfrau@web.de</a>
| :END:
| </p>
`----

Org-mode version 6.32trans (release_6.32b.147.g97e21)

GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of
 2009-10-23 on elegiac, modified by Debian

Regards

  -- David

-- 
OpenPGP... 0x316F4BE4670716FD
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com
ICQ....... 241051416

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

* Re: Exporting drawers
  2009-11-11  9:48 Exporting drawers Uwe Jochum
  2009-11-11 11:24 ` David Maus
@ 2009-11-11 11:57 ` Carsten Dominik
  2009-11-11 12:55   ` Uwe Jochum
  2009-11-11 20:21 ` Samuel Wales
  2 siblings, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2009-11-11 11:57 UTC (permalink / raw)
  To: Uwe Jochum; +Cc: emacs-orgmode


On Nov 11, 2009, at 10:48 AM, Uwe Jochum wrote:

> Hi all,
>
> I found the idea of maintaining a contacts list in orgmode  
> intriguing and
> went on to import my old data from kde-kontact into orgmode, using  
> drawers
> as the appropriate tool to store the information, like so:
>
> * Musterfrau, Gerda
> %%(diary-anniversary 02 17 1959) Geburtstag: Gerda ist heute \%d Jahre
> alt!
>  :ADRESSE:
>  :Stadt:    Frankfurt am Main
>  :Telephon:   069--7511--2660 (direkt)
>  :Telephon:   069--7511--1666 (Sekretärin)
>  :E-Post:     mailto:g.musterfrau@web.de
>  :END:
>
> * Mustermann, Fritz
>  :ADRESSE:
>  :Stadt:   Mannheim
>  :Straße:  K4, 12
>  :Telephon: 0621 / 882255XX
>  :END:
>
> In the head of the file I have the line
>
> #+DRAWERS:   ADRESSE
>
> and in my .emacs there is an entry " '(org-export-
> with-drawers t)" to make sure the drawers are included when I am  
> exporting
> the file. But when exporting the file the drawer :ADRESSE: is NOT  
> included;
> I only get the headlines or text outside the drawer.

Do you maybe have a line

#+OPTIONS: d:nil

in the buffer???

- Carsten

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

* Re: Exporting drawers
  2009-11-11 11:24 ` David Maus
@ 2009-11-11 12:08   ` Uwe Jochum
  0 siblings, 0 replies; 9+ messages in thread
From: Uwe Jochum @ 2009-11-11 12:08 UTC (permalink / raw)
  To: emacs-orgmode

David Maus wrote:
> Hi Uwe,
> I cannot reproduce this. I created an empty org file, copied your test
> items, put #+DRAWERS: ADDRESSE on the head of the file, updated the
> file local settings (C-c C-c) and exported to html. The ADRESSE
> drawers are there.

David,

thanks for testing! So it seems that my configuration is o.k., but somehow 
on my machine the export doesn't work properly. I'll switch to orgmode 
6.32trans and see if that helps.

Regards,

Uwe

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

* Re: Exporting drawers
  2009-11-11 11:57 ` Carsten Dominik
@ 2009-11-11 12:55   ` Uwe Jochum
  2009-11-11 13:43     ` Sebastian Rose
  2009-11-12  6:02     ` Carsten Dominik
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Jochum @ 2009-11-11 12:55 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik wrote:
> Do you maybe have a line
> 
> #+OPTIONS: d:nil
> 
> in the buffer???
> 
> - Carsten

Carsten,

no, I haven't. This is what I have:

#+TITLE:     Kontakte
#+AUTHOR:    Uwe Jochum
#+EMAIL:     uwe.jochum@xxx.de
#+DATE:      2009-10-29 Do
#+DRAWERS:   ADRESSE
#+LANGUAGE:  de
#+OPTIONS:   toc:nil  f:t *:t <:t d:t

"d:t" is clearly unnecessary, because I have enabled the export of drawers 
globaly in my .emacs, but anyway...

And here comes something really strange:

David Maus said he copied my example in a fresh file and exported it, and he 
got a correct result. So I too copied my example and inserted it in an emty 
new file --- and it worked, but only once! I tried this now three times: 
Everytime the file is new, the export of drawers works (PDF, html); but 
after the first run every repeated export of drawers fails. And on the first 
run I do not get the nicely formatted drawer display David had (with 
linebreaks after every drawer-line), but a rather cluttered result without 
linebreaks.

If no-one else can reproduce this with orgmode 6.32b, I'll switch to orgmode 
6.32trans.

Schöne Grüße,

Uwe

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

* Re: Re: Exporting drawers
  2009-11-11 12:55   ` Uwe Jochum
@ 2009-11-11 13:43     ` Sebastian Rose
  2009-11-11 14:04       ` Uwe Jochum
  2009-11-12  6:02     ` Carsten Dominik
  1 sibling, 1 reply; 9+ messages in thread
From: Sebastian Rose @ 2009-11-11 13:43 UTC (permalink / raw)
  To: Uwe Jochum; +Cc: emacs-orgmode

Hi,



when I first export it to PDF, no drawers are exported.

To HTML => drawers present. OK.

Then export to PDF again gives me:



Debugger entered--Lisp error: (void-variable alt!)
  eval(alt!)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code(.....)
  debug(error (wrong-number-of-arguments (lambda nil "Complete name at point and insert a link.\nNOTE: only the last word preceding point is taken into account for the\nsearch (and thus replaced by the result)!\nThe type of link depends on the setting of `org-bbdb-default-link-type'.\n\nTODO: select the record." (interactive "*P") (let* ... ... ... ...)) 1))
  org-bbdb/complete-name(nil)
  call-interactively(org-bbdb/complete-name nil nil)



Removing the line

   %%(diary-anniversary 02 17 1959) Geburtstag: Gerda ist heute \%d Jahre alt!

helps. I can export again.


In PDF, the drawers are still absent. They are not in the LaTeX sources
either.







Uwe Jochum <uwe.jochum@kabelbw.de> writes:
> Carsten Dominik wrote:
>> Do you maybe have a line
>>
>> #+OPTIONS: d:nil
>>
>> in the buffer???
>>
>> - Carsten
>
> Carsten,
>
> no, I haven't. This is what I have:
>
> #+TITLE:     Kontakte
> #+AUTHOR:    Uwe Jochum
> #+EMAIL:     uwe.jochum@xxx.de
> #+DATE:      2009-10-29 Do
> #+DRAWERS:   ADRESSE
> #+LANGUAGE:  de
> #+OPTIONS:   toc:nil  f:t *:t <:t d:t
>
> "d:t" is clearly unnecessary, because I have enabled the export of drawers
> globaly in my .emacs, but anyway...
>
> And here comes something really strange:
>
> David Maus said he copied my example in a fresh file and exported it, and he
> got a correct result. So I too copied my example and inserted it in an emty
> new file --- and it worked, but only once! I tried this now three times:
> Everytime the file is new, the export of drawers works (PDF, html); but
> after the first run every repeated export of drawers fails. And on the first
> run I do not get the nicely formatted drawer display David had (with
> linebreaks after every drawer-line), but a rather cluttered result without
> linebreaks.
>
> If no-one else can reproduce this with orgmode 6.32b, I'll switch to orgmode
> 6.32trans.
>
> Schöne Grüße,
>
> Uwe



  Sebastian

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

* Re: Re: Exporting drawers
  2009-11-11 13:43     ` Sebastian Rose
@ 2009-11-11 14:04       ` Uwe Jochum
  0 siblings, 0 replies; 9+ messages in thread
From: Uwe Jochum @ 2009-11-11 14:04 UTC (permalink / raw)
  To: emacs-orgmode

Sebastian Rose wrote:
> Hi,
> Removing the line
>    %%(diary-anniversary 02 17 1959) Geburtstag: Gerda ist heute \%d Jahre
>    alt!
> helps. I can export again.
> In PDF, the drawers are still absent. They are not in the LaTeX sources
> either.

Sebastian,

o.k., I removed all the anniversary-lines, and after that html-export 
worked, but the drawers are printed without linebreaks, as before. PDF-
export is still not working: no drawers at all. So I could reproduce all 
your (negative) results. Thanks!

Schne Grüße,

Uwe

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

* Re: Exporting drawers
  2009-11-11  9:48 Exporting drawers Uwe Jochum
  2009-11-11 11:24 ` David Maus
  2009-11-11 11:57 ` Carsten Dominik
@ 2009-11-11 20:21 ` Samuel Wales
  2 siblings, 0 replies; 9+ messages in thread
From: Samuel Wales @ 2009-11-11 20:21 UTC (permalink / raw)
  To: Uwe Jochum; +Cc: emacs-orgmode

Off-topic, but:

On 2009-11-11, Uwe Jochum <uwe.jochum@kabelbw.de> wrote:
> I found the idea of maintaining a contacts list in orgmode intriguing and
> went on to import my old data from kde-kontact into orgmode, using drawers
> as the appropriate tool to store the information, like so:
>
> * Musterfrau, Gerda
> %%(diary-anniversary 02 17 1959) Geburtstag: Gerda ist heute \%d Jahre
> alt!
>   :ADRESSE:
>   :Stadt:    Frankfurt am Main
>   :Telephon:   069--7511--2660 (direkt)
>   :Telephon:   069--7511--1666 (Sekretärin)
>   :E-Post:     mailto:g.musterfrau@web.de
>   :END:

I would be curious to know how you do your searches.

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

* Re: Re: Exporting drawers
  2009-11-11 12:55   ` Uwe Jochum
  2009-11-11 13:43     ` Sebastian Rose
@ 2009-11-12  6:02     ` Carsten Dominik
  1 sibling, 0 replies; 9+ messages in thread
From: Carsten Dominik @ 2009-11-12  6:02 UTC (permalink / raw)
  To: Uwe Jochum; +Cc: emacs-orgmode

Hi Uwe,

there was indeed a bug in drawer export, which is now fixed, I hope.

Also, check out the variable org-export-format-drawer-function

HTH

- Carsten

On Nov 11, 2009, at 1:55 PM, Uwe Jochum wrote:

> Carsten Dominik wrote:
>> Do you maybe have a line
>>
>> #+OPTIONS: d:nil
>>
>> in the buffer???
>>
>> - Carsten
>
> Carsten,
>
> no, I haven't. This is what I have:
>
> #+TITLE:     Kontakte
> #+AUTHOR:    Uwe Jochum
> #+EMAIL:     uwe.jochum@xxx.de
> #+DATE:      2009-10-29 Do
> #+DRAWERS:   ADRESSE
> #+LANGUAGE:  de
> #+OPTIONS:   toc:nil  f:t *:t <:t d:t
>
> "d:t" is clearly unnecessary, because I have enabled the export of  
> drawers
> globaly in my .emacs, but anyway...
>
> And here comes something really strange:
>
> David Maus said he copied my example in a fresh file and exported  
> it, and he
> got a correct result. So I too copied my example and inserted it in  
> an emty
> new file --- and it worked, but only once! I tried this now three  
> times:
> Everytime the file is new, the export of drawers works (PDF, html);  
> but
> after the first run every repeated export of drawers fails. And on  
> the first
> run I do not get the nicely formatted drawer display David had (with
> linebreaks after every drawer-line), but a rather cluttered result  
> without
> linebreaks.
>
> If no-one else can reproduce this with orgmode 6.32b, I'll switch to  
> orgmode
> 6.32trans.
>
> Schöne Grüße,
>
> Uwe
>
>
>
>
>
>
> _______________________________________________
> 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

- Carsten

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

end of thread, other threads:[~2009-11-12  6:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11  9:48 Exporting drawers Uwe Jochum
2009-11-11 11:24 ` David Maus
2009-11-11 12:08   ` Uwe Jochum
2009-11-11 11:57 ` Carsten Dominik
2009-11-11 12:55   ` Uwe Jochum
2009-11-11 13:43     ` Sebastian Rose
2009-11-11 14:04       ` Uwe Jochum
2009-11-12  6:02     ` Carsten Dominik
2009-11-11 20:21 ` Samuel Wales

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).