[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Emacs hangs sometimes for no reason

From: Samuel Loury
Subject: Re: [O] Emacs hangs sometimes for no reason
Date: Wed, 18 Jan 2017 15:12:57 +0100

For what it's worth, when this happens, I generally pkill -SIGUSR2
emacs. emacs reacts to the USR2 signal by stopping everything and start
a lisp debugging session. From there, I reset all the org caches with
this command:

--8<---------------cut here---------------start------------->8---
(defun konix/org-element-cache-reset-all ()
   (lambda (file)
                 (find-file file)
--8<---------------cut here---------------end--------------->8---

Finally, I quit the debugging session and reset the debug on quit with
(toggle-debug-on-quit) and everything comes back to normal.

My two cents,
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]