From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Shell Mode keywords Date: Tue, 14 Jul 2015 13:09:29 +0200 Message-ID: <87fv4rc7x2.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436872201 14484 80.91.229.3 (14 Jul 2015 11:10:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2015 11:10:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Raffaele Ricciardi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 14 13:09:53 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZEy5v-00038F-FP for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2015 13:09:51 +0200 Original-Received: from localhost ([::1]:58976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEy5u-0008CW-Mi for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2015 07:09:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEy5j-0008CN-W8 for help-gnu-emacs@gnu.org; Tue, 14 Jul 2015 07:09:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEy5b-0007fp-R5 for help-gnu-emacs@gnu.org; Tue, 14 Jul 2015 07:09:39 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:59679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEy5b-0007cm-Lg for help-gnu-emacs@gnu.org; Tue, 14 Jul 2015 07:09:31 -0400 Original-Received: from thinkpad-t440p (dhcp179.uni-koblenz.de [141.26.71.179]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 613E21A83FF; Tue, 14 Jul 2015 13:09:29 +0200 (CEST) Mail-Followup-To: Raffaele Ricciardi , help-gnu-emacs@gnu.org In-Reply-To: (Raffaele Ricciardi's message of "Tue, 14 Jul 2015 11:22:00 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105715 Archived-At: Raffaele Ricciardi writes: > Shell Mode defines these keywords: > > (defvar shell-font-lock-keywords > '(("[ \t]\\([+-][^ \t\n]+\\)" 1 font-lock-comment-face) > ("^[^ \t\n]+:.*" . font-lock-string-face) > ("^\\[[1-9][0-9]*\\]" . font-lock-string-face)) > "Additional expressions to highlight in Shell mode.") > > I infer that the first regexp is meant to match command options. > What is the purpose of the other two regexps? Many commands print informative messages like tool: this is some message [17] I refer to line/PID/process no 17 which are then highlighted with the string face. For example, with make the information messages such as make[2]: Entering directory '/home/horn/Repos/el/emacs/admin/unidata' make[2]: Nothing to be done for 'charscript.el'. make[2]: Leaving directory '/home/horn/Repos/el/emacs/admin/unidata' are shown like so whereas the actual commands make performs are printed in the default face, e.g., make -C ../admin/charsets eucjp-ms.el where the -C option is highlighted according to the first regex. Bye, Tassilo