GNU bug report logs - #36828
27.0.50; Uninstalled emacs shows installed documentation

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Sun, 28 Jul 2019 15:08:01 UTC

Severity: minor

Found in version 27.0.50

Done: Óscar Fuentes <ofv <at> wanadoo.es>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 36828 <at> debbugs.gnu.org, stepnem <at> gmail.com
Subject: bug#36828: 27.0.50; Uninstalled emacs shows installed documentation
Date: Sun, 27 Oct 2019 07:13:05 +0200
> From: Óscar Fuentes <ofv <at> wanadoo.es>
> Cc: stepnem <at> gmail.com,  36828 <at> debbugs.gnu.org
> Date: Sat, 26 Oct 2019 22:40:59 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> I wonder why we assign Vdata_directory on init_callproc_1 to the
> >> installed Emacs directory ("/usr/local/share/emacs/27.0.50/etc/" on
> >> this case) when we are running a non-installed Emacs.
> >
> > I thought the comments there explained that?
> 
> It is not clear to me why assigning Vdata_directory must wait until
> init_callproc when we are running a non-installed emacs. It looks like
> all the required information is present.

We currently decide about non-installed by looking at
Vinstallation_directory, and that is not set in init_callproc_1, per
the comments.

> Furthermore, the logic should be "first check if this is an
> non-installed emacs; if false, locate the installed stuff" instead of
> "first locate the installed stuff, then check if we are a non-installed
> emacs and fix the vars we assigned previously."

I prefer not to consider such radical changes in this logic, because
we've been using what's there now for ages.  Who knows how many
legitimate use cases this could potentially break?  Your use case is
quite specialized: having an older binary of the exact same version
installed is unusual, IME.  So radical changes due to this use case
are unjustified, IMO.

Let's try to find a way of detecting your situation without making too
many waves elsewhere, okay?

> > But we do have 'dir' in the source tree, it's in info/.
> 
> Right, thanks. So I must check why C-h i fetches the `dir' in the
> installed info directory.

I think it's just because configure-info-directory is set by epaths.h
to point to ${prefix}/share/info (via PATH_INFO).  We never change
that, even in a non-installed Emacs.  See Info-default-directory-list.




This bug report was last modified 5 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.