Dear Eric,

Many thanks for this more elegant solution that I had just tested, and it works! 

I add that

#+OPTIONS:  toc:nil

is necessary to avoid a repetition of table of contents.

Thanks again !

Jo.




2016-03-02 14:42 GMT+01:00 Eric S Fraga <e.fraga@ucl.ac.uk>:
On Wednesday,  2 Mar 2016 at 14:29, Joseph Vidal-Rosset wrote:
> Of course it would be better to add this function as new option and to
> avoid this change of code. I do not know how to do.

I find it reasonably straightforward to simply add the following line to
my beamer org files:

#+latex_header: \AtBeginSection[]{\begin{frame}<beamer>\frametitle{Topic}\tableofcontents[currentsection,hideothersubsections]\end{frame}}

so no need to play with the elisp code...

--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-456-g164555