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.
This commit is contained in:
Nicolas Goaziou 2014-09-12 20:58:47 +02:00
parent 4cb0bc089f
commit 70a0c5bfa1
1 changed files with 3 additions and 2 deletions

View File

@ -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))