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#1116: Emacs hangs when executing Info-final-node Date: Wed, 8 Oct 2008 09:00:15 -0700 Message-ID: <000701c9295e$f4b950e0$c2b22382@us.oracle.com> References: <48ECCA78.7080106@gmx.at> Reply-To: Drew Adams , 1116@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223483911 3486 80.91.229.12 (8 Oct 2008 16:38:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 16:38:31 +0000 (UTC) To: "'martin rudalics'" , <1116@emacsbugs.donarmstrong.com>, "'Sung-Taek Lim'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 08 18:39:24 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 1KnbxX-0002ys-0D for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 18:32:23 +0200 Original-Received: from localhost ([127.0.0.1]:57454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnbwS-000442-AV for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 12:31:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnbvN-0003TL-UY for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:30:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnbvK-0003Qa-C3 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:30:07 -0400 Original-Received: from [199.232.76.173] (port=59212 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnbvJ-0003Q6-DY for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:30:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46271) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnbvI-0007zQ-18 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 12:30:04 -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 m98GTvqU017382; Wed, 8 Oct 2008 09:29:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m98GA5rl012672; Wed, 8 Oct 2008 09:10:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 16:10:05 +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.122348163310177 (code B ref 1116); Wed, 08 Oct 2008 16:10:05 +0000 Original-Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 16:00:33 +0000 Original-Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m98G0QdJ010018 for <1116@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 09:00:28 -0700 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m98G0Hke016917; Wed, 8 Oct 2008 11:00:17 -0500 Original-Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m98G0GLd004788; Wed, 8 Oct 2008 10:00:16 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Oct 2008 16:00:15 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <48ECCA78.7080106@gmx.at> Thread-Index: AckpXLgmHVEf0OYbT9+PyNdQJDlnGQAAFYXA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 08 Oct 2008 12:30:07 -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:21277 Archived-At: > > C-h i ;; open *info* > > Press '>' ;; execute 'Info-final-node and emacs hangs! > > > > Always reproduced. > > Would the attached patch help? I don't mean to butt in here, but I suspect this is due to bug #1117 (probably = #876). Are there extra ^M at the line ends of the Index page (which is the last node)? I have bug #1117 in my latest CVS version, and debugging Info-final-node shows exactly that. The code gets here, and it just loops because "Top^M" is not string-equal to "Top". Debugger entered--returning value: nil string-equal("top " "top") * (not (string-equal (downcase ...) "top")) * (and (save-excursion (search-backward "up:" nil t)) (not (string-equal ... "top"))) * (cond ((and ... ... ...) (Info-goto-node ...) t) ((save-excursion ...) (Info-next) t) ((and ... ...) (let ... ... ...)) (no-error nil) (t (error "No pointer forward from this node"))) * (let ((case-fold-search t)) (cond (... ... t) (... ... t) (... ...) (no-error nil) (t ...))) * Info-forward-node(t t) * (while (Info-forward-node t t) nil) * (let ((Info-history nil) (case-fold-search t)) (Info-goto-node (Info-extract-menu-counting nil)) (while (Info-forward-node t t) nil) (while (and ... ...) (Info-goto-node ...))) * Info-final-node() call-interactively(Info-final-node nil nil) It was looking at Martin's patch that made me think of this - the code is similar to my code that made me discover bug #1117 - same comparison of "Top^M" with "Top", but in my case (isearch) an error was raised instead of an infinite loop. HTH.