From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6K0vK+QETmXBVwAAauVa8A:P1 (envelope-from ) for ; Fri, 10 Nov 2023 11:24:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6K0vK+QETmXBVwAAauVa8A (envelope-from ) for ; Fri, 10 Nov 2023 11:24:36 +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 8838E132E8 for ; Fri, 10 Nov 2023 11:24:36 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OYm3mD4K; dmarc=pass (policy=none) header.from=posteo.net; 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=1699611876; a=rsa-sha256; cv=none; b=np/AIZp+2Z0IlPcsN/x3do8N4h7sn0KnQd3w5Etgkne4SmNnixH9JI6pR/sMWSXinI6ARV 8hebla8pQudVlo47Y0oe5VhYWc8T/Dho8Z8vHDxBIbqFbsAQl9YfJen91cTibXuCXunxyy RgxJ+yM2m04Mww+tVN27HwZ4pZuC1X32OAUqTJswV+EupN/hXlylFpbxYqHs9ctplWAA5N iDi/WuVoBLr+ItS6G0SN5V/e1byMQMtOMd9DUsniEHYnmQj7AULo9mM7AMDYRnp8PJ+/tz 04wvRlT6X959JUsHUj0es7BngFiNOUEOd0jYoCxDeAoGqPcXxnJOltRrQa1pTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OYm3mD4K; dmarc=pass (policy=none) header.from=posteo.net; 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=1699611876; 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=5XqGQsjnWunyVBkNB5Bw2m0scSfi+5sGJ163GdsTZvI=; b=Y5WbKeUONC1L3+MEBeEFOqTyvIfS/Aq9WfROibisPkG/dV191A1v+qwzip+5SsMlQL+CJ3 cEK6XGqYflFT7hMaARexZpS7qLLYv7eatJ21AeptcvRkoUxKO5VAvmn83rUl9SR5CYudDH 3Vbpst6Fy4YJo0JB4Yd63uY/kdCdxM5mA+L78kEGhKw3ex1j/vpFx7/gT/SkwJmz/IbuC5 E9U+oghxmRbunHRD8txq/qxVEtrQQgfhJNTkAg4U6vbjgh/ZtA9FY0iFdzw7BXrOUYD+RW 3DXXQlUaZ14lx7T//h0xALYsskhUzht0zi2DaEcCRxcnGo6JKahMjS9Gfm2aPg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1Og6-0005Qi-Uf; Fri, 10 Nov 2023 05:23:54 -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 1r1Og3-0005OM-Bk for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 05:23:51 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1Og0-0008BU-Gt for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 05:23:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D545F240029 for ; Fri, 10 Nov 2023 11:23:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699611824; bh=UDUa3Eiquuj5SSoCE3me5sLywZuLu+RQtwktEasEAk0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=OYm3mD4K4V/arehmNK83Sgk3J760m9Vz1kMQuanbrxWgnJD6IMzDGFAps3ClTueD1 7TepjCYKyZbXzSajMghAhmS14NPQxuK4bm2WLHxcLVOeYBJCa//JI9LjnsmDc6vdL4 AmMV5oyc4G/T2ZDHGUh45laTBPlSIPSInziMIoUa/Tjx0YRLrrdR/sz5CjVSIDmQun RZPfsOruodqY7JZH2YYSeOnEmrEekwqmNifKh6x8d1/T5GG7G7q39jTjhr8hBh7sjX X9cfJh5qEE4E31moQJGjyST7nhnNRSnfgko5lHPWKUOOl0LcGq2/XghhL96e4miL7e znvsasYtu6Rww== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SRZfm23sgz9rxN; Fri, 10 Nov 2023 11:23:44 +0100 (CET) From: Ihor Radchenko To: Nathaniel Nicandro Cc: emacs-orgmode Subject: Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements) In-Reply-To: <87r0kzhns8.fsf@gmail.com> 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> <87r0kzhns8.fsf@gmail.com> Date: Fri, 10 Nov 2023 10:25:52 +0000 Message-ID: <8734xd29cf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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: 8838E132E8 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.31 X-Spam-Score: -6.31 X-TUID: gxZj/uV+NwN5 Nathaniel Nicandro writes: >> 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. No problem. There is no real rush. Just a gentle, infrequent, ping to keep things progressing :) > 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? Just go with whatever is simpler implementation-wise. It is a good idea to get things working first, and only then go ahead with tweaking small details as necessary. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at