From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uLlwJ7TxiGUTTgAAkFu2QA (envelope-from ) for ; Mon, 25 Dec 2023 04:06:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CKrAI7TxiGXW7QAAqHPOHw (envelope-from ) for ; Mon, 25 Dec 2023 04:06:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CEeu9t77; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703473588; 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=A/j6iUJXPJPcHQbLonqOFyNOwno8EXQQqnsDY8e7VM0=; b=cfKhA3QQMZ6GD9dRv3VvR78VwRoDN6ZMhneXOv8TQfWiJI0/ZRMCrj1Jq4g/sR5Rl97h0U M+2lL5MVRGs3OLDSh44wwagapLM4i41SzP61tdo10lgZ8OaOMjQYin3Gwo4jHvTIy+s9MW VPVUr5faus6iCEKOi2jMy1UfjgA0Q5kuLy1c7mlXA/IfuWptkrzBahJQJJefgPhI/oUVmP 010SwwErAsnZSyvkWIEHNfDw5vIgty0HrR/b2DV8IP4cuHYNDo3YF4byvJ3Wa704totBZ4 eGEmc3m5OOBJtTgQLiT0gjl5JVE3EJtNo2/sAZaK+9Ho1JEvf/N0QC7t3mbbKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703473588; a=rsa-sha256; cv=none; b=r5FEz82t2IemzLThM+EWXqh/XQHXmM8ErvmhJ7QT1vrJYu+54bYA41sJP/sdC5N2jarObM VcS5L4I9jfIDWpUlY0ZzSlXiQ6exanvcJLOo7wwYi6vedXmebi2wxVZ5Fwq6JLPjhwres2 KUy8JXRj5Zom/FuGZ+XZZ/45gf491Kwj4oeBGOf9RXV2RURR7xHAB5V11gWtBSQwXHRJtV rFdTm+Wc+vUboflsRqrnM6DARmTBx5UEWEi7TzrzsNawv0Y4/TC296Xi+L5WUjRkJGpwM6 K8NLemc/b2AGaJNm/dH6oWL0H0tX5kRFE0G3aCyKzSh6B9DkAsyV38PW3KTrLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CEeu9t77; 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"; dmarc=pass (policy=none) header.from=gmail.com 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 752FF19A39 for ; Mon, 25 Dec 2023 04:06:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHbCk-0007hr-8T; Sun, 24 Dec 2023 22:00:34 -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 1rHbCi-0007hU-EI for emacs-orgmode@gnu.org; Sun, 24 Dec 2023 22:00:32 -0500 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHbCg-0008U4-Tj for emacs-orgmode@gnu.org; Sun, 24 Dec 2023 22:00:32 -0500 Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7ba7d17184eso44783339f.0 for ; Sun, 24 Dec 2023 19:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703473229; x=1704078029; 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=A/j6iUJXPJPcHQbLonqOFyNOwno8EXQQqnsDY8e7VM0=; b=CEeu9t77nFYBtiCIw/Nk88IZx3yEAC+0B/Vv4bOApwusWVGNnrpGwriV5anlg4VcmN /E3m8KV2l5Vifc1m2wzgcvCs7Ujc6OqydUEeofWXm+Mn9Nl+jsYcJ0IsiOApz723Clky 7RmlDXgMq+I4ciBS5wDjGJckAaurr97J/12IX/EIi+MYMV5yMyi4qa1tNBL5aWI4LJtW YZ+WWAezBwgtey0dPD2KBeosyxJXG69YC/mwv66+C/Gu6A/i/QkyK/otIX+ujAYf2P5t geAOZ4L3G/2rBUiCYwkYi+dcKpWAtqFIyklRcUBTBKWwau5IpBjxghgO9jnYbdvfsyZa NRtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703473229; x=1704078029; 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=A/j6iUJXPJPcHQbLonqOFyNOwno8EXQQqnsDY8e7VM0=; b=dDqGCL/N7CDNHP/yEX7caZp8PdqmTN7aTss7NI8ANX++ULOWe7EwuukdRPCm5E8aBh EEOIgLMVrI3MZzyVVeAsjqMw4B7uHYXD4Fh7tJ6we7g2VViTRaCfJYmOeKCqX5Wu9dtW SpS0yNTuYWAMulwao8y9eezS40hooD+5TrfQj1LB3YQ3j3FUOF8zm0J51mNnJXPlVIOu 7jvIpwy9dwy1YcNoYJ/T42PxkrA2wryMfN26C/oTeGRwTNvPVM6PZZIDdyMNki8QJNVh FbrqEJdtERtMkQ1GLEz36h6DYYnqHXHFaebO/pquycI2SxYOe9DvMjkxLPIBnf9mK6GR H6lQ== X-Gm-Message-State: AOJu0YzNvVxvnWt+Lrf7klRPWlZ9vh94E+dd98kxorNZre6j26Z9fh6J S64SFHGpGkyH/LHuumJfWBHp3TRSrlCG6A== X-Google-Smtp-Source: AGHT+IG60bcwjNzZ2yWQI8VTo/CXddlknPAystmrDlHXbiQMaPQgPhiT5SUofzZcSt1Pt3NkPm0z5g== X-Received: by 2002:a05:6e02:1b0f:b0:35f:b1d8:433f with SMTP id i15-20020a056e021b0f00b0035fb1d8433fmr8903943ilv.3.1703473228644; Sun, 24 Dec 2023 19:00:28 -0800 (PST) Received: from entropy ([2601:243:283:930::3985]) by smtp.gmail.com with ESMTPSA id s14-20020a02cf2e000000b004647af59c3dsm2369660jar.16.2023.12.24.19.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 19:00:28 -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> <87msvcgjgv.fsf@gmail.com> <87h6kkq27z.fsf@localhost> <18c6d878109.ecf94fc8713453.1952592973633074869@excalamus.com> User-agent: mu4e 1.8.13; emacs 30.0.50 From: Nathaniel Nicandro To: Matt Cc: Ihor Radchenko , 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: Sun, 24 Dec 2023 20:20:20 -0600 In-reply-to: <18c6d878109.ecf94fc8713453.1952592973633074869@excalamus.com> Message-ID: <877cl3gf5g.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=nathanielnicandro@gmail.com; helo=mail-io1-xd2a.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, 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-Spam-Score: -6.55 X-Spam-Score: -6.55 X-Migadu-Queue-Id: 752FF19A39 X-Migadu-Scanner: mx12.migadu.com X-TUID: zEuhz7dOrkqK Matt writes: > Thank you for bringing this to my attention and thank you Nathaniel for your work on this. No problem, I'm glad to contribute to Org :) > Nathaniel, if you and I happen to cross paths in one of Ihor's "office > hours," I would enjoy learning more about what you're doing. Sure. With this patch I'm attempting to fontify the regions bounded by ANSI escape sequences (just the color codes) in an Org buffer using the built-in ansi-color package to do the processing of the sequences. The challenge, for me, seems to be making ansi-color aware of Org element/object boundaries. I am aware of other ANSI escape codes that would be useful to process such as the carriage return and which appear, as you mentioned, when dealing with progress bars in a shell session. Those escape codes are not being handled at the moment. Although, I do have some experience in processing them in an Org buffer when developing my Emacs-Jupyter project. I would be glad to attempt handling these kinds of sequences in Org proper as well. -- Nathaniel