|
@@ -14485,8 +14485,9 @@ looks only before point, not after."
|
|
|
|
|
|
(defun org-inside-latex-macro-p ()
|
|
|
"Is point inside a LaTeX macro or its arguments?"
|
|
|
- (org-in-regexp
|
|
|
- "\\\\[a-zA-Z]+\\*?\\(\\[[^][\n{}]*\\]\\)?\\({[^{}\n]*}\\)?"))
|
|
|
+ (save-match-data
|
|
|
+ (org-in-regexp
|
|
|
+ "\\\\[a-zA-Z]+\\*?\\(\\[[^][\n{}]*\\]\\)?\\({[^{}\n]*}\\)?")))
|
|
|
|
|
|
(defun org-try-cdlatex-tab ()
|
|
|
"Check if it makes sense to execute `cdlatex-tab', and do it if yes.
|