Re: [O] Worg publishing issue

2013-02-13 Thread Suvayu Ali
On Wed, Feb 13, 2013 at 06:32:46PM +0100, Bastien wrote:
> 
> The problem was not in your file at all, it was in a bug I introduced
> in the maint branch, it is fixed now.  Worg is wide open to new contribs!

Thanks a lot Bastien!

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Worg publishing issue

2013-02-13 Thread Bastien
Hi Suvayu,

Suvayu Ali  writes:

> In my file there are no begin_src blocks, however I do have
> begin_example blocks like the following:
>
>   #+begin_example
> ,#+LaTeX_CLASS: beamer
> ,#+LaTeX_CLASS_OPTIONS: [smaller,presentation]
> ,#+BEAMER_THEME: default
>   #+end_example
>
> I have not been following the list very closely for the last 5-6 months
> (too many deadlines in real life :(), has the above escaping syntax been
> changed?

The problem was not in your file at all, it was in a bug I introduced
in the maint branch, it is fixed now.  Worg is wide open to new contribs!

Thanks,

-- 
 Bastien



Re: [O] Worg publishing issue

2013-02-13 Thread Bastien
Hi Nicolas,

Nicolas Goaziou  writes:

> Bastien  writes:
>
>> 2 problems, a trivial one and a let's-prepare-for-headache one:
>>
>> 1. `org-publish-org-to-html' does not exist in the new export/publish
>> libraries -- Nicolas, would that be enough to have aliases here
>> (from org-publish-org-to-html to org-html-publish-to-html)?  I
>> guess many people rely on thse org-publish-org-to* functions.
>
> Publishing functions have been moved into their respective back-end.
> That way, ox-publish.el doesn't have to know about every back-end
> defined.

Thanks -- so that's not a problem for Worg, which uses Org from the
maint branch for publishing.  I've just fixed the bug in maint that
prevented Worg from publishing correctly.

> It's not very clean, but you can probably define aliases in
> ox-publish.el, since real publishing functions should be autoloaded
> anyway. If you do so, I suggest to, at least, provide a deprecation
> notice.*

I don't plan to add those aliases, let's move forward and add the
deprecation notice in the 8.0 release announcement (and on Worg.)

Thanks,

-- 
 Bastien



Re: [O] Worg publishing issue

2013-02-08 Thread Thorsten Jolitz
Suvayu Ali  writes:

ups, your probably did not refer to these git log links but to the (not)
published worg-site. sorry for the misunderstanding ...

> Footnotes:
>
> [1] 
> 
> [2] 
> 

-- 
cheers,
Thorsten




Re: [O] Worg publishing issue

2013-02-08 Thread Thorsten Jolitz
Suvayu Ali  writes:

> I still see issues with the publishing.  My previous commit[1] to the FAQ
> was not published.  

I actually looked up the link after your post and everything looked
fine. 

> The post-commit hook output had timed out on my end
> then.  I had thought that was probably some network issue on my side but
> that doesn't seem to be the case.  When I tried to push some more edits[2]
> to that entry, I see the following message
>
> remote: Worg publish process 11929 is still running...
>
> Can someone please take a look?

I just looked up your second link, and everything looks fine again, here
is the unformatted version of what I see:

,--
| cgit logo   index : worg.git
| Org community-driven documentation and code snippets
| summaryrefslogtreecommitdiff
| diff options
| context:
| space:  
| mode:   
| 
| author  Suvayu Ali 2013-02-08 22:48:12 
(GMT)
| committer   Suvayu Ali 2013-02-08 
22:48:12 (GMT)
| commit  12fadc1554816ecd21fddc0af589070a99e94245 (patch)
| tree7fe71f08c39d9dbb6c2ab3b6fbc264d7d66f12b0
| parent  e6a51c5a553d6ab4d164af7d1ce54fbc5b5028a0 (diff)
| downloadworg-12fadc1554816ecd21fddc0af589070a99e94245.zip
| worg-12fadc1554816ecd21fddc0af589070a99e94245.tar.gz
| Update new exporter switch FAQHEADmaster
| Diffstat
| -rw-r--r--  org-faq.org 14  
| 
| 1 files changed, 9 insertions, 5 deletions
| diff --git a/org-faq.org b/org-faq.org
| index 9df7818..7ea4087 100644
| --- a/org-faq.org
| +++ b/org-faq.org
| @@ -316,15 +316,19 @@ about the number of list readers.
| Some quick notes on how to switch to the new exporter.
| -1. Export engine renamed: org-export → ox
| -2. Backend requires renamed: org-e-* → ox-*
| -3. All backend specific variables and functions renamed:
| +1. If you had already been using the new exporter from contrib, you
| + should remove the following lines from your local.mk:
| + : ORG_ADD_CONTRIB = org-e-*
| + followed by a =make clean=, before you do =git pull=.
| +2. Export engine renamed: org-export → ox
| +3. Backend requires renamed: org-e-* → ox-*
| +4. All backend specific variables and functions renamed:
| - org-export-* → org-* (e.g. org-html-xml-declaration, ..)
| - org-e-* → org-* (e.g. org-latex-classes, org-ascii-bullets, ..)
| -4. Generic export variables retain the name org-export-*
| +5. Generic export variables retain the name org-export-*
| (e.g. org-export-dispatch-use-expert-ui,
| org-export-filter-headline-functions, ..)
| -5. org-latex-to-pdf-process has been renamed to org-latex-pdf-process
| +6. org-latex-to-pdf-process has been renamed to org-latex-pdf-process
| 7. This is a guess, export snippets and backend symbols renamed:
| - e- → 
| generated by cgit v0.9.0.3-65-g4555 at 2013-02-08 23:32:04 (GMT)
`--

> [2] 
> 

-- 
cheers,
Thorsten




Re: [O] Worg publishing issue

2013-02-08 Thread Suvayu Ali
On Wed, Feb 06, 2013 at 02:19:03PM +0100, Suvayu Ali wrote:

[...]

> But I see that it is not being published.  I got the following
> publishing error after pushing my commit.
> 
> remote: Publishing file
> /home/emacs/git/worg/org-tutorials/org-beamer/org-e-beamer.org using
> `org-publish-org-to-html'
> remote: Exporting...
> remote: Wrong type argument: stringp, nil
> remote: worg publish process 16964 exited at 02/05/13@07:01:27

I still see issues with the publishing.  My previous commit[1] to the FAQ
was not published.  The post-commit hook output had timed out on my end
then.  I had thought that was probably some network issue on my side but
that doesn't seem to be the case.  When I tried to push some more edits[2]
to that entry, I see the following message

remote: Worg publish process 11929 is still running...

Can someone please take a look?

Cheers,


Footnotes:

[1] 

[2] 


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Worg publishing issue

2013-02-07 Thread Nicolas Goaziou
Hello,

Bastien  writes:

> 2 problems, a trivial one and a let's-prepare-for-headache one:
>
> 1. `org-publish-org-to-html' does not exist in the new export/publish
> libraries -- Nicolas, would that be enough to have aliases here
> (from org-publish-org-to-html to org-html-publish-to-html)?  I
> guess many people rely on thse org-publish-org-to* functions.

Publishing functions have been moved into their respective back-end.
That way, ox-publish.el doesn't have to know about every back-end
defined.

It's not very clean, but you can probably define aliases in
ox-publish.el, since real publishing functions should be autoloaded
anyway. If you do so, I suggest to, at least, provide a deprecation
notice.


Regards,

-- 
Nicolas Goaziou



Re: [O] Worg publishing issue

2013-02-07 Thread Bastien
Hi Suvayu,

Suvayu Ali  writes:

> Amidsts all the commotion about documentation for the new exporter, I
> committed a very early incomplete draft article documenting the new
> beamer exporter.
>
> 

Thanks for this!

> But I see that it is not being published.  

I just published it:
http://orgmode.org/worg/org-tutorials/org-beamer/org-e-beamer.html

> I got the following
> publishing error after pushing my commit.
>
> remote: Publishing file
> /home/emacs/git/worg/org-tutorials/org-beamer/org-e-beamer.org using
> `org-publish-org-to-html'
> remote: Exporting...
> remote: Wrong type argument: stringp, nil
> remote: worg publish process 16964 exited at 02/05/13@07:01:27
>
> Any ideas?

2 problems, a trivial one and a let's-prepare-for-headache one:

1. `org-publish-org-to-html' does not exist in the new export/publish
libraries -- Nicolas, would that be enough to have aliases here
(from org-publish-org-to-html to org-html-publish-to-html)?  I
guess many people rely on thse org-publish-org-to* functions.

2. Worg is published using the maint branch of org-mode.git.  Which
   means that neither the new exporter nor the new way of escaping Org
   syntax in src code blocks are available...

   My guess is that your file org-e-beamer.org uses the new syntax for
   src code blocks -- I had to use the org-mode.git *master* branch to
   publish it correctly.

   We will need to update each begin_src block in Worg in order to use
   a recent org-mode.git for publishing.

Here you go,

-- 
 Bastien



Re: [O] Worg publishing issue

2013-02-07 Thread Suvayu Ali
Hi Bastien,

On Thu, Feb 07, 2013 at 09:42:15AM +0100, Bastien wrote:
> 
> > But I see that it is not being published.  
> 
> I just published it:
> http://orgmode.org/worg/org-tutorials/org-beamer/org-e-beamer.html
> 

Thanks!

> > I got the following
> > publishing error after pushing my commit.
> >
> > remote: Publishing file
> > /home/emacs/git/worg/org-tutorials/org-beamer/org-e-beamer.org using
> > `org-publish-org-to-html'
> > remote: Exporting...
> > remote: Wrong type argument: stringp, nil
> > remote: worg publish process 16964 exited at 02/05/13@07:01:27
> >
> > Any ideas?
> 
> 2 problems, a trivial one and a let's-prepare-for-headache one:
> 
> 1. `org-publish-org-to-html' does not exist in the new export/publish
> libraries -- Nicolas, would that be enough to have aliases here
> (from org-publish-org-to-html to org-html-publish-to-html)?  I
> guess many people rely on thse org-publish-org-to* functions.
> 
> 2. Worg is published using the maint branch of org-mode.git.  Which
>means that neither the new exporter nor the new way of escaping Org
>syntax in src code blocks are available...
> 
>My guess is that your file org-e-beamer.org uses the new syntax for
>src code blocks -- I had to use the org-mode.git *master* branch to
>publish it correctly.
> 
>We will need to update each begin_src block in Worg in order to use
>a recent org-mode.git for publishing.
> 

In my file there are no begin_src blocks, however I do have
begin_example blocks like the following:

  #+begin_example
,#+LaTeX_CLASS: beamer
,#+LaTeX_CLASS_OPTIONS: [smaller,presentation]
,#+BEAMER_THEME: default
  #+end_example

I have not been following the list very closely for the last 5-6 months
(too many deadlines in real life :(), has the above escaping syntax been
changed?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Worg publishing issue

2013-02-06 Thread Nick Dokos
Suvayu Ali  wrote:

> Hello Worgers,
> 
> Amidsts all the commotion about documentation for the new exporter, I
> committed a very early incomplete draft article documenting the new
> beamer exporter.
> 
> 
> 
> But I see that it is not being published.  I got the following
> publishing error after pushing my commit.
> 
> remote: Publishing file
> /home/emacs/git/worg/org-tutorials/org-beamer/org-e-beamer.org using
> `org-publish-org-to-html'
> remote: Exporting...
> remote: Wrong type argument: stringp, nil
> remote: worg publish process 16964 exited at 02/05/13@07:01:27
> 
> Any ideas?
> 

Just to add another data point (or perhaps more confusion): I checked
out worg after your submission and tried my local batch build. I get the
same error but from org-hacks.org. I cleaned out the timestamps and
remade: org-hacks.org was again the first culprit. When I try publishing
it interactively, it succeeds. I added a (setq debug-on-error t) to my
batch init file and I get the attached backtrace - no idea what's causing
it.

NB: it didn't republish org-hacks since it is done already, so the backtrace
happened on org-annotation-helper.org. I expect that if I try publishing
it interactively, it will succeed and I'll get a backtrace on some other
file, further down in the publishing sequence. AFAICT, the backtrace on
org-hacks.org and the backtrace on org-annotation-helper.org are the same.

Nick


Publishing file /home/nick/src/emacs/org/Worg/org-contrib/org-annotation-helper.org using `org-publish-org-to-html'
Exporting...
Loading cc-langs...
...
  org-export-replace-src-segments-and-examples()
  (progn (erase-buffer) (insert string) (setq case-fold-search t) (let ((inhibit-read-only t)) (remove-text-properties (point-min) (point-max) (quote (read-only t (org-export-kill-licensed-text) (let ((org-inhibit-startup t)) (org-mode)) (setq case-fold-search t) (org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-remove-tasks (plist-get parameters :tasks)) (if (plist-get parameters :footnotes) (progn (org-footnote-normalize nil parameters))) (org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (org-export-blocks-preprocess) (org-export-mark-list-properties) (org-export-replace-src-segments-and-examples) (org-export-protect-colon-examples) (org-export-convert-protected-spaces) (setq target-alist (org-export-define-heading-targets target-alist)) (run-hooks (quote org-export-preprocess-after-headline-targets-hook)) (org-export-remember-html-container-classes) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (if (plist-get parameters :skip-before-1st-heading) (progn (goto-char (point-min)) (if (re-search-forward "^\\(#.*\n\\)?\\*+[ 	]" nil t) (progn (delete-region (point-min) (match-beginning 0)) (goto-char (point-min)) (insert "\n") (if (plist-get parameters :add-text) (progn (goto-char (point-min)) (insert (plist-get parameters :add-text) "\n"))) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (if (plist-get parameters :timestamps) nil (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes target-alist)) (org-export-mark-radio-links) (run-hooks (quote org-export-preprocess-after-radio-targets-hook)) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) ...)
  (unwind-protect (progn (erase-buffer) (insert string) (setq case-fold-search t) (let ((inhibit-read-only t)) (remove-text-properties (point-min) (point-max) (quote (read-only t (org-export-kill-licensed-text) (let ((org-inhibit-startup t)) (org-mode)) (setq case-fold-search t) (org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-exp

[O] Worg publishing issue

2013-02-06 Thread Suvayu Ali
Hello Worgers,

Amidsts all the commotion about documentation for the new exporter, I
committed a very early incomplete draft article documenting the new
beamer exporter.



But I see that it is not being published.  I got the following
publishing error after pushing my commit.

remote: Publishing file
/home/emacs/git/worg/org-tutorials/org-beamer/org-e-beamer.org using
`org-publish-org-to-html'
remote: Exporting...
remote: Wrong type argument: stringp, nil
remote: worg publish process 16964 exited at 02/05/13@07:01:27

Any ideas?

-- 
Suvayu

Open source is the future. It sets us free.