From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: Emacs hangs sometimes for no reason Date: Wed, 18 Jan 2017 15:12:57 +0100 Message-ID: <87a8aowj6e.fsf@gmail.com> References: <375517626d9045a99b6c008b5aaf62dd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87pojobni4.fsf@ucl.ac.uk> <878tqc88zw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTqz3-0002cA-Np for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTqz0-0006U3-JD for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:13:05 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTqz0-0006Tt-C4 for emacs-orgmode@gnu.org; Wed, 18 Jan 2017 09:13:02 -0500 Received: by mail-wm0-x242.google.com with SMTP id d140so4378366wmd.2 for ; Wed, 18 Jan 2017 06:13:00 -0800 (PST) In-Reply-To: <878tqc88zw.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: =2D-8<---------------cut here---------------start------------->8--- (defun konix/org-element-cache-reset-all () (interactive) (mapc (lambda (file) (save-window-excursion (save-excursion (find-file file) (org-element-cache-reset) ) ) ) (org-agenda-files) ) ) =2D-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, =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEWZO+etpl4tkGzlw2ddI87XQ5EGoFAlh/d+kACgkQddI87XQ5 EGoGIQf/frYv6risObq8ZdYvqeB7H9VSfISV2vVYTUpBgkZ/4z8pRRdRZVzOsOP7 GvphiMo9XV4fsrb4vh6cBXrg1199L8NUDbiDwyLfTPUsCj6R63tXqadXWeuJS6qp +XGA/+NjpCujTOJYOL1HxZqT3pHxJdg3KNzOreQ1N0E1K8FvMCpLPjoTo1D4xVIj aconkPe6Zgho3e6S/c2O75415CRlwexwyaHvGoSOsh1GrBeXcQW7Ee0IvMpOoFZJ I0Q8qXr+o35yFUHM54ndHqpGsNH7LEvCvH2r56ER0lUZGCxK7CKPsqM+BKRddmrC 34vw0vW3UU/V1pRDEphBFeZFVrKI/w== =hE59 -----END PGP SIGNATURE----- --=-=-=--