[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Emacs hangs sometimes for no reason
From: |
Sebastian Christ |
Subject: |
Re: [O] Emacs hangs sometimes for no reason |
Date: |
Thu, 19 Jan 2017 09:37:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
>>>>> "SL" == Samuel Loury <address@hidden> writes:
SL> For what it's worth, when this happens, I generally pkill
SL> -SIGUSR2 emacs. emacs reacts to the USR2 signal by stopping
SL> everything and start a lisp debugging session. From there, I
SL> reset all the org caches with this command:
SL> (defun konix/org-element-cache-reset-all ()
SL> (interactive)
SL> (mapc
SL> (lambda (file)
SL> (save-window-excursion
SL> (save-excursion
SL> (find-file file)
SL> (org-element-cache-reset))))
SL> (org-agenda-files)))
Thanks for this snippet. I know it's a little bit early but setting
`org-element-use-cache' seems to do the trick for me.
SL> Finally, I quit the debugging session and reset the debug on
SL> quit with (toggle-debug-on-quit) and everything comes back to
SL> normal.
So, aren't you restarting Emacs after pkill -SIGUSR2 emacs?
Regards,
Sebastian
--
Sebastian (Rudolfo) Christ
http://rudolfochrist.github.io
GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061
CE71 6407 D6F8 2AC5 55DD
- Re: [O] Emacs hangs sometimes for no reason, (continued)