diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-09-12 20:58:47 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-09-12 20:58:47 +0200 |
commit | 70a0c5bfa16ce4c9bc538ec57c3eb926eb26ea11 (patch) | |
tree | bc64b0302800ff2c185cbef5b03c8138d8cafc45 | |
parent | 4cb0bc089f8c6174746b96a3985afaa61e5d232a (diff) | |
download | org-mode-70a0c5bfa16ce4c9bc538ec57c3eb926eb26ea11.tar.gz |
Fix "Not at a block" error on export blocks
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
export blocks.
-rwxr-xr-x | lisp/org.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el index b7e3054..7c82420 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -7339,8 +7339,9 @@ is non-nil, hide it unconditionally." (interactive) (let ((element (org-element-at-point))) (unless (memq (org-element-type element) - '(center-block comment-block example-block quote-block - special-block src-block verse-block)) + '(center-block comment-block example-block export-block + quote-block special-block src-block + verse-block)) (user-error "Not at a block")) (let* ((start (save-excursion (goto-char (org-element-property :post-affiliated element)) |