From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: New Beamer environment selection problem Date: Thu, 28 Apr 2016 23:51:30 +0200 Message-ID: <87k2jhieql.fsf@saiph.selenimh> References: <878tzzv26g.fsf@iki.fi> <87k2jjl64z.fsf@saiph.selenimh> <87bn4v1887.fsf@iki.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avtqW-0004ND-JR for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 17:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avtqT-0001nq-Ch for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 17:51:40 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:56678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avtqS-0001nl-Vv for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 17:51:37 -0400 In-Reply-To: <87bn4v1887.fsf@iki.fi> (Jarmo Hurri's message of "Wed, 27 Apr 2016 16:39:36 +0300") 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" To: Jarmo Hurri Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, Jarmo Hurri writes: > Debugger entered--Lisp error: (wrong-number-of-arguments max 0) > max() > apply(max nil) > org-fast-tag-selection(nil nil nil nil) > org-set-tags() > org-beamer-select-environment() > call-interactively(org-beamer-select-environment nil nil) > command-execute(org-beamer-select-environment) Would the following patch solve the issue? Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-beamer-Fix-apply-Wrong-number-of-arguments-max-0.patch >From 39cbbca8b6599d4701c243b0eb016b1c7793abba Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 28 Apr 2016 23:29:17 +0200 Subject: [PATCH] ox-beamer: Fix "apply: Wrong number of arguments: max, 0" * lisp/ox-beamer.el (org-beamer-select-environment): Use variable introduced in 4743d43. Reported-by: Jarmo Hurri --- lisp/ox-beamer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 4790d5f..65304f4 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -1107,7 +1107,7 @@ aid, but the tag does not have any semantic meaning." (let* ((envs (append org-beamer-environments-special org-beamer-environments-extra org-beamer-environments-default)) - (org-tag-alist + (org-current-tag-alist (append '((:startgroup)) (mapcar (lambda (e) (cons (concat "B_" (car e)) (string-to-char (nth 1 e)))) -- 2.7.4 --=-=-=--