emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Installation via el-get: info not added correctly
@ 2012-07-27  4:06 Markus Baden
  2012-07-27  6:03 ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Baden @ 2012-07-27  4:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

Hi,

I'm relatively new to both (the awesome) org-mode, el-get and emacs, so I
think I just describe what problem I encountered when installing org-mode
via el-get. Hopefully someone can point me into the right direction where
to look (el-get or org-mode) in order to fix that problem.

I just installed org-mode via the recipe provided with the current
development version of el-get [1]. Org-Mode is installed correctly into
emacs.d/el-get/org-mode and the docs can be found in the doc subfolder. The
recipe [2] adds the doc to the info via the :info "doc" property. However,
when going to the info browser with C-h i the org-mode docs cannot be
found. In the doc subfolder there is a file called "org" (no filename
extension), which looks like the info file. After doing a "cp org org.info"
the org-mode info shows up in the info browser.

What do you think, is the recipe flawed, that is should it point to
"doc/org", or did the build process not build the org.info file correctly?

Best regards,

Markus

[1] https://github.com/dimitri/el-get/
[2] https://github.com/dimitri/el-get/blob/master/recipes/org-mode.rcp

[-- Attachment #2: Type: text/html, Size: 1475 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installation via el-get: info not added correctly
  2012-07-27  4:06 Installation via el-get: info not added correctly Markus Baden
@ 2012-07-27  6:03 ` Achim Gratz
  2012-07-27  6:21   ` Markus Baden
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Achim Gratz @ 2012-07-27  6:03 UTC (permalink / raw)
  To: emacs-orgmode

Markus Baden writes:
> I just installed org-mode via the recipe provided with the current
> development version of el-get [1]. Org-Mode is installed correctly
> into emacs.d/el-get/org-mode and the docs can be found in the doc
> subfolder. The recipe [2] adds the doc to the info via the :info "doc"
> property. However, when going to the info browser with C-h i the
> org-mode docs cannot be found. In the doc subfolder there is a file
> called "org" (no filename extension), which looks like the info file.
> After doing a "cp org org.info" the org-mode info shows up in the info
> browser. 

El-get for whatever reason seems to think that all info files have a
".info" suffix, but they appear to never check if that assumption is
true.  I don't understand how they set up the info tree further on from
looking at the sources.  File a bug report for el-get I'd say.

The ".info" suffix has actually only been added quite recently with
Emacs 24.1.50 and info continues to work correctly without any suffix,
so I don't understand why el-get seemingly insists on it.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installation via el-get: info not added correctly
  2012-07-27  6:03 ` Achim Gratz
@ 2012-07-27  6:21   ` Markus Baden
  2012-07-28 18:13   ` Mike McLean
       [not found]   ` <CANid5Q56AHHDdKG_QD=+xPRLYCOqHJdBTkDrBHPWdGm-CdkJ0g@mail.gmail.com>
  2 siblings, 0 replies; 6+ messages in thread
From: Markus Baden @ 2012-07-27  6:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

> > I just installed org-mode via the recipe provided with the current
> > development version of el-get [1]. Org-Mode is installed correctly
> > into emacs.d/el-get/org-mode and the docs can be found in the doc
> > subfolder. The recipe [2] adds the doc to the info via the :info "doc"
> > property. However, when going to the info browser with C-h i the
> > org-mode docs cannot be found. In the doc subfolder there is a file
> > called "org" (no filename extension), which looks like the info file.
> > After doing a "cp org org.info" the org-mode info shows up in the info
> > browser.
>
> El-get for whatever reason seems to think that all info files have a
> ".info" suffix, but they appear to never check if that assumption is
> true.  I don't understand how they set up the info tree further on from
> looking at the sources.  File a bug report for el-get I'd say.
>
> The ".info" suffix has actually only been added quite recently with
> Emacs 24.1.50 and info continues to work correctly without any suffix,
> so I don't understand why el-get seemingly insists on it.
>

Thanks for the explanation. I filed an issue on github for that, see
https://github.com/dimitri/el-get/issues/821

Regards,

Markus

[-- Attachment #2: Type: text/html, Size: 1667 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installation via el-get: info not added correctly
  2012-07-27  6:03 ` Achim Gratz
  2012-07-27  6:21   ` Markus Baden
@ 2012-07-28 18:13   ` Mike McLean
       [not found]   ` <CANid5Q56AHHDdKG_QD=+xPRLYCOqHJdBTkDrBHPWdGm-CdkJ0g@mail.gmail.com>
  2 siblings, 0 replies; 6+ messages in thread
From: Mike McLean @ 2012-07-28 18:13 UTC (permalink / raw)
  To: Achim Gratz

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

On Fri, Jul 27, 2012 at 2:03 AM, Achim Gratz <Stromeko@nexgo.de> wrote:

> Markus Baden writes:
> > I just installed org-mode via the recipe provided with the current
> > development version of el-get [1]. Org-Mode is installed correctly
> > into emacs.d/el-get/org-mode and the docs can be found in the doc
> > subfolder. The recipe [2] adds the doc to the info via the :info "doc"
> > property. However, when going to the info browser with C-h i the
> > org-mode docs cannot be found. In the doc subfolder there is a file
> > called "org" (no filename extension), which looks like the info file.
> > After doing a "cp org org.info" the org-mode info shows up in the info
> > browser.
>
> El-get for whatever reason seems to think that all info files have a
> ".info" suffix, but they appear to never check if that assumption is
> true.  I don't understand how they set up the info tree further on from
> looking at the sources.  File a bug report for el-get I'd say.
>

Looking at this a bit this morning, I'm not sure that it is el-get (at
least alone) that is insisting on the .info suffix. The portion of elisp in
el-get that adds the .info suffix:

#+begin_src emacs-lisp
(if (string= (substring infofile -5) ".info")
    infofile
    (concat infofile ".info"))
#+end_src

(Side note, I did try a work around,
https://github.com/SkydiveMike/el-get/commit/88920c84bbe4d814bae1e79cdda163315d8d8d24that
doesn't work).

Is only called if the ~dir~' file does not exist (and other conditions) and
as part of creating a command string for ~/usr/bin/install-info~. Since an
non-built (no execution of ~make~) Org mode Git clone has a ~dir~ file,
this code is never called.

I also don't believe that ~cp org org.info~ in
~$HOME/.emacs.d/el-get/org-mode/~ fixes things (I currently can't get the
correct info to display using that).

[-- Attachment #2: Type: text/html, Size: 2654 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installation via el-get: info not added correctly
       [not found]   ` <CANid5Q56AHHDdKG_QD=+xPRLYCOqHJdBTkDrBHPWdGm-CdkJ0g@mail.gmail.com>
@ 2012-07-29 19:43     ` Mike McLean
  2012-07-29 20:07       ` Jude DaShiell
  0 siblings, 1 reply; 6+ messages in thread
From: Mike McLean @ 2012-07-29 19:43 UTC (permalink / raw)
  To: emacs-orgmode Mode; +Cc: Achim Gratz

[-- Attachment #1: Type: text/plain, Size: 2670 bytes --]


On Jul 28, 2012, at 2:13 PM, Mike McLean wrote:

> On Fri, Jul 27, 2012 at 2:03 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> Markus Baden writes:
> > I just installed org-mode via the recipe provided with the current
> > development version of el-get [1]. Org-Mode is installed correctly
> > into emacs.d/el-get/org-mode and the docs can be found in the doc
> > subfolder. The recipe [2] adds the doc to the info via the :info "doc"
> > property. However, when going to the info browser with C-h i the
> > org-mode docs cannot be found. In the doc subfolder there is a file
> > called "org" (no filename extension), which looks like the info file.
> > After doing a "cp org org.info" the org-mode info shows up in the info
> > browser.
> 
> El-get for whatever reason seems to think that all info files have a
> ".info" suffix, but they appear to never check if that assumption is
> true.  I don't understand how they set up the info tree further on from
> looking at the sources.  File a bug report for el-get I'd say.
> 
> Looking at this a bit this morning, I'm not sure that it is el-get (at least alone) that is insisting on the .info suffix. The portion of elisp in el-get that adds the .info suffix:
> 
> #+begin_src emacs-lisp
> (if (string= (substring infofile -5) ".info")
>     infofile
>     (concat infofile ".info"))
> #+end_src
> 
> (Side note, I did try a work around, https://github.com/SkydiveMike/el-get/commit/88920c84bbe4d814bae1e79cdda163315d8d8d24 that doesn't work).
> 
> Is only called if the ~dir~' file does not exist (and other conditions) and as part of creating a command string for ~/usr/bin/install-info~. Since an non-built (no execution of ~make~) Org mode Git clone has a ~dir~ file, this code is never called.
> 
> I also don't believe that ~cp org org.info~ in ~$HOME/.emacs.d/el-get/org-mode/~ fixes things (I currently can't get the correct info to display using that).

After some more investigation, I don't think this is a bug with either Org or el-get. I had other issues with my Info path setups in my specific configuration (Emacs on OS X from http://emacsformacosx.com) that included an invalid build-directory artifact and more significantly always put the Emacs ``info'' directory as the first item in my ``Info-directory-list''. This meant that the built-in Org info would always supersede the info for my current version of Org (installed by el-get). 

Once I resolved all of that, my Emacs Info now sees the correct version of Org info from el-get without needing to ``cp org org.info''. 

More gory details at: https://github.com/dimitri/el-get/issues/821

Sorry for the noise.

[-- Attachment #2: Type: text/html, Size: 3973 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installation via el-get: info not added correctly
  2012-07-29 19:43     ` Mike McLean
@ 2012-07-29 20:07       ` Jude DaShiell
  0 siblings, 0 replies; 6+ messages in thread
From: Jude DaShiell @ 2012-07-29 20:07 UTC (permalink / raw)
  To: Mike McLean; +Cc: Achim Gratz, emacs-orgmode Mode

The file (1) command is available on some systems and makes guesses 
about file formats to help users sort out unknown files.  Maybe a for 
loop in a script could find the info files and do so more reliably than 
only checking a file's suffix.  I think there's also a rather expensive 
book available for sale called "the file formats book" and from those 
I've talked to after they've had a chance to read it they think it's 
worth the money.

On Sun, 29 Jul 2012, Mike McLean wrote:

> 
> On Jul 28, 2012, at 2:13 PM, Mike McLean wrote:
> 
> > On Fri, Jul 27, 2012 at 2:03 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> > Markus Baden writes:
> > > I just installed org-mode via the recipe provided with the current
> > > development version of el-get [1]. Org-Mode is installed correctly
> > > into emacs.d/el-get/org-mode and the docs can be found in the doc
> > > subfolder. The recipe [2] adds the doc to the info via the :info "doc"
> > > property. However, when going to the info browser with C-h i the
> > > org-mode docs cannot be found. In the doc subfolder there is a file
> > > called "org" (no filename extension), which looks like the info file.
> > > After doing a "cp org org.info" the org-mode info shows up in the info
> > > browser.
> > 
> > El-get for whatever reason seems to think that all info files have a
> > ".info" suffix, but they appear to never check if that assumption is
> > true.  I don't understand how they set up the info tree further on from
> > looking at the sources.  File a bug report for el-get I'd say.
> > 
> > Looking at this a bit this morning, I'm not sure that it is el-get (at least alone) that is insisting on the .info suffix. The portion of elisp in el-get that adds the .info suffix:
> > 
> > #+begin_src emacs-lisp
> > (if (string= (substring infofile -5) ".info")
> >     infofile
> >     (concat infofile ".info"))
> > #+end_src
> > 
> > (Side note, I did try a work around, https://github.com/SkydiveMike/el-get/commit/88920c84bbe4d814bae1e79cdda163315d8d8d24 that doesn't work).
> > 
> > Is only called if the ~dir~' file does not exist (and other conditions) and as part of creating a command string for ~/usr/bin/install-info~. Since an non-built (no execution of ~make~) Org mode Git clone has a ~dir~ file, this code is never called.
> > 
> > I also don't believe that ~cp org org.info~ in ~$HOME/.emacs.d/el-get/org-mode/~ fixes things (I currently can't get the correct info to display using that).
> 
> After some more investigation, I don't think this is a bug with either Org or el-get. I had other issues with my Info path setups in my specific configuration (Emacs on OS X from http://emacsformacosx.com) that included an invalid build-directory artifact and more significantly always put the Emacs ``info'' directory as the first item in my ``Info-directory-list''. This meant that the built-in Org info would always supersede the info for my current version of Org (installed by el-get). 
> 
> Once I resolved all of that, my Emacs Info now sees the correct version of Org info from el-get without needing to ``cp org org.info''. 
> 
> More gory details at: https://github.com/dimitri/el-get/issues/821
> 
> Sorry for the noise.

----------------------------------------------------------------
Hardware eventually fails; software eventually works, no amount of band
width can fix poor design

Jude <jdashiel-at-shellworld-dot-net>
<http://www.shellworld.net/~jdashiel/nj.html>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-29 20:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27  4:06 Installation via el-get: info not added correctly Markus Baden
2012-07-27  6:03 ` Achim Gratz
2012-07-27  6:21   ` Markus Baden
2012-07-28 18:13   ` Mike McLean
     [not found]   ` <CANid5Q56AHHDdKG_QD=+xPRLYCOqHJdBTkDrBHPWdGm-CdkJ0g@mail.gmail.com>
2012-07-29 19:43     ` Mike McLean
2012-07-29 20:07       ` Jude DaShiell

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).