avoid infinite looping in hide-other.
+2008-01-21 Martin Rudalics <rudalics@gmx.at>
+
+ * outline.el (outline-up-heading): Fix check for top level to
+ avoid infinite looping in hide-other.
+
2008-01-21 Thien-Thi Nguyen <ttn@gnuvola.org>
* vc.el (vc-process-sentinel): After calling the previous
(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"))
+ (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)))