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 export blocks
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on export blocks.
This commit is contained in:
parent
4cb0bc089f
commit
70a0c5bfa1
|
@ -7339,8 +7339,9 @@ is non-nil, hide it unconditionally."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((element (org-element-at-point)))
|
(let ((element (org-element-at-point)))
|
||||||
(unless (memq (org-element-type element)
|
(unless (memq (org-element-type element)
|
||||||
'(center-block comment-block example-block quote-block
|
'(center-block comment-block example-block export-block
|
||||||
special-block src-block verse-block))
|
quote-block special-block src-block
|
||||||
|
verse-block))
|
||||||
(user-error "Not at a block"))
|
(user-error "Not at a block"))
|
||||||
(let* ((start (save-excursion
|
(let* ((start (save-excursion
|
||||||
(goto-char (org-element-property :post-affiliated element))
|
(goto-char (org-element-property :post-affiliated element))
|
||||||
|
|
Loading…
Reference in a new issue