On Jul 14, 2007, at 2:58, Bernt Hansen wrote:

Okay I think I know what I'm doing wrong here.  For some files I'm
changing the outline-regexp to something org mode isn't expecting. When
I visit a *.txt file I change the outline-regexp to

    (setq outline-regexp "\\(?:\\*+\\|=+ \\)")

which I find useful for things like editing asciidoc source files.

You should always set this variable in a buffer-local way:

(set (make-local-variable 'outline-regexp) "\\(?:\\*+\\|=+ \\)")

In fact, I should do this for org-mode, and I am not doing it!
Amazing that this was discovered only now.  Will be fixed in the
next version.

- Carsten



_______________________________________________
Emacs-orgmode mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to