emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Question about org-mode compilation
@ 2011-09-10 17:08 Robert Goldman
  2011-09-11  5:52 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Goldman @ 2011-09-10 17:08 UTC (permalink / raw)
  To: Org Mode

Today I was trying to push to mobile org after an update from git, and
got an invalid function error on org-eval-in-environment.

This macro is defined in org-macs.el and is used in org-agenda.el.

I note that the makefile has org-agenda depending on org.el, but /not/
on org-macs.el.

Is that an error?

Adding that dependency, then making clean and making all fixes things.
But I may not have properly cleaned before my last build, so I'm not sure.

Thanks!
r

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

* Re: Question about org-mode compilation
  2011-09-10 17:08 Question about org-mode compilation Robert Goldman
@ 2011-09-11  5:52 ` David Maus
  2011-09-11 17:59   ` Robert Goldman
  0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2011-09-11  5:52 UTC (permalink / raw)
  To: rpgoldman; +Cc: Org Mode

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

At Sat, 10 Sep 2011 12:08:45 -0500,
Robert Goldman wrote:
>
> Today I was trying to push to mobile org after an update from git, and
> got an invalid function error on org-eval-in-environment.
>
> This macro is defined in org-macs.el and is used in org-agenda.el.
>
> I note that the makefile has org-agenda depending on org.el, but /not/
> on org-macs.el.
>
> Is that an error?
>
> Adding that dependency, then making clean and making all fixes things.
> But I may not have properly cleaned before my last build, so I'm not sure.

Hi Robert,

I checked and don't think the missing dependency in Makefile was cause
of the problem. When org-agenda.el is compiled it requires org.el
which in turn requires org-macs.el -- thus the macro definition is
loaded. Otherwise the compiler would stop.

An invalid function error with a macro is according to my experience
an indicator of mixing up of old and new files. Thus, the make clean
was the action that fixed the issue.

I byte compiled Org and ran a batch-agenda (which uses
org-eval-in-environment) with no error.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

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

* Re: Question about org-mode compilation
  2011-09-11  5:52 ` David Maus
@ 2011-09-11 17:59   ` Robert Goldman
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Goldman @ 2011-09-11 17:59 UTC (permalink / raw)
  To: David Maus; +Cc: Org Mode

On 9/11/11 Sep 11 -12:52 AM, David Maus wrote:
> At Sat, 10 Sep 2011 12:08:45 -0500,
> Robert Goldman wrote:
>>
>> Today I was trying to push to mobile org after an update from git, and
>> got an invalid function error on org-eval-in-environment.
>>
>> This macro is defined in org-macs.el and is used in org-agenda.el.
>>
>> I note that the makefile has org-agenda depending on org.el, but /not/
>> on org-macs.el.
>>
>> Is that an error?
>>
>> Adding that dependency, then making clean and making all fixes things.
>> But I may not have properly cleaned before my last build, so I'm not sure.
> 
> Hi Robert,
> 
> I checked and don't think the missing dependency in Makefile was cause
> of the problem. When org-agenda.el is compiled it requires org.el
> which in turn requires org-macs.el -- thus the macro definition is
> loaded. Otherwise the compiler would stop.
> 
> An invalid function error with a macro is according to my experience
> an indicator of mixing up of old and new files. Thus, the make clean
> was the action that fixed the issue.
> 
> I byte compiled Org and ran a batch-agenda (which uses
> org-eval-in-environment) with no error.

Thanks, I noticed that org.el dependency, but I wasn't sure how
transitive these dependencies were.

I will try to remember to always make clean!

best,
R

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

end of thread, other threads:[~2011-09-11 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-10 17:08 Question about org-mode compilation Robert Goldman
2011-09-11  5:52 ` David Maus
2011-09-11 17:59   ` Robert Goldman

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