diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index e29b38f3f..72f62155e 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -425,9 +425,12 @@ used as a communication channel." (match-string 1 beamer-opt)) ",")) ;; Provide an automatic label for the frame - ;; unless the user specified one. + ;; unless the user specified one. Also refrain + ;; from labeling `allowframebreaks' frames; this + ;; is not allowed by beamer. (unless (and beamer-opt - (string-match "\\(^\\|,\\)label=" beamer-opt)) + (or (string-match "\\(^\\|,\\)label=" beamer-opt) + (string-match "allowframebreaks" beamer-opt))) (list (format "label=%s" (org-beamer--get-label headline info)))))))