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: Mon, 29 Jul 2019 19:57:55 +0300 Message-ID: <83k1c0kcbw.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> 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="163215"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36828@debbugs.gnu.org, ofv@wanadoo.es To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 29 18:59:11 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 1hs8zM-000gFS-E7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jul 2019 18:59:08 +0200 Original-Received: from localhost ([::1]:55220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs8zL-00081y-Eo for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jul 2019 12:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36571) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs8zH-00081B-19 for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 12:59:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs8zG-0007dH-0O for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 12:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hs8zF-0007cy-T2 for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 12:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hs8zF-0000Nl-Qi for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2019 12:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jul 2019 16:59:01 +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.15644194991396 (code B ref 36828); Mon, 29 Jul 2019 16:59:01 +0000 Original-Received: (at 36828) by debbugs.gnu.org; 29 Jul 2019 16:58:19 +0000 Original-Received: from localhost ([127.0.0.1]:49036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs8yZ-0000MS-52 for submit@debbugs.gnu.org; Mon, 29 Jul 2019 12:58:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hs8yW-0000MA-Le for 36828@debbugs.gnu.org; Mon, 29 Jul 2019 12:58:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hs8yR-0007G1-2H; Mon, 29 Jul 2019 12:58:11 -0400 Original-Received: from [176.228.60.248] (port=1812 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hs8yP-000367-Tb; Mon, 29 Jul 2019 12:58:10 -0400 In-reply-to: <871ry8rfge.fsf@gmail.com> (message from =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= on Mon, 29 Jul 2019 18:08:33 +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:164053 Archived-At: > From: Štěpán Němec > Cc: 36828@debbugs.gnu.org, ofv@wanadoo.es > Date: Mon, 29 Jul 2019 18:08:33 +0200 > > On Mon, 29 Jul 2019 18:11:45 +0300 > Eli Zaretskii wrote: > > > I think you are missing the perspective of someone who considers the > > current behavior to be TRT. > > Certainly. So much that I can't even imagine why anybody would consider > that TRT (although I do try, and will appreciate if you try to explain). Once again, we are talking about the situation where there's both an installed NEWS file and an uninstalled one for the same Emacs version. The situation where there's just one of them works exactly as you want. Right? > Whether some version is more up-to-date or useful (whatever that means) > is besides the point. What I meant by "most relevant for the running > executable" and "obvious" above was simply what seems to me a case of > the principle of least surprise: if I run /usr/bin/emacs, I expect it to > use the same PREFIX for other things, i.e. /usr/share/emacs.... If I run > /usr/local/bin/emacs, I expect it to use /usr/local/share/emacs.... And > if I run src/emacs, I expect it to use the source tree. But that's not how Emacs works. Emacs looks for its data-directory where it was configured to look for it. At configure time, you can specify that place via the --datadir=DIR option. The result (or the default, if you didn't specify --datadir=DIR) is recorded in src/epaths.h, and that's where Emacs will look for the data files. IOW, you are describing an Emacs that is very different from how the real Emacs works, has been working for decades. Emacs does NOT determine all of the different directories relative to the directory where its binary executable lives. It does it according to how it was configured.