From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Patch for org-beamer.el: mark frames containing \lstinline as fragile Date: Sun, 18 Dec 2011 18:20:30 +0100 Message-ID: <4EEE20DE.50208@googlemail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050709060502080102090303" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcQb9-0003Bv-UV for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 18:56:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcQb8-0005ZV-Pj for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 18:56:55 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:40564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcQb8-0005ZN-Hy for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 18:56:54 -0500 Received: by wgbdt12 with SMTP id dt12so7596726wgb.0 for ; Sun, 18 Dec 2011 15:56:53 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Mailing List This is a multi-part message in MIME format. --------------050709060502080102090303 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------050709060502080102090303 Content-Type: text/x-patch; name="org-beamer-fragile.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="org-beamer-fragile.patch" 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) --------------050709060502080102090303--