From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25132: 26.0.50; emacs hangs when loading org file with python source blocks Date: Sun, 29 Jan 2017 11:05:54 -0500 Message-ID: <87efzlsvfh.fsf@users.sourceforge.net> References: <4aa23451-b6cd-88b0-369e-99f6fe5f2175@gmail.com> <87y3yn2x4j.fsf@users.sourceforge.net> <87eg0e36un.fsf@users.sourceforge.net> <878tq6wo1p.fsf@users.sourceforge.net> <345079d3-9578-9ab9-1444-353843a70f8b@yandex.ru> <874m0puo2a.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485705919 7563 195.159.176.226 (29 Jan 2017 16:05:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2017 16:05:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: David Dynerman , 25132@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 17:05:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXryV-00011H-5i for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2017 17:05:07 +0100 Original-Received: from localhost ([::1]:55805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXrya-0000DZ-Gx for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2017 11:05:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXryT-0000BA-Uf for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 11:05:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXryQ-0008TD-PX for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2017 11:05:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXryQ-0008T7-MW; Sun, 29 Jan 2017 11:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cXryQ-00046p-85; Sun, 29 Jan 2017 11:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sun, 29 Jan 2017 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25132 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: patch confirmed Original-Received: via spool by 25132-submit@debbugs.gnu.org id=B25132.148570589515782 (code B ref 25132); Sun, 29 Jan 2017 16:05:02 +0000 Original-Received: (at 25132) by debbugs.gnu.org; 29 Jan 2017 16:04:55 +0000 Original-Received: from localhost ([127.0.0.1]:50349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXryJ-00046P-KE for submit@debbugs.gnu.org; Sun, 29 Jan 2017 11:04:55 -0500 Original-Received: from mail-io0-f177.google.com ([209.85.223.177]:34177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXryH-000465-3P; Sun, 29 Jan 2017 11:04:53 -0500 Original-Received: by mail-io0-f177.google.com with SMTP id l66so92718797ioi.1; Sun, 29 Jan 2017 08:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=9ReyIKeAFgA9NxpJzw9R6YZ2+61CDOnt8l+5qx52fY4=; b=lZ+gQDwFsOo24rPAShZJnM9mjUHLtij3EQd2QKiwtz926e26G/JOi8cIrbZ6Ox+2Yq 9Jb8YYU3GyGVKp4RNSJNdQ3iE2ca7G9JQIJ0/Ca5c7k9GxrUJXs9lVCjM65Sqr+Unq02 0/SU2QIdB4yelELJHoGC62DNDPv+ajpnngQP1NdDrrvx4y+ueEtDZDrpSufQC+7ttuuQ aFFe1LtO3B+vgCGLnV1mQe4CnspuzdY3DVb1cVejp3AAxfzjjzLjh8Dx4hToiEqejMiy KYpbshOqmfX39+9aXXj4q/6UplUeeTTLmQy8Yp4Itl+lkSgIfa4HsXHqmXXmDCY2U5x2 CvjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=9ReyIKeAFgA9NxpJzw9R6YZ2+61CDOnt8l+5qx52fY4=; b=gTgJIZFO4t+g5INcZyK6owFO2zC3PHQ3PWPOENaqpHs00HDRC1qQJlsZiJY5ToGEdc 3OjQE5o6Xy9vwi6hvetKYh8QC+Y/nLjIXHKn/5Vb5UILsOsq/3F3COGOBZN8cUfbk6Wa VHHxwBWbLpDnt12Ac8EJstZQ3KO4QD7mIQ9Q2ldLv8NZOB9um9Z9sVhqeWehYUuKxxKU wVrhfe4nYTXXXQbSp/VB0W8fSRiJEzQgNz77mpuJ0Qlq14uiuD7EuZRblrQBcE0Iioja GiE8MpabqNyvBa6cjaH7DmG9W3/EMPq6pUkVrYbV/as+XJHk76m7yx3MbjqmAXBM6YjG PD9w== X-Gm-Message-State: AIkVDXKQWCAz5h6H1Rxsft9nZjP0TeRxhhvFmQUv90Oke7PfENrwXye062cIN+ZOxEoZRg== X-Received: by 10.107.162.194 with SMTP id l185mr17156316ioe.184.1485705887495; Sun, 29 Jan 2017 08:04:47 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 62sm6746082itl.1.2017.01.29.08.04.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jan 2017 08:04:46 -0800 (PST) In-Reply-To: <874m0puo2a.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Mon, 23 Jan 2017 22:36:13 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128757 Archived-At: tags 25132 fixed close 25132 25.2 quit npostavs@users.sourceforge.net writes: > Dmitry Gutov writes: > >> So, personally, I'd try to fix the particular instance >> first. Switching buffers inside with-silent-modifications is not a >> very common usage, I think. >> >> Maybe org-src should itself let-bind the aforementioned variable(s) >> where it visits other buffers. > > Yeah, that works, and is my proposal for emacs-25, but I'm still leaning > towards solving this more broadly in with-silent-modifications, probably > also add a mention about this to the inhibit-modification-hooks > docstring. I changed my mind. Bug#25561 reminded me about the "Making local to while let-bound!" message. My change to `with-silent-modifications' would trigger that on any nested invocations of `with-silent-modifications' which seems more likely to happen than switching buffers. I've pushed the simpler let-bind in org-src solution [1: ae8264c] to emacs-25. 1: 2017-01-29 11:01:32 -0500 ae8264c5cccf19d5b25a340a605bf2f07de1577e Call modification hooks in org-src fontify buffers