* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:38 ` Glenn Morris
@ 2014-01-10 7:44 ` Glenn Morris
2014-01-10 7:50 ` Glenn Morris
2014-01-10 8:09 ` Eli Zaretskii
2014-01-10 8:05 ` Glenn Morris
` (2 subsequent siblings)
3 siblings, 2 replies; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 7:44 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Glenn Morris wrote:
>> Also, Emacs comes with a few manuals that can have other versions from
>> elsewhere (like info.info or gnus.info).
>
> (IIRC, Karl has stated that he considers Emacs the canonical home for
> info.info.)
Also, when I am using Emacs, I am using the info reader that comes with
that Emacs. So I cannot think of a reason why (info "info") should show
me anything but the info.info that came with that Emacs.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:44 ` Glenn Morris
@ 2014-01-10 7:50 ` Glenn Morris
2014-01-10 8:07 ` Eli Zaretskii
2014-01-10 8:09 ` Eli Zaretskii
1 sibling, 1 reply; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 7:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
PS I would accept a solution that only prepends Emacs's info directory
to the front of INFOPATH if it had a trailing ":", since that implies a
willingness to at least consider directories other than the ones in
INFOPATH.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:50 ` Glenn Morris
@ 2014-01-10 8:07 ` Eli Zaretskii
2014-01-10 20:03 ` Glenn Morris
0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 8:07 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 02:50:49 -0500
>
>
> PS I would accept a solution that only prepends Emacs's info directory
> to the front of INFOPATH if it had a trailing ":", since that implies a
> willingness to at least consider directories other than the ones in
> INFOPATH.
I think we should indeed do this. Doing it in the general case runs a
much higher risk of ruining someone's use case.
Not sure whether even this smaller change could be done during a
feature freeze, though.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 8:07 ` Eli Zaretskii
@ 2014-01-10 20:03 ` Glenn Morris
0 siblings, 0 replies; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 20:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Eli Zaretskii wrote:
>> PS I would accept a solution that only prepends Emacs's info
>> directory to the front of INFOPATH if it had a trailing ":", since
>> that implies a willingness to at least consider directories other
>> than the ones in INFOPATH.
>
> I think we should indeed do this.
OK.
> Not sure whether even this smaller change could be done during a
> feature freeze, though.
No, it's obviously controversial and can wait.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:44 ` Glenn Morris
2014-01-10 7:50 ` Glenn Morris
@ 2014-01-10 8:09 ` Eli Zaretskii
2014-01-10 20:05 ` Glenn Morris
1 sibling, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 8:09 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 02:44:03 -0500
>
> Also, when I am using Emacs, I am using the info reader that comes with
> that Emacs. So I cannot think of a reason why (info "info") should show
> me anything but the info.info that came with that Emacs.
You cannot control that anyway, because "make install" in Texinfo will
overwrite the version installed by Emacs, as they are (normally) in
the same /usr/share/info directory.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 8:09 ` Eli Zaretskii
@ 2014-01-10 20:05 ` Glenn Morris
2014-01-10 20:20 ` Eli Zaretskii
0 siblings, 1 reply; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 20:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Eli Zaretskii wrote:
>> Also, when I am using Emacs, I am using the info reader that comes with
>> that Emacs. So I cannot think of a reason why (info "info") should show
>> me anything but the info.info that came with that Emacs.
>
> You cannot control that anyway, because "make install" in Texinfo will
> overwrite the version installed by Emacs, as they are (normally) in
> the same /usr/share/info directory.
I didn't explain well.
I was thinking of having several Emacs versions installed in different
directories. Obviously if you install them into the same prefix, the
info pages overwrite each other, and nothing can be done about that.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 20:05 ` Glenn Morris
@ 2014-01-10 20:20 ` Eli Zaretskii
0 siblings, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 20:20 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 15:05:57 -0500
>
> I was thinking of having several Emacs versions installed in different
> directories.
You mean, configured with a different --prefix? Do people actually do
this when installing programs, except when they are installed for a
single user under her home directory? Do they do this frequently
enough for us to care?
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:38 ` Glenn Morris
2014-01-10 7:44 ` Glenn Morris
@ 2014-01-10 8:05 ` Glenn Morris
2014-01-10 8:21 ` Eli Zaretskii
2014-01-10 8:19 ` Eli Zaretskii
2014-01-10 19:47 ` Achim Gratz
3 siblings, 1 reply; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 8:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Glenn Morris wrote:
>> What if the user installs newer versions of, say, Gnus or Org from
>> their respective repositories?
>
> See my comment above.
> (Frankly, I suspect what happens at present in most such cases is that
> people install the lisp files in their load-path, but do not do anything
> with INFOPATH, so end up seeing the wrong Info pages anyway.)
PPS Actually, if they install via the Emacs package manager, there will
be no problem. That already does what I suggest: forces an entry on to
the very front of Info-directory-list. That would still come before the
element I am suggesting.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 8:05 ` Glenn Morris
@ 2014-01-10 8:21 ` Eli Zaretskii
2014-01-10 15:03 ` Stefan Monnier
0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 8:21 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 03:05:13 -0500
>
> PPS Actually, if they install via the Emacs package manager, there will
> be no problem.
Neither Gnus nor Org are in ELPA. Does package.el support the
respective URLs for these (and other) packages that are not in ELPA?
Anyway, if we want to know the current state of affairs, we should
poll user of these packages, at least on this list. I personally
don't install any of them.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:38 ` Glenn Morris
2014-01-10 7:44 ` Glenn Morris
2014-01-10 8:05 ` Glenn Morris
@ 2014-01-10 8:19 ` Eli Zaretskii
2014-01-10 20:11 ` Glenn Morris
2014-01-10 19:47 ` Achim Gratz
3 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 8:19 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 02:38:56 -0500
>
> Eli Zaretskii wrote:
>
> > That leaves system administrators no means of forcing a specific
> > version of Info manual to be found by default.
>
> That is true, it does not, but only for manuals that come with Emacs.
They are a plenty.
> I cannot think of a case where a *sysadmin* would want to force
> Emacs to prefer some other version of a manual to the one that comes
> with Emacs. Can you give an example?
On a multi-user system, INFOPATH can be customized differently for
each user, but /usr/share/info is a single directory. Suppose some
users want to stay with an older Emacs, while others want the bleeding
edge.
> (And they could always do it with some site-specific elisp if they
> really wanted to. But I expect it to be very much a fringe case.)
Experience has taught us that there are too many "fringe cases" when
Info docs are concerned. The code to which you pointed was a result
of prolonged discussions in the past, and many micro-corrections due
to these fringe cases. Eventually, some of the use cases stay
unsupported, and AFAIR cannot be supported without hurting no less
important cases, because Info simply is not designed for there being
several manuals by the same name on INFOPATH.
> By default, Emacs uses the Gnus that comes with Emacs.
> To get it to use a different Gnus, you have to customize load-path.
> I do not think it unreasonable that you should have to similarly
> customize Info-directory-list to get the right manual.
The question is not what's reasonable. The question is do people (or
"make install" of those packages) actually do that.
> > Is this the only situation where the current arrangement doesn't DTRT,
> > or are there more? If this is the only one, then you cannot solve it
> > successfully: the Info system simply doesn't support well the use case
> > where several different manuals have identical names.
>
> I don't understand why it cannot be solved successfully by doing what I
> said. I don't care about seeing multiple versions of the manuals with
> the same name, I want to see only one version, and I want that version
> to be the version that comes with Emacs.
Again, since Emacs, like every other package, installs its Info files
in a single global directory, you don't actually know what is "the
version that comes with Emacs", except when Emacs runs uninstalled (in
which case it already does what you want). All you know is that
there's some FOO.info file in /usr/share/info. If it is overwritten,
you don't know that. So this problem is in general unsolvable.
> And note that the Mac platform has already behaved as I request for some
> years. I don't recall seeing any complaints.
This goes both ways: I don't recall complaints about the current
arrangement, either.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 8:19 ` Eli Zaretskii
@ 2014-01-10 20:11 ` Glenn Morris
2014-01-10 20:36 ` Eli Zaretskii
2014-01-10 20:54 ` Stefan Monnier
0 siblings, 2 replies; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 20:11 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Eli Zaretskii wrote:
> On a multi-user system, INFOPATH can be customized differently for
> each user, but /usr/share/info is a single directory. Suppose some
> users want to stay with an older Emacs, while others want the bleeding
> edge.
I don't really get your point. I contend that "Emacs N should show the
manuals for version N", without the user needing to do anything special.
(I'm assuming throughout that each Emacs version is installed in a
separate location, otherwise the info pages stomp all over each other
anyway, as you said.)
For example:
As a user, I have a local software directory /home/me/software, where I
install things. So I have INFOPATH=/home/me/software/info: in my
environment. There is Emacs version N in there. I have other Emacs
versions installed in other places, which I want to use at times. All of
them end up finding the info pages from Emacs version N.
> Experience has taught us that there are too many "fringe cases" when
> Info docs are concerned. The code to which you pointed was a result
> of prolonged discussions in the past, and many micro-corrections due
> to these fringe cases.
Sorry, I think it's overly complicated for this day-and-age, and could
stand to be simplified.
>> And note that the Mac platform has already behaved as I request for some
>> years. I don't recall seeing any complaints.
>
> This goes both ways: I don't recall complaints about the current
> arrangement, either.
It's me, I'm the complainer! :)
Anyway, my one sentence summary is that it just seems crazy to me that
Emacs does not reliably find its own info pages.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 20:11 ` Glenn Morris
@ 2014-01-10 20:36 ` Eli Zaretskii
2014-01-10 21:03 ` Glenn Morris
2014-01-10 20:54 ` Stefan Monnier
1 sibling, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-01-10 20:36 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> From: Glenn Morris <rgm@gnu.org>
> Cc: 16407@debbugs.gnu.org
> Date: Fri, 10 Jan 2014 15:11:45 -0500
>
> Eli Zaretskii wrote:
>
> > On a multi-user system, INFOPATH can be customized differently for
> > each user, but /usr/share/info is a single directory. Suppose some
> > users want to stay with an older Emacs, while others want the bleeding
> > edge.
>
> I don't really get your point. I contend that "Emacs N should show the
> manuals for version N", without the user needing to do anything special.
As I said, this is generally impossible.
> (I'm assuming throughout that each Emacs version is installed in a
> separate location, otherwise the info pages stomp all over each other
> anyway, as you said.)
But what happens in reality is either the stomping or the manual is
renamed into emacs-xx, to allow several versions of manuals coexist.
> Sorry, I think it's overly complicated for this day-and-age, and could
> stand to be simplified.
I suggest to look at a typical Debian system with several Emacs
versions installed, and see what kind of arrangement they use. At the
time, this was one of the reasons for the complexity. Maybe it no
longer exists, I don't know.
In any case, the problem with being able to control where Emacs looks
for the misc manuals still exists, for those Emacs packages that are
developed and distributed separately.
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 20:36 ` Eli Zaretskii
@ 2014-01-10 21:03 ` Glenn Morris
2014-01-10 23:21 ` Glenn Morris
0 siblings, 1 reply; 24+ messages in thread
From: Glenn Morris @ 2014-01-10 21:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16407
Eli Zaretskii wrote:
> I suggest to look at a typical Debian system with several Emacs
> versions installed, and see what kind of arrangement they use. At the
> time, this was one of the reasons for the complexity. Maybe it no
> longer exists, I don't know.
They install the info pages into /usr/share/info/emacs-N (sensible).
And then they patch info.el so that it finds those first:
http://patch-tracker.debian.org/patch/series/view/emacs24/24.3+1-2/0001-Prefer-usr-share-info-emacs-24-over-usr-share-info.patch
So whatever info.el thought it was doing to suit Debian, it wasn't
enough anyway.
They should not have to have such a patch, it should work out of the box.
> In any case, the problem with being able to control where Emacs looks
> for the misc manuals still exists, for those Emacs packages that are
> developed and distributed separately.
I disagree that this is an issue.
1) No problem at all with package.el, before or after any change to info.el.
2) I have no data, but doubt this was a problem people were solving via
INFOPATH anyway.
3) To use a newer version of a built-in package, you have to customize
load-path. I maintain that it's fine to expect people to have to
customize Info-directory-list similarly. (Perhaps this part of info.el
should be preloaded to make this easier.)
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 20:11 ` Glenn Morris
2014-01-10 20:36 ` Eli Zaretskii
@ 2014-01-10 20:54 ` Stefan Monnier
1 sibling, 0 replies; 24+ messages in thread
From: Stefan Monnier @ 2014-01-10 20:54 UTC (permalink / raw)
To: Glenn Morris; +Cc: 16407
> Anyway, my one sentence summary is that it just seems crazy to me that
> Emacs does not reliably find its own info pages.
FWIW, I completely agree. Tho to me the main problem is that Emacs
should not behave differently when "installed into a non-standard
directory" and when not.
Stefan
^ permalink raw reply [flat|nested] 24+ messages in thread
* bug#16407: Info-directory-list should always put this Emacs's info direc first
2014-01-10 7:38 ` Glenn Morris
` (2 preceding siblings ...)
2014-01-10 8:19 ` Eli Zaretskii
@ 2014-01-10 19:47 ` Achim Gratz
3 siblings, 0 replies; 24+ messages in thread
From: Achim Gratz @ 2014-01-10 19:47 UTC (permalink / raw)
To: 16407
Glenn Morris writes:
> (And they could always do it with some site-specific elisp if they
> really wanted to. But I expect it to be very much a fringe case.)
I think you assume too much sophisication of a sysadmin who will
typically know little about the intricacies of Emacs. In any case, the
examples of site-lisp customization that I've been exposed to lately
have forced me to add "--no-site-lisp" to my all Emacs invocations.
> By default, Emacs uses the Gnus that comes with Emacs.
> To get it to use a different Gnus, you have to customize load-path.
> I do not think it unreasonable that you should have to similarly
> customize Info-directory-list to get the right manual.
The problem is that it's not immediately obvious when the two are not
kept in sync; something that presumably package manager should solve,
but doesn't. It would help if the built-in packages could be completely
deactivated upon installation of a different version of that same
package via package manager (that is, the custom-load and autoload stuff
for such a package delivered with Emacs should not be evaluated in that
case).
> I don't understand why it cannot be solved successfully by doing what I
> said. I don't care about seeing multiple versions of the manuals with
> the same name, I want to see only one version, and I want that version
> to be the version that comes with Emacs.
… while someone else might reaonably expect that he'll get the version
of the manual that he's installed first or last.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 24+ messages in thread