Re: Emacs info again?

Bill Harris <[email protected]> Sun, 25 Mar 2018 08:19:27 -0700
Newsgroups gmane.comp.gnu.mcsim
Message-ID <CAOBquGrv=L==SGmkPkfhHuDA5z8QnEgmVEAA2aw-Y5cQLxXHCA@mail.gmail.com>
--===============5638468587619963479==
Content-Type: multipart/alternative; boundary="000000000000e955aa05683e2e16"

--000000000000e955aa05683e2e16
Content-Type: text/plain; charset="UTF-8"

tl;dr: I can create the info file, and it works, but install-info fails,
and I think I found the issue.  In addition, xmcsim doesn't seem to get
installed, and there eis no examples dir  in /usr/local/share/mcsim (but
that may be correct).

Step 1: Yes, *info* is in /usr/share/info.

Step 2: I thought my mcsim/doc directory would be in /usr/local/share/, but
that only contains mod and sim.  I  searched to see if it could be
elsewhere, but it isn't:

/usr$ find . -name mcsim* -print
./local/share/mcsim

Is that a problem?  I had thought I might have directory entries there for
doc, examples, and perhaps even xmcsim.

I still have the directory in my home directory where I built it, and I did
run makeinfo mcsim.texi  yesterday in that doc directory.  Since the
argument to makeinfo appears to be the input file and my doc directory
contains mcsim.texi, I figured that was correct.  It created a mcsim.info
file in that same directory.  I think that worked, because I can run `info
mcsim` in that directory and get what looks like a valid info session.

Step 3: I did not know or at least remember the install-info command.  I
should have tried the C-u C-h i trick, though; info works from there, too.

Running that command failed:

/usr/share/info# install-info mcsim.info .
install-info: .: empty file

Reading
ftp://ftp.gnu.org/old-gnu/Manuals/texinfo-3.9/html_chapter/texinfo_23.html
made it sound like the mcsim.info file needed @dircategory and @direntry,
but I don't see them in the file.  Is that perhaps the issue?

One more issue: While I haven't used xmcsim much in the past, I tried it,
and it doesn't seem to work:

/usr$ find . -name xmcsim -print
$ xmcsim
bash: xmcsim: command not found
/usr$

FYI, and thanks for your quick reply.  I /think/ I did the install
according to the instructions, but feel free to point out mistakes I may
have made.

Bill


On Sun, Mar 25, 2018 at 12:35 AM, fredomatic <[email protected]> wrote:

> Hi Bill,
> I will look into why it's still not done automatically. For now you can
> do a few things:
> - find where your info directory is (in emacs do "C-h i" and then
>   "C-x C-f", that should do). Typically that is /usr/share/info.
> - Then in your mcsim/doc directory do "makeinfo mcsim.texinfo" if you
>   have not done it already
> - Then "sudo install-info mcsim.info /usr/share/info/dir" (the dir file
>   in your info directory.
>
> That will make a permanent link to the mcsim.info file in the info dir
> file. Now whenever you type "info mcsim" that should bring you there, or
> if you type just "info" mcsim will appear in the GNU Packages section.
>
> Rather than leaving mcsim.info in mcsim/doc you may want to sudo copy it
> to the info directory and do sudo install-info in that directory.
>
> For emacs: I'm not using info from there, so I'm not the best adviser,
> but if you do "C-u C-h i" it will ask you which info file to read. If
> you are already in info (C-h i) it will propose the system info
> directory. So if you have copied mcsim.info there that would be quick.
> There is also a couple of emacs variables you can set to find it more
> quickly.
>
> Best regards
>
> Frederic
>
>
> On 24/03/2018 17:59, Bill Harris wrote:
> > Fifteen months ago, I got help here installing Emacs info for MCSim
> > 5.6.5
> > (https://lists.gnu.org/archive/html/help-mcsim/2016-12/msg00001.html).
> > Now I'm curious about the same question for 6.0.0 on Debian 9.
> >
> > As root, I ran makeinfo mcsim.texi in my local copy of the doc directory
> > (~/bin/mcsim-6.0.0/doc/), and it produced a mcsim.info
> > <http://mcsim.info> file in that directory.  I cd'd up one level and ran
> > make install.  Even after restarting *info*, I see no mcsim entry, and
> > /usr/local/share/mcsim only has mod and sim directories.
> >
> > Is there somewhere else I should look?  Is there something else I should
> > do?  I have a vague recollection from the past that it just used to
> > work, so I'm reluctant to start moving files and editing *info* indices
> > manually unless someone convinces me that's the right way to go.
> >
> > BTW, 6.0.0 looks like a major advance over 5.6; thanks!
> >
> > Bill
> > --
> > Bill Harris
> > http://makingsense.facilitatedsystems.com/
> >
> >
> > _______________________________________________
> > Help-mcsim mailing list
> > [email protected]
> > https://lists.gnu.org/mailman/listinfo/help-mcsim
> >
>



-- 
Bill Harris
http://makingsense.facilitatedsystems.com/

--000000000000e955aa05683e2e16
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>tl;dr: I can create the info file, and it works, but =
install-info fails, and I think I found the issue.=C2=A0 In addition, xmcsi=
m doesn&#39;t seem to get installed, and there eis no examples dir=C2=A0 in=
 /usr/local/share/mcsim (but that may be correct).</div><div><br></div>Step=
 1: Yes, *info* is in /usr/share/info.<div><br></div><div>Step 2: I thought=
 my mcsim/doc directory would be in /usr/local/share/, but that only contai=
ns mod and sim.=C2=A0 I=C2=A0 searched to see if it could be elsewhere, but=
 it isn&#39;t:</div><div><br></div><div><div>/usr$ find . -name mcsim* -pri=
nt</div><div>./local/share/mcsim</div></div><div><br></div><div>Is that a p=
roblem?=C2=A0 I had thought I might have directory entries there for doc, e=
xamples, and perhaps even xmcsim.</div><div><br></div><div>I still have the=
 directory in my home directory where I built it, and I did run=C2=A0<span =
style=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;f=
ont-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;fon=
t-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tr=
ansform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,2=
55,255);text-decoration-style:initial;text-decoration-color:initial;float:n=
one;display:inline">makeinfo mcsim.texi<span>=C2=A0 yesterday in that doc d=
irectory.=C2=A0 Since the argument to makeinfo appears to be the input file=
 and my doc directory contains mcsim.texi, I figured that was correct.=C2=
=A0 It created a <a href=3D"http://mcsim.info">mcsim.info</a> file in that =
same directory.=C2=A0 I think that worked, because I can run `info mcsim` i=
n that directory and get what looks like a valid info session.</span></span=
></div><div><span style=3D"color:rgb(80,0,80);font-family:arial,sans-serif;=
font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-varia=
nt-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-=
indent:0px;text-transform:none;white-space:normal;word-spacing:0px;backgrou=
nd-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-col=
or:initial;float:none;display:inline"><span><br></span></span></div><div><s=
pan style=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8=
px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal=
;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;tex=
t-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2=
55,255,255);text-decoration-style:initial;text-decoration-color:initial;flo=
at:none;display:inline"><span>Step 3: I did not know or at least remember t=
he install-info command.=C2=A0 I should have tried the C-u C-h i trick, tho=
ugh; info works from there, too.</span></span></div><div><span style=3D"col=
or:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:no=
rmal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400=
;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none=
;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text=
-decoration-style:initial;text-decoration-color:initial;float:none;display:=
inline"><span><br></span></span></div><div><span style=3D"color:rgb(80,0,80=
);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-vari=
ant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacin=
g:normal;text-align:start;text-indent:0px;text-transform:none;white-space:n=
ormal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-st=
yle:initial;text-decoration-color:initial;float:none;display:inline"><span>=
Running that command failed:</span></span></div><div><span style=3D"color:r=
gb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal=
;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;let=
ter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;whi=
te-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-dec=
oration-style:initial;text-decoration-color:initial;float:none;display:inli=
ne"><span><br></span></span></div><div><span style=3D"text-align:start;text=
-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial=
;text-decoration-color:initial;float:none;display:inline"><div><div><font c=
olor=3D"#500050"><span style=3D"font-size:12.8px">/usr/share/info# install-=
info <a href=3D"http://mcsim.info">mcsim.info</a> .</span></font></div><div=
><font color=3D"#500050"><span style=3D"font-size:12.8px">install-info: .: =
empty file</span></font></div></div><div><br></div><div>Reading=C2=A0<a hre=
f=3D"ftp://ftp.gnu.org/old-gnu/Manuals/texinfo-3.9/html_chapter/texinfo_23.=
html">ftp://ftp.gnu.org/old-gnu/Manuals/texinfo-3.9/html_chapter/texinfo_23=
.html</a> made it sound like the <a href=3D"http://mcsim.info">mcsim.info</=
a> file needed @dircategory and @direntry, but I don&#39;t see them in the =
file.=C2=A0 Is that perhaps the issue?</div></span></div><div><span style=
=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-s=
tyle:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-wei=
ght:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transfo=
rm:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,25=
5);text-decoration-style:initial;text-decoration-color:initial;float:none;d=
isplay:inline"><span><br></span></span></div><div><span style=3D"color:rgb(=
80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;fo=
nt-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter=
-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-=
space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decora=
tion-style:initial;text-decoration-color:initial;float:none;display:inline"=
><span>One more issue: While I haven&#39;t used xmcsim much in the past, I =
tried it, and it doesn&#39;t seem to work:</span></span></div><div><span st=
yle=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;fon=
t-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-=
weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tran=
sform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255=
,255);text-decoration-style:initial;text-decoration-color:initial;float:non=
e;display:inline"><span><br></span></span></div><div><span style=3D"text-al=
ign:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration=
-style:initial;text-decoration-color:initial;float:none;display:inline"><di=
v><font color=3D"#500050"><span style=3D"font-size:12.8px">/usr$ find . -na=
me xmcsim -print</span></font></div><div><font color=3D"#500050"><span styl=
e=3D"font-size:12.8px">$ xmcsim</span></font></div><div><font color=3D"#500=
050"><span style=3D"font-size:12.8px">bash: xmcsim: command not found</span=
></font></div><div><font color=3D"#500050"><span style=3D"font-size:12.8px"=
>/usr$=C2=A0</span></font></div><div style=3D"color:rgb(80,0,80);font-famil=
y:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligature=
s:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;tex=
t-transform:none;white-space:normal;word-spacing:0px"><br></div></span></di=
v><div><span style=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-=
size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-ca=
ps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-inden=
t:0px;text-transform:none;white-space:normal;word-spacing:0px;background-co=
lor:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:in=
itial;float:none;display:inline"><span>FYI, and thanks for your quick reply=
.=C2=A0 I /think/ I did the install according to the instructions, but feel=
 free to point out mistakes I may have made.</span></span></div><div><span =
style=3D"color:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;f=
ont-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;fon=
t-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-tr=
ansform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,2=
55,255);text-decoration-style:initial;text-decoration-color:initial;float:n=
one;display:inline"><span><br></span></span></div><div><span style=3D"color=
:rgb(80,0,80);font-family:arial,sans-serif;font-size:12.8px;font-style:norm=
al;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;l=
etter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;w=
hite-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-d=
ecoration-style:initial;text-decoration-color:initial;float:none;display:in=
line"><span>Bill</span></span></div><div><span style=3D"color:rgb(80,0,80);=
font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-varian=
t-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:=
normal;text-align:start;text-indent:0px;text-transform:none;white-space:nor=
mal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-styl=
e:initial;text-decoration-color:initial;float:none;display:inline"><span><b=
r></span></span></div></div><div class=3D"gmail_extra"><br><div class=3D"gm=
ail_quote">On Sun, Mar 25, 2018 at 12:35 AM, fredomatic <span dir=3D"ltr">&=
lt;<a href=3D"mailto:[email protected]" target=3D"_blank">fredomatic@free.=
fr</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bill,<br>
I will look into why it&#39;s still not done automatically. For now you can=
<br>
do a few things:<br>
- find where your info directory is (in emacs do &quot;C-h i&quot; and then=
<br>
=C2=A0 &quot;C-x C-f&quot;, that should do). Typically that is /usr/share/i=
nfo.<br>
- Then in your mcsim/doc directory do &quot;makeinfo mcsim.texinfo&quot; if=
 you<br>
=C2=A0 have not done it already<br>
- Then &quot;sudo install-info <a href=3D"http://mcsim.info" rel=3D"norefer=
rer" target=3D"_blank">mcsim.info</a> /usr/share/info/dir&quot; (the dir fi=
le<br>
=C2=A0 in your info directory.<br>
<br>
That will make a permanent link to the <a href=3D"http://mcsim.info" rel=3D=
"noreferrer" target=3D"_blank">mcsim.info</a> file in the info dir<br>
file. Now whenever you type &quot;info mcsim&quot; that should bring you th=
ere, or<br>
if you type just &quot;info&quot; mcsim will appear in the GNU Packages sec=
tion.<br>
<br>
Rather than leaving <a href=3D"http://mcsim.info" rel=3D"noreferrer" target=
=3D"_blank">mcsim.info</a> in mcsim/doc you may want to sudo copy it<br>
to the info directory and do sudo install-info in that directory.<br>
<br>
For emacs: I&#39;m not using info from there, so I&#39;m not the best advis=
er,<br>
but if you do &quot;C-u C-h i&quot; it will ask you which info file to read=
. If<br>
you are already in info (C-h i) it will propose the system info<br>
directory. So if you have copied <a href=3D"http://mcsim.info" rel=3D"noref=
errer" target=3D"_blank">mcsim.info</a> there that would be quick.<br>
There is also a couple of emacs variables you can set to find it more<br>
quickly.<br>
<br>
Best regards<br>
<br>
Frederic<br>
<span class=3D""><br>
<br>
On 24/03/2018 17:59, Bill Harris wrote:<br>
&gt; Fifteen months ago, I got help here installing Emacs info for MCSim<br=
>
&gt; 5.6.5<br>
&gt; (<a href=3D"https://lists.gnu.org/archive/html/help-mcsim/2016-12/msg0=
0001.html" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org/<wbr>=
archive/html/help-mcsim/2016-<wbr>12/msg00001.html</a>).=C2=A0<br>
&gt; Now I&#39;m curious about the same question for 6.0.0 on Debian 9.<br>
&gt;<br>
&gt; As root, I ran makeinfo mcsim.texi in my local copy of the doc directo=
ry<br>
&gt; (~/bin/mcsim-6.0.0/doc/), and it produced a <a href=3D"http://mcsim.in=
fo" rel=3D"noreferrer" target=3D"_blank">mcsim.info</a><br>
</span>&gt; &lt;<a href=3D"http://mcsim.info" rel=3D"noreferrer" target=3D"=
_blank">http://mcsim.info</a>&gt; file in that directory.=C2=A0 I cd&#39;d =
up one level and ran<br>
<span class=3D"">&gt; make install.=C2=A0 Even after restarting *info*, I s=
ee no mcsim entry, and<br>
&gt; /usr/local/share/mcsim only has mod and sim directories.<br>
&gt;<br>
&gt; Is there somewhere else I should look?=C2=A0 Is there something else I=
 should<br>
&gt; do?=C2=A0 I have a vague recollection from the past that it just used =
to<br>
&gt; work, so I&#39;m reluctant to start moving files and editing *info* in=
dices<br>
&gt; manually unless someone convinces me that&#39;s the right way to go.<b=
r>
&gt;<br>
&gt; BTW, 6.0.0 looks like a major advance over 5.6; thanks!<br>
&gt;<br>
&gt; Bill<br>
&gt; --<br>
&gt; Bill Harris=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0<br>
&gt; <a href=3D"http://makingsense.facilitatedsystems.com/" rel=3D"noreferr=
er" target=3D"_blank">http://makingsense.<wbr>facilitatedsystems.com/</a><b=
r>
&gt;<br>
&gt;<br>
</span>&gt; ______________________________<wbr>_________________<br>
&gt; Help-mcsim mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a><br>
&gt; <a href=3D"https://lists.gnu.org/mailman/listinfo/help-mcsim" rel=3D"n=
oreferrer" target=3D"_blank">https://lists.gnu.org/mailman/<wbr>listinfo/he=
lp-mcsim</a><br>
&gt;<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><d=
iv><div dir=3D"ltr"><div>Bill Harris=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<br><a href=3D"http://makingsense.facilitate=
dsystems.com/" target=3D"_blank">http://makingsense.facilitatedsystems.com/=
</a></div></div></div></div></div>
</div>

--000000000000e955aa05683e2e16--


--===============5638468587619963479==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help-mcsim mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-mcsim

--===============5638468587619963479==--