emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* New Beamer environment selection problem
@ 2016-04-27  9:19 Jarmo Hurri
  2016-04-27 10:04 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Jarmo Hurri @ 2016-04-27  9:19 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

The newest versions of org (pulled from git) introduced a problem in my
use of beamer. Consider the following org file

#-------------------------------------------------------------------
#+STARTUP: beamer
* foo
** bar
#-------------------------------------------------------------------

Earlier, when I moved my cursor to the end of word "bar" and pressed
"C-c C-b" for (org-beamer-select-environment), I was able to select a
beamer environment. Now I get an error

apply: Wrong number of arguments: max, 0

Any ideas?

Jarmo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2016-04-27 10:04 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: emacs-orgmode

Hello,

Jarmo Hurri <jarmo.hurri@iki.fi> writes:


> The newest versions of org (pulled from git) introduced a problem in my
> use of beamer. Consider the following org file
>
> #-------------------------------------------------------------------
> #+STARTUP: beamer
> * foo
> ** bar
> #-------------------------------------------------------------------
>
> Earlier, when I moved my cursor to the end of word "bar" and pressed
> "C-c C-b" for (org-beamer-select-environment), I was able to select a
> beamer environment. Now I get an error
>
> apply: Wrong number of arguments: max, 0
>
> Any ideas?

I cannot reproduce it. Could you send a detailed backtrace? Could you
also check you're not experiencing a mixed installation?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-04-27 10:04 ` Nicolas Goaziou
@ 2016-04-27 13:39   ` Jarmo Hurri
  2016-04-28 21:51     ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Jarmo Hurri @ 2016-04-27 13:39 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

>> The newest versions of org (pulled from git) introduced a problem in my
>> use of beamer. Consider the following org file
>>
>> #-------------------------------------------------------------------
>> #+STARTUP: beamer
>> * foo
>> ** bar
>> #-------------------------------------------------------------------
>>
>> Earlier, when I moved my cursor to the end of word "bar" and pressed
>> "C-c C-b" for (org-beamer-select-environment), I was able to select a
>> beamer environment. Now I get an error
>>
>> apply: Wrong number of arguments: max, 0
>>
>> Any ideas?
>
> I cannot reproduce it. Could you send a detailed backtrace?

Is this detailed enough?

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)

> Could you also check you're not experiencing a mixed installation?

This is a printout of (org-version):

Org-mode version 8.3.4 (release_8.3.4-758-g1daac7 @ /home/jarmo/addons/emacs-packages/org/lisp/)

Also, in (list-load-path-shadows) all the directories that hide other
stuff point to the up-to-date org installation. In addition, in my
.emacs, load-path is updated to include the correct org lisp directory
before any org stuff is loaded.

But it is true that this isn't the only weird thing I have seen
recently. I still haven't been able to solve my Babel shell problem I
posted earlier.

Jarmo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-04-27 13:39   ` Jarmo Hurri
@ 2016-04-28 21:51     ` Nicolas Goaziou
  2016-05-02  8:37       ` Jarmo Hurri
  2016-05-12 10:04       ` Julien Cubizolles
  0 siblings, 2 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2016-04-28 21:51 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: emacs-orgmode

[-- 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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-04-28 21:51     ` Nicolas Goaziou
@ 2016-05-02  8:37       ` Jarmo Hurri
  2016-05-12 10:04       ` Julien Cubizolles
  1 sibling, 0 replies; 8+ messages in thread
From: Jarmo Hurri @ 2016-05-02  8:37 UTC (permalink / raw)
  To: emacs-orgmode


Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

Greetings.

>> 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?

Instead of applying the patch to my current org source, I just pulled
the latest git version and the problem seems to have dissappeared.  So
assuming that you already applied the patch to the latest git version,
yes this patch solved the issue.

Thanks a lot, once again!

Jarmo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-04-28 21:51     ` Nicolas Goaziou
  2016-05-02  8:37       ` Jarmo Hurri
@ 2016-05-12 10:04       ` Julien Cubizolles
  2016-05-12 12:21         ` Nicolas Goaziou
  1 sibling, 1 reply; 8+ messages in thread
From: Julien Cubizolles @ 2016-05-12 10:04 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:


> Would the following patch solve the issue?

I'm still experiencing this problem with the following example

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC elisp
  (add-to-list 'load-path "~/git-repositories/org-mode/lisp")
  (add-to-list 'load-path "~/git-repositories/org-mode/contrib/lisp")
#+END_SRC

#+RESULTS:
: Successfully reloaded Org
: Org-mode version 8.3.4 (release_8.3.4-695-gf07580 @ /home/wilk/git-repositories/org-mode/lisp/)

* Entry
--8<---------------cut here---------------end--------------->8---

with emacs -Q evaluation the src
block, reloading org-mode, org-beamer-select-environment with point on
"Entry" fails with:

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()
  funcall-interactively(org-beamer-select-environment)
  call-interactively(org-beamer-select-environment nil nil)
  command-execute(org-beamer-select-environment)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-05-12 10:04       ` Julien Cubizolles
@ 2016-05-12 12:21         ` Nicolas Goaziou
  2016-05-12 21:21           ` Julien Cubizolles
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2016-05-12 12:21 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: Jarmo Hurri, emacs-orgmode

Hello,

Julien Cubizolles <j.cubizolles@free.fr> writes:

> I'm still experiencing this problem with the following example
>
> #+BEGIN_SRC elisp
>   (add-to-list 'load-path "~/git-repositories/org-mode/lisp")
>   (add-to-list 'load-path "~/git-repositories/org-mode/contrib/lisp")
> #+END_SRC
>
> #+RESULTS:
> : Successfully reloaded Org
> : Org-mode version 8.3.4 (release_8.3.4-695-gf07580 @ /home/wilk/git-repositories/org-mode/lisp/)

This release is too old. You need to update Org.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: New Beamer environment selection problem
  2016-05-12 12:21         ` Nicolas Goaziou
@ 2016-05-12 21:21           ` Julien Cubizolles
  0 siblings, 0 replies; 8+ messages in thread
From: Julien Cubizolles @ 2016-05-12 21:21 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> I'm still experiencing this problem with the following example
>>
>> #+BEGIN_SRC elisp
>>   (add-to-list 'load-path "~/git-repositories/org-mode/lisp")
>>   (add-to-list 'load-path "~/git-repositories/org-mode/contrib/lisp")
>> #+END_SRC
>>
>> #+RESULTS:
>> : Successfully reloaded Org
>> : Org-mode version 8.3.4 (release_8.3.4-695-gf07580 @ /home/wilk/git-repositories/org-mode/lisp/)
>
> This release is too old. You need to update Org.

I was only doing byte-recompile-directory after pulling from git (from
magit actually). According to the doc (that I should have read...) I
should run make update.

Julien.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-16 17:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).