From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#1118: 23.0.60; Info claims no index exists if first instance of an info file is visited via info-lookup-symbol Date: Thu, 09 Oct 2008 03:36:39 +0300 Organization: JURTA Message-ID: <48ED5217.6080507@jurta.org> References: <48ECFDEC.2090605@gmx.at> Reply-To: Juri Linkov , 1118@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223513417 504 80.91.229.12 (9 Oct 2008 00:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 00:50:17 +0000 (UTC) Cc: Lawrence Mitchell To: martin rudalics , 1118@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 02:51:12 2008 Return-path: Envelope-to: geb-bug-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 1KnjkG-0008BB-6u for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 02:51:12 +0200 Original-Received: from localhost ([127.0.0.1]:39496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnjjC-0005ad-FN for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 20:50:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Knjj9-0005aX-3e for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 20:50:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Knjj6-0005ZI-MB for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 20:50:01 -0400 Original-Received: from [199.232.76.173] (port=53966 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knjj6-0005ZF-Ft for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 20:50:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44875) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Knjj6-0000PQ-KW for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 20:50:00 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m990nvgW011449; Wed, 8 Oct 2008 17:49:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m990j3De010291; Wed, 8 Oct 2008 17:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 00:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1118 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1118-submit@emacsbugs.donarmstrong.com id=B1118.12235126039018 (code B ref 1118); Thu, 09 Oct 2008 00:45:03 +0000 Original-Received: (at 1118) by emacsbugs.donarmstrong.com; 9 Oct 2008 00:36:43 +0000 Original-Received: from smarty.dreamhost.com (postfix@smarty.dreamhost.com [208.113.175.8]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m990ae3E009012 for <1118@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 17:36:41 -0700 Original-Received: from schnapps.dreamhost.com (apache2-noxim.schnapps.dreamhost.com [208.113.175.112]) by smarty.dreamhost.com (Postfix) with ESMTP id 74572EE26C; Wed, 8 Oct 2008 17:36:40 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by schnapps.dreamhost.com (Postfix) with ESMTP id 84713A874A; Wed, 8 Oct 2008 17:36:39 -0700 (PDT) User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <48ECFDEC.2090605@gmx.at> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 08 Oct 2008 20:50:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21305 Archived-At: > > emacs -Q > > C-h S add-text-properties RET ; use info-look to find > add-text-properties > > C-x b *info* RET ; switch to info buffer > > i ; try to lookup something in the index > > > > complains "No index" > > FWIW, it's due to this change > > 2008-06-15 Juri Linkov > > * info.el (Info-toc): Call Info-toc-nodes instead of Info-build-toc. > (Info-toc, Info-insert-toc): Increment nth's index to add PARENT > as the second element. > (Info-build-toc): Add PARENT element extracted from the Up pointer. > Don't print progress messages. > (Info-toc-nodes): New variable and function. > (Info-index-nodes): Optimize non-string file name case. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Juri, please have a look. This whole change was not intended to work with the workflow of `C-h S'. The problem is that `Info-build-toc' calls `Info-index-node' on the temporary buffer where it fails to build the index. Adding a line `(Info-index-node "Top" file)' at the beginning of `Info-build-toc' just before `with-temp-buffer' will fix this bug by building the index outside of the temporary buffer, but I'd like to find more elegant solution. -- Juri Linkov http://www.jurta.org/emacs/