From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: org-mode stopped compiling recently Date: Mon, 28 Jun 2010 18:12:08 +0200 Message-ID: References: <87bpaw9dif.fsf@gmail.com> <8739w7d6ny.fsf@gmail.com> <0551C66F-CB8B-40A2-979F-FF5AEB60CC16@gmail.com> <87sk47b3iw.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTIhN-0008CF-V9 for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTIhM-0000m6-DP for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:49 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:48554) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTIhM-0000m0-4H for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 14:04:48 -0400 Received: by wyb39 with SMTP id 39so3768209wyb.0 for ; Mon, 28 Jun 2010 11:04:47 -0700 (PDT) In-Reply-To: <87sk47b3iw.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Daniel Mahler , emacs-orgmode@gnu.org On Jun 28, 2010, at 5:06 PM, Eric Schulte wrote: > Carsten Dominik writes: > >> On Jun 28, 2010, at 8:15 AM, Eric Schulte wrote: >> >>> Thanks Daniel, I've just applied this fix. -- Eric >> >> Hi Eric, >> >> alternatively you could have done >> >> (require 'org-macs) >> or >> (require 'org) >> >> In fact, would it not be reasonable to require org in ob.el? >> > > If I add (require 'org) to ob.el, I get the following error > > In toplevel form: > lisp/org.el:115:1:Error: Recursive `require' for feature `ob' > make: *** [lisp/org.elc] Error 1 Ah, I see. there are these solutions 1. require only org-macs, not org 2. Do not (require ob) in org-mode at all, but make it one of the modules in org-modules, default on. Org modules works around the recursive require by only loading the files when org-mode is activted in a file for the first time. By then, `org' was provided and no conflict occurs. 3. Put the require statement for ob after the (provide 'org) I think either 1 or 2 are good solutions. - Carsten > > as a consequence of requiring ob.el from within org.el. > > If there's a better solution please let me know what I should do. > > Thanks -- Eric > >> >> - Carsten >> >> >>> >>> Daniel Mahler writes: >>> >>>> Hi Eric, >>>> >>>> Thanks for the looking into this. >>>> It looks like the problem is the declare-function macro does not >>>> work >>>> with emacs-22.1 (the one in ubuntu hardy) >>>> It is defined, but undocumented. >>>> Adding >>>> (defmacro declare-function (FN FILE &optional ARGLIST FILEONLY) >>>> nil) >>>> at the top of ob.el seems to fix everything. >>>> >>>> cheers >>>> Daniel >>>> >>>> >>>> >>>> On Mon, Jun 28, 2010 at 3:01 AM, Eric Schulte >>>> wrote: >>>>> Hopefully once your make is completing without errors this problem >>>>> will >>>>> resolve itself. Best -- Eric >>>>> >>>>> Daniel Mahler writes: >>>>> >>>>>> also to load the source i need to do (require 'org) >>>>>> if i just (require 'org-install) and try to open my notes file >>>>>> i get: >>>>>> >>>>>> Debugger entered--Lisp error: (void-variable org-default-notes- >>>>>> file) >>>>>> (find-file org-default-notes-file) >>>>>> >>>>>> thanks >>>>>> daniel >>>>>> >>>>>> On Mon, Jun 28, 2010 at 2:08 AM, Daniel Mahler >>>>>> wrote: >>>>>>> i get: >>>>>>> >>>>>>> ... >>>>>>> In toplevel form: >>>>>>> lisp/babel/ob-table.el:54:1:Error: Symbol's value as variable is >>>>>>> void: show-all >>>>>>> make: *** [lisp/babel/ob-table.elc] Error 1 >>>>>>> >>>>>>> i have tried 'make clean; git pull; make'' over several days >>>>>>> with no change. >>>>>>> this must have happeed only last week or so, >>>>>>> since i had a sucessful sync not long before this started. >>>>>>> >>>>>>> thanks >>>>>>> daniel >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Emacs-orgmode mailing list >>>>>> Please use `Reply All' to send replies to the list. >>>>>> Emacs-orgmode@gnu.org >>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> - Carsten - Carsten