From: Sebastian Christ <rudolfo.christ@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs hangs sometimes for no reason
Date: Thu, 19 Jan 2017 09:37:14 +0100 [thread overview]
Message-ID: <m2o9z3v41x.fsf@gmail.com> (raw)
In-Reply-To: 87a8aowj6e.fsf@gmail.com
>>>>> "SL" == Samuel Loury <konubinix@gmail.com> 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
next prev parent reply other threads:[~2017-01-19 8:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <375517626d9045a99b6c008b5aaf62dd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-15 10:56 ` Emacs hangs sometimes for no reason Eric S Fraga
2017-01-15 13:55 ` Stig Brautaset
2017-01-15 14:05 ` Stig Brautaset
2017-01-15 16:34 ` Eric Abrahamsen
2017-01-16 7:46 ` Michael Welle
2017-01-16 16:32 ` Eric Abrahamsen
[not found] ` <e14c1ab631e7438887615a8e568a31f5@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2017-01-15 18:37 ` Eric S Fraga
2017-01-18 14:12 ` Samuel Loury
2017-01-19 8:37 ` Sebastian Christ [this message]
2017-01-20 7:34 ` Samuel Loury
[not found] ` <ad4e6c881fc34dbe871e0790f56d5a4e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-18 16:09 ` Eric S Fraga
2017-01-14 18:33 Sebastian Christ
2017-01-14 18:42 ` Nicolas Goaziou
2017-01-14 19:38 ` Samuel Wales
2017-01-15 8:52 ` Sebastian Christ
2017-01-15 8:49 ` Sebastian Christ
2020-02-11 12:32 ` Karl Voit
2020-02-11 22:23 ` briangpowell .
2020-02-12 9:09 ` Karl Voit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2o9z3v41x.fsf@gmail.com \
--to=rudolfo.christ@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.