Re: [O] New Beamer environment selection problem

2016-05-16 Thread Julien Cubizolles
Nicolas Goaziou  writes:

> Hello,
>
> Julien Cubizolles  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.




Re: [O] New Beamer environment selection problem

2016-05-12 Thread Nicolas Goaziou
Hello,

Julien Cubizolles  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



Re: [O] New Beamer environment selection problem

2016-05-12 Thread Julien Cubizolles
Nicolas Goaziou  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)




Re: [O] New Beamer environment selection problem

2016-05-02 Thread Jarmo Hurri

Nicolas Goaziou  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




Re: [O] New Beamer environment selection problem

2016-04-28 Thread Nicolas Goaziou
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
>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



Re: [O] New Beamer environment selection problem

2016-04-27 Thread Jarmo Hurri
Nicolas Goaziou  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




Re: [O] New Beamer environment selection problem

2016-04-27 Thread Nicolas Goaziou
Hello,

Jarmo Hurri  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



[O] New Beamer environment selection problem

2016-04-27 Thread Jarmo Hurri

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