From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Left Right Newsgroups: gmane.emacs.bugs Subject: bug#12743: 24.2.50; run-python hangs Date: Sat, 27 Oct 2012 17:57:39 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1351353531 16184 80.91.229.3 (27 Oct 2012 15:58:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2012 15:58:51 +0000 (UTC) To: 12743@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 17:59:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TS8mp-00046f-3t for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 17:58:59 +0200 Original-Received: from localhost ([::1]:50282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8mh-0005o3-8v for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 11:58:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8me-0005ng-2c for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:58:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS8md-0001Cv-6Y for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:58:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8md-0001Cm-3J for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:58:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TS8on-0008Sk-WD for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Left Right Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2012 16:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135135360232410 (code B ref -1); Sat, 27 Oct 2012 16:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2012 16:00:02 +0000 Original-Received: from localhost ([127.0.0.1]:35974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS8np-0008QM-GC for submit@debbugs.gnu.org; Sat, 27 Oct 2012 12:00:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34995) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS8nn-0008QF-BL for submit@debbugs.gnu.org; Sat, 27 Oct 2012 12:00:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS8la-0000vA-NX for submit@debbugs.gnu.org; Sat, 27 Oct 2012 11:57:43 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8la-0000v4-Ju for submit@debbugs.gnu.org; Sat, 27 Oct 2012 11:57:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8lZ-0005Ug-Cu for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS8lY-0000u3-Ai for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:57:41 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:37403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS8lX-0000ty-PA for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 11:57:39 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so4047709oag.0 for ; Sat, 27 Oct 2012 08:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mi1GHkTxcT6mYva5h0MarOOOHmg0X3Znry7IJ7Uh5AE=; b=XdHO0kpjz27CMbMjHRczOjz3nGVCW9IWNYLoLid0qhYLsVWovjnelePMDXB+xz+aI5 JCwFLwIW+PbLbKDpmmKLdj2yZ913Xn3ZRnrDshOZIndFx6W6Y79IpHn9nuRZ55Husbr7 Si5Jkm6xueGyKDWBFc1KQO9ToTKGsP+LKKzzYhwRUAc3LSf/nAwRfvjO4fUbmnpeiZ7L myLiIsRQdSufzUSO4fWqwikmWgFTR2QWGW4R1wsS5mFHjg5GNc7VI6goMmQscbNhc+bu BmmMs6gWCTpQ06DtVVBvE+S7OMn6anG5KnUdYRTVtTzNMd2HOIteby/+7m1RQwL08VKr 1eMQ== Original-Received: by 10.60.170.114 with SMTP id al18mr22786670oec.56.1351353459068; Sat, 27 Oct 2012 08:57:39 -0700 (PDT) Original-Received: by 10.76.172.66 with HTTP; Sat, 27 Oct 2012 08:57:39 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66111 Archived-At: Hello again, I think I know what the problem is, but I don't know how to fix it: (defun jit-lock-function (start) "Fontify current buffer starting at position START. This function is added to `fontification-functions' when `jit-lock-mode' is active." (when (and jit-lock-mode (not memory-full)) (if (null jit-lock-defer-timer) ;; No deferral. (jit-lock-fontify-now start (+ start jit-lock-chunk-size)) ;; Record the buffer for later fontification. (unless (memq (current-buffer) jit-lock-defer-buffers) (push (current-buffer) jit-lock-defer-buffers)) ;; Mark the area as defer-fontified so that the redisplay engine ;; is happy and so that the idle timer can find the places to fontify. (with-buffer-prepared-for-jit-lock (put-text-property start (next-single-property-change start 'fontified nil (min (point-max) (+ start jit-lock-chunk-size))) 'fontified 'defer))))) There are 3 s-expressions inside (if ...), the third will never run, but it probably has to. Maybe it should be (when ...) instead of (if ...)? Best. Oleg