I'm running Emacs build GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23) of 2014-11-27 on x86-010.build.bos.redhat.com on Exceed On Demand (X windows). The following scenario happens to me almost every time I perform it:

  1. I save changes in the current buffer
  2. I click on another window and Emacs loses focus
  3. when I return focus to the Emacs window, the text buffer is unresponsive to keystrokes, the text cursor does not blink, and the only thing that breaks Emacs out of this frozen state is to activate a menu bar (simply popping up a menu bar and then dismissing it by clicking on the text buffer is all that's needed).

It's driving me crazy, any ideas of how to diagnose this or fix it?

  • 3
    GNU Emacs 23.1 was released in 2009, so I suggest an upgrade. – Stefan Oct 15 '18 at 11:58
  • @Stefan The environment is provided by my IT group. Other than lobbying for an upgrade, what other suggestions are there for how I can debug this or perhaps avoid it? – Bogatyr Oct 15 '18 at 14:06
  • This could be some bug that was fixed a long time ago, so you might want to try looking through bug reports. – user12563 Apr 13 '19 at 16:18
  • Please put the info from your comment into the question itself. It may help someone answer you. (Comments can be deleted at any time.) Thx. – Drew Dec 9 '19 at 23:35

[ Hmm... I should have guessed (having to use the Exceed thingy was a dead give away). ]

Diagnosing this will probably require running under a debugger but your executable probably doesn't have much in terms of debugging info [ I assume step 1 of your scenario doesn't actually make any difference. ] Any chance you could try another Emacs, e.g. the Lucid version instead of the Gtk version?

Here's what you can try (at the Elisp level):

(setq debug-on-event 'sigusr2)

[ You're lucky: this var was introduced in 23.1. ]

Then when your Emacs is stuck, do a kill -USR2 <emacs-pid>. If you're indeed lucky, it will wake it up and give you a useful backtrace which might help you come up with a workaround. [ Lots of ifs, tho: I wouldn't hold my breath. ]

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.