help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: seems to be a general bug with line hiding if lines not starting in


From: Michael Heerdegen
Subject: Re: seems to be a general bug with line hiding if lines not starting in column 0
Date: Thu, 16 Feb 2012 00:55:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Looking at the sources, outline seems not to allow headlines with
> whitespace at the beginning per default.

I wonder why you could hide such lines at all with outline-minor-mode.
I can't do that with the default setup.

> I think you could get it work, but you would have to modify some
> variables like `outline-regexp' and `outline-heading-alist'.  Maybe it's
> not worth the trouble if you are don't want to deal with internals.

Here is an example file with proper local variable settings that works
for me:


--8<---------------cut here---------------start------------->8---
* Headline1a
  ** H2a
  *** H3a
  *** H3b
  ** H2b

* H1b


Local variables:
outline-regexp: " *\\(\\*+\\)"
outline-level: (lambda () (- (match-end 1) (match-beginning 1)))
eval: (outline-minor-mode)
End:

--8<---------------cut here---------------end--------------->8---


Michael.



reply via email to

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