From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: "Sung-Taek Lim" , 1116@debbugs.gnu.org Resent-From: "Sung-Taek Lim" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 00:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1116 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12234269168684 (code B ref -1); Wed, 08 Oct 2008 00:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Oct 2008 00:48:36 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m980mX4m008678 for ; Tue, 7 Oct 2008 17:48:34 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnNE9-0000J1-4w for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnNE6-0000GP-Pb for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:31 -0400 Received: from [199.232.76.173] (port=47573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnNE6-0000GM-JU for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:30 -0400 Received: from rv-out-0708.google.com ([209.85.198.247]:23265) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnNE5-0002wB-Un for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:30 -0400 Received: by rv-out-0708.google.com with SMTP id k29so4295024rvb.6 for ; Tue, 07 Oct 2008 17:48:27 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=3Vzsy2QuPjf8xjhy78WietdMxlJjzS4xYmijsg2CwY4=; b=Icz1hl2iMiqqtUjXlGS+TvkBuaSvFwYRLBcAXV2BeHqod81ICs2az2nCrWgZbmTkAz EDMVOh359f7dHM7VEAdj5EAs1fepggFHLMELIYee4UyUY9FWcXytFuSuP/jz2QFgsQYD +oX1Ch5QUtO9KFZIyJhyxrymq96+zhumc4uOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=bPEuuq92axsMwB6F/H/hZQYxQzPb+8LFiG0ID1Ndw1r4Iq4EPfZHVQ0VYJyvn90WW+ 6IIRQD9mHg8d93/DfOUpTb4BhlN6OyUir0fOxERjC4z2gjbTEKxz8s2i1ggaXDYD0b1R 1oAdmoElNjSgvjr99vseudVRi1RqPG4x4Xv2Q= Received: by 10.141.15.19 with SMTP id s19mr4409488rvi.205.1223426907626; Tue, 07 Oct 2008 17:48:27 -0700 (PDT) Received: by 10.141.29.3 with HTTP; Tue, 7 Oct 2008 17:48:27 -0700 (PDT) Message-ID: Date: Wed, 8 Oct 2008 09:48:27 +0900 From: "Sung-Taek Lim" To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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. From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: martin rudalics , 1116@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 15:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1116 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122347808527768 (code B ref 1116); Wed, 08 Oct 2008 15:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MIXEDBDN,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 15:01:25 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m98F1GEe027761 for <1116@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 08:01:18 -0700 Received: (qmail invoked by alias); 08 Oct 2008 15:01:10 -0000 Received: from 62-47-40-234.adsl.highway.telekom.at (EHLO [62.47.40.234]) [62.47.40.234] by mail.gmx.net (mp002) with SMTP; 08 Oct 2008 17:01:10 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18JlR1IDX0JVUUmfSa6tQshNaXi8bC+7op0sBBGAE nIXoUf4QOnngqU Message-ID: <48ECCA78.7080106@gmx.at> Date: Wed, 08 Oct 2008 16:58:00 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Sung-Taek Lim CC: 1116@debbugs.gnu.org References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------080503010108090502060600" X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64,0.6 This is a multi-part message in MIME format. --------------080503010108090502060600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------080503010108090502060600 Content-Type: text/plain; name="1116.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1116.diff" *** 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"))) --------------080503010108090502060600-- From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: "Drew Adams" , 1116@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.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: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122348163310177 (code B ref 1116); Wed, 08 Oct 2008 16:10:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 16:00:33 +0000 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 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 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 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Oct 2008 16:00:15 +0000 From: "Drew Adams" To: "'martin rudalics'" , <1116@debbugs.gnu.org>, "'Sung-Taek Lim'" References: <48ECCA78.7080106@gmx.at> Date: Wed, 8 Oct 2008 09:00:15 -0700 Message-ID: <000701c9295e$f4b950e0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 > > 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. From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: "Drew Adams" , 1116@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 16:10:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1116 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122348182810497 (code B ref 1116); Wed, 08 Oct 2008 16:10:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 16:03:48 +0000 Received: from rgminet01.oracle.com (rgminet01.oracle.com [148.87.113.118]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m98G3eSW010490 for <1116@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 09:03:41 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m98G3HuA009877; Wed, 8 Oct 2008 10:03:23 -0600 Received: from acsmt702.oracle.com (acsmt702.oracle.com [141.146.40.80]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m98G3FpQ032169; Wed, 8 Oct 2008 10:03:15 -0600 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Oct 2008 16:03:14 +0000 From: "Drew Adams" To: "'martin rudalics'" , <1116@debbugs.gnu.org>, "'Sung-Taek Lim'" References: <48ECCA78.7080106@gmx.at> Date: Wed, 8 Oct 2008 09:03:15 -0700 Message-ID: <000801c9295f$5f636070$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AckpXLgmHVEf0OYbT9+PyNdQJDlnGQAAFYXAAAB81TA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE I should add that if this is in fact the cause, it shows how vulnerable our code is to something like extra ^M's - several places break because of node name comparisons. Maybe some more general remedy should be taken to protect against this kind of thing. Node "Top" tends to be at the end of a line for nodes like the Index. Perhaps node-name tests should even check for a final ^M, just to play dumb-safe. Dunno. From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: martin rudalics , 1116@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 18: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: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.12234890788494 (code B ref 1116); Wed, 08 Oct 2008 18:10:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 18:04:38 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m98I4X03008488 for <1116@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 11:04:36 -0700 Received: (qmail invoked by alias); 08 Oct 2008 18:04:27 -0000 Received: from 62-47-54-129.adsl.highway.telekom.at (EHLO [62.47.54.129]) [62.47.54.129] by mail.gmx.net (mp038) with SMTP; 08 Oct 2008 20:04:27 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19UYokCRshU7ssCWH+vgcc3hYRJm2+Fz/qmEsdrjf II7Unstfem2eW3 Message-ID: <48ECF5D9.1080300@gmx.at> Date: Wed, 08 Oct 2008 20:03:05 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Drew Adams CC: 1116@debbugs.gnu.org, "'Sung-Taek Lim'" References: <48ECCA78.7080106@gmx.at> <000701c9295e$f4b950e0$c2b22382@us.oracle.com> In-Reply-To: <000701c9295e$f4b950e0$c2b22382@us.oracle.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 > 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)? Have you looked at the original report? It says I' running GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-07 on SOFT-MJASON > 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". [...] > 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. You can't test this with current CVS on Windows - the ^Ms get in your way thus hiding the original bug. martin From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: "Drew Adams" , 1116@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 18:35: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: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122349058115178 (code B ref 1116); Wed, 08 Oct 2008 18:35:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 8 Oct 2008 18:29:41 +0000 Received: from rgminet01.oracle.com (rgminet01.oracle.com [148.87.113.118]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m98ITYRn015172 for <1116@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 11:29:35 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m98ITNUw017752; Wed, 8 Oct 2008 12:29:23 -0600 Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m98ITNaZ023913; Wed, 8 Oct 2008 12:29:23 -0600 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Oct 2008 18:29:22 +0000 From: "Drew Adams" To: "'martin rudalics'" Cc: <1116@debbugs.gnu.org>, "'Sung-Taek Lim'" References: <48ECCA78.7080106@gmx.at> <000701c9295e$f4b950e0$c2b22382@us.oracle.com> <48ECF5D9.1080300@gmx.at> Date: Wed, 8 Oct 2008 11:29:22 -0700 Message-ID: <005901c92973$ca4e3270$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <48ECF5D9.1080300@gmx.at> Thread-Index: AckpcR4cyiqwkuSVT1yNLaiThWrhRAAAoL6w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE > > 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)? > > Have you looked at the original report? It says > > I' running GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of > 2008-09-07 on SOFT-MJASON > > You can't test this with current CVS on Windows - the ^Ms get in your > way thus hiding the original bug. OK, sorry for the noise. From unknown Mon Aug 18 09:07:02 2025 X-Loop: don@donarmstrong.com Subject: bug#1116: Emacs hangs when executing Info-final-node Reply-To: "Sung-Taek Lim" , 1116@debbugs.gnu.org Resent-From: "Sung-Taek Lim" Resent-To: bug-submit-list@lists.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: Received: via spool by 1116-submit@emacsbugs.donarmstrong.com id=B1116.122355586026920 (code B ref 1116); Thu, 09 Oct 2008 12:45:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116) by emacsbugs.donarmstrong.com; 9 Oct 2008 12:37:40 +0000 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 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= Received: by 10.141.29.21 with SMTP id g21mr4295rvj.248.1223555856110; Thu, 09 Oct 2008 05:37:36 -0700 (PDT) Received: by 10.141.29.3 with HTTP; Thu, 9 Oct 2008 05:37:36 -0700 (PDT) Message-ID: Date: Thu, 9 Oct 2008 21:37:36 +0900 From: "Sung-Taek Lim" To: "martin rudalics" Cc: 1116@debbugs.gnu.org In-Reply-To: <48ECCA78.7080106@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48ECCA78.7080106@gmx.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"))) > > > From unknown Mon Aug 18 09:07:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Sung-Taek Lim" Subject: bug#1116 closed by martin rudalics (Re: bug#1116: Emacs hangs when executing Info-final-node) Message-ID: References: <48EF5EA2.8050408@gmx.at> X-Emacs-PR-Message: they-closed 1116 X-Emacs-PR-Package: emacs Reply-To: 1116@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1223647506-20003-1" This is a multi-part message in MIME format... ------------=_1223647506-20003-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1116: Emacs hangs when executing Info-final-node It has been closed by martin rudalics . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact martin rudalics by replying to this email. --=20 1116: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1116 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1223647506-20003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From rudalics@gmx.at Fri Oct 10 06:55:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1116-done) by emacsbugs.donarmstrong.com; 10 Oct 2008 13:55:35 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m9ADtQtb018163 for <1116-done@emacsbugs.donarmstrong.com>; Fri, 10 Oct 2008 06:55:28 -0700 Received: (qmail invoked by alias); 10 Oct 2008 13:55:19 -0000 Received: from 62-47-59-72.adsl.highway.telekom.at (EHLO [62.47.59.72]) [62.47.59.72] by mail.gmx.net (mp044) with SMTP; 10 Oct 2008 15:55:19 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18H7WMbkk4HyRe8DXfJcVEIHZDzsNDA6weX1Wfadh 6kCEgnKsMBhK9a Message-ID: <48EF5EA2.8050408@gmx.at> Date: Fri, 10 Oct 2008 15:54:42 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1116-done@debbugs.gnu.org CC: Sung-Taek Lim Subject: Re: bug#1116: Emacs hangs when executing Info-final-node References: <48ECCA78.7080106@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72 Fixed in Emacs 23.0.60 as * info.el (Info-extract-menu-counting): New argment no-detail to skip detailed node listings. (Info-forward-node): New argument not-up to inhibit going up. (Info-final-node): Call Info-extract-menu-counting and Info-forward-node with the new arguments set to avoid infinite looping. (Bug#1116) Thanks for the report, martin. ------------=_1223647506-20003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From totohero@gmail.com Tue Oct 7 17:48:36 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Oct 2008 00:48:36 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m980mX4m008678 for ; Tue, 7 Oct 2008 17:48:34 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnNE9-0000J1-4w for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnNE6-0000GP-Pb for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:31 -0400 Received: from [199.232.76.173] (port=47573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnNE6-0000GM-JU for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:30 -0400 Received: from rv-out-0708.google.com ([209.85.198.247]:23265) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnNE5-0002wB-Un for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2008 20:48:30 -0400 Received: by rv-out-0708.google.com with SMTP id k29so4295024rvb.6 for ; Tue, 07 Oct 2008 17:48:27 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=3Vzsy2QuPjf8xjhy78WietdMxlJjzS4xYmijsg2CwY4=; b=Icz1hl2iMiqqtUjXlGS+TvkBuaSvFwYRLBcAXV2BeHqod81ICs2az2nCrWgZbmTkAz EDMVOh359f7dHM7VEAdj5EAs1fepggFHLMELIYee4UyUY9FWcXytFuSuP/jz2QFgsQYD +oX1Ch5QUtO9KFZIyJhyxrymq96+zhumc4uOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=bPEuuq92axsMwB6F/H/hZQYxQzPb+8LFiG0ID1Ndw1r4Iq4EPfZHVQ0VYJyvn90WW+ 6IIRQD9mHg8d93/DfOUpTb4BhlN6OyUir0fOxERjC4z2gjbTEKxz8s2i1ggaXDYD0b1R 1oAdmoElNjSgvjr99vseudVRi1RqPG4x4Xv2Q= Received: by 10.141.15.19 with SMTP id s19mr4409488rvi.205.1223426907626; Tue, 07 Oct 2008 17:48:27 -0700 (PDT) Received: by 10.141.29.3 with HTTP; Tue, 7 Oct 2008 17:48:27 -0700 (PDT) Message-ID: Date: Wed, 8 Oct 2008 09:48:27 +0900 From: "Sung-Taek Lim" To: bug-gnu-emacs@gnu.org Subject: Emacs hangs when executing Info-final-node MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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. ------------=_1223647506-20003-1--