From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Possible bug: Emacs hangs on (require 'org) Date: Tue, 22 Nov 2016 18:39:07 -0800 Message-ID: <87oa16x6lw.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9NSw-0003Pv-SB for emacs-orgmode@gnu.org; Tue, 22 Nov 2016 21:39:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9NSs-0006Rz-O9 for emacs-orgmode@gnu.org; Tue, 22 Nov 2016 21:39:18 -0500 Received: from [195.159.176.226] (port=60466 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9NSs-0006Qc-IM for emacs-orgmode@gnu.org; Tue, 22 Nov 2016 21:39:14 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c9NSn-00063v-0B for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 03:39:09 +0100 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: emacs-orgmode@gnu.org Luke writes: > I have a strange situation on my laptop. > > I'm running Ubuntu 16.04, with Emacs 24.5.1. I'm also using the latest > development branch from the org-mode git repository (latest changes > pulled today). > > Recently, for some unknown reason, emacs suddenly started to hang on > startup. Placing some output messages in my .emacs file I was able to > narrow it down to this line: > > (require 'org) > > Loading org-mode hangs Emacs for some reason. If I remove the above > line from .emacs then Emacs will start as normal (although without > org-mode, obviously). > > I tried creating a minimal-org.el file with the following contents: > > ;; activate debugging > (setq debug-on-error t > debug-on-signal nil > debug-on-quit nil) > > ;; add latest org-mode to load path > (add-to-list 'load-path (expand-file-name "~/elisp/org-mode/lisp")) > (add-to-list 'load-path (expand-file-name > "~/elisp/org-mode/contrib/lisp" t)) > > And then running: > > $ emacs -Q -l minimal-org.el > > ...but I still get the same result (Emacs hangs when I run `M-x > (require 'org)`). > > Can anyone help tell me what's wrong, or suggest how I try and track > down the problem? You're setting debug-on-quit to nil, but it's likely that setting it to t is exactly what you need. Toggle it to t, eval (require 'org), then while it's hung hit C-g. You should get a backtrace showing you what Emacs was actually doing when you quit. Eric