From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: info-lookup-symbol Date: Mon, 09 Apr 2007 09:57:02 +0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1176101870 5412 80.91.229.12 (9 Apr 2007 06:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2007 06:57:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 08:57:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hanoc-0001Wg-Fy for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 08:57:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HansO-0002Bm-Us for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 03:01:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HansC-00028d-KF for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 03:01:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HansB-00028R-2L for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 03:01:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HansA-00028O-VD for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 03:01:06 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HanoL-0003he-LU for help-gnu-emacs@gnu.org; Mon, 09 Apr 2007 02:57:10 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-248-28.inter.net.il [84.228.248.28]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GLW74652 (AUTH halo1); Mon, 9 Apr 2007 09:57:01 +0300 (IDT) In-reply-to: (message from Rehceb Rotkiv on Sun, 08 Apr 2007 18:07:07 -0500) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42496 Archived-At: > From: Rehceb Rotkiv > Date: Sun, 08 Apr 2007 18:07:07 -0500 > > when I use info-lookup-symbol, I sometimes get to the wrong place in the > info file. For example, when I use info-lookup-symbol on the keyword > "break" in a Python source code file, it takes me to the index item > > * break <1>: try statement. > > instead of > > * break: break statement. Confirmed. > probably because (strangely) the first appears before the latter in the > index of the info file. That's the reason, yes. The ones with appear before the one without because this is how disambiguation of identical index entries is implemented in Texinfo; I will ask the Texinfo maintainer to change that. > How can I avoid this? You can edit the index of the Python manual by hand, putting the main index entry first in the Index node. I don't have any better ideas at this time. But the _real_ fix is to complain to the authors of the Python manual: they shouldn't be having several index entries named identically in the first place. They should instead qualify all but the single entry (the one that points to the "break statement" node) with the specialized aspects of "break" described in the other places. For example, the "break <1>" entry could be renamed to something like "break, in `try' forms". > Is it, for example, > possible, to get a summary of all index items that contain "break" > instead of directly jumping to the first one? You can switch to the *info* buffer and type "i break TAB". > Also, how does Emacs know > in which index file to look / how can I customize it? This is set up either in info-look.el or in the language-specific mode package. In this case, see python-after-info-look in python.el.