org-beamer.el: Also recognize \lstinline and \verb as commands that make a frame fragile.

* org-beamer.el (org-beamer-fragile-re): Also recognize
\lstinline and \verb as commands that make a frame fragile.

Thanks to Christoph LANGE for this patch.
This commit is contained in:
Bastien Guerry 2011-12-20 23:06:39 +01:00
parent e6ab3158e1
commit 0c6722d79a

View file

@ -399,7 +399,7 @@ the value will be inserted right after the documentclass statement."
(insert org-beamer-header-extra)
(or (bolp) (insert "\n"))))))
(defcustom org-beamer-fragile-re "^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}"
(defcustom org-beamer-fragile-re "\\\\\\(verb\\|lstinline\\)\\|^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}"
"If this regexp matches in a frame, the frame is marked as fragile."
:group 'org-beamer
:type 'regexp)