unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Sung-Taek Lim <totohero@gmail.com>
Cc: 1116@emacsbugs.donarmstrong.com
Subject: bug#1116: Emacs hangs when executing Info-final-node
Date: Wed, 08 Oct 2008 16:58:00 +0200	[thread overview]
Message-ID: <48ECCA78.7080106@gmx.at> (raw)
In-Reply-To: <c944a1210810071748q7e156308r2902ae106f885cfb@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

 > 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

[-- Attachment #2: 1116.diff --]
[-- Type: text/plain, Size: 2073 bytes --]

*** 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")))

  reply	other threads:[~2008-10-08 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <48EF5EA2.8050408@gmx.at>
2008-10-08  0:48 ` bug#1116: Emacs hangs when executing Info-final-node Sung-Taek Lim
2008-10-08 14:58   ` martin rudalics [this message]
2008-10-08 16:00     ` Drew Adams
2008-10-08 18:03       ` martin rudalics
2008-10-08 18:29         ` Drew Adams
2008-10-08 16:03     ` Drew Adams
2008-10-09 12:37     ` Sung-Taek Lim
2008-10-10 14:05   ` bug#1116: marked as done (Emacs hangs when executing Info-final-node) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48ECCA78.7080106@gmx.at \
    --to=rudalics@gmx.at \
    --cc=1116@emacsbugs.donarmstrong.com \
    --cc=totohero@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).