From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: bug#17484: 24.3.91; Emacs Pretest (emacs-24.3.91.tar.xz) freeze Date: Wed, 14 May 2014 10:12:45 +0900 Message-ID: <87r43x5fmm.fsf@tanger.home> References: <87d2fiaxjw.fsf@tanger.home> <87tx8tajs5.fsf@tanger.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkNls-0000eP-Ad for emacs-orgmode@gnu.org; Tue, 13 May 2014 21:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkNli-00088s-F0 for emacs-orgmode@gnu.org; Tue, 13 May 2014 21:14:11 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Stefan Monnier's message of "Tue, 13 May 2014 13:59:45 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Monnier Cc: Carsten Dominik , 17484@debbugs.gnu.org Stefan Monnier writes: >> So, that's an org-mode bug, I'll try to see if I can reproduce it > > Right: org-adaptive-fill-function should finish fairly promptly. > >> (though I wonder why it uses `inhibit-quit' in the first place). > > It's not org-mode which binds inhibit-quit but the C code that runs > jit-lock. The C code binds inhibit-quit basically any time we run > "asynchronous code" (i.e. code run from redisplay, timers, > process-filters, ...) since the user usually doesn't really know that > such is running, so if she hits C-g she doesn't mean for it to interrupt > that code, but instead to do something else (e.g. get out of the > minibuffer). Well, `org-mks' (in `org-capture.el') sets `inhibit-quit' to T and is called by `org-capture'. I have found 7 places were `inhibit-quit' was set to T in org-mode. > The flip side is that all code run from jit/font-lock, process filters > and timers should be super extra careful to finish promptly and never > ever get into an inf-loop. I can see why. :) -- Daimrod/Greg