emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Philipp Kroos <Philipp.Kroos@t-online.de>
To: emacs-orgmode@gnu.org
Subject: e-beamer-patch
Date: Wed, 22 Aug 2012 14:39:52 +0200	[thread overview]
Message-ID: <20120822123952.GA7868@desktop> (raw)

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

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

[-- Attachment #2: 0001-e-beamer-Fix-a-type-error-with-normalize-argument.patch --]
[-- Type: text/plain, Size: 1263 bytes --]

From 9514f0b3b63659df676b72442283c8b43cfbcadb Mon Sep 17 00:00:00 2001
From: Philipp Kroos <philipp.kroos@t-online.de>
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ändert, 4 Zeilen hinzugefügt(+), 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))
-- 
1.7.11.4


             reply	other threads:[~2012-08-22 12:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 12:39 Philipp Kroos [this message]
2012-08-22 14:35 ` e-beamer-patch Nicolas Goaziou

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=20120822123952.GA7868@desktop \
    --to=philipp.kroos@t-online.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).