From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58169: 29.0.50; comint-fl-mode fontifies the output Date: Thu, 06 Oct 2022 20:37:49 +0200 Message-ID: <871qrku7b6.fsf@miha-pc> References: <87h70qcfmt.fsf@gmail.com> <871qrt8w2s.fsf@gmail.com> <8735c976a6.fsf@miha-pc> <87edvt56e3.fsf@gnus.org> <87o7uwu2pt.fsf@miha-pc> <87a66g4t1s.fsf@gnus.org> <87leq0u0p8.fsf@miha-pc> Reply-To: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11145"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58169@debbugs.gnu.org, Lars Ingebrigtsen , Augusto Stoffel , Visuwesh To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 20:42:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogVpI-0002mZ-5Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 20:42:32 +0200 Original-Received: from localhost ([::1]:55622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogVpG-0005tp-SC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 14:42:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVXh-0001ja-3r for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:24:21 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogVXO-0001Q8-Mx for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogVXO-0001I1-GN for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2022 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58169 X-GNU-PR-Package: emacs Original-Received: via spool by 58169-submit@debbugs.gnu.org id=B58169.16650806304937 (code B ref 58169); Thu, 06 Oct 2022 18:24:02 +0000 Original-Received: (at 58169) by debbugs.gnu.org; 6 Oct 2022 18:23:50 +0000 Original-Received: from localhost ([127.0.0.1]:33528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVXC-0001HZ-4M for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:23:50 -0400 Original-Received: from kamnitnik.top ([209.250.245.214]:55558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVX7-0001HM-1J for 58169@debbugs.gnu.org; Thu, 06 Oct 2022 14:23:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1665080623; bh=V7nAa4Wu97ys9vdm8Oet9ejfWfrV/74HEqQAHprNA/k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YAIXsnpVwAJe5yepTilnm6b80jhBO14NtLvkiGlsI3KAZoq/jgPz2WV1zY7l0Bj6n m18kk7YYDwVe2WdIEWV5XFmV0tXAhhtqcP1PJCGIJBXG1JmZDNbOvmO3ii5EmhJDVt Aapa8mfDsN1NS5cASAlwcIhUUaseRb4e8UrAnpZpLDttzZiA+vERHI9oGctG5AeMbn UsyOZN/3FAyX6GNxPA/lkwTVUbmd9cC9S3NS7NKSIy2eU8ayIJsBlvVLRnxRZkA6ey Y7aHE0NzBDKpwFt6W12mabEtODN7ZKiZbEvsBZzppan9g9ReJfTrwzETjmCeJpsUxU fsraB7yaJ1Hkw== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244703 Archived-At: --=-=-= Content-Type: text/plain Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> @@ -2150,24 +2150,26 @@ comint-output-filter >> ;; insert-before-markers is a bad thing. XXX >> ;; Luckily we don't have to use it any more, we use >> ;; window-point-insertion-type instead. >> - (insert string) >> + (make-local-variable 'jit-lock-mode) >> + (let ((jit-lock-mode nil)) >> + (insert string) > > Yuck! > Oh, and this will fail to do what it intends if the user has set > `font-lock-support-mode` t nil: don't confuse font-lock and jit-lock. > > Also, I suspect that the above is not sufficient if you edit earlier > parts of the buffer (presumably previous inputs) which may cause later > parts to be *re*fontified. > > A better way might be to change the font-lock rules to skip any text > that is marked as being output (e.g. by testing if the `field` property > is set to `output`). > > > Stefan Thanks for feedback, discussion continued at https://lists.gnu.org/r/emacs-devel/2022-10/msg00005.html. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmM/IH0THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP5qbD/4jfdbuWybyKdshqgZ6r4A2epLZrD7q GFqwEdMa9th6lKn0quKM7bdkgZ0VuGWmYpFLbvQmtdDs3x/iqFGDREwTzNeBG+98 H9avHxT7aRaeUJavQPcS/2E0TMEGmsNLVqC97yvw1lFfs5sgVDHSLTiBGuz6ZHlO uNHF/BC8ZFT1xD4cut7DqbR3t4J9gETueGLwxWBwIUTffZOavXA4W5y4T8iYVUdV TnzEE1yJW1DLf8uBZqzG8vC0ISXZJKA6i1kGVW1RQxAnDZVYBgt66Kw/QG0HERFd /2I3IFQFLxpm845K5xblc/lnX4uLnWP+5jhcKDUjvptbVRJCYY+MUird5vzAV/Ma OvJRrYTM8eDRTaS30lijZLeSsIdsMK4SFrV631awyv6An9dpl1cdJxAhH+P373Qm VmVlilS9otzEA9duumkhwKY+xaFJhfKXPyLO2mHSr3Y/HCRPHrsjcZST6GcU/g0p E6Y3thyW1TAcQyVPAx+YkycTiOp1d7kx3wA5uZg0pu44yILXayAM73J9lqg33dOG bom+PB8jUFWETfLRu8WcLr7frEKYBLdtq/dg2y7QBHOtGS1NiofvJLevx8qeceJc +yHh6wnR8LPLSsEcplp+KzFlgV4HzFodjXaayWN+lOc7k6BINJDgG5z0BOwmW+X7 kdWbCo4aM2g4ZA== =25Bi -----END PGP SIGNATURE----- --=-=-=--