From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20105: 25.0.50; Emacs manual, `i HOME RET' sends you to `Moving Point', which is wrong Date: Sat, 14 Mar 2015 08:59:29 -0700 (PDT) Message-ID: <9fe72841-fa75-4bbe-bb92-c14e68e0cd7a@default> References: <<265aed11-7056-45f2-afbf-1b5f8b3b0a05@default>> <<83egos2df6.fsf@gnu.org>> <> <<834mpn38iu.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426348832 18864 80.91.229.3 (14 Mar 2015 16:00:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 16:00:32 +0000 (UTC) Cc: 20105@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 14 17:00:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWoU5-00055j-LE for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 17:00:17 +0100 Original-Received: from localhost ([::1]:41172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWoU4-0001KB-Ut for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 12:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWoTz-0001Gn-5b for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2015 12:00:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWoTu-00009Z-67 for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2015 12:00:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWoTu-00008l-3S for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2015 12:00:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YWoTs-00036W-Kf for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2015 12:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Mar 2015 16:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20105 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20105-submit@debbugs.gnu.org id=B20105.142634877411864 (code B ref 20105); Sat, 14 Mar 2015 16:00:04 +0000 Original-Received: (at 20105) by debbugs.gnu.org; 14 Mar 2015 15:59:34 +0000 Original-Received: from localhost ([127.0.0.1]:46730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWoTN-00035I-M8 for submit@debbugs.gnu.org; Sat, 14 Mar 2015 11:59:34 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:18588) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YWoTL-000359-5A for 20105@debbugs.gnu.org; Sat, 14 Mar 2015 11:59:31 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t2EFxTrp003222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 14 Mar 2015 15:59:30 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t2EFxT1l001632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 14 Mar 2015 15:59:29 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t2EFxTxT030070; Sat, 14 Mar 2015 15:59:29 GMT In-Reply-To: <<834mpn38iu.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100476 Archived-At: > > > > For `i home TAB' you see these candidates: > > > > HOME > > > > home directory shorthand > > > > > > > > In my setup I see also these two, but for some reason I don't see t= hem > > > > with `emacs -Q': > > > > HOME directory on MS-Windows > > > > HOME directory under MS-DOS > > > > > > I see all 4 of them in "emacs -Q". Not sure why you don't; perhaps > > > because your build is very old (but I doubt that). > > No, I see only 2, even in this recent build (see end of this message). > > > Do you have INFOPATH set in the environment, perhaps? > > Nope. >=20 > Strange. I have no idea why you see only 2 candidates. I see all 4 > in both the master and emacs-24 branch. I hear you. I don't know why. I'm on Windows 7 64-bit. Other than that, I don't know what else I can add here. But see below. I do have those two missing candidates as explicit entries in the manual indexes. It is completion that, for some reason, fails to pick them up. I don't see how you get different behavior, if we're both using `emacs -Q'. > > I agree about (a) case-insensitive "in general" and (b) users might not > > know about `' vs `home' vs `HOME'. > > > > But why is `HOME' capitalized as a candidate if it points to info about > > the key? >=20 > Don't know. Looks like some feature of completion. Really? My guess is instead that it comes from this explicit index entry (which I see in Emacs 24 but not 23): (I removed some whitespace.) * HOME: Moving Point. (line 57) That's from the Key Index. However, note that there are also these two entries in the Variable Index, which seem not to be used when I do `i home TAB': * HOME: General Variables. (line 59) * HOSTNAME: General Variables. (line 70) (Got this from an Emacs 24.4 build. I assume things are similar for more recent builds.) > > And we don't seem to have any entry currently for the env var (?). > > Shouldn't a user be able to find some info about it? > > `HOME environment variable', for example. >=20 > That's one of the 2 "HOME" entries. They belong to different indices, > so they are identical (and collapsed by completion into a single > completion candidate, I presume). Sorry, I don't know what you mean here. I'm guessing that you're saying something (?) about these entries (again, from Emacs 24.4): * HOME directory on MS-Windows: Windows HOME. (line 6) * home directory shorthand: Minibuffer File. (line 38) * HOME directory under MS-DOS: MS-DOS File Names. (line 35) >From what I see, the only explicit index entries that include `HOME' (capitalized) refer to the home directory, not to the key. So it seems to me that Emacs is not correctly dealing with its own index entries. It also seems that the Key Index somehow overrides the Variable Index (instead of being augmented by it), for completion. HTH.