emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in outline-minor-mode


From: martin rudalics
Subject: Bug in outline-minor-mode
Date: Sat, 19 Jan 2008 19:05:16 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

With Emacs -Q open keyboard.c, scroll down so that line 89 reading

/* Variables for blockinput.h: */

is the first line of the window.  Now do

M-x outline-minor-mode
M-x hide-other

Here, Emacs consumes ~100% CPU and I have to get out of this via C-g.
Note: The problem does not occur when I call `hide-other' at bob.

The attached patch fixes the problem for me.
*** outline.el.~1.34.~  Tue Oct  9 11:52:48 2007
--- outline.el  Fri Jan 18 20:59:52 2008
***************
*** 971,978 ****
         (or (eq last-command 'outline-up-heading) (push-mark)))
    (outline-back-to-heading invisible-ok)
    (let ((start-level (funcall outline-level)))
!     (if (eq start-level 1)
!       (error "Already at top level of the outline"))
      (while (and (> start-level 1) (> arg 0) (not (bobp)))
        (let ((level start-level))
        (while (not (or (< level start-level) (bobp)))
--- 971,978 ----
         (or (eq last-command 'outline-up-heading) (push-mark)))
    (outline-back-to-heading invisible-ok)
    (let ((start-level (funcall outline-level)))
!     (when (<= start-level 1)
!       (error "Already at top level of the outline"))
      (while (and (> start-level 1) (> arg 0) (not (bobp)))
        (let ((level start-level))
        (while (not (or (< level start-level) (bobp)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]