From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GNVIKVcYn1+5cQAA0tVLHw (envelope-from ) for ; Sun, 01 Nov 2020 20:19:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 1ubzJFcYn1+6ZAAAbx9fmQ (envelope-from ) for ; Sun, 01 Nov 2020 20:19:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4BEC59402DD for ; Sun, 1 Nov 2020 20:19:35 +0000 (UTC) Received: from localhost ([::1]:38910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZJp8-0005P2-1e for larch@yhetil.org; Sun, 01 Nov 2020 15:19:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZJoh-0005NU-RJ for emacs-orgmode@gnu.org; Sun, 01 Nov 2020 15:19:07 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:33394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZJog-0000Ko-9E for emacs-orgmode@gnu.org; Sun, 01 Nov 2020 15:19:07 -0500 Received: by mail-pf1-x42c.google.com with SMTP id j18so9234334pfa.0 for ; Sun, 01 Nov 2020 12:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=ZZqwgu0zu6GjDH5jHnYn2HQf2qMyK/Md3E8PpwRGE/c=; b=Zpx4Ic/Jrkn7JFvD9d5Q3rW0G2csRD3AnXtKD7K48zK8Xjs9aUeTa0PGAneQP9+pXR Y1dSsX8K8XYjWSohogl+znwF5qVevOobKV9ArMFKIL1bw8+LICiLjHfVm+YLIxbOAdoK hLaw4/LFQy4COFmoPiVMVNvuw/yBoeSm7nd5Y36oIgdLEUcDnvulse8vf1o1Ouaf3Nst BCJQEfpXfK9WI6dvY7qJZq0uh+8gqqnIFiFlbZV4K07Q+js3a+lGwcleBl1ZQIkdysfy fajar8vK9lb/qjzugVkrcwtDzaTBWdAACtUJ1VKpQEUBouCqR33xiMREl7kXiACBJwEH 1WJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=ZZqwgu0zu6GjDH5jHnYn2HQf2qMyK/Md3E8PpwRGE/c=; b=dQeajkqL37T/lecafdryRbLBT/iCkDnODMUnjUexzKQAVyiBRi+8b2Q040Cod6cVgv j/fg702Sj9ALe0xJW+Z3imarxV/Mbg9HNMY+x2C1xnojS6shnilXWbpLzE1TR6Ctb+Ql gzMODA0/J8xGsX5qRLCXbLjRJE/V5GZrdm21mzxAxrlQWhnm23XHEr9GTetXpn0ALNA1 TPT1Xv5BujQ+QZBYEMbj+JgfEdqoz0Zn/zyTptWTvH/ZvfM0fErNVefYDkigBGdzdKVp T7vte67y3xrTiBA5rlkDaLWLnZnJPH+1mFqcofb8N8WKPwcTIlpkfh+dE6lwxbHxQYlU bTMA== X-Gm-Message-State: AOAM531KSHXgszJEYj7hTtXTLDxZfv35iFpmY0IsnDI8YU1h7Jd/yKvJ Wi8LgA7RozuLUlduGNI6Bd0= X-Google-Smtp-Source: ABdhPJxroVT8h8i3rpWAV16OaAS+PuRO+XoB03F8+9DWT3JPhsB5X1w+qZAaJWG/gJQhTguRgkwzEw== X-Received: by 2002:a63:4a21:: with SMTP id x33mr5914108pga.365.1604261944653; Sun, 01 Nov 2020 12:19:04 -0800 (PST) Received: from localhost (199-83-220-90.PUBLIC.monkeybrains.net. [199.83.220.90]) by smtp.gmail.com with ESMTPSA id 30sm11353549pgl.45.2020.11.01.12.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 12:19:04 -0800 (PST) From: Jack Kamm To: Sebastian Gimeno , emacs-orgmode@gnu.org Subject: Re: Org mode fontification error in # in python and ipython source blocks In-Reply-To: References: Date: Sun, 01 Nov 2020 12:19:03 -0800 Message-ID: <87d00wq18o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=jackkamm@gmail.com; helo=mail-pf1-x42c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Zpx4Ic/J; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: VOeZ5/pn1JxK Hi Sebastian -- > I am having problems with the fontification of python and ipython source > blocks when the code contains curly brackets "{}" (other course blocks are > ok). For instance, the following snippet > > #+BEGIN_SRC python :results drawer > import matplotlib.pyplot as plt > plt.plot([1,2,3]) > plt.show() > a=1 > print("a={}".format{a}) > #+END_SRC > > does not fontify correctly in either python or ipython source blocks. > > As a consequence, when exporting the org file to HTML (C-c C-e h h), it > fails with the following message: > > font-lock-fontify-keywords-region: Invalid function: # I'm unable to reproduce this behavior on emacs 27.1 and git master. Fontification and export work fine with this code block for me. Does the error still happen when you use emacs -q ? Or if you use git master? Jack