Browse Source

Insert item even in LaTeX environments.

* org-list.el (org-insert-item): Remove restriction on latex blocks.
Nicolas Goaziou 9 years ago
parent
commit
292b52f596
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lisp/org-list.el

+ 1 - 3
lisp/org-list.el

@@ -618,9 +618,7 @@ block, or item is invisible."
   (unless (or (not (org-in-item-p))
 	      (org-invisible-p)
 	      (org-in-regexps-block-p "^[ \t]*#\\+begin_\\([a-zA-Z]\\)"
-	      			      '(concat "^[ \t]*#\\+end_" (match-string 1)))
-	      (org-in-regexps-block-p "^[ \t]*\\\\begin{\\([a-zA-Z]\\)}"
-	      			      '(concat "^[ \t]*\\\\end{" (match-string 1) "}")))
+	      			      '(concat "^[ \t]*#\\+end_" (match-string 1))))
     (let* ((pos (point))
 	   (before-p (and (org-at-item-p)
 			  (<= (point) (match-end 0))))