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: Thu, 19 Jan 2017 22:18:46 -0500 Message-ID: <8737gewh9l.fsf__31100.2831710086$1484882397$gmane$org@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> <4674bf9b-38f0-8839-fadb-e9a719faf163@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1484882397 24214 195.159.176.226 (20 Jan 2017 03:19:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 03:19:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: David Dynerman , 25132@debbugs.gnu.org, Dmitry Gutov To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 04:19:52 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 1cUPji-0004PI-Qa for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2017 04:19:35 +0100 Original-Received: from localhost ([::1]:52276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUPjn-0008TB-Jt for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2017 22:19:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUPiK-0007YU-5n for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 22:18:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUPiJ-00086h-6Q for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2017 22:18:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUPiE-00084h-PI; Thu, 19 Jan 2017 22:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cUPiE-0005fM-Hd; Thu, 19 Jan 2017 22:18: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: Fri, 20 Jan 2017 03:18: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.148488226621758 (code B ref 25132); Fri, 20 Jan 2017 03:18:02 +0000 Original-Received: (at 25132) by debbugs.gnu.org; 20 Jan 2017 03:17:46 +0000 Original-Received: from localhost ([127.0.0.1]:35954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUPhy-0005es-7f for submit@debbugs.gnu.org; Thu, 19 Jan 2017 22:17:46 -0500 Original-Received: from mail-it0-f48.google.com ([209.85.214.48]:38381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUPhw-0005ef-WB for 25132@debbugs.gnu.org; Thu, 19 Jan 2017 22:17:45 -0500 Original-Received: by mail-it0-f48.google.com with SMTP id c7so11413049itd.1 for <25132@debbugs.gnu.org>; Thu, 19 Jan 2017 19:17:44 -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:content-transfer-encoding; bh=bvT7iBuDaN0zCVE0Cy/E6KaeTMyyDmmW10RPeW/WZwg=; b=UPjjARx6opdItEu8K9+pjgZBRGXkXJ9selnq6MGywCMO0x8SD4SO7+mwqMMPWgi9au ZsGtUrQoIUqA9/qYCVeR7KvENfzSfpBeYu1tcvZV8tGd37GsMIKB/f4Sp4pxKX/AUQV5 1vXKTdVDtOMKNOEVqmfHSCVioOmVxw7zVWyELFawRZq4dHjaeOIot0GBKSqhr2l42f34 0BFfcBq4vb2VYHYy2Vphdwdu8iQVdrx27WrlkG/Z1Yk3RXIQWHXKpJ1s2id/oKVMG4Vw dSBSxUfXJck0lwX3E1KttbJlMcuUvozFZhDMxSmFEI/2/taYM4/fDCS96UsLzEN7Yh9p Rwag== 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 :content-transfer-encoding; bh=bvT7iBuDaN0zCVE0Cy/E6KaeTMyyDmmW10RPeW/WZwg=; b=EN7eRvCfjPVXSpcq6L/jMexcqjgkT13Ty3X91yNUNPsTEcUPJ2WJWIEzbV3RzccHoc gXG/nwdo6cQsWLy7gwnrbibFJhXtcoF7fVfQvEJHHXAn9LHXK1qYXbrVG1ZWz7AAXDdH 9EHCh5OrL0h7U0sw72z9xeeprQOlG3m4pwKw8jLB+VQIFrLWJomxhqEC4Eyq+M7F5snc F+gkwQPNgrCX1vq4CGiGedv9vNvSnGaNg32tJA3b6D3d02yDPLINWQaQ9qyHgRZyxwFQ RWNnOhJjCAj0l59ZejIE/vLu2dFDZ139TUel7zjbhS0CnQNaoPxzBi77/ouo4a6DXjUH tsrA== X-Gm-Message-State: AIkVDXJrdTDF3hcYdD/8qIeqMcv15xbd6bi94sVSSssZ78nIF7WlMDy58G490fvNYiiPZQ== X-Received: by 10.36.62.133 with SMTP id s127mr1798757its.110.1484882259170; Thu, 19 Jan 2017 19:17:39 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id v75sm700812ita.12.2017.01.19.19.17.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2017 19:17:38 -0800 (PST) In-Reply-To: <4674bf9b-38f0-8839-fadb-e9a719faf163@gmail.com> ("=?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel"'s message of "Thu, 19 Jan 2017 21:22:34 -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:128261 Archived-At: Cl=C3=A9ment Pit--Claudel writes: > On 2017-01-19 19:52, npostavs@users.sourceforge.net wrote: >> because even after doing (make-variable-buffer-local 'var), (let >> ((var 'foo))...) still makes a global binding. >> `make-variable-buffer-local' only has effect for `setq', which I >> think will hardly ever happen for `inhibit-modification-hooks'. > > On 2017-01-19 19:52, npostavs@users.sourceforge.net wrote: >> because even after doing (make-variable-buffer-local 'var), (let >> ((var 'foo))...) still makes a global binding. >> `make-variable-buffer-local' only has effect for `setq', which I >> think will hardly ever happen for `inhibit-modification-hooks'. > > Hi Noam, > > Can you explain a bit more? I'm not sure what you meant. > > I tried the following to illustrate your point: > > (defvar aa 0) > > (with-temp-buffer > (setq-local aa 1) > (let ((b1 (current-buffer))) > (with-temp-buffer > (let ((aa 2)) > (message "In b2: %S" aa) > (with-current-buffer b1 > (message "In b1: %S" aa)))))) My point was that the setq-local (or make-local-variable) is required and that defvar-local (or make-variable-buffer-local) is not enough. Compare: (defvar-local bb 0) (with-temp-buffer (let ((b1 (current-buffer))) (with-temp-buffer (let ((bb 2)) (message "In b2: %S" bb) (with-current-buffer b1 (message "In b1: %S" bb))))))