From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sung-Taek Lim" Newsgroups: gmane.emacs.bugs Subject: bug#1116: Emacs hangs when executing Info-final-node Date: Thu, 9 Oct 2008 21:37:36 +0900 Message-ID: References: <48ECCA78.7080106@gmx.at> Reply-To: Sung-Taek Lim , 1116@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223556640 18177 80.91.229.12 (9 Oct 2008 12:50:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 12:50:40 +0000 (UTC) Cc: 1116@emacsbugs.donarmstrong.com To: "martin rudalics" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 14:51:33 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 1Knuz6-0002aC-8c for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 14:51:16 +0200 Original-Received: from localhost ([127.0.0.1]:38636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knuy2-00081C-9O for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 08:50:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Knuxx-00080C-S4 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 08:50:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Knuxu-0007yn-IP for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 08:50:05 -0400 Original-Received: from [199.232.76.173] (port=51807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Knuxu-0007yQ-4G for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 08:50:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57398) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Knuxt-0004LV-53 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2008 08:50:01 -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 m99Cnwmi029324; Thu, 9 Oct 2008 05:49:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m99Cj3h7028175; Thu, 9 Oct 2008 05:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Sung-Taek Lim" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 12:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1116 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122355586026920 (code B ref 1116); Thu, 09 Oct 2008 12:45:03 +0000 Original-Received: (at 1116) by emacsbugs.donarmstrong.com; 9 Oct 2008 12:37:40 +0000 Original-Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99CbaAe026914 for <1116@emacsbugs.donarmstrong.com>; Thu, 9 Oct 2008 05:37:37 -0700 Original-Received: by rv-out-0506.google.com with SMTP id k40so147rvb.1 for <1116@emacsbugs.donarmstrong.com>; Thu, 09 Oct 2008 05:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LtIckDLIkAD3FS+eDoaKZ7WAQkHaaZbCayY43tp0ZHs=; b=i6WFP37F1jfrPGPaFrpggHFT/eNxGbac7/871+Lnx6Q2ixuc/s61S9PPeKFrXLPbRQ vgIvjMAq6hf8eK6tavP04u5ZMFBiHgeVPzB9+75wcFTO9FhpvwEHmkBB7XRHomHUFHPZ qRx/5jt5IvBFIjXgarE3jJdFGfLE4lQAzRuGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=oKkQ3WSta30eYivOEYWNHKBegrhwIjpn6yn22dmhL5c85TDygtS/ONfz+Fvuiawzpc WbD5jO/CCfKisQujLBAeFcCH4Mn9ml5Hc1xSORLk4G13u0MvdrF2/aoIya9lCvTIzFT8 fsz641dD/OPw22kMCvyMvu51Ki7Ms3/a5eKf0= Original-Received: by 10.141.29.21 with SMTP id g21mr4295rvj.248.1223555856110; Thu, 09 Oct 2008 05:37:36 -0700 (PDT) Original-Received: by 10.141.29.3 with HTTP; Thu, 9 Oct 2008 05:37:36 -0700 (PDT) In-Reply-To: <48ECCA78.7080106@gmx.at> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 09 Oct 2008 08:50:05 -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:21324 Archived-At: Thank you. Your patch works! 2008/10/8, martin rudalics : > > I' running GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-07 on > SOFT-MJASON > > > > D:\> runemacs -Q --debug-init > > > > C-h i ;; open *info* > > Press '>' ;; execute 'Info-final-node and emacs hangs! > > > > Always reproduced. > > Would the attached patch help? > > martin > > *** info.el.~1.501.2.7.~ 2008-03-25 14:48:24.000000000 +0100 > --- info.el 2008-10-08 16:52:49.703125000 +0200 > *************** > *** 2437,2449 **** > (Info-goto-node (Info-extract-menu-counting nil)) > ;; If the last node in the menu is not last in pointer structure, > ;; move forward until we can't go any farther. > ! (while (Info-forward-node t t) nil) > ;; Then keep moving down to last subnode, unless we reach an index. > (while (and (not (Info-index-node)) > (save-excursion (search-forward "\n* Menu:" nil t))) > (Info-goto-node (Info-extract-menu-counting nil))))) > > ! (defun Info-forward-node (&optional not-down no-error) > "Go forward one node, considering all nodes as forming one sequence." > (interactive) > (goto-char (point-min)) > --- 2437,2449 ---- > (Info-goto-node (Info-extract-menu-counting nil)) > ;; If the last node in the menu is not last in pointer structure, > ;; move forward until we can't go any farther. > ! (while (Info-forward-node t t t) nil) > ;; Then keep moving down to last subnode, unless we reach an index. > (while (and (not (Info-index-node)) > (save-excursion (search-forward "\n* Menu:" nil t))) > (Info-goto-node (Info-extract-menu-counting nil))))) > > ! (defun Info-forward-node (&optional not-down no-error not-up) > "Go forward one node, considering all nodes as forming one sequence." > (interactive) > (goto-char (point-min)) > *************** > *** 2461,2467 **** > ((save-excursion (search-backward "next:" nil t)) > (Info-next) > t) > ! ((and (save-excursion (search-backward "up:" nil t)) > ;; Use string-equal, not equal, to ignore text props. > (not (string-equal (downcase (Info-extract-pointer "up")) > "top"))) > --- 2461,2468 ---- > ((save-excursion (search-backward "next:" nil t)) > (Info-next) > t) > ! ((and (not not-up) > ! (save-excursion (search-backward "up:" nil t)) > ;; Use string-equal, not equal, to ignore text props. > (not (string-equal (downcase (Info-extract-pointer "up")) > "top"))) > > >