When writing LaTeX presentations with the beamer class in emacs+auctex I would like to have a function (and keybinding) that does the following three things:
- narrow to the next frame environment if currently nothing is narrowed
- move to the next frame environment when I'm already narrowed to some frame environment.
- if there is no subsequent frame environment to narrow to, then widen.
I can do this more or less with several keybindings using the features available in the auctex and expand-region packages. But I would love to have this behaviour bound to a single keybinding.
Is this possible?