From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export problem Date: Thu, 22 Apr 2010 23:36:42 -0400 Message-ID: <1935.1271993802@gamaville.dokosmarshall.org> References: <15190.1271910821@gamaville.dokosmarshall.org> <21380.1271960966@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 1O59hO-0004hu-QW for emacs-orgmode@gnu.org; Thu, 22 Apr 2010 23:37:02 -0400 Received: from [140.186.70.92] (port=60092 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O59hN-0004hf-1J for emacs-orgmode@gnu.org; Thu, 22 Apr 2010 23:37:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O59hL-0005oK-9i for emacs-orgmode@gnu.org; Thu, 22 Apr 2010 23:37:00 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:48744) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O59hL-0005oC-6Q for emacs-orgmode@gnu.org; Thu, 22 Apr 2010 23:36:59 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L1B008SM8P6E0C7@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 22 Apr 2010 22:36:43 -0500 (CDT) In-reply-to: Message from charles snyder of "Thu, 22 Apr 2010 20:33:18 CDT." 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 charles snyder wrote: > Thanks Nick! > Glad to help! > 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