Browse Source

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.
Nicolas Goaziou 10 years ago
parent
commit
70a0c5bfa1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/org.el

+ 3 - 2
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))