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: Sun, 07 Oct 2012 10:37:28 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349620655 9603 80.91.229.3 (7 Oct 2012 14:37:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Oct 2012 14:37:35 +0000 (UTC) Cc: Emacs-Devel devel To: Fabian Ezequiel Gallina Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 07 16:37:41 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 1TKrz9-0000Ki-Om for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 16:37:39 +0200 Original-Received: from localhost ([::1]:53693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKrz3-0001F5-S0 for ged-emacs-devel@m.gmane.org; Sun, 07 Oct 2012 10:37:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKrz1-0001F0-IY for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKrz0-0008TD-OL for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:37:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:15358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKrz0-0008T9-KP for emacs-devel@gnu.org; Sun, 07 Oct 2012 10:37:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLQG/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNBIUGA0kiBwFugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200827734" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Oct 2012 10:37:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 72974594D1; Sun, 7 Oct 2012 10:37:28 -0400 (EDT) In-Reply-To: (Fabian Ezequiel Gallina's message of "Sun, 7 Oct 2012 10:58:26 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.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:154188 Archived-At: > What would be the best way remove the syntax class for all the output? Use a syntax-propertize-function. Look at the `field' property and wherever its value is `output', place an appropriate syntax-table property. Or alternatively, use a "safe" syntax-table in the buffer, but add Python's syntax-table as a property whereas the `field' property is nil. Stefan