Occasionally, when I call org-capture, the template selection screen will be launched but then fail to respond to any further keypresses until I C-g, locking up Emacs (and making my desktop fans spin up!) in the meantime. This seems to happen randomly, and doesn't correlate with any changes in my init.el, so I'm at a loss for how to diagnose it. I've profiled org-capture with edebug after this behavior started, but I haven't been able to get it to hang while stepping through it yet - I'm not sure whether that's due to the fact I'm walking through it instead of using bytecode (although I've rebuilt everything recently so I know it's not stale) or just because I haven't gotten lucky enough to provoke the weird behavior.

Any tips for how to profile what's causing a command to hang?

submitted by /u/summetria
[link] [comments]