From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Need help fixing comint fontification for python. Date: Mon, 08 Oct 2012 21:04:16 -0400 Message-ID: References: <1349723143.33123.YahooMailNeo@web160905.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349744663 30343 80.91.229.3 (9 Oct 2012 01:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2012 01:04:23 +0000 (UTC) Cc: Emacs Devel To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 03:04:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TLOFI-0002jX-TR for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2012 03:04:29 +0200 Original-Received: from localhost ([::1]:57128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLOFC-00047Y-Ap for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2012 21:04:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLOFA-00047R-Bw for emacs-devel@gnu.org; Mon, 08 Oct 2012 21:04:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLOF9-0003kC-EY for emacs-devel@gnu.org; Mon, 08 Oct 2012 21:04:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLOF9-0003ia-AE for emacs-devel@gnu.org; Mon, 08 Oct 2012 21:04:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLQG/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200886698" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO ceviche.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Oct 2012 21:04:16 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 62E2D660E0; Mon, 8 Oct 2012 21:04:16 -0400 (EDT) In-Reply-To: <1349723143.33123.YahooMailNeo@web160905.mail.bf1.yahoo.com> (Michael Mauger's message of "Mon, 8 Oct 2012 12:05:43 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154249 Archived-At: [ Your message was very weirdly wrapped, making it difficult to read, hopefully it was just some transient problem. ] > I've tried this and it doesn't appear that the field text property has > been applied to the output text when the syntax-propertize-function > fires. Hmm.. the `field' property is given the `output' value from comint-output-filter right after running comint-output-filter-functions, so if syntax-propertize doesn't see it, that's presumably because something in comint-output-filter-functions runs syntax-propertize (maybe via syntax-ppss). Makes me realize that a better approach might be to add a comint-output-filter-function that adds the syntax-table property between comint-last-output-start and (process-mark process). Of course, if the comint buffer also has a syntax-propertize-function, then the two will tend to fight each other. Stefan