فهرست منبع

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
Nicolas Goaziou 10 سال پیش
والد
کامیت
4cb0bc089f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

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