mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-28 07:44:49 +00:00
Insert item even in LaTeX environments.
* org-list.el (org-insert-item): Remove restriction on latex blocks.
This commit is contained in:
parent
47cd0c193d
commit
292b52f596
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user