[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-outline-regexp changes break use of org-overview in non-org buff
From: |
Matt Lundin |
Subject: |
[O] org-outline-regexp changes break use of org-overview in non-org buffers |
Date: |
Fri, 12 Aug 2011 17:06:02 -0500 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
The changes to org-overview in the commit
c3748fcd80ec53dc9b0db6e2ad17be6b14dd3bb9 make it impossible to use
org-global-cycle (i.e., org-overview) in non-org buffers, such as
Auctex.
The problematic line is 6231:
(if (re-search-forward org-outline-regexp-bol nil t)
org-outline-regexp-bol is hard-coded to match only the beginning of
outlines in org-buffers:
(defconst org-outline-regexp-bol "^\\*+ ")
The old line in org overview, by contrast, looked for the beginning of
an outline line:
(if (re-search-forward (concat "^" outline-regexp) nil t)
Would it be possible to revert to the older, more generous construction
of the regexp (so that it can vary by mode/buffer)?
Thanks!
Matt
- [O] org-outline-regexp changes break use of org-overview in non-org buffers,
Matt Lundin <=