diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2010-07-14 15:41:46 +0200 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2010-09-01 19:05:46 +0200 |
commit | 292b52f59627ed6e6d702228fac7207519e3dcc7 (patch) | |
tree | c19bf54f77581dc78b0fb45404de1b8e13000955 | |
parent | 47cd0c193de0f10c32230df726e8255c25f647b4 (diff) | |
download | org-mode-292b52f59627ed6e6d702228fac7207519e3dcc7.tar.gz |
Insert item even in LaTeX environments.
* org-list.el (org-insert-item): Remove restriction on latex blocks.
-rw-r--r-- | lisp/org-list.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el index 158f4f1..a90671b 100644 --- a/lisp/org-list.el +++ b/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)))) |