From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: compilation-mode, face, font-lock-face Date: Thu, 02 Feb 2017 04:52:20 -0600 Message-ID: <86bmuk27bv.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486032756 19227 195.159.176.226 (2 Feb 2017 10:52:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2017 10:52:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 02 11:52:32 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZF0A-0004rX-TG for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2017 11:52:31 +0100 Original-Received: from localhost ([::1]:55787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZF0G-0007nR-C1 for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2017 05:52:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZF0A-0007nE-BN for emacs-devel@gnu.org; Thu, 02 Feb 2017 05:52:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZF07-0008K9-A5 for emacs-devel@gnu.org; Thu, 02 Feb 2017 05:52:30 -0500 Original-Received: from smtp153.dfw.emailsrvr.com ([67.192.241.153]:42365) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cZF07-0008Jn-4w for emacs-devel@gnu.org; Thu, 02 Feb 2017 05:52:27 -0500 Original-Received: from smtp16.relay.dfw1a.emailsrvr.com (localhost [127.0.0.1]) by smtp16.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id BE031A022A for ; Thu, 2 Feb 2017 05:52:24 -0500 (EST) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp16.relay.dfw1a.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 9B2D4A0206 for ; Thu, 2 Feb 2017 05:52:24 -0500 (EST) X-Sender-Id: board-president@tomahawk-creek-hoa.com Original-Received: from Takver4 (76-218-37-33.lightspeed.kscymo.sbcglobal.net [76.218.37.33]) (using TLSv1.2 with cipher AES128-GCM-SHA256) by 0.0.0.0:587 (trex/5.7.12); Thu, 02 Feb 2017 05:52:24 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.192.241.153 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211865 Archived-At: I have an external program that produces messages similar to compilation errors; they have file name and line numbers. However, the program is designed to start once, then accept commands on stdin. So I can't use 'compilation-start' to send a new command to the program, but I'd like to use the compilation machinery to highlight the file/line and navigate to them. So I start the process, and in the associated buffer I call compilation-mode, and set compilation-error-regexp-alist. The file/line locations are recognized, and next-error jumps to them. However, the buffer is not highlighted. describe-text-properties shows that there is a font-lock-face property set appropriately, but the text shows as plain black. Comparing to a compilation buffer created via M-x compile, I can't figure out what is different. As I understand it, 'font-lock-face' is supposed to be set only by font-lock; 'face' should be set by any other mechanism. So I don't understand why compile.el is setting 'font-lock-face' instead of 'face'. Apparently M-x compile does something to font-lock that I'm not doing. Can anyone explain what's going on? -- -- Stephe