emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jarmo Hurri <jarmo.hurri@iki.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: New Beamer environment selection problem
Date: Thu, 28 Apr 2016 23:51:30 +0200	[thread overview]
Message-ID: <87k2jhieql.fsf@saiph.selenimh> (raw)
In-Reply-To: <87bn4v1887.fsf@iki.fi> (Jarmo Hurri's message of "Wed, 27 Apr 2016 16:39:36 +0300")

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

Hello,

Jarmo Hurri <jarmo.hurri@iki.fi> 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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ox-beamer-Fix-apply-Wrong-number-of-arguments-max-0.patch --]
[-- Type: text/x-diff, Size: 1027 bytes --]

From 39cbbca8b6599d4701c243b0eb016b1c7793abba Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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 <jarmo.hurri@iki.fi>
<http://permalink.gmane.org/gmane.emacs.orgmode/106705>
---
 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


  reply	other threads:[~2016-04-28 21:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27  9:19 New Beamer environment selection problem Jarmo Hurri
2016-04-27 10:04 ` Nicolas Goaziou
2016-04-27 13:39   ` Jarmo Hurri
2016-04-28 21:51     ` Nicolas Goaziou [this message]
2016-05-02  8:37       ` Jarmo Hurri
2016-05-12 10:04       ` Julien Cubizolles
2016-05-12 12:21         ` Nicolas Goaziou
2016-05-12 21:21           ` Julien Cubizolles

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=87k2jhieql.fsf@saiph.selenimh \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@iki.fi \
    /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).