From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Kroos Subject: e-beamer-patch Date: Wed, 22 Aug 2012 14:39:52 +0200 Message-ID: <20120822123952.GA7868@desktop> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MGYHOYXEY6WxJCY8" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4ADe-0000Qr-HJ for emacs-orgmode@gnu.org; Wed, 22 Aug 2012 08:39:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4ADa-00013u-H6 for emacs-orgmode@gnu.org; Wed, 22 Aug 2012 08:39:34 -0400 Received: from mailout01.t-online.de ([194.25.134.80]:47575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4ADa-00013g-7N for emacs-orgmode@gnu.org; Wed, 22 Aug 2012 08:39:30 -0400 Content-Disposition: inline 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: emacs-orgmode@gnu.org --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, while trying the new e-beamer I ran into a type-error which occurs when org-e-beamer-outline-frame-options is left at its default value `nil'. The attached patch is a possible solution that works for me, though a more general check in org-e-beamer--normalize-arguments may be more appropriate (in case I'm not just missing to set a certain option right). Regards, Philipp --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-e-beamer-Fix-a-type-error-with-normalize-argument.patch" Content-Transfer-Encoding: quoted-printable =46rom 9514f0b3b63659df676b72442283c8b43cfbcadb Mon Sep 17 00:00:00 2001 =46rom: Philipp Kroos Date: Wed, 22 Aug 2012 14:25:20 +0200 Subject: [PATCH] e-beamer: Fix a type-error with normalize-argument * org-e-beamer.el (org-e-beamer-template): Make sure `org-e-beamer--normalize-argument' is not called with `nil' when formatting the toc. The error occured when org-e-beamer-outline-frame-options has got no value (the default). --- contrib/lisp/org-e-beamer.el | 6 ++++-- 1 Datei ge=E4ndert, 4 Zeilen hinzugef=FCgt(+), 2 Zeilen entfernt(-) diff --git a/contrib/lisp/org-e-beamer.el b/contrib/lisp/org-e-beamer.el index af5b8ff..9096531 100644 --- a/contrib/lisp/org-e-beamer.el +++ b/contrib/lisp/org-e-beamer.el @@ -815,8 +815,10 @@ holding export options." (when depth (concat (format "\\begin{frame}%s{%s}\n" - (org-e-beamer--normalize-argument - org-e-beamer-outline-frame-options 'option) + (if org-e-beamer-outline-frame-options + (org-e-beamer--normalize-argument + org-e-beamer-outline-frame-options 'option) + "") org-e-beamer-outline-frame-title) (when (wholenump depth) (format "\\setcounter{tocdepth}{%d}\n" depth)) --=20 1.7.11.4 --MGYHOYXEY6WxJCY8--