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: Wed, 07 Aug 2019 17:25:57 +0300 Message-ID: <83wofpaw7e.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> <83wofzimq8.fsf@gnu.org> 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="176432"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36828@debbugs.gnu.org, stepnem@gmail.com To: ofv@wanadoo.es Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 07 16:27:16 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 1hvMuJ-000jmM-Qr for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Aug 2019 16:27:15 +0200 Original-Received: from localhost ([::1]:41814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvMuI-0003Vb-QF for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Aug 2019 10:27:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39787) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvMuA-0003VT-Vs for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2019 10:27:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvMu9-000250-Hn for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2019 10:27:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58590) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvMu6-00023W-LZ for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2019 10:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hvMu6-0003Lj-Gy for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2019 10:27: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: Wed, 07 Aug 2019 14:27: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.156518797512817 (code B ref 36828); Wed, 07 Aug 2019 14:27:02 +0000 Original-Received: (at 36828) by debbugs.gnu.org; 7 Aug 2019 14:26:15 +0000 Original-Received: from localhost ([127.0.0.1]:39178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMtL-0003Ke-2r for submit@debbugs.gnu.org; Wed, 07 Aug 2019 10:26:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMtJ-0003KR-Ca for 36828@debbugs.gnu.org; Wed, 07 Aug 2019 10:26:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hvMtD-0001kZ-M8; Wed, 07 Aug 2019 10:26:07 -0400 Original-Received: from [176.228.60.248] (port=1373 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hvMtC-0002XD-Ra; Wed, 07 Aug 2019 10:26:07 -0400 In-reply-to: <83wofzimq8.fsf@gnu.org> (message from Eli Zaretskii on Tue, 30 Jul 2019 18:08:31 +0300) 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:164711 Archived-At: Ping! Could we please make some progress in this matter? Can you please answer my questions below? TIA > Date: Tue, 30 Jul 2019 18:08:31 +0300 > From: Eli Zaretskii > Cc: 36828@debbugs.gnu.org, stepnem@gmail.com > > > 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.