From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel Subject: [PATCH 1/3] octave.el: Highlight error/warning messages in inferior mode. Date: Wed, 02 Oct 2013 22:37:15 +0200 Message-ID: <3516141.U2D9V4ufrt@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380747068 3474 80.91.229.3 (2 Oct 2013 20:51:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 20:51:08 +0000 (UTC) Cc: Leo Liu To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 02 22:51:11 2013 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 1VRTNz-0006TB-4C for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2013 22:51:07 +0200 Original-Received: from localhost ([::1]:38251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTNy-0007Zf-Mx for ged-emacs-devel@m.gmane.org; Wed, 02 Oct 2013 16:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTAs-0005gc-68 for emacs-devel@gnu.org; Wed, 02 Oct 2013 16:37:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRTAj-0008Ug-5v for emacs-devel@gnu.org; Wed, 02 Oct 2013 16:37:32 -0400 Original-Received: from ptmx.org ([178.63.28.110]:59628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRTAi-0008UK-UI for emacs-devel@gnu.org; Wed, 02 Oct 2013 16:37:25 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id C40792AC6B; Wed, 2 Oct 2013 22:37:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3syC-xtlGmoH; Wed, 2 Oct 2013 22:37:21 +0200 (CEST) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id B637B2ABFC; Wed, 2 Oct 2013 22:37:20 +0200 (CEST) User-Agent: KMail/4.10.5 (Linux/3.8.0-30-generic; KDE/4.10.5; x86_64; ; ) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 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:163812 Archived-At: * lisp/progmodes/octave.el (inferior-octave-error-face): New face. (inferior-octave-warning-face): New face. (inferior-octave-font-lock-keywords): Highlight error/warning messages. Signed-off-by: R=C3=BCdiger Sonderfeld --- lisp/progmodes/octave.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 51cee8b..b200327 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -653,9 +653,21 @@ (defvar inferior-octave-mode-syntax-table table) "Syntax table in use in `inferior-octave-mode' buffers.") =20 +(defface inferior-octave-error-face '((t :inherit error)) + "Face to use for error messages." + :group 'octave + :version "24.4") + +(defface inferior-octave-warning-face '((t :inherit warning)) + "Face to use for warning messages." + :group 'octave + :version "24.4") + (defvar inferior-octave-font-lock-keywords (list - (cons inferior-octave-prompt 'font-lock-type-face)) + (cons inferior-octave-prompt 'font-lock-type-face) + '("^\\(?:parse \\)?error:" . 'inferior-octave-error-face) + '("^warning:" . 'inferior-octave-warning-face)) ;; Could certainly do more font locking in inferior Octave ... "Additional expressions to highlight in Inferior Octave mode.") =20 --=20 1.8.4