Re: [O] Patch for org-beamer.el: mark frames containing \lstinline as fragile

2011-12-20 Thread Bastien
Hi Christoph,

Christoph LANGE ch.la...@jacobs-university.de writes:

 please find attached a patch for org-beamer.el that also recognizes
 \lstinline and \verb as commands that make a frame fragile.

Applied, thanks!

-- 
 Bastien



[O] Patch for org-beamer.el: mark frames containing \lstinline as fragile

2011-12-18 Thread Christoph LANGE

Dear org-mode developers,

please find attached a patch for org-beamer.el that also recognizes 
\lstinline and \verb as commands that make a frame fragile.


Cheers, and thanks,

Christoph

--
Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el
index 118aa75..d64ce2d 100644
--- a/lisp/org-beamer.el
+++ b/lisp/org-beamer.el
@@ -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)