Re: [Orgmode] Re: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Dale Smith
Baoqiu Cui  writes:

>> This bug may be related to another I noticed.  I don't yet have a clear
>> picture yet of what is (not) going on.  Basically, the time reported
>> by modification time was just plain wrong.  By over a day.  And I
>> *know* I just saved the file.
>>
>> I'm guessing now that the property was cached.  If so, that property
>> should *not* be. It really needs to be fresh every time an export is
>> done.
>
> I am not able to reproduce this problem.  I tried adding the following
> line in an Org file
>
>{{{modification-time(%Y-%m-%d %H:%M:%S)}}}
>
> and then tried to save the file multiple times with minor changes, and
> was able to consistently get the correct time in the exported DocBook
> file.

Indeed is *is* now working correctly.  So I guessing that the time was
"frozen" at the point I did an html export.  Now that the docbook
exporter is generating the properties, the time is being updated.
Yay!

Thanks again,
  -Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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


[Orgmode] Re: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Baoqiu Cui
Dale Smith  writes:

> Baoqiu Cui  writes:
>
>> Thanks for reporting this bug.  For some reason I missed the coverage of
>> macro support in DocBook exporter, and the bug was caused by an
>> "optimization" that I thought I did in the code...  Variable
>> org-export-opt-plist should have been set but it was not in DocBook
>> exporter.
>>
>> Attached please find the patch for the fix.  Please let me know if it
>> works.
>
> Works great!

Thanks for the confirmation.

> This bug may be related to another I noticed.  I don't yet have a clear
> picture yet of what is (not) going on.  Basically, the time reported
> by modification time was just plain wrong.  By over a day.  And I
> *know* I just saved the file.
>
> I'm guessing now that the property was cached.  If so, that property
> should *not* be. It really needs to be fresh every time an export is
> done.

I am not able to reproduce this problem.  I tried adding the following
line in an Org file

   {{{modification-time(%Y-%m-%d %H:%M:%S)}}}

and then tried to save the file multiple times with minor changes, and
was able to consistently get the correct time in the exported DocBook
file.

Baoqiu



___
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


Re: [Orgmode] Re: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Dale Smith
Baoqiu Cui  writes:

> Thanks for reporting this bug.  For some reason I missed the coverage of
> macro support in DocBook exporter, and the bug was caused by an
> "optimization" that I thought I did in the code...  Variable
> org-export-opt-plist should have been set but it was not in DocBook
> exporter.
>
> Attached please find the patch for the fix.  Please let me know if it
> works.

Works great!

This bug may be related to another I noticed.  I don't yet have a clear
picture yet of what is (not) going on.  Basically, the time reported
by modification time was just plain wrong.  By over a day.  And I
*know* I just saved the file.

I'm guessing now that the property was cached.  If so, that property
should *not* be. It really needs to be fresh every time an export is
done.

-Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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


[Orgmode] Re: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Baoqiu Cui
Hi Dale,

Dale Smith  writes:

> {{{maxro}}} expansion does not happen for docbook export until an html
> export is done.  After that, macros seems to be expanded properly for
> docbook export.

Thanks for reporting this bug.  For some reason I missed the coverage of
macro support in DocBook exporter, and the bug was caused by an
"optimization" that I thought I did in the code...  Variable
org-export-opt-plist should have been set but it was not in DocBook
exporter.

Attached please find the patch for the fix.  Please let me know if it
works.

Thanks,
Baoqiu

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index eab30d8..11f65e3 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -419,9 +419,10 @@ publishing directory."
 			 (+ (funcall outline-level)
 (if org-odd-levels-only 1 0)))
 			 0))
-	 (opt-plist (if subtree-p
-			(org-export-add-subtree-options opt-plist rbeg)
-		  opt-plist))
+	 (opt-plist (setq org-export-opt-plist
+			  (if subtree-p
+			  (org-export-add-subtree-options opt-plist rbeg)
+			opt-plist)))
 	 ;; The following two are dynamically scoped into other
 	 ;; routines below.
 	 (org-current-export-dir
___
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