0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 21:37:50 +00:00

Fix "Not at a block" error on special blocks

* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
  special blocks.

Thanks to Fabrice Popineau for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90663
This commit is contained in:
Nicolas Goaziou 2014-09-12 18:38:52 +02:00
parent 6eb9827d53
commit 4cb0bc089f

View file

@ -7340,7 +7340,7 @@ is non-nil, hide it unconditionally."
(let ((element (org-element-at-point)))
(unless (memq (org-element-type element)
'(center-block comment-block example-block quote-block
src-block verse-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))