From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2OjNB58OTGWlcAAAG6o9tA:P1 (envelope-from ) for ; Wed, 08 Nov 2023 23:41:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2OjNB58OTGWlcAAAG6o9tA (envelope-from ) for ; Wed, 08 Nov 2023 23:41:35 +0100 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 CF4995812C for ; Wed, 8 Nov 2023 23:41:34 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=R4AKIKZk; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699483295; a=rsa-sha256; cv=none; b=I9f0l9Bu0XV68sHgzP2UWtyU0wrRDcaS610nuLnJfj18lo9ldPf6XInFpGtWggXxhB3NKb tV0PokhdQd5/6T8eppK6P6upItUEyWqAmJxl5jeNjjqU6M2/aW3CPJ6jyhZWUiBIqeW5xj SFPTS6oONVX6GFjEX4WnQqSR1A1MfJOG6Np2xuxNSdroUjSjqqYPXqHrbDvxy7dCHGZnEl e3njdkEWAzxSaNeIFMUNrTR3MVgy8u7rsrbEB6XodsGF4de0P7WVno4MCUweFXlguzQyS5 9DS6KgACpKGVd3peGQ3JYSOIQXrcMKFX4OZrDAPkdMKIM+F3BGCEL90p1QhsoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=R4AKIKZk; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699483295; 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=6Rz/+bM5ji6rWsUChKhWQaLTyf32Mipr/L2ay/inYq4=; b=Nk8qjw7i8EzzanZIQ+Ewd/SuJdqEpSK8WKScnu+KwRq8qHMCAATBReMvW2/ffxfKI/1ncO rSESvJOWpeoHEC/pP1nwZkljlSeErs013w9ApCQ01dgNrWUOW1k40/z+UkZYOGjxd3XvSb RqUPeob64wV4GFsO52WxoXT3pB3CndYUbaPA/GKTC5/783VkV6y7RdjVvVH1yWfOcrKyue ESXdDDRbpE90YLuxKMhCjWm59nFN9HMmyjdI5/eaUzH/vGbkuSDTsNFh+Nnq9/iqKT7EkP M2wbh1Kzi1Uu6fM7TUvS/VqcgdvGjKMce9B3Fh3fqjbN/FsQjyGG0wrm5mW1FA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0rDt-0005q6-BI; Wed, 08 Nov 2023 17:40:33 -0500 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 1r0rDq-0005pn-4y for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 17:40:30 -0500 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0rDn-0008Qk-Sa for emacs-orgmode@gnu.org; Wed, 08 Nov 2023 17:40:29 -0500 Received: by mail-il1-x136.google.com with SMTP id e9e14a558f8ab-3574c225c14so425055ab.0 for ; Wed, 08 Nov 2023 14:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699483225; x=1700088025; darn=gnu.org; 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=6Rz/+bM5ji6rWsUChKhWQaLTyf32Mipr/L2ay/inYq4=; b=R4AKIKZkubl1+y6x+riVXYuTNkk9zwRvfLaioaPlE0PIKXNTP14tnnDIA/YnBMg3dD v9jUqjJMvDMDQic+N9qfEo1m7qA7Ch2ZhQCGXQGbG3UEQEE9egmXqvMvyUV7KBjrP0c2 m9EZerWrziND0M+eFo4sZW3suIcVaI0sy2GXtYUGPf0Y79ZVQWSTCdRRL7ywbvCj7YND DfkzAgngwMjGYlIdkRNzB0So0xDksEQuD6fkpJF0imp25yacKv/zczoLLn2T7j+zymqN ioRby4054zI1wdfQIacd/FRaTF6FMHwXnv8fSM4xl3ve5tWAH1E2ACiWUJOC2ZmVhzl+ Pyog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699483225; x=1700088025; 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=6Rz/+bM5ji6rWsUChKhWQaLTyf32Mipr/L2ay/inYq4=; b=dMUgko1Yw81vocQzbmkiKFeEkwPOCHb23R+h/wtwK9k7ZdascmUlqlQSD0GZnTOhgF +vllDiHjygUCS+8nwImvw0Umu0sb1e4n1FDkwGbOKXMm9JXnmqyGnSz1TVTZLPjt5X0e Y+Y6QDKOBnEisQ4YLyP016ukWuZYPvTiQegMpsjjIvTssAAO3iaWjlFAJR6083Vo2KWx cGRHgKqdrIzwa94H/YTEfSlKPZ/vtKKF9Dt+fsnpQpiLZslV6Mjr3Km5FGQKklSOO3LX 6hFydzAx6wWdbfSNr7yEC0y6c7d7MD+zAnYBI6sg+KxUWFOVuapivjh3gu/zxBcGs9G6 gzeA== X-Gm-Message-State: AOJu0Yxwml33QWNkiJkITb7DFMZsVXzcA6KPRTGFDshrMj3f+1CoypfZ E0Su2rUnCgrUM5aQfKP6FkbmdSs0WgFz5g== X-Google-Smtp-Source: AGHT+IFEk/aVogVM8xPjUL9kJp3YFlN5/cD+AhBXlWpathUKssWw2D9rx9HE4pzgFrorzN1CpXvGhw== X-Received: by 2002:a5d:8793:0:b0:792:8011:22f with SMTP id f19-20020a5d8793000000b007928011022fmr3387714ion.0.1699483225150; Wed, 08 Nov 2023 14:40:25 -0800 (PST) Received: from entropy ([2601:243:283:930::91dc]) by smtp.gmail.com with ESMTPSA id w9-20020a6b4a09000000b007a693d95421sm3701430iob.18.2023.11.08.14.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 14:40:24 -0800 (PST) References: <874jpuijpc.fsf@gmail.com> <87y1n6igvo.fsf@localhost> <878rev1q0k.fsf@gmail.com> <877cueonkj.fsf@localhost> <87zg6dez93.fsf@gmail.com> <871qjobhwa.fsf@localhost> <877ct5fzt6.fsf@gmail.com> <87a5y1mnj0.fsf@localhost> <87353ng8nk.fsf@gmail.com> <871qgdkd9k.fsf@localhost> User-agent: mu4e 1.8.13; emacs 30.0.50 From: Nathaniel Nicandro To: Ihor Radchenko Cc: Nathaniel Nicandro , emacs-orgmode Subject: Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements) Date: Wed, 08 Nov 2023 09:35:25 -0600 In-reply-to: <871qgdkd9k.fsf@localhost> Message-ID: <87r0kzhns8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::136; envelope-from=nathanielnicandro@gmail.com; helo=mail-il1-x136.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: CF4995812C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.42 X-Spam-Score: -6.42 X-TUID: ghTs5iEATSdr Ihor Radchenko writes: > Hi, Hi Ihor, > A few months have passed since the last activity in this thread. > May I know if you are still interested in the idea? I apologize for being unresponsive all these months. Yes I'm still interested in this idea, although I have not had time to work on it recently. Life events caused me to have to stop working on it completely a few months back, I'm hoping to be able to put in more time now. I haven't even been able to put that much time into my more popular personal projects recently either! > Should you need any help, feel free to ask. I have been working on some code to satisfy the set of rules you provided in a previous email of this thread. I've made some progress, but the code is a little messy and buggy. I would like to clean it up first before I present it. Where I'm having some trouble is processing the contents of greater elements. My approach for them is basically to define an ansi-context (see `ansi-color-context-region`) for each greater element and process the inner elements using that context. This seems to work except for plain-list elements which can have other plain-list elements within them, e.g. #+RESULTS: - List item 1 - Sub-list item 1 - List item 2 - List item 3 Should the sub-list's sequence affect the rest of list elements in the parent list? If that's the case, then I think I can keep with my approach and define an ansi-context for the outermost plain-list which is used by all the other plain-list elements contained within it. Otherwise I think I would have to do something like copy the ansi-context for each inner plain-list and use the copy to process the sequences in the inner-list so that the context of the outer-list is unaffected. WDYT? -- Nathaniel