Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize info files without .info file extension (org-mode recipe) #821

Closed
markusbaden opened this issue Jul 27, 2012 · 6 comments
Closed

Comments

@markusbaden
Copy link

When installing org-mode via the recipe provided with el-get, the documentation is generated in a info file "org" (no filename extension) in the subdirectory "doc". The recipe specifies the subdirectory in the :info property, but the info browser (C-h i) does not find the org-mode info after the installation.

Running "cp org org.info" in the doc directory fixes this and the org-mode documentation is displayed correctly in the info browser. It seems that el-get assumes that all info files end in .info, which might not be the case.

See thread on org-mode mailing list for reference: http://thread.gmane.org/gmane.emacs.orgmode/58111

@SkydiveMike
Copy link
Contributor

I can confirm the behavior and the corresponding failure to find and use the correct Org mode documentation.

@SkydiveMike
Copy link
Contributor

A day later, and now there is multiple things going on. My setup is Emacs 24.1 for OS X (from http://emacsformacosx.com). There is an artifact from that automatic build process that makes Info-default-directory-list include /Users/david/src/emacs-dev/ftp-versions/emacs-24.1/nextstep/Emacs.app/Contents/Resources/share/info/. This, combined with the final install of Emacs in /Applications/Emacs.app confuses the path setting mechanism in info.el in some way I can't fathom. The end result was that, in all cases, /Applications/Emacs.app/Contents/Resources/info was the first item in Info-directory-list after el-get did it's work. (Info-directory-list would be the the local install, followed by el-get's settings, followed by any other directories in Info-default-directory-list).

The outcome of this mess was that the version of Org mode built into Emacs would always have it's info file earlier in the path than the one from the El-get install of Org mode. Therefore <f1> i, m org <ret> would always show the old info file from the Emacs installation.

Once I fixed up my various info paths (I just did it manually before I call (el-get 'sync my-packages)) everything works.

I get the correct version of Org mode info (This manual is for Org version 7.8.11 (release_7.8.11-287-g46daa1)) without any changes to el-get and without cp org org.info in the doc folder of Org mode.

I no longer think this issue is valid.

@markusbaden
Copy link
Author

Tried to follow your recipe and see whether that would work on Ubuntu as well. I could not find (with C-h v) Info-directory-list. The only familiar variable is Info-default-directory-list, which is set to

("/home/username/.emacs.d/el-get/org-mode/doc" "/home/username/.emacs.d/el-get/el-get" "/usr/local/share/info/" "/usr/local/info/" "/usr/local/gnu/info/" "/usr/local/gnu/lib/info/" "/usr/local/gnu/lib/emacs/info/" "/usr/local/emacs/info/" "/usr/local/lib/info/" "/usr/local/lib/emacs/info/" "/usr/share/info/emacs-24" "/usr/share/info/" "/usr/share/info/")

My install is on a fresh Ubuntu box, with the emacs24 build from https://launchpad.net/~cassou/+archive/emacs. It seems that in my case the path is set fine. If org/doc is on the Info-directory-list, should emacs find the doc file "org" even without extension, or do I have to tell emacs differently? It seems that it only looks for files with .info extension (from the cp org org.info fix).

@SkydiveMike
Copy link
Contributor

Tried to follow your recipe and see whether that would work on Ubuntu as well. I could not find (with C-h v) Info-directory-list. The only familiar variable is Info-default-directory-list, which is set to

("/home/username/.emacs.d/el-get/org-mode/doc" "/home/username/.emacs.d/el-get/el-get" "/usr/local/share/info/" "/usr/local/info/" "/usr/local/gnu/info/" "/usr/local/gnu/lib/info/" "/usr/local/gnu/lib/emacs/info/" "/usr/local/emacs/info/" "/usr/local/lib/info/" "/usr/local/lib/emacs/info/" "/usr/share/info/emacs-24" "/usr/share/info/" "/usr/share/info/")

You definitely do not have the path problem that I had.

My install is on a fresh Ubuntu box, with the emacs24 build from https://launchpad.net/~cassou/+archive/emacs.

Is that the official 24.1 release, or something newer? My emacs-version is:

GNU Emacs 24.1.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-06-10 on bob.porkrind.org

It seems that in my case the path is set fine. If org/doc is on the Info-directory-list, should emacs find the doc file "org" even without extension, or do I have to tell emacs differently? It seems that it only looks for files with .info extension (from the cp org org.info fix).

Finding it without the .info extension and no other changes is what mine is doing:

$ ls doc/org.info
ls: doc/org.info: No such file or directory

Now, when I do <f1> i, followed by m org mode <ret>, I get an Org info page with:

This manual is for Org version 7.8.11 (release_7.8.11-287-g46daa1).

@dimitri
Copy link
Owner

dimitri commented Jul 30, 2012

So, is this still an issue?

@SkydiveMike
Copy link
Contributor

I don't believe it was, or is. https://github.com/markusbaden opened the issue though ...

@dimitri dimitri closed this as completed Jul 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants