emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christoph LANGE <ch.lange@jacobs-university.de>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Patch for org-beamer.el: mark frames containing \lstinline as fragile
Date: Sun, 18 Dec 2011 18:20:30 +0100	[thread overview]
Message-ID: <4EEE20DE.50208@googlemail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

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

[-- Attachment #2: org-beamer-fragile.patch --]
[-- Type: text/x-patch, Size: 624 bytes --]

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)

             reply	other threads:[~2011-12-18 23:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-18 17:20 Christoph LANGE [this message]
2011-12-20 22:08 ` Patch for org-beamer.el: mark frames containing \lstinline as fragile Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEE20DE.50208@googlemail.com \
    --to=ch.lange@jacobs-university.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).