summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Schmidt <christopher@ch.ristopher.com>2013-03-15 18:49:49 (GMT)
committer Christopher Schmidt <christopher@ch.ristopher.com>2013-03-15 18:49:49 (GMT)
commitce6c04830526f34d08e344f8e92d395ce081dc34 (patch)
treef7cf817e7fa933c7e95aa8c0bfd52ddb0e97916b
parent437c626b04a656a3f68c4f3c60e7794af774adac (diff)
downloadorg-mode-ce6c04830526f34d08e344f8e92d395ce081dc34.zip
org-mode-ce6c04830526f34d08e344f8e92d395ce081dc34.tar.gz
org.el: Emulate outline's buffer-invisiblity-spec in orgstruct-mode
* org.el (orgstruct-mode): Emulate outline's buffer-invisiblity-spec.
-rw-r--r--lisp/org.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index d16e0e7..a75bdfb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8716,6 +8716,10 @@ modes. The following keys behave as if Org-mode were active, if
the cursor is on a headline, or on a plain list item (both as
defined by Org-mode)."
nil " OrgStruct" (make-sparse-keymap)
+ (funcall (if orgstruct-mode
+ 'add-to-invisibility-spec
+ 'remove-from-invisibility-spec)
+ '(outline . t))
(when orgstruct-mode
(org-load-modules-maybe)
(unless orgstruct-initialized