From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: mixed orgmode installation Date: Fri, 3 Jan 2014 12:49:39 -0600 Message-ID: References: <87a9jshdpi.fsf@gmail.com> <20130904150749.GA12670@kuru.dyndns-at-home.com> <1378618836.1967.4.camel@ahc> <20130908151042.GH20690@kuru.dyndns-at-home.com> <878uz7s1au.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz9oY-00011j-2w for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 13:49:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz9oU-000061-5H for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 13:49:46 -0500 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:56398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz9oT-00005g-Ua for emacs-orgmode@gnu.org; Fri, 03 Jan 2014 13:49:42 -0500 Received: by mail-ob0-f179.google.com with SMTP id wm4so16037869obc.10 for ; Fri, 03 Jan 2014 10:49:40 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Justin Gordon Cc: emacs-orgmode On Thu, Jan 2, 2014 at 2:06 AM, Justin Gordon wrote: > Achim Gratz nexgo.de> writes: > >> >> John Hendy writes: >> > Then again, is Worg saying that if `M-x org-version` outputs the >> > "correct" answer... we're all set and there's nothing to worry about? >> >> The output of org-version is determined essentially by checking for two >> files from the installation and comparing where they would be loaded >> from. This catches the most common problems, but certainly not all. In >> particular, it won't see when the load-path has been changed after some >> parts of Org have already been loaded from someplace else (but >> org-reload will give a warning for this case). >> >> Regards, >> Achim. > > > If I byte compile a file, I get this message: > In org-jekyll-publish-to-html: > ox-jekyll.el:280:4:Warning: org-publish-org-to called with 5 arguments, but > accepts only 4 > > This is because my installation is pointing to the emacs default version rather > than my version from git. If I do C-h f and look up this function, I get pointed > to the emacs default version. I had this issue on Windows the other day and had a draft composed asking for help before I realized it was my own issue. I got all kinds of errors like that when I was trying to byte compile via the "Compile without make tools" section on Worg [1]. Turned out I had my load-path pointed to the wrong location after I wiped the old git repo and just cloned a new one in what I thought was a "better/saner" location, forgetting to update .emacs after doing so. It might help if you could respond with the following information (with my example answers provided): 1) how did you download Org and where is the directory located? - I did `git clone http://orgmode.org/org-mode.git` - The dir is at /home/jwhendy/.emacs.d/org.git 2) Please post a minimal emacs config you're trying to use #+begin_src emacs-min (add-to-list 'load-path "~/.emacs.d/org.git/lisp") (add-to-list 'load-path "~/.emacs.d/org.git/contrib/lisp") (add-to-list 'load-path "~/.emacs.d/ess-13.05/lisp") (add-to-list 'load-path "~/.emacs.d/site-lisp") #+end_src 3) What happens when you start emacs with `emacs -Q` from terminal/cmd, then run `M-x load-file` and enter the path to your minimal config from above, and then: - `M-x org-version`: "Org-mode version 8.2.4 (8.2.4-fake @ c:/Users/a1rwhzz/AppData/Roaming/.emacs.d/org.git/lisp/)" - `M-x org-reload`: "Successfully reloaded Org Org-mode version 8.2.4 (8.2.4-fake @ c:/Users/a1rwhzz/AppData/Roaming/.emacs.d/org.git/lisp/)" There might be other pertinent questions, but those are what's coming to mind for me right now. Perhaps your emacs version? > > However, if I do org-version, I get the proper new version. > > However, if I do list-load-path-shadows, I can verify that org-publish is not > shadowed, and that's probably due to the fact that the new file is called > ox-publish. > I agree it sounds like you have something mixed going on. One other possibility... see this thread from when the new exporter was first being pushed out with Org 8.0: - http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg00333.html There are two ways to load backends, which are both listed clearly in the documentation. During my own setup, however, what I did *not* find anywhere in the documentation is how their treatment affects things available in the environment. For example, since adding the backend to the variable org-export-backends doesn't load it until you actually use it... the help for the variables (or at least auto-completing) also isn't available. I ran into this using method 1 originally, then wanting to customize a variable related to, say, ox-odt or other, and Org not finding anything when I did `M-x help RET v RET org-odt-TAB`. Not sure that's what's going on at all, but it might be worth showing us how you are bringing backends in to Org as well. Someone else would know better, but I'm wondering if by chance it could be possible not to have loaded ox-publish (since you haven't published yet), for Org not to find it, and then to resort to searching in the Emacs-bundled Org instead? Far-fetched, but came to mind. [1] http://orgmode.org/worg/org-hacks.html#compiling-org-without-make Best regards, John > How do I fix this??? > > > I've tried > >