On Mon, Jan 7, 2013 at 9:50 AM, Jambunathan K <kjambunathan@gmail.com> wrote:

M-x toggle-debug-on-quit RET
Hit C-g when Emacs hangs.

Or

You can put the following in your .emacs
        (setq debug-on-quit t)


Tried this and unfortunately it didn't help. Once it hangs, pressing C-g does nothing.

On the other hand, maybe it doesn't actually hang. I just noticed this time that the mouse seems to work, i.e. I can move the pointer to different places in the buffer by clicking and I can also select text. It's just the keyboard that doesn't seem to be working anymore inside Emacs. Unfortunately I don't have the menu enabled so I can't tell if it also does something else.
 
Or

It is always good to check everything is OK with minimal Emacs/Org
        emacs --debug-init  -L ~/src/org-mode/lisp  -L ~/src/org-mode/contrib/lisp

>
> Thanks!
>
> S.
>

--