From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yP06CczXWGMhZgEAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 08:46:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WFgoCczXWGNb4gAA9RJhRA (envelope-from ) for ; Wed, 26 Oct 2022 08:46:36 +0200 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 054172B596 for ; Wed, 26 Oct 2022 08:46:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ona9n-0002RN-SG; Wed, 26 Oct 2022 02:44:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ona9d-0002Ba-Lb for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 02:44:51 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ona9a-0001pB-Vx for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 02:44:45 -0400 Received: by mail-ej1-x631.google.com with SMTP id fy4so18733680ejc.5 for ; Tue, 25 Oct 2022 23:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=9jp+T00LNbz5V+M/NPD3pxf5ulueg3qpAGVmCqjYu8I=; b=Rwy6xzYCiG7YCUDCiqlv1xxMNf7N5upNLUpJUGTy+4hBnxA7zfgcq1fDe6SM6/pW0R kSgkP0PJSiPEE83OpOiMREPijpwQu7pvREQcrIrTPf1q4JZm/6p7oMrAqAucQPWwKkiY RxfIerxQwRCjmCn3sfkgjJ39kREc2i88sWaHEdWm/cmgKlRyHMko5IVFuWCjxGgVmdf9 VJ01c1F7JIip99CObgubGiBU7nSpYfj/Cy2p7nOl+4CcDYnXt49DNAYF0U7U30jJvwQ/ Wnm79aP4UQRyf5X5lcrEvnhWvQPcG+dGfkwsxjlWc8wjvgb6ksobF40gPxgZr1rjOz0B DVxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9jp+T00LNbz5V+M/NPD3pxf5ulueg3qpAGVmCqjYu8I=; b=XO6MK+5Y7H0toLZi3FTJ6u2wPpjR2VTely8ZUwnYcbznmIZIAa+RDAn0bcLS33gGbZ Y27KPmVAnNPm4Ozc/9LwZvlkMKr/orw7DslYLQObecgFZwWIVBz74Z0NCXk+Z6Yzv3v4 FQhUlMxnHAZWJrAzUzmcypIHrQG5835d08C/+viFYZj79iRyrXbv8zcMDj+mGs2DTB9Z XnYKANmnoEzzeJdQSTyal668bH2Oqj9TtfuHozDnbn5zFDmiT4WmVCtgXmghZiBpktay I1lwoLCaoYt2DV3EoqI1n8Vak0mlMDG56mRNB2w/6NiSnrWg+mWjjPtjCUFay7x3qJju AOAw== X-Gm-Message-State: ACrzQf3ivMCUk4m2HNIu5TkiTst2RSKJsavIWr7OdNSU5JRirbfAd7uF +QdSacBpLwozi/Gb86941w== X-Google-Smtp-Source: AMsMyM6tVY1zOj8n401WKPZmfknftRdj1Nx2HXYc+GWZM21T6Y2PaXSgCHBu/g383252xuEocfaxaA== X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr35735359ejc.653.1666766680330; Tue, 25 Oct 2022 23:44:40 -0700 (PDT) Received: from localhost (94-21-158-133.pool.digikabel.hu. [94.21.158.133]) by smtp.gmail.com with ESMTPSA id q31-20020a056402249f00b0046270f06075sm89380eda.39.2022.10.25.23.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 23:44:40 -0700 (PDT) References: <87r0ywvtqp.fsf@gmail.com> <87ilk8szv4.fsf@gmail.com> <87sfjbbua9.fsf@gmail.com> <87lep3qksl.fsf@localhost> User-agent: mu4e 1.8.10; emacs 28.2 From: Dominik Schrempf To: Ihor Radchenko Cc: Bruno Barbier , emacs-orgmode@gnu.org Subject: Re: Org Haskell code blocks Date: Wed, 26 Oct 2022 08:24:03 +0200 In-reply-to: <87lep3qksl.fsf@localhost> Message-ID: <87k04nxew8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=dominik.schrempf@gmail.com; helo=mail-ej1-x631.google.com 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666766796; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9jp+T00LNbz5V+M/NPD3pxf5ulueg3qpAGVmCqjYu8I=; b=GPdsg6otdEpGbx/trKL25Oy0+kKEM3wJbeUdPnfSZa6R5E3ZrSPu+1Ms0JqqLIBq7vd5T8 mKMYp3WKXqJT+t3Y7XdqkhFsHCOZwPt/1BtsLyJLSaf2DuMi+8lUQyqROkm96lg5YeiJ9G iGJhfawqovQ9ckgyOdrqvjQvpUq82SKaMKEC0ufeEHX4z38l33vmd2ne4Ge1WYmBqbceau OIR8BABu6gAAsrLoCAF/y9IXFResxGXIlhNrQEXwEBBeXHGQl9nr10ifW3eCWZAF26IpsI 51lkL4aQyKSxKJOGJ9TKCAET24KJkYBgNN8jCw2NdVkaRBFBdTZoSlcdxUFPdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666766796; a=rsa-sha256; cv=none; b=YkgViYuPT5urPLQIE0J+p9EkXeePDP0gQt635sRHm9GXGKCpCatQ7XrGGQ7bgMa0ETpRBv d7w8ZZ4RzIqvGzp/tsMYR2Oft00y6d22YISRiBcfE30P/lGK4CXUutCPBFpOnlckhz1HEj SUkNpO0fnct8RRiQCqxws1QzCtd6bEMLbm6nPp4wloqYbvsAGj2VSA1O6yaYCRmAi7aUQi 16jQQddSudKzXRkwzL5LahjtMHQTIJtOuIs+pQmq8p1E77SvVuRCpyDoqIgb3dvWdcRPft ZYvLZob2kU7CEuemNlPLGBAU6hHYPseCOZOcDeCRbZGUzAfA/czwUcq5BgQZ8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Rwy6xzYC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Rwy6xzYC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 054172B596 X-Spam-Score: -3.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: v0HqBirQO9Ju Dear Ihor, thank you, these are great news! Syntax highlighting is not working, for example, with the following snippet and code block: begin_snippet - An example of a function: #+begin_src haskell :exports code :results none f :: a -> b #+end_src end_snippet Note the indentation. The code block is indented by 2 spaces, because it belongs to the list item above. The indentation makes the syntax highlighting fail. It may well be that this is non-standard usage of code blocks, but it is very convenient to preserve indentation in this way. I also fixed the detection of 'haskell-process-type'. It turns out, I had some local configuration preferring 'cabal-repl', even without the required project files. 'haskell-process-type' 'auto' works correctly, I apologize. Thank you for your help! Dominik Ihor Radchenko writes: > Dominik Schrempf writes: > >> Ad scrambling: The scrambling happens with multi-line input. For example >> >> #+begin_src haskell :exports both :results output >> let x = 10 >> let y = 12 >> x*y >> [x,y] >> #+end_src >> >> #+results: >> : >> : ghci> 120 >> : [10,12] > > I am unable to reproduce on the latest main. > Likely because of recent fixes in ob-comint. > >> Do you get syntax highlighting when the source code is indented (for >> example in list items). > > I have the above code fontified. > Could you please provide an example of the code that is not being fontified?