emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error building org-e-publish
@ 2013-01-13 22:58 Michael Gauland
  2013-01-14  3:19 ` J. David Boyd
  2013-01-15 17:49 ` Achim Gratz
  0 siblings, 2 replies; 12+ messages in thread
From: Michael Gauland @ 2013-01-13 22:58 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

I'm having trouble building the latest code from git.

I don't normally use 'publish', but it appears to be required for some
of the exporters I use. I've added it to ORG_ADD_CONTRIB, but it fails
to build:

  Compiling file /home/mike/elisp/org-mode-clean/lisp/org-e-publish.el
at Mon Jan 14 11:51:11 2013
  org-e-publish.el:844:35:Error: Not a lambda list: (quote ignore)

The faulty line is simply
    (org-e-publish-projects project-alist)

Has anyone else run into this?  Any advice would be greatly appreciated.

Kind Regards,
Mike


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

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

* Re: Error building org-e-publish
  2013-01-13 22:58 Error building org-e-publish Michael Gauland
@ 2013-01-14  3:19 ` J. David Boyd
  2013-01-14 20:43   ` Michael Gauland
  2013-01-15 17:49 ` Achim Gratz
  1 sibling, 1 reply; 12+ messages in thread
From: J. David Boyd @ 2013-01-14  3:19 UTC (permalink / raw)
  To: emacs-orgmode

Michael Gauland <mikelygee@no8wireless.co.nz> writes:

> I'm having trouble building the latest code from git.
>
> I don't normally use 'publish', but it appears to be required for some
> of the exporters I use. I've added it to ORG_ADD_CONTRIB, but it fails
> to build:
>
>   Compiling file /home/mike/elisp/org-mode-clean/lisp/org-e-publish.el
> at Mon Jan 14 11:51:11 2013
>   org-e-publish.el:844:35:Error: Not a lambda list: (quote ignore)
>
> The faulty line is simply
>     (org-e-publish-projects project-alist)
>
> Has anyone else run into this?  Any advice would be greatly appreciated.
>
> Kind Regards,
> Mike


Mine builds with no problem at all, using emacs 24.2.92.

You sure you have the latest git source?  I just did an update a moment
ago...

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

* Re: Error building org-e-publish
  2013-01-14  3:19 ` J. David Boyd
@ 2013-01-14 20:43   ` Michael Gauland
  2013-01-14 21:18     ` Nick Dokos
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Gauland @ 2013-01-14 20:43 UTC (permalink / raw)
  To: emacs-orgmode

J. David Boyd <david <at> adboyd.com> writes:

> Mine builds with no problem at all, using emacs 24.2.92.
> 
> You sure you have the latest git source?  I just did an update a moment
> ago...
> 

Thanks for the info. I've got the latest git, but I'm running emacs 23.2 (under
Debian).
I can evaluate all the code on org-e-publish.el, but get the error when I try to
byte-compile it.

I was able to build in on my Windows machine, which uses emacs 24.

Anyone able to build on emacs 23?  

Kind Regards,
Mike

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

* Re: Error building org-e-publish
  2013-01-14 20:43   ` Michael Gauland
@ 2013-01-14 21:18     ` Nick Dokos
  2013-01-14 21:51       ` Michael Gauland
  0 siblings, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2013-01-14 21:18 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Michael Gauland <mikelygee@no8wireless.co.nz> wrote:

> J. David Boyd <david <at> adboyd.com> writes:
> 
> > Mine builds with no problem at all, using emacs 24.2.92.
> > 
> > You sure you have the latest git source?  I just did an update a moment
> > ago...
> > 
> 
> Thanks for the info. I've got the latest git, but I'm running emacs 23.2 (under
> Debian).
> I can evaluate all the code on org-e-publish.el, but get the error when I try to
> byte-compile it.
> 
> I was able to build in on my Windows machine, which uses emacs 24.
> 
> Anyone able to build on emacs 23?  
> 

I modified local.mk to use emacs23 and set

ORG_ADD_CONTRIB = org-export org-e-*

I then did ``make compile'' - I get the following errors/warning:

,----
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-e-publish.el...
| 
| In toplevel form:
| org-e-publish.el:844:35:Error: Not a lambda list: (quote ignore)
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-e-texinfo.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-e-texinfo.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-element.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-element.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-entities.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-entities.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-eshell.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-eshell.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-exp-blocks.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-exp-blocks.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-exp.el...
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-exp.elc
| Compiling /home/nick/src/emacs/org/org-mode/lisp/org-export.el...
| 
| In toplevel form:
| org-export.el:5242:59:Warning: variable assignment to constant
|     `org-export-stack-mode-map'
| Wrote /home/nick/src/emacs/org/org-mode/lisp/org-export.elc
`----

I looked at the first one only:

Not sure why emacs24 does not complain but org-e-publish contains this bit of
code:
,----
|         ...
| 	(org-export-async-start 'ignore
| 	  `(let ((org-e-publish-use-timestamps-flag
| 		  (if ',force nil ,org-e-publish-use-timestamps-flag)))
| 	     (org-e-publish-projects ',project-alist)))
|         ...
`----

and org-export-async-start in contrib/lisp/org-export.el says:

,----
| (defmacro org-export-async-start  (fun &rest body)
|   "Call function FUN on the results returned by BODY evaluation.
|   ...
`----

so there does seem to be a mismatch.

HTH,
Nick

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

* Re: Error building org-e-publish
  2013-01-14 21:18     ` Nick Dokos
@ 2013-01-14 21:51       ` Michael Gauland
  2013-01-14 22:11         ` Nick Dokos
  2013-01-15 18:52         ` Achim Gratz
  0 siblings, 2 replies; 12+ messages in thread
From: Michael Gauland @ 2013-01-14 21:51 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos <nicholas.dokos <at> hp.com> writes:

> Not sure why emacs24 does not complain but org-e-publish contains this bit of
> code:
> ,----
> |         ...
> | 	(org-export-async-start 'ignore
> | 	  `(let ((org-e-publish-use-timestamps-flag
> | 		  (if ',force nil ,org-e-publish-use-timestamps-flag)))
> | 	     (org-e-publish-projects ',project-alist)))
> |         ...
> `----
> 
> and org-export-async-start in contrib/lisp/org-export.el says:
> 
> ,----
> | (defmacro org-export-async-start  (fun &rest body)
> |   "Call function FUN on the results returned by BODY evaluation.
> |   ...
> `----
> 
> so there does seem to be a mismatch.

Thanks, Nick. If I change 'ignore to ignore (without the tick), it builds for me
on both systems.

Could you confirm that fixes it for you as well? If so, I'll submit a patch.

Thanks for you help.

--Mike

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

* Re: Error building org-e-publish
  2013-01-14 21:51       ` Michael Gauland
@ 2013-01-14 22:11         ` Nick Dokos
  2013-01-15  3:31           ` Michael Gauland
  2013-01-15 18:52         ` Achim Gratz
  1 sibling, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2013-01-14 22:11 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Michael Gauland <mikelygee@no8wireless.co.nz> wrote:

> Nick Dokos <nicholas.dokos <at> hp.com> writes:
> 
> > Not sure why emacs24 does not complain but org-e-publish contains this bit of
> > code:
> > ,----
> > |         ...
> > | 	(org-export-async-start 'ignore
> > | 	  `(let ((org-e-publish-use-timestamps-flag
> > | 		  (if ',force nil ,org-e-publish-use-timestamps-flag)))
> > | 	     (org-e-publish-projects ',project-alist)))
> > |         ...
> > `----
> > 
> > and org-export-async-start in contrib/lisp/org-export.el says:
> > 
> > ,----
> > | (defmacro org-export-async-start  (fun &rest body)
> > |   "Call function FUN on the results returned by BODY evaluation.
> > |   ...
> > `----
> > 
> > so there does seem to be a mismatch.
> 
> Thanks, Nick. If I change 'ignore to ignore (without the tick), it builds for me
> on both systems.
> 

Not sure I understand. Can you explain why that would be a good fix?

Thanks,
Nick

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

* Re: Error building org-e-publish
  2013-01-14 22:11         ` Nick Dokos
@ 2013-01-15  3:31           ` Michael Gauland
  2013-01-15  4:10             ` Nick Dokos
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Gauland @ 2013-01-15  3:31 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

On 15/01/13 11:11, Nick Dokos wrote:
> Not sure I understand. Can you explain why that would be a good fix?
>
Looking further into it, I'm not sure it *is* right. I'll see if I can
track down the source of those lines, and who contributed them, before
second-guessing the intent.




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

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

* Re: Error building org-e-publish
  2013-01-15  3:31           ` Michael Gauland
@ 2013-01-15  4:10             ` Nick Dokos
  2013-01-15  4:19               ` Nick Dokos
  0 siblings, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2013-01-15  4:10 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Michael Gauland <mikelygee@no8wireless.co.nz> wrote:

> On 15/01/13 11:11, Nick Dokos wrote:
> > Not sure I understand. Can you explain why that would be a good fix?
> >
> Looking further into it, I'm not sure it *is* right. I'll see if I can
> track down the source of those lines, and who contributed them, before
> second-guessing the intent.
> 

That'd probably be Nicolas Goaziou's async export stuff (commit
5319cec2).

Nick

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

* Re: Error building org-e-publish
  2013-01-15  4:10             ` Nick Dokos
@ 2013-01-15  4:19               ` Nick Dokos
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Dokos @ 2013-01-15  4:19 UTC (permalink / raw)
  To: Michael Gauland; +Cc: emacs-orgmode

Nick Dokos <nicholas.dokos@hp.com> wrote:

> Michael Gauland <mikelygee@no8wireless.co.nz> wrote:
> 
> > On 15/01/13 11:11, Nick Dokos wrote:
> > > Not sure I understand. Can you explain why that would be a good fix?
> > >
> > Looking further into it, I'm not sure it *is* right. I'll see if I can
> > track down the source of those lines, and who contributed them, before
> > second-guessing the intent.
> > 
> 
> That'd probably be Nicolas Goaziou's async export stuff (commit
> 5319cec2).
> 

Sorry, missed a few - there seem to be three main ones (and two
more on particular back-ends):

06872a4 export back-ends: Activate asynchronous export
5319cec org-e-publish: Activate asynchronous publishing
ffb630b org-export: Add asynchronous process wrapper for export

Nick

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

* Re: Error building org-e-publish
  2013-01-13 22:58 Error building org-e-publish Michael Gauland
  2013-01-14  3:19 ` J. David Boyd
@ 2013-01-15 17:49 ` Achim Gratz
  1 sibling, 0 replies; 12+ messages in thread
From: Achim Gratz @ 2013-01-15 17:49 UTC (permalink / raw)
  To: emacs-orgmode

Michael Gauland writes:
> I don't normally use 'publish', but it appears to be required for some
> of the exporters I use. I've added it to ORG_ADD_CONTRIB, but it fails
> to build:

You need a few more files than just org-e-publish, so please post the
output of 'make config'.

>   Compiling file /home/mike/elisp/org-mode-clean/lisp/org-e-publish.el
> at Mon Jan 14 11:51:11 2013
>   org-e-publish.el:844:35:Error: Not a lambda list: (quote ignore)

I remember seeing this error before, but not with the current version
and Emacs 23.4.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

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

* Re: Error building org-e-publish
  2013-01-14 21:51       ` Michael Gauland
  2013-01-14 22:11         ` Nick Dokos
@ 2013-01-15 18:52         ` Achim Gratz
  2013-01-16 18:30           ` Nicolas Goaziou
  1 sibling, 1 reply; 12+ messages in thread
From: Achim Gratz @ 2013-01-15 18:52 UTC (permalink / raw)
  To: emacs-orgmode

Michael Gauland writes:
> Thanks, Nick. If I change 'ignore to ignore (without the tick), it builds for me
> on both systems.

It may build, but it is completely wrong.  The error is triggered during
expanding the macro and it seems that the special reader form #' does in
fact expect a lambda list in Emacs 23 (as indicated by the error
message) while it also recognizes a function symbol in Emacs 24.  Using
a normal quote should be possible here, but I'll leave it to Nicolas to
commit any changes.

--8<---------------cut here---------------start------------->8---
diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el
index d2398a7..8702e41 100644
--- a/contrib/lisp/org-export.el
+++ b/contrib/lisp/org-export.el
@@ -4988,7 +4988,7 @@ (defmacro org-export-async-start  (fun &rest body)
           ;; Set-up sentinel in order to catch results.
           (set-process-sentinel
            ,process
-           (let ((handler #',fun))
+           (let ((handler ',fun))
              `(lambda (p status)
                 (let ((proc-buffer (process-buffer p)))
                   (when (eq (process-status p) 'exit)
--8<---------------cut here---------------end--------------->8---


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

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

* Re: Error building org-e-publish
  2013-01-15 18:52         ` Achim Gratz
@ 2013-01-16 18:30           ` Nicolas Goaziou
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2013-01-16 18:30 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Hello,

Achim Gratz <Stromeko@nexgo.de> writes:

> Michael Gauland writes:
>> Thanks, Nick. If I change 'ignore to ignore (without the tick), it builds for me
>> on both systems.
>
> It may build, but it is completely wrong.  The error is triggered during
> expanding the macro and it seems that the special reader form #' does in
> fact expect a lambda list in Emacs 23 (as indicated by the error
> message) while it also recognizes a function symbol in Emacs 24.  Using
> a normal quote should be possible here, but I'll leave it to Nicolas to
> commit any changes.

I have applied the change. Thank you.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2013-01-16 18:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-13 22:58 Error building org-e-publish Michael Gauland
2013-01-14  3:19 ` J. David Boyd
2013-01-14 20:43   ` Michael Gauland
2013-01-14 21:18     ` Nick Dokos
2013-01-14 21:51       ` Michael Gauland
2013-01-14 22:11         ` Nick Dokos
2013-01-15  3:31           ` Michael Gauland
2013-01-15  4:10             ` Nick Dokos
2013-01-15  4:19               ` Nick Dokos
2013-01-15 18:52         ` Achim Gratz
2013-01-16 18:30           ` Nicolas Goaziou
2013-01-15 17:49 ` Achim Gratz

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