all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Bug in outline-minor-mode
Date: Sat, 19 Jan 2008 19:05:16 +0100	[thread overview]
Message-ID: <47923BDC.3050800@gmx.at> (raw)

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

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.

[-- Attachment #2: outline.patch --]
[-- Type: text/plain, Size: 907 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2008-01-19 18:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 18:05 martin rudalics [this message]
2008-01-21  9:07 ` Bug in outline-minor-mode Richard Stallman

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

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

  git send-email \
    --in-reply-to=47923BDC.3050800@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.