From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export problem Date: Fri, 23 Apr 2010 03:32:04 -0400 Message-ID: <6320.1272007924@gamaville.dokosmarshall.org> References: <15190.1271910821@gamaville.dokosmarshall.org> <21380.1271960966@gamaville.dokosmarshall.org> <1935.1271993802@gamaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5EJF-0002JJ-Pj for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 04:32:25 -0400 Received: from [140.186.70.92] (port=41913 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5EJD-0002Ia-TV for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 04:32:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5EJB-0007xb-OU for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 04:32:23 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:54836) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5EJB-0007xS-K0 for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 04:32:21 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L1B005U7JLGLFWC@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 02:32:04 -0500 (CDT) In-reply-to: Message from Nick Dokos of "Thu, 22 Apr 2010 23:36:42 EDT." <1935.1271993802@gamaville.dokosmarshall.org> 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: charles snyder Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Nick Dokos wrote: > charles snyder wrote: > > > Thanks Nick! > > > Glad to help! > BTW, I forgot that you originally reported two problems: the freemind export was one of them, but you also had problems with a PDF export. AFAICT, the solution to the freemind problem could not possibly affect the PDF export, so I assume that the latter is still a problem - is that correct? Thanks, Nick > > On 2 different machines, > > I got a "no match" when I tried C-h f org-export-as-freemind > > and when I followed your instructions: > > > > M-x load-library org-freemind > > followed by C-c C-e m > > > > It worked! > > > > so, when I added: > > > > (load-library "C:/Users/clsnyder/Documents/org-6.33/lisp/org-freemind") to my .emacs, it works! > > > > but I have no clue why it stopped working and why I need to add this when the line above it in .emacs is: > > > > (add-to-list 'load-path "C:/Users/clsnyder/Documents/org-6.33/lisp") > > > > The add-to-list just tells emacs where to find the files that it needs to load. > Because of it, you should be able to load org-freemind using just > > (load-library "org-freemind") > > The loading itself can be done in various ways: explicitly as shown above, or > implicitly through the autoload mechanism. > > In my case, I load org-install.el (in my .emacs). org-install.el contains the following: > > (autoload 'org-export-as-freemind "org-freemind" "\ > Not documented > > \(fn ARG &optional HIDDEN EXT-PLIST TO-BUFFER BODY-ONLY PUB-DIR)" t nil) > > so that when org-export-as-freemind is called, the autoload loads org-freemind.el (or > org-freemind.elc if the compiled file exists), that defines the function and the > call succeeds. > > At least, that's how it *should* work. You could do a little detective work in your > setup to see how things are initialized and why it did not work. > > One hint is that after the autoload is done but before you call the function, > if you say > > C-h f org-export-as-freemind > > it will say > > ,---- > | org-export-as-freemind is an interactive autoloaded Lisp function in > | `org-freemind.el'. > | > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER > | BODY-ONLY PUB-DIR) > | > | Not documented > `---- > > After you call the function once (which completes the loading), > > C-h f org-export-as-freemind > > will say something else: > > ,---- > | org-export-as-freemind is an interactive compiled Lisp function in > | `org-freemind.el'. > | > | (org-export-as-freemind ARG &optional HIDDEN EXT-PLIST TO-BUFFER > | BODY-ONLY PUB-DIR) > | > | Not documented. > `---- > > Of course, in your case, emacs didn't know the function at all, so the > autoload never happened: either you are not loading org-install.el or > org-install.el does not contain the autoload form. > > HTH, > Nick > > > > > > > _______________________________________________ > 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 >