From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36828: 27.0.50; Uninstalled emacs shows installed documentation Date: Tue, 30 Jul 2019 18:08:31 +0300 Message-ID: <83wofzimq8.fsf@gnu.org> References: <87lfwitcyf.fsf@telefonica.net> <83blxekwhz.fsf@gnu.org> <87ef2ataoj.fsf@telefonica.net> <837e82kssb.fsf@gnu.org> <87a7cxu16y.fsf@telefonica.net> <87h875qbrv.fsf@gmail.com> <83r268kiss.fsf@gnu.org> <875znkrj6y.fsf@gmail.com> <83mugwkh8u.fsf@gnu.org> <871ry8rfge.fsf@gmail.com> <83k1c0kcbw.fsf@gnu.org> <87wog0pwg6.fsf@gmail.com> <83ftmok8tt.fsf@gnu.org> <874l34smwx.fsf@telefonica.net> <83blxck5gf.fsf@gnu.org> <87v9vkr1je.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="37850"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36828@debbugs.gnu.org, stepnem@gmail.com To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 30 17:09:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsTkV-0009jK-Bg for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jul 2019 17:09:11 +0200 Original-Received: from localhost ([::1]:33780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsTkU-0003Wj-AL for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jul 2019 11:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41243) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsTkP-0003TG-5f for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 11:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsTkO-0004iZ-0w for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 11:09:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsTkM-0004hy-Vy for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 11:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsTkM-0008Ug-Gz for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 11:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jul 2019 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36828 X-GNU-PR-Package: emacs Original-Received: via spool by 36828-submit@debbugs.gnu.org id=B36828.156449933132631 (code B ref 36828); Tue, 30 Jul 2019 15:09:02 +0000 Original-Received: (at 36828) by debbugs.gnu.org; 30 Jul 2019 15:08:51 +0000 Original-Received: from localhost ([127.0.0.1]:51023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsTkA-0008UD-U7 for submit@debbugs.gnu.org; Tue, 30 Jul 2019 11:08:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsTk9-0008U1-0w for 36828@debbugs.gnu.org; Tue, 30 Jul 2019 11:08:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hsTk3-0004Zz-Ke; Tue, 30 Jul 2019 11:08:43 -0400 Original-Received: from [176.228.60.248] (port=3070 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hsTk3-0006oV-3I; Tue, 30 Jul 2019 11:08:43 -0400 In-reply-to: <87v9vkr1je.fsf@telefonica.net> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Mon, 29 Jul 2019 23:09:09 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164113 Archived-At: > From: Óscar Fuentes > Cc: stepnem@gmail.com, 36828@debbugs.gnu.org > Date: Mon, 29 Jul 2019 23:09:09 +0200 > > >> M-x describe-function shows the docstrings of the Emacs I'm executing, > > > > How do you know? What is the value of doc-directory? > > /home/oscar/dev/emacs/stable/build/etc/ > > The installed version is in /usr/local. Hmm... then this is not the use case I had in mind, and some other factor is at work here. Your use case is supposed to be handled by this fragment from init_callproc: if (data_dir == 0) { Lisp_Object tem, tem1, srcdir; Lisp_Object lispdir = Fcar (decode_env_path (0, PATH_DUMPLOADSEARCH, 0)); srcdir = Fexpand_file_name (build_string ("../src/"), lispdir); tem = Fexpand_file_name (build_string ("NEWS"), Vdata_directory); tem1 = Ffile_exists_p (tem); if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1)) { Lisp_Object newdir; newdir = Fexpand_file_name (build_string ("../etc/"), lispdir); tem = Fexpand_file_name (build_string ("NEWS"), newdir); tem1 = Ffile_exists_p (tem); if (!NILP (tem1)) Vdata_directory = newdir; } } So somehow the call to Fequal returns nil in your case, when it shouldn't. Please step with a debugger into this code and see why it fails to detect that you are invoking Emacs from the source directory. My crystal ball says some symlinks are involved. > A quick look at info.el hints that data-directory is also used for > locating the info file. Only for the NS build. > The change would amount to determine if we are running from an > uninstalled build and, if positive, set data-directory et al. to the > values they would have if no installed instance existed. That's the code above, but it somehow isn't working in your case.